has no method 'clear'","prevScroll":[0,0],"showsHalos":false,"loadingMorph":{"__isSmartRef__":true,"id":8694},"attributeConnections":[{"__isSmartRef__":true,"id":8847}],"doNotSerialize":["$$savedWorldAsURL"],"doNotCopyProperties":["$$savedWorldAsURL"],"savedWorldAsURL":{"__isSmartRef__":true,"id":8852},"__LivelyClassName__":"lively.morphic.World"},"1":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2},"derivationIds":[null],"id":"99868D5B-4AFB-4D0F-B333-75FDADC8EBAA","renderContextTable":{"__isSmartRef__":true,"id":8},"eventHandler":{"__isSmartRef__":true,"id":9},"droppingEnabled":true,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":0},"_Position":{"__isSmartRef__":true,"id":10},"isBeingDragged":false,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Rotation":0,"_Scale":1,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":11},"name":"WhiteBoard","prevScroll":[0,0],"distanceToDragEvent":{"__isSmartRef__":true,"id":14},"__SourceModuleName__":"Global.lively.morphic.Core","fillStyle":"rgb(0, 0, 200)","__LivelyClassName__":"lively.morphic.Morph"},"2":{"renderContextTable":{"__isSmartRef__":true,"id":3},"_ClipMode":"visible","_BorderWidth":1,"_Padding":{"__isSmartRef__":true,"id":4},"_BorderColor":{"__isSmartRef__":true,"id":5},"stringifiedShapeNode":"","extent":{"__isSmartRef__":true,"id":6},"__SourceModuleName__":"Global.lively.morphic.Shapes","_Extent":{"__isSmartRef__":true,"id":7},"__LivelyClassName__":"lively.morphic.Shapes.External"},"3":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getExtent":"getExtentHTML","initFromStringifiedShapeNode":"initFromStringifiedShapeNodeHTML"},"4":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6":{"x":300,"y":150,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"9":{"morph":{"__isSmartRef__":true,"id":1},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"10":{"x":831,"y":219,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"11":{"partName":"WhiteBoard","requiredModules":[],"partsSpaceName":"PartsBin/BP2012","comment":"A morph that has a canvas as its shape.","changes":[{"__isSmartRef__":true,"id":12}],"migrationLevel":4,"revisionOnLoad":151713,"__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"12":{"date":{"__isSmartRef__":true,"id":13},"author":"conradcalmez","message":"initial commit","id":"D262F8FB-F5EB-498A-A5DF-31BC7F58613B"},"13":{"isSerializedDate":true,"string":"Thu Apr 12 2012 19:59:04 GMT+0200 (CEST)"},"14":{"x":202,"y":-10,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"15":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16},"derivationIds":[null,"87A78B94-658B-4CD1-88F3-EEAB7FD2417A"],"id":"BC972FD5-6A65-4D37-9C9D-3833BB91B0FD","renderContextTable":{"__isSmartRef__":true,"id":23},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":24},{"__isSmartRef__":true,"id":27},{"__isSmartRef__":true,"id":29},{"__isSmartRef__":true,"id":32},{"__isSmartRef__":true,"id":34},{"__isSmartRef__":true,"id":36},{"__isSmartRef__":true,"id":38},{"__isSmartRef__":true,"id":41},{"__isSmartRef__":true,"id":43},{"__isSmartRef__":true,"id":46},{"__isSmartRef__":true,"id":49},{"__isSmartRef__":true,"id":51},{"__isSmartRef__":true,"id":54},{"__isSmartRef__":true,"id":56},{"__isSmartRef__":true,"id":58},{"__isSmartRef__":true,"id":60},{"__isSmartRef__":true,"id":62},{"__isSmartRef__":true,"id":64},{"__isSmartRef__":true,"id":66},{"__isSmartRef__":true,"id":68},{"__isSmartRef__":true,"id":70}],"eventHandler":{"__isSmartRef__":true,"id":72},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"auto","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco,monospace","_FontSize":10,"evalEnabled":false,"priorExtent":{"__isSmartRef__":true,"id":73},"_MaxTextWidth":490,"_MinTextWidth":490,"_MaxTextHeight":null,"_MinTextHeight":null,"_Position":{"__isSmartRef__":true,"id":74},"layout":{"__isSmartRef__":true,"id":75},"syntaxHighlightingWhileTyping":true,"attributeConnections":[{"__isSmartRef__":true,"id":76}],"doNotSerialize":["$$textString"],"doNotCopyProperties":["$$textString"],"lastSyntaxHighlightTime":1334655711505,"accessibleInInactiveWindow":true,"previousSelection":[164,164],"priorSelectionRange":[164,189],"charsReplaced":"","lastFindLoc":125,"isBeingDragged":false,"showsHalos":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":77},"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"Text","owner":{"__isSmartRef__":true,"id":0},"_Rotation":0,"_Scale":1,"textString":"var whiteboard = new lively.morphic.Morph(\n new lively.morphic.Shapes.External(\n XHTMLNS.create('canvas')\n )\n);\nwhiteboard.applyStyle({borderWidth: 1, borderColor: Color.black});\nwhiteboard.openInWorld(pt(0,0));","__LivelyClassName__":"lively.morphic.Text"},"16":{"_Position":{"__isSmartRef__":true,"id":17},"renderContextTable":{"__isSmartRef__":true,"id":18},"_Extent":{"__isSmartRef__":true,"id":19},"_ClipMode":"auto","_Padding":{"__isSmartRef__":true,"id":20},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":21},"_Fill":{"__isSmartRef__":true,"id":22},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"17":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"18":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"19":{"x":500,"y":200,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20":{"x":4,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"21":{"r":0.372,"g":0.369,"b":0.372,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"22":{"r":0.9529411764705882,"g":0.9529411764705882,"b":0.9529411764705882,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"23":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"24":{"style":{"__isSmartRef__":true,"id":25},"chunkOwner":{"__isSmartRef__":true,"id":15},"storedString":"var","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"25":{"color":{"__isSmartRef__":true,"id":26},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"26":{"r":0,"g":0,"b":0.5019607843137255,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"27":{"style":{"__isSmartRef__":true,"id":28},"chunkOwner":{"__isSmartRef__":true,"id":15},"storedString":" whiteboard = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"28":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"29":{"style":{"__isSmartRef__":true,"id":30},"chunkOwner":{"__isSmartRef__":true,"id":15},"storedString":"new","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"30":{"color":{"__isSmartRef__":true,"id":31},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"31":{"r":0,"g":0,"b":0.5450980392156862,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"32":{"style":{"__isSmartRef__":true,"id":33},"chunkOwner":{"__isSmartRef__":true,"id":15},"storedString":" lively.morphic.Morph(\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"33":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"34":{"style":{"__isSmartRef__":true,"id":35},"chunkOwner":{"__isSmartRef__":true,"id":15},"storedString":"new","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"35":{"color":{"__isSmartRef__":true,"id":31},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"36":{"style":{"__isSmartRef__":true,"id":37},"chunkOwner":{"__isSmartRef__":true,"id":15},"storedString":" lively.morphic.Shapes.External(\n XHTMLNS.create(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"37":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"38":{"style":{"__isSmartRef__":true,"id":39},"chunkOwner":{"__isSmartRef__":true,"id":15},"storedString":"'canvas'","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"39":{"color":{"__isSmartRef__":true,"id":40},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"40":{"r":0,"g":0.5019607843137255,"b":0.5019607843137255,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"41":{"style":{"__isSmartRef__":true,"id":42},"chunkOwner":{"__isSmartRef__":true,"id":15},"storedString":")\n )\n);\nwhiteboard.applyStyle(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"42":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"43":{"style":{"__isSmartRef__":true,"id":44},"chunkOwner":{"__isSmartRef__":true,"id":15},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"44":{"color":{"__isSmartRef__":true,"id":45},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"45":{"r":0,"g":0.5019607843137255,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"46":{"style":{"__isSmartRef__":true,"id":47},"chunkOwner":{"__isSmartRef__":true,"id":15},"storedString":"borderWidth:","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"47":{"color":{"__isSmartRef__":true,"id":48},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"48":{"r":0.5450980392156862,"g":0,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"49":{"style":{"__isSmartRef__":true,"id":50},"chunkOwner":{"__isSmartRef__":true,"id":15},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"50":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"51":{"style":{"__isSmartRef__":true,"id":52},"chunkOwner":{"__isSmartRef__":true,"id":15},"storedString":"1","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"52":{"color":{"__isSmartRef__":true,"id":53},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"53":{"r":0,"g":0,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"54":{"style":{"__isSmartRef__":true,"id":55},"chunkOwner":{"__isSmartRef__":true,"id":15},"storedString":", ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"55":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"56":{"style":{"__isSmartRef__":true,"id":57},"chunkOwner":{"__isSmartRef__":true,"id":15},"storedString":"borderColor:","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"57":{"color":{"__isSmartRef__":true,"id":48},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"58":{"style":{"__isSmartRef__":true,"id":59},"chunkOwner":{"__isSmartRef__":true,"id":15},"storedString":" Color.black","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"59":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"60":{"style":{"__isSmartRef__":true,"id":61},"chunkOwner":{"__isSmartRef__":true,"id":15},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"61":{"color":{"__isSmartRef__":true,"id":45},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"62":{"style":{"__isSmartRef__":true,"id":63},"chunkOwner":{"__isSmartRef__":true,"id":15},"storedString":");\nwhiteboard.openInWorld(pt(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"63":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"64":{"style":{"__isSmartRef__":true,"id":65},"chunkOwner":{"__isSmartRef__":true,"id":15},"storedString":"0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"65":{"color":{"__isSmartRef__":true,"id":53},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"66":{"style":{"__isSmartRef__":true,"id":67},"chunkOwner":{"__isSmartRef__":true,"id":15},"storedString":",","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"67":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"68":{"style":{"__isSmartRef__":true,"id":69},"chunkOwner":{"__isSmartRef__":true,"id":15},"storedString":"0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"69":{"color":{"__isSmartRef__":true,"id":53},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"70":{"style":{"__isSmartRef__":true,"id":71},"chunkOwner":{"__isSmartRef__":true,"id":15},"storedString":"));","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"71":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"72":{"morph":{"__isSmartRef__":true,"id":15},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"73":{"x":500,"y":200,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"74":{"x":78,"y":192,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"75":{"resizeWidth":true,"resizeHeight":true},"76":{"sourceObj":{"__isSmartRef__":true,"id":15},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":15},"targetMethodName":"highlightJavaScriptSyntax","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"77":{"x":340,"y":-11,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"78":{"submorphs":[],"scripts":[],"id":"A0FB65E6-9937-4BBB-BED8-469CF313B2F2","shape":{"__isSmartRef__":true,"id":79},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":85},"_MaxTextWidth":577.7801099999999,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":82},"showsHalos":false,"_FontSize":18,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"Text1","partsBinMetaInfo":{"__isSmartRef__":true,"id":86},"textChunks":[{"__isSmartRef__":true,"id":89}],"charsReplaced":"some text ","lastFindLoc":10,"priorSelectionRange":[0,52],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":92},"renderContextTable":{"__isSmartRef__":true,"id":93},"eventHandler":{"__isSmartRef__":true,"id":94},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Padding":{"__isSmartRef__":true,"id":95},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":577.7801099999999,"_MinTextHeight":null,"previousSelection":[33,39],"owner":{"__isSmartRef__":true,"id":0},"_Rotation":0,"_Scale":1.002003004005006,"__LivelyClassName__":"lively.morphic.Text"},"79":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":80},"_Extent":{"__isSmartRef__":true,"id":81},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":82},"renderContextTable":{"__isSmartRef__":true,"id":83},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":84},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"80":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"81":{"x":585.7801099999999,"y":111.041979,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"82":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"83":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"84":{"x":4,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"85":{"x":19,"y":19,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"86":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":87}],"revisionOnLoad":148789,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"87":{"date":{"__isSmartRef__":true,"id":88},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"88":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"89":{"style":{"__isSmartRef__":true,"id":90},"morph":{"__isSmartRef__":true,"id":78},"__SourceModuleName__":"Global.lively.morphic.TextCore","chunkOwner":{"__isSmartRef__":true,"id":78},"storedString":"Create a simple morph that has a canvas as its shape","__LivelyClassName__":"lively.morphic.TextChunk"},"90":{"__SourceModuleName__":"Global.lively.morphic.TextCore","color":{"__isSmartRef__":true,"id":91},"__LivelyClassName__":"lively.morphic.TextEmphasis"},"91":{"r":0.227,"g":0,"b":1,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"92":{"x":585.7801099999999,"y":107.041979,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"93":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"94":{"morph":{"__isSmartRef__":true,"id":78},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"95":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"96":{"submorphs":[],"scripts":[],"id":"C6637762-E9BF-434B-98DB-5ABD0CA1C398","shape":{"__isSmartRef__":true,"id":97},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":103},"_MaxTextWidth":638.6581709999992,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":100},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"Text2","partsBinMetaInfo":{"__isSmartRef__":true,"id":104},"textChunks":[{"__isSmartRef__":true,"id":107}],"charsReplaced":"some text ","lastFindLoc":10,"priorSelectionRange":[228,228],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":109},"renderContextTable":{"__isSmartRef__":true,"id":110},"eventHandler":{"__isSmartRef__":true,"id":111},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Padding":{"__isSmartRef__":true,"id":112},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":638.6581709999992,"_MinTextHeight":null,"previousSelection":[42,42],"owner":{"__isSmartRef__":true,"id":0},"_Rotation":0,"_Scale":1.002003004005006,"distanceToDragEvent":{"__isSmartRef__":true,"id":113},"__LivelyClassName__":"lively.morphic.Text"},"97":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":98},"_Extent":{"__isSmartRef__":true,"id":99},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":100},"renderContextTable":{"__isSmartRef__":true,"id":101},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":102},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"98":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"99":{"x":646.6581709999992,"y":156,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"100":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"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":4,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"103":{"x":47,"y":76,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"104":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":105}],"revisionOnLoad":148789,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"105":{"date":{"__isSmartRef__":true,"id":106},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"106":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"107":{"style":{"__isSmartRef__":true,"id":108},"morph":{"__isSmartRef__":true,"id":96},"__SourceModuleName__":"Global.lively.morphic.TextCore","chunkOwner":{"__isSmartRef__":true,"id":96},"storedString":"The purpose of this is to finally have a Morph that can act as a distributed collaborative whiteboard. The following code creates a Morph with that alternative Shape. After applying styles (in order to make it easily visible) it is rendered in the World.","__LivelyClassName__":"lively.morphic.TextChunk"},"108":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"109":{"x":646.6581709999992,"y":152,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"110":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"111":{"morph":{"__isSmartRef__":true,"id":96},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"112":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"113":{"x":319,"y":-16,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"114":{"submorphs":[{"__isSmartRef__":true,"id":115}],"scripts":[],"id":"3174C89C-D09B-4039-9493-4915BC7B4DD4","renderContextTable":{"__isSmartRef__":true,"id":136},"shape":{"__isSmartRef__":true,"id":137},"droppingEnabled":true,"halosEnabled":true,"eventHandler":{"__isSmartRef__":true,"id":144},"_Position":{"__isSmartRef__":true,"id":145},"controlPoints":[{"__isSmartRef__":true,"id":146},{"__isSmartRef__":true,"id":147}],"showsHalos":false,"name":"LineWithArrow","partsBinMetaInfo":{"__isSmartRef__":true,"id":148},"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isBeingDragged":false,"derivationIds":[1637],"moved":true,"owner":{"__isSmartRef__":true,"id":0},"_Rotation":0,"_Scale":1,"prevScroll":[0,0],"__LivelyClassName__":"lively.morphic.Path"},"115":{"submorphs":[],"scripts":[],"id":"2858A360-D963-42B8-9A2D-1F5F97EFA3FD","renderContextTable":{"__isSmartRef__":true,"id":116},"shape":{"__isSmartRef__":true,"id":117},"droppingEnabled":true,"halosEnabled":true,"eventHandler":{"__isSmartRef__":true,"id":128},"_Origin":{"__isSmartRef__":true,"id":129},"owner":{"__isSmartRef__":true,"id":114},"_Position":{"__isSmartRef__":true,"id":130},"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","controlPoints":[{"__isSmartRef__":true,"id":131},{"__isSmartRef__":true,"id":132},{"__isSmartRef__":true,"id":133},{"__isSmartRef__":true,"id":134}],"showsHalos":false,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"distanceToDragEvent":{"__isSmartRef__":true,"id":135},"grabbingEnabled":false,"derivationIds":[1638],"_Rotation":0.004694801187495317,"prevScroll":[0,0],"__LivelyClassName__":"lively.morphic.Path"},"116":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"117":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":118},{"__isSmartRef__":true,"id":119},{"__isSmartRef__":true,"id":120},{"__isSmartRef__":true,"id":121}],"renderContextTable":{"__isSmartRef__":true,"id":122},"_Position":{"__isSmartRef__":true,"id":123},"_Extent":{"__isSmartRef__":true,"id":124},"_Fill":{"__isSmartRef__":true,"id":125},"_BorderColor":{"__isSmartRef__":true,"id":126},"__SourceModuleName__":"Global.lively.morphic.PathShapes","_BorderWidth":0,"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":127},"__LivelyClassName__":"lively.morphic.Shapes.Path"},"118":{"isAbsolute":true,"x":-18,"y":-7,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"119":{"isAbsolute":true,"x":-18,"y":8,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"120":{"isAbsolute":true,"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"121":{"isAbsolute":true,"x":-18,"y":-7,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"122":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"123":{"x":-19,"y":-8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"124":{"x":19,"y":16,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"125":{"r":0,"g":0,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"126":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"127":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"128":{"morph":{"__isSmartRef__":true,"id":115},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"129":{"x":12,"y":6,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"130":{"x":129,"y":5.000000000000028,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"131":{"morph":{"__isSmartRef__":true,"id":115},"index":0,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"132":{"morph":{"__isSmartRef__":true,"id":115},"index":1,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"133":{"morph":{"__isSmartRef__":true,"id":115},"index":2,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"134":{"morph":{"__isSmartRef__":true,"id":115},"index":3,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"135":{"x":15,"y":-33,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"136":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"137":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":138},{"__isSmartRef__":true,"id":139}],"renderContextTable":{"__isSmartRef__":true,"id":140},"_Position":{"__isSmartRef__":true,"id":141},"_Extent":{"__isSmartRef__":true,"id":142},"_BorderColor":{"__isSmartRef__":true,"id":126},"__SourceModuleName__":"Global.lively.morphic.PathShapes","_BorderWidth":1,"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":143},"__LivelyClassName__":"lively.morphic.Shapes.Path"},"138":{"isAbsolute":true,"x":-84,"y":4,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"139":{"isAbsolute":true,"x":129,"y":5.000000000000028,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"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","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"141":{"x":-85,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"142":{"x":214,"y":2.0000000000000284,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"143":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"144":{"morph":{"__isSmartRef__":true,"id":114},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"145":{"x":682,"y":302,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"146":{"morph":{"__isSmartRef__":true,"id":114},"index":0,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint"},"147":{"morph":{"__isSmartRef__":true,"id":114},"index":1,"marker":{"__isSmartRef__":true,"id":115},"markerDirection":"prev","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint"},"148":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic/","__SourceModuleName__":"Global.lively.PartsBin","partName":"LineWithArrow","comment":"a Line with one arrow","changes":[{"__isSmartRef__":true,"id":149},{"__isSmartRef__":true,"id":151}],"revisionOnLoad":148733,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"149":{"date":{"__isSmartRef__":true,"id":150},"author":"jenslincke","message":"disable grabbling in arrow head","id":"4E6AF6E9-9FED-4B0A-85E9-9A73E7171295"},"150":{"isSerializedDate":true,"string":"Thu Nov 17 2011 15:54:18 GMT+0100 (CET)"},"151":{"date":{"__isSmartRef__":true,"id":152},"author":"lauritz","message":"recreated after origin fix","id":"B14B3E80-753D-4508-A4CA-B29DD1280CB1"},"152":{"isSerializedDate":true,"string":"Wed Nov 02 2011 06:22:22 GMT+0100 (CET)"},"153":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":154},"derivationIds":[null,"12BCA1EE-CD64-4694-BCC5-1410EC8E27DC"],"id":"42ABC65A-E339-4F62-B91C-410F25FAF504","renderContextTable":{"__isSmartRef__":true,"id":161},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":162},{"__isSmartRef__":true,"id":164},{"__isSmartRef__":true,"id":166},{"__isSmartRef__":true,"id":168},{"__isSmartRef__":true,"id":170},{"__isSmartRef__":true,"id":172},{"__isSmartRef__":true,"id":174},{"__isSmartRef__":true,"id":176},{"__isSmartRef__":true,"id":178},{"__isSmartRef__":true,"id":180},{"__isSmartRef__":true,"id":182},{"__isSmartRef__":true,"id":184},{"__isSmartRef__":true,"id":186},{"__isSmartRef__":true,"id":188},{"__isSmartRef__":true,"id":190},{"__isSmartRef__":true,"id":192},{"__isSmartRef__":true,"id":194},{"__isSmartRef__":true,"id":197},{"__isSmartRef__":true,"id":199},{"__isSmartRef__":true,"id":201},{"__isSmartRef__":true,"id":203},{"__isSmartRef__":true,"id":205},{"__isSmartRef__":true,"id":207},{"__isSmartRef__":true,"id":209},{"__isSmartRef__":true,"id":211},{"__isSmartRef__":true,"id":213},{"__isSmartRef__":true,"id":215},{"__isSmartRef__":true,"id":217},{"__isSmartRef__":true,"id":219},{"__isSmartRef__":true,"id":221},{"__isSmartRef__":true,"id":223},{"__isSmartRef__":true,"id":225},{"__isSmartRef__":true,"id":227},{"__isSmartRef__":true,"id":229},{"__isSmartRef__":true,"id":231},{"__isSmartRef__":true,"id":233},{"__isSmartRef__":true,"id":235},{"__isSmartRef__":true,"id":237},{"__isSmartRef__":true,"id":239},{"__isSmartRef__":true,"id":241},{"__isSmartRef__":true,"id":243},{"__isSmartRef__":true,"id":245},{"__isSmartRef__":true,"id":247},{"__isSmartRef__":true,"id":249},{"__isSmartRef__":true,"id":251},{"__isSmartRef__":true,"id":253},{"__isSmartRef__":true,"id":255},{"__isSmartRef__":true,"id":257},{"__isSmartRef__":true,"id":259},{"__isSmartRef__":true,"id":261},{"__isSmartRef__":true,"id":263},{"__isSmartRef__":true,"id":265},{"__isSmartRef__":true,"id":267},{"__isSmartRef__":true,"id":269},{"__isSmartRef__":true,"id":271},{"__isSmartRef__":true,"id":273},{"__isSmartRef__":true,"id":275},{"__isSmartRef__":true,"id":277},{"__isSmartRef__":true,"id":279},{"__isSmartRef__":true,"id":281},{"__isSmartRef__":true,"id":283},{"__isSmartRef__":true,"id":285},{"__isSmartRef__":true,"id":287},{"__isSmartRef__":true,"id":289},{"__isSmartRef__":true,"id":291},{"__isSmartRef__":true,"id":293},{"__isSmartRef__":true,"id":295},{"__isSmartRef__":true,"id":297},{"__isSmartRef__":true,"id":299},{"__isSmartRef__":true,"id":301},{"__isSmartRef__":true,"id":303},{"__isSmartRef__":true,"id":305},{"__isSmartRef__":true,"id":307},{"__isSmartRef__":true,"id":309}],"eventHandler":{"__isSmartRef__":true,"id":311},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"auto","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco,monospace","_FontSize":10,"evalEnabled":false,"priorExtent":{"__isSmartRef__":true,"id":312},"_MaxTextWidth":596,"_MinTextWidth":596,"_MaxTextHeight":null,"_MinTextHeight":null,"_Position":{"__isSmartRef__":true,"id":313},"layout":{"__isSmartRef__":true,"id":314},"syntaxHighlightingWhileTyping":true,"attributeConnections":[{"__isSmartRef__":true,"id":315}],"doNotSerialize":["$$textString"],"doNotCopyProperties":["$$textString"],"lastSyntaxHighlightTime":1334581080116,"accessibleInInactiveWindow":true,"previousSelection":[31,74],"priorSelectionRange":[171,171],"charsReplaced":"","lastFindLoc":379,"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"Text3","owner":{"__isSmartRef__":true,"id":0},"_Rotation":0,"_Scale":1,"isBeingDragged":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":316},"textString":"var ctx = $morph(\"WhiteBoard1\")._renderContext.shapeNode.getContext(\"2d\");\n// MDN smilie example\nctx.beginPath();\nctx.arc(75,75,50,0,Math.PI*2,true); // Outer circle\nctx.moveTo(110,75);\nctx.arc(75,75,35,0,Math.PI,false); // Mouth (clockwise)\nctx.moveTo(65,65);\nctx.arc(60,65,5,0,Math.PI*2,true); // Left eye\nctx.moveTo(95,65);\nctx.arc(90,65,5,0,Math.PI*2,true); // Right eye\nctx.stroke();","__LivelyClassName__":"lively.morphic.Text"},"154":{"_Position":{"__isSmartRef__":true,"id":155},"renderContextTable":{"__isSmartRef__":true,"id":156},"_Extent":{"__isSmartRef__":true,"id":157},"_ClipMode":"auto","_Padding":{"__isSmartRef__":true,"id":158},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":159},"_Fill":{"__isSmartRef__":true,"id":160},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"155":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"156":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"157":{"x":606,"y":209,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"158":{"x":4,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"159":{"r":0.372,"g":0.369,"b":0.372,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"160":{"r":0.9529411764705882,"g":0.9529411764705882,"b":0.9529411764705882,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"161":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"162":{"style":{"__isSmartRef__":true,"id":163},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":"var","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"163":{"color":{"__isSmartRef__":true,"id":26},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"164":{"style":{"__isSmartRef__":true,"id":165},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":" ctx = $morph(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"165":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"166":{"style":{"__isSmartRef__":true,"id":167},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":"\"WhiteBoard1\"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"167":{"color":{"__isSmartRef__":true,"id":40},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"168":{"style":{"__isSmartRef__":true,"id":169},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":")._renderContext.shapeNode.getContext(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"169":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"170":{"style":{"__isSmartRef__":true,"id":171},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":"\"2d\"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"171":{"color":{"__isSmartRef__":true,"id":40},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"172":{"style":{"__isSmartRef__":true,"id":173},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":");\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"173":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"174":{"style":{"__isSmartRef__":true,"id":175},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":"// MDN smilie example","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"175":{"color":{"__isSmartRef__":true,"id":45},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"176":{"style":{"__isSmartRef__":true,"id":177},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":"\nctx.beginPath();\nctx.arc(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"177":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"178":{"style":{"__isSmartRef__":true,"id":179},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":"75","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"179":{"color":{"__isSmartRef__":true,"id":53},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"180":{"style":{"__isSmartRef__":true,"id":181},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":",","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"181":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"182":{"style":{"__isSmartRef__":true,"id":183},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":"75","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"183":{"color":{"__isSmartRef__":true,"id":53},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"184":{"style":{"__isSmartRef__":true,"id":185},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":",","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"185":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"186":{"style":{"__isSmartRef__":true,"id":187},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":"50","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"187":{"color":{"__isSmartRef__":true,"id":53},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"188":{"style":{"__isSmartRef__":true,"id":189},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":",","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"189":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"190":{"style":{"__isSmartRef__":true,"id":191},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":"0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"191":{"color":{"__isSmartRef__":true,"id":53},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"192":{"style":{"__isSmartRef__":true,"id":193},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":",","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"193":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"194":{"style":{"__isSmartRef__":true,"id":195},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":"Math","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"195":{"color":{"__isSmartRef__":true,"id":196},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"196":{"r":1,"g":0.0784313725490196,"b":0.5764705882352941,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"197":{"style":{"__isSmartRef__":true,"id":198},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":".PI*","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"198":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"199":{"style":{"__isSmartRef__":true,"id":200},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":"2","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"200":{"color":{"__isSmartRef__":true,"id":53},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"201":{"style":{"__isSmartRef__":true,"id":202},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":",true); ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"202":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"203":{"style":{"__isSmartRef__":true,"id":204},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":"// Outer circle","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"204":{"color":{"__isSmartRef__":true,"id":45},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"205":{"style":{"__isSmartRef__":true,"id":206},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":"\nctx.moveTo(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"206":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"207":{"style":{"__isSmartRef__":true,"id":208},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":"110","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"208":{"color":{"__isSmartRef__":true,"id":53},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"209":{"style":{"__isSmartRef__":true,"id":210},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":",","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"210":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"211":{"style":{"__isSmartRef__":true,"id":212},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":"75","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"212":{"color":{"__isSmartRef__":true,"id":53},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"213":{"style":{"__isSmartRef__":true,"id":214},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":");\nctx.arc(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"214":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"215":{"style":{"__isSmartRef__":true,"id":216},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":"75","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"216":{"color":{"__isSmartRef__":true,"id":53},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"217":{"style":{"__isSmartRef__":true,"id":218},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":",","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"218":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"219":{"style":{"__isSmartRef__":true,"id":220},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":"75","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"220":{"color":{"__isSmartRef__":true,"id":53},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"221":{"style":{"__isSmartRef__":true,"id":222},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":",","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"222":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"223":{"style":{"__isSmartRef__":true,"id":224},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":"35","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"224":{"color":{"__isSmartRef__":true,"id":53},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"225":{"style":{"__isSmartRef__":true,"id":226},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":",","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"226":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"227":{"style":{"__isSmartRef__":true,"id":228},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":"0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"228":{"color":{"__isSmartRef__":true,"id":53},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"229":{"style":{"__isSmartRef__":true,"id":230},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":",","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"230":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"231":{"style":{"__isSmartRef__":true,"id":232},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":"Math","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"232":{"color":{"__isSmartRef__":true,"id":196},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"233":{"style":{"__isSmartRef__":true,"id":234},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":".PI,false); ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"234":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"235":{"style":{"__isSmartRef__":true,"id":236},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":"// Mouth (clockwise)","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"236":{"color":{"__isSmartRef__":true,"id":45},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"237":{"style":{"__isSmartRef__":true,"id":238},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":"\nctx.moveTo(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"238":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"239":{"style":{"__isSmartRef__":true,"id":240},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":"65","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"240":{"color":{"__isSmartRef__":true,"id":53},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"241":{"style":{"__isSmartRef__":true,"id":242},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":",","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"242":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"243":{"style":{"__isSmartRef__":true,"id":244},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":"65","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"244":{"color":{"__isSmartRef__":true,"id":53},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"245":{"style":{"__isSmartRef__":true,"id":246},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":");\nctx.arc(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"246":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"247":{"style":{"__isSmartRef__":true,"id":248},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":"60","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"248":{"color":{"__isSmartRef__":true,"id":53},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"249":{"style":{"__isSmartRef__":true,"id":250},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":",","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"250":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"251":{"style":{"__isSmartRef__":true,"id":252},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":"65","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"252":{"color":{"__isSmartRef__":true,"id":53},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"253":{"style":{"__isSmartRef__":true,"id":254},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":",","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"254":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"255":{"style":{"__isSmartRef__":true,"id":256},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":"5","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"256":{"color":{"__isSmartRef__":true,"id":53},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"257":{"style":{"__isSmartRef__":true,"id":258},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":",","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"258":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"259":{"style":{"__isSmartRef__":true,"id":260},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":"0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"260":{"color":{"__isSmartRef__":true,"id":53},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"261":{"style":{"__isSmartRef__":true,"id":262},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":",","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"262":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"263":{"style":{"__isSmartRef__":true,"id":264},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":"Math","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"264":{"color":{"__isSmartRef__":true,"id":196},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"265":{"style":{"__isSmartRef__":true,"id":266},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":".PI*","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"266":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"267":{"style":{"__isSmartRef__":true,"id":268},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":"2","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"268":{"color":{"__isSmartRef__":true,"id":53},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"269":{"style":{"__isSmartRef__":true,"id":270},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":",true); ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"270":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"271":{"style":{"__isSmartRef__":true,"id":272},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":"// Left eye","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"272":{"color":{"__isSmartRef__":true,"id":45},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"273":{"style":{"__isSmartRef__":true,"id":274},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":"\nctx.moveTo(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"274":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"275":{"style":{"__isSmartRef__":true,"id":276},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":"95","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"276":{"color":{"__isSmartRef__":true,"id":53},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"277":{"style":{"__isSmartRef__":true,"id":278},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":",","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"278":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"279":{"style":{"__isSmartRef__":true,"id":280},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":"65","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"280":{"color":{"__isSmartRef__":true,"id":53},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"281":{"style":{"__isSmartRef__":true,"id":282},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":");\nctx.arc(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"282":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"283":{"style":{"__isSmartRef__":true,"id":284},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":"90","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"284":{"color":{"__isSmartRef__":true,"id":53},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"285":{"style":{"__isSmartRef__":true,"id":286},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":",","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"286":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"287":{"style":{"__isSmartRef__":true,"id":288},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":"65","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"288":{"color":{"__isSmartRef__":true,"id":53},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"289":{"style":{"__isSmartRef__":true,"id":290},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":",","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"290":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"291":{"style":{"__isSmartRef__":true,"id":292},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":"5","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"292":{"color":{"__isSmartRef__":true,"id":53},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"293":{"style":{"__isSmartRef__":true,"id":294},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":",","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"294":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"295":{"style":{"__isSmartRef__":true,"id":296},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":"0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"296":{"color":{"__isSmartRef__":true,"id":53},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"297":{"style":{"__isSmartRef__":true,"id":298},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":",","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"298":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"299":{"style":{"__isSmartRef__":true,"id":300},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":"Math","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"300":{"color":{"__isSmartRef__":true,"id":196},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"301":{"style":{"__isSmartRef__":true,"id":302},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":".PI*","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"302":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"303":{"style":{"__isSmartRef__":true,"id":304},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":"2","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"304":{"color":{"__isSmartRef__":true,"id":53},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"305":{"style":{"__isSmartRef__":true,"id":306},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":",true); ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"306":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"307":{"style":{"__isSmartRef__":true,"id":308},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":"// Right eye","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"308":{"color":{"__isSmartRef__":true,"id":45},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"309":{"style":{"__isSmartRef__":true,"id":310},"chunkOwner":{"__isSmartRef__":true,"id":153},"storedString":"\nctx.stroke();","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"310":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"311":{"morph":{"__isSmartRef__":true,"id":153},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"312":{"x":606,"y":209,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"313":{"x":74,"y":476,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"314":{"resizeWidth":true,"resizeHeight":true},"315":{"sourceObj":{"__isSmartRef__":true,"id":153},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":153},"targetMethodName":"highlightJavaScriptSyntax","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"316":{"x":410,"y":-14,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"317":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":318},"derivationIds":[null,"99868D5B-4AFB-4D0F-B333-75FDADC8EBAA"],"id":"69BBA6D3-007E-4A88-BD79-BC6E83F0DFF4","renderContextTable":{"__isSmartRef__":true,"id":324},"eventHandler":{"__isSmartRef__":true,"id":325},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":326},"isBeingDragged":false,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":327},"name":"WhiteBoard1","prevScroll":[0,0],"distanceToDragEvent":{"__isSmartRef__":true,"id":330},"__SourceModuleName__":"Global.lively.morphic.Core","fillStyle":"rgb(0, 0, 200)","owner":{"__isSmartRef__":true,"id":0},"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Morph"},"318":{"renderContextTable":{"__isSmartRef__":true,"id":319},"_ClipMode":"visible","_BorderWidth":1,"_Padding":{"__isSmartRef__":true,"id":320},"_BorderColor":{"__isSmartRef__":true,"id":321},"stringifiedShapeNode":"","extent":{"__isSmartRef__":true,"id":322},"__SourceModuleName__":"Global.lively.morphic.Shapes","_Extent":{"__isSmartRef__":true,"id":323},"__LivelyClassName__":"lively.morphic.Shapes.External"},"319":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getExtent":"getExtentHTML","initFromStringifiedShapeNode":"initFromStringifiedShapeNodeHTML"},"320":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"321":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"322":{"x":300,"y":150,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"323":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"324":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"325":{"morph":{"__isSmartRef__":true,"id":317},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"326":{"x":829,"y":491,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"327":{"partName":"WhiteBoard","requiredModules":[],"partsSpaceName":"PartsBin/BP2012","comment":"A morph that has a canvas as its shape.","changes":[{"__isSmartRef__":true,"id":328}],"migrationLevel":4,"revisionOnLoad":151713,"__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"328":{"date":{"__isSmartRef__":true,"id":329},"author":"conradcalmez","message":"initial commit","id":"D262F8FB-F5EB-498A-A5DF-31BC7F58613B"},"329":{"isSerializedDate":true,"string":"Thu Apr 12 2012 19:59:04 GMT+0200 (CEST)"},"330":{"x":202,"y":-10,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"331":{"submorphs":[],"scripts":[],"id":"B1A7280A-AEE3-468E-8C9D-D1FBCC680E45","shape":{"__isSmartRef__":true,"id":332},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":338},"_MaxTextWidth":468,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":335},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"Text4","partsBinMetaInfo":{"__isSmartRef__":true,"id":339},"textChunks":[{"__isSmartRef__":true,"id":342}],"charsReplaced":"some text ","lastFindLoc":10,"priorSelectionRange":[35,35],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":344},"renderContextTable":{"__isSmartRef__":true,"id":345},"eventHandler":{"__isSmartRef__":true,"id":346},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Padding":{"__isSmartRef__":true,"id":347},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":468,"_MinTextHeight":null,"previousSelection":[5,9],"owner":{"__isSmartRef__":true,"id":0},"_Rotation":0,"_Scale":1.002003004005006,"__LivelyClassName__":"lively.morphic.Text"},"332":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":333},"_Extent":{"__isSmartRef__":true,"id":334},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":335},"renderContextTable":{"__isSmartRef__":true,"id":336},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":337},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"333":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"334":{"x":476,"y":42,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"335":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"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":4,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"338":{"x":47,"y":422,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"339":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":340}],"revisionOnLoad":148789,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"340":{"date":{"__isSmartRef__":true,"id":341},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"341":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"342":{"style":{"__isSmartRef__":true,"id":343},"morph":{"__isSmartRef__":true,"id":331},"__SourceModuleName__":"Global.lively.morphic.TextCore","chunkOwner":{"__isSmartRef__":true,"id":331},"storedString":"Let's draw on it via the canvas API.","__LivelyClassName__":"lively.morphic.TextChunk"},"343":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"344":{"x":476,"y":38,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"345":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"346":{"morph":{"__isSmartRef__":true,"id":331},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"347":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"348":{"submorphs":[{"__isSmartRef__":true,"id":349}],"scripts":[],"id":"63782EC4-763C-4483-A7C9-F088208CF69A","renderContextTable":{"__isSmartRef__":true,"id":370},"shape":{"__isSmartRef__":true,"id":371},"droppingEnabled":true,"halosEnabled":true,"eventHandler":{"__isSmartRef__":true,"id":378},"_Position":{"__isSmartRef__":true,"id":379},"controlPoints":[{"__isSmartRef__":true,"id":380},{"__isSmartRef__":true,"id":381}],"showsHalos":false,"name":"LineWithArrow1","partsBinMetaInfo":{"__isSmartRef__":true,"id":382},"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isBeingDragged":false,"derivationIds":[1637,"3174C89C-D09B-4039-9493-4915BC7B4DD4"],"moved":true,"owner":{"__isSmartRef__":true,"id":0},"_Rotation":0,"_Scale":1,"distanceToDragEvent":{"__isSmartRef__":true,"id":387},"prevScroll":[0,0],"__LivelyClassName__":"lively.morphic.Path"},"349":{"submorphs":[],"scripts":[],"id":"FADA513F-530E-42F1-8B6C-02CFE02092A1","renderContextTable":{"__isSmartRef__":true,"id":350},"shape":{"__isSmartRef__":true,"id":351},"droppingEnabled":true,"halosEnabled":true,"eventHandler":{"__isSmartRef__":true,"id":362},"_Origin":{"__isSmartRef__":true,"id":363},"owner":{"__isSmartRef__":true,"id":348},"_Position":{"__isSmartRef__":true,"id":364},"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","controlPoints":[{"__isSmartRef__":true,"id":365},{"__isSmartRef__":true,"id":366},{"__isSmartRef__":true,"id":367},{"__isSmartRef__":true,"id":368}],"showsHalos":false,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"distanceToDragEvent":{"__isSmartRef__":true,"id":369},"grabbingEnabled":false,"derivationIds":[1638,"2858A360-D963-42B8-9A2D-1F5F97EFA3FD"],"_Rotation":-0.00854680043261124,"prevScroll":[0,0],"__LivelyClassName__":"lively.morphic.Path"},"350":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"351":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":352},{"__isSmartRef__":true,"id":353},{"__isSmartRef__":true,"id":354},{"__isSmartRef__":true,"id":355}],"renderContextTable":{"__isSmartRef__":true,"id":356},"_Position":{"__isSmartRef__":true,"id":357},"_Extent":{"__isSmartRef__":true,"id":358},"_Fill":{"__isSmartRef__":true,"id":359},"_BorderColor":{"__isSmartRef__":true,"id":360},"__SourceModuleName__":"Global.lively.morphic.PathShapes","_BorderWidth":0,"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":361},"__LivelyClassName__":"lively.morphic.Shapes.Path"},"352":{"isAbsolute":true,"x":-18,"y":-7,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"353":{"isAbsolute":true,"x":-18,"y":8,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"354":{"isAbsolute":true,"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"355":{"isAbsolute":true,"x":-18,"y":-7,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"356":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"357":{"x":-19,"y":-8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"358":{"x":19,"y":16,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"359":{"r":0,"g":0,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"360":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"361":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"362":{"morph":{"__isSmartRef__":true,"id":349},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"363":{"x":12,"y":6,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"364":{"x":129,"y":5.000000000000028,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"365":{"morph":{"__isSmartRef__":true,"id":349},"index":0,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"366":{"morph":{"__isSmartRef__":true,"id":349},"index":1,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"367":{"morph":{"__isSmartRef__":true,"id":349},"index":2,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"368":{"morph":{"__isSmartRef__":true,"id":349},"index":3,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"369":{"x":15,"y":-33,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"370":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"371":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":372},{"__isSmartRef__":true,"id":373}],"renderContextTable":{"__isSmartRef__":true,"id":374},"_Position":{"__isSmartRef__":true,"id":375},"_Extent":{"__isSmartRef__":true,"id":376},"_BorderColor":{"__isSmartRef__":true,"id":360},"__SourceModuleName__":"Global.lively.morphic.PathShapes","_BorderWidth":1,"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":377},"__LivelyClassName__":"lively.morphic.Shapes.Path"},"372":{"isAbsolute":true,"x":12,"y":6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"373":{"isAbsolute":true,"x":129,"y":5.000000000000028,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"374":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"375":{"x":11,"y":4.000000000000028,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"376":{"x":118,"y":1.9999999999999716,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"377":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"378":{"morph":{"__isSmartRef__":true,"id":348},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"379":{"x":686,"y":555,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"380":{"morph":{"__isSmartRef__":true,"id":348},"index":0,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint"},"381":{"morph":{"__isSmartRef__":true,"id":348},"index":1,"marker":{"__isSmartRef__":true,"id":349},"markerDirection":"prev","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint"},"382":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Basic/","__SourceModuleName__":"Global.lively.PartsBin","partName":"LineWithArrow","comment":"a Line with one arrow","changes":[{"__isSmartRef__":true,"id":383},{"__isSmartRef__":true,"id":385}],"revisionOnLoad":148733,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"383":{"date":{"__isSmartRef__":true,"id":384},"author":"jenslincke","message":"disable grabbling in arrow head","id":"4E6AF6E9-9FED-4B0A-85E9-9A73E7171295"},"384":{"isSerializedDate":true,"string":"Thu Nov 17 2011 15:54:18 GMT+0100 (CET)"},"385":{"date":{"__isSmartRef__":true,"id":386},"author":"lauritz","message":"recreated after origin fix","id":"B14B3E80-753D-4508-A4CA-B29DD1280CB1"},"386":{"isSerializedDate":true,"string":"Wed Nov 02 2011 06:22:22 GMT+0100 (CET)"},"387":{"x":79,"y":-20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"388":{"submorphs":[{"__isSmartRef__":true,"id":389}],"scripts":[],"id":"9EB1BEAD-EDB6-47E7-9B77-6A142BAB3E3B","shape":{"__isSmartRef__":true,"id":404},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":420},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":408},"lighterFill":{"__isSmartRef__":true,"id":421},"label":{"__isSmartRef__":true,"id":389},"name":"ScriptableButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":430},"attributeConnections":[{"__isSmartRef__":true,"id":431}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","priorExtent":{"__isSmartRef__":true,"id":432},"renderContextTable":{"__isSmartRef__":true,"id":433},"eventHandler":{"__isSmartRef__":true,"id":434},"derivationIds":[2588],"moved":true,"owner":{"__isSmartRef__":true,"id":0},"_Rotation":0,"_Scale":1,"distanceToDragEvent":{"__isSmartRef__":true,"id":435},"prevScroll":[0,0],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":436},"__LivelyClassName__":"lively.morphic.Button"},"389":{"submorphs":[],"scripts":[],"id":"7ADCF23B-EE2A-4C3E-847C-F18F3D726CC0","shape":{"__isSmartRef__":true,"id":390},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":396},"_MaxTextWidth":101,"_MaxTextHeight":null,"textStyle":null,"padding":{"__isSmartRef__":true,"id":397},"_Padding":{"__isSmartRef__":true,"id":398},"owner":{"__isSmartRef__":true,"id":388},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":399},"textChunks":[{"__isSmartRef__":true,"id":400}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":402},"eventHandler":{"__isSmartRef__":true,"id":403},"_HandStyle":"default","_PointerEvents":"none","derivationIds":[2589],"_MinTextWidth":101,"_MinTextHeight":null,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"__LivelyClassName__":"lively.morphic.Text"},"390":{"position":{"__isSmartRef__":true,"id":391},"_Extent":{"__isSmartRef__":true,"id":392},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":393},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":394},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":395},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"391":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"392":{"x":101,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"393":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"394":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"395":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"396":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"397":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"398":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"399":{"x":101,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"400":{"style":{"__isSmartRef__":true,"id":401},"morph":{"__isSmartRef__":true,"id":389},"__SourceModuleName__":"Global.lively.morphic.TextCore","chunkOwner":{"__isSmartRef__":true,"id":389},"storedString":"press","__LivelyClassName__":"lively.morphic.TextChunk"},"401":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"402":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"403":{"morph":{"__isSmartRef__":true,"id":389},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"404":{"position":{"__isSmartRef__":true,"id":405},"_Extent":{"__isSmartRef__":true,"id":406},"_BorderWidth":1.1840000000000002,"_BorderColor":{"__isSmartRef__":true,"id":407},"_Fill":{"__isSmartRef__":true,"id":408},"_BorderRadius":5.2,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":418},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":419},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"405":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"406":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"407":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"408":{"stops":[{"__isSmartRef__":true,"id":409},{"__isSmartRef__":true,"id":411},{"__isSmartRef__":true,"id":413},{"__isSmartRef__":true,"id":415}],"vector":{"__isSmartRef__":true,"id":417},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"409":{"offset":0,"color":{"__isSmartRef__":true,"id":410}},"410":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"411":{"offset":0.4,"color":{"__isSmartRef__":true,"id":412}},"412":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"413":{"offset":0.6,"color":{"__isSmartRef__":true,"id":414}},"414":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"415":{"offset":1,"color":{"__isSmartRef__":true,"id":416}},"416":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"417":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"418":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"419":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"420":{"x":701,"y":530,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"421":{"stops":[{"__isSmartRef__":true,"id":422},{"__isSmartRef__":true,"id":424},{"__isSmartRef__":true,"id":426},{"__isSmartRef__":true,"id":428}],"vector":{"__isSmartRef__":true,"id":417},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"422":{"offset":0,"color":{"__isSmartRef__":true,"id":423}},"423":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"424":{"offset":0.4,"color":{"__isSmartRef__":true,"id":425}},"425":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"426":{"offset":0.6,"color":{"__isSmartRef__":true,"id":427}},"427":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"428":{"offset":1,"color":{"__isSmartRef__":true,"id":429}},"429":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"430":{"partsSpaceName":"PartsBin/Inputs/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"partName":"ScriptableButton","comment":"Has a script that is called on button press","revisionOnLoad":148802,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"431":{"sourceObj":{"__isSmartRef__":true,"id":388},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":388},"targetMethodName":"onFire","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"432":{"x":101,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"433":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"434":{"morph":{"__isSmartRef__":true,"id":388},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"435":{"x":76,"y":-16,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"436":{"onFire":{"__isSmartRef__":true,"id":437}},"437":{"varMapping":{"__isSmartRef__":true,"id":438},"source":"function onFire() {\n var ctx = $morph(\"WhiteBoard1\")._renderContext.shapeNode.getContext(\"2d\");\n // MDN smilie example\n ctx.beginPath();\n ctx.arc(75,75,50,0,Math.PI*2,true); // Outer circle\n ctx.moveTo(110,75);\n ctx.arc(75,75,35,0,Math.PI,false); // Mouth (clockwise)\n ctx.moveTo(65,65);\n ctx.arc(60,65,5,0,Math.PI*2,true); // Left eye\n ctx.moveTo(95,65);\n ctx.arc(90,65,5,0,Math.PI*2,true); // Right eye\n ctx.stroke();\n}","funcProperties":{"__isSmartRef__":true,"id":439},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"438":{"this":{"__isSmartRef__":true,"id":388}},"439":{"timestamp":{"__isSmartRef__":true,"id":440},"user":"conradcalmez","tags":[]},"440":{"isSerializedDate":true,"string":"Fri Apr 13 2012 16:42:48 GMT+0200 (CEST)"},"441":{"submorphs":[{"__isSmartRef__":true,"id":442}],"scripts":[],"id":"4D90775C-B3E7-400A-9D57-184418857944","shape":{"__isSmartRef__":true,"id":457},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":473},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":461},"lighterFill":{"__isSmartRef__":true,"id":474},"label":{"__isSmartRef__":true,"id":442},"name":"ScriptableButton1","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":483},"attributeConnections":[{"__isSmartRef__":true,"id":484}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","priorExtent":{"__isSmartRef__":true,"id":485},"renderContextTable":{"__isSmartRef__":true,"id":486},"eventHandler":{"__isSmartRef__":true,"id":487},"derivationIds":[2588,"9EB1BEAD-EDB6-47E7-9B77-6A142BAB3E3B"],"moved":true,"distanceToDragEvent":{"__isSmartRef__":true,"id":488},"owner":{"__isSmartRef__":true,"id":0},"_Rotation":0,"_Scale":1,"prevScroll":[0,0],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":489},"__LivelyClassName__":"lively.morphic.Button"},"442":{"submorphs":[],"scripts":[],"id":"F20DAF24-A86E-4AF7-AE2C-ED95D5D0CA6C","shape":{"__isSmartRef__":true,"id":443},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":449},"_MaxTextWidth":101,"_MaxTextHeight":null,"textStyle":null,"padding":{"__isSmartRef__":true,"id":450},"_Padding":{"__isSmartRef__":true,"id":451},"owner":{"__isSmartRef__":true,"id":441},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":452},"textChunks":[{"__isSmartRef__":true,"id":453}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":455},"eventHandler":{"__isSmartRef__":true,"id":456},"_HandStyle":"default","_PointerEvents":"none","derivationIds":[2589,"7ADCF23B-EE2A-4C3E-847C-F18F3D726CC0"],"_MinTextWidth":101,"_MinTextHeight":null,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"__LivelyClassName__":"lively.morphic.Text"},"443":{"position":{"__isSmartRef__":true,"id":444},"_Extent":{"__isSmartRef__":true,"id":445},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":446},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":447},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":448},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"444":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"445":{"x":101,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"446":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"447":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"448":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"449":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"450":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"451":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"452":{"x":101,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"453":{"style":{"__isSmartRef__":true,"id":454},"morph":{"__isSmartRef__":true,"id":442},"__SourceModuleName__":"Global.lively.morphic.TextCore","chunkOwner":{"__isSmartRef__":true,"id":442},"storedString":"press","__LivelyClassName__":"lively.morphic.TextChunk"},"454":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"455":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"456":{"morph":{"__isSmartRef__":true,"id":442},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"457":{"position":{"__isSmartRef__":true,"id":458},"_Extent":{"__isSmartRef__":true,"id":459},"_BorderWidth":1.1840000000000002,"_BorderColor":{"__isSmartRef__":true,"id":460},"_Fill":{"__isSmartRef__":true,"id":461},"_BorderRadius":5.2,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":471},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":472},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"458":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"459":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"460":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"461":{"stops":[{"__isSmartRef__":true,"id":462},{"__isSmartRef__":true,"id":464},{"__isSmartRef__":true,"id":466},{"__isSmartRef__":true,"id":468}],"vector":{"__isSmartRef__":true,"id":470},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"462":{"offset":0,"color":{"__isSmartRef__":true,"id":463}},"463":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"464":{"offset":0.4,"color":{"__isSmartRef__":true,"id":465}},"465":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"466":{"offset":0.6,"color":{"__isSmartRef__":true,"id":467}},"467":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"468":{"offset":1,"color":{"__isSmartRef__":true,"id":469}},"469":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"470":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"471":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"472":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"473":{"x":1149,"y":538,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"474":{"stops":[{"__isSmartRef__":true,"id":475},{"__isSmartRef__":true,"id":477},{"__isSmartRef__":true,"id":479},{"__isSmartRef__":true,"id":481}],"vector":{"__isSmartRef__":true,"id":470},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"475":{"offset":0,"color":{"__isSmartRef__":true,"id":476}},"476":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"477":{"offset":0.4,"color":{"__isSmartRef__":true,"id":478}},"478":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"479":{"offset":0.6,"color":{"__isSmartRef__":true,"id":480}},"480":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"481":{"offset":1,"color":{"__isSmartRef__":true,"id":482}},"482":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"483":{"partsSpaceName":"PartsBin/Inputs/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"partName":"ScriptableButton","comment":"Has a script that is called on button press","revisionOnLoad":148802,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"484":{"sourceObj":{"__isSmartRef__":true,"id":441},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":441},"targetMethodName":"onFire","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"485":{"x":101,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"486":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"487":{"morph":{"__isSmartRef__":true,"id":441},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"488":{"x":66,"y":-14,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"489":{"onFire":{"__isSmartRef__":true,"id":490}},"490":{"varMapping":{"__isSmartRef__":true,"id":491},"source":"function onFire() {\nvar whiteboard = new lively.morphic.Morph(\n new lively.morphic.Shapes.External(\n XHTMLNS.create('canvas')\n )\n );\n whiteboard.applyStyle({borderWidth: 1, borderColor: Color.black});\n whiteboard.openInWorld();\n var ctx = whiteboard._renderContext.shapeNode.getContext(\"2d\"); \n\n//var ctx = $morph(\"WhiteBoard1\")._renderContext.shapeNode.getContext(\"2d\");\n // MDN smilie example\n ctx.fillStyle = \"rgb(255,0,0)\"\n ctx.fillRect(0,0,10,10);\n if (ctx.getImageData(0,0,1,1).data[0] > 0) {\n alertOK(\"drawing successful \" + ctx.getImageData(0,0,1,1).data[0]);\n } else {\n alert(\"drawing failed \" + ctx.getImageData(0,0,1,1).data[0]);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":492},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"491":{"this":{"__isSmartRef__":true,"id":441}},"492":{"timestamp":{"__isSmartRef__":true,"id":493},"user":"sstamm","tags":[]},"493":{"isSerializedDate":true,"string":"Mon Apr 16 2012 10:49:25 GMT+0200 (CEST)"},"494":{"submorphs":[],"scripts":[],"id":"89F26ED7-9B46-4CF3-A0EE-CF1FECF96FD0","shape":{"__isSmartRef__":true,"id":495},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":501},"_MaxTextWidth":468,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":498},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"Text5","partsBinMetaInfo":{"__isSmartRef__":true,"id":502},"textChunks":[{"__isSmartRef__":true,"id":505}],"charsReplaced":"on it via the canvas API.","lastFindLoc":36,"priorSelectionRange":[47,47],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":507},"renderContextTable":{"__isSmartRef__":true,"id":508},"eventHandler":{"__isSmartRef__":true,"id":509},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Padding":{"__isSmartRef__":true,"id":510},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","B1A7280A-AEE3-468E-8C9D-D1FBCC680E45"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":468,"_MinTextHeight":null,"previousSelection":[12,12],"owner":{"__isSmartRef__":true,"id":0},"_Rotation":0,"_Scale":1.002003004005006,"isBeingDragged":false,"__LivelyClassName__":"lively.morphic.Text"},"495":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":496},"_Extent":{"__isSmartRef__":true,"id":497},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":498},"renderContextTable":{"__isSmartRef__":true,"id":499},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":500},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"496":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"497":{"x":476,"y":26,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"498":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"499":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"500":{"x":4,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"501":{"x":41,"y":731,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"502":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":503}],"revisionOnLoad":148789,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"503":{"date":{"__isSmartRef__":true,"id":504},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"504":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"505":{"style":{"__isSmartRef__":true,"id":506},"morph":{"__isSmartRef__":true,"id":494},"__SourceModuleName__":"Global.lively.morphic.TextCore","chunkOwner":{"__isSmartRef__":true,"id":494},"storedString":"Let's draw make it drawable by \"hand\" (/mouse).","__LivelyClassName__":"lively.morphic.TextChunk"},"506":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"507":{"x":476,"y":42,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"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":{"morph":{"__isSmartRef__":true,"id":494},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"510":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"511":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":512},"derivationIds":[null,"99868D5B-4AFB-4D0F-B333-75FDADC8EBAA"],"id":"1724C6E9-0FFC-430F-8EA9-0CB466CF3B46","renderContextTable":{"__isSmartRef__":true,"id":518},"eventHandler":{"__isSmartRef__":true,"id":519},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":520},"isBeingDragged":false,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":521},"name":"WhiteBoard","prevScroll":[0,0],"distanceToDragEvent":{"__isSmartRef__":true,"id":526},"__SourceModuleName__":"Global.lively.morphic.Core","fillStyle":"rgb(0, 0, 200)","owner":{"__isSmartRef__":true,"id":0},"isDrawing":true,"_Rotation":0,"_Scale":1,"grabbingEnabled":false,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":527},"__LivelyClassName__":"lively.morphic.Morph"},"512":{"renderContextTable":{"__isSmartRef__":true,"id":513},"_ClipMode":"visible","_BorderWidth":1,"_Padding":{"__isSmartRef__":true,"id":514},"_BorderColor":{"__isSmartRef__":true,"id":515},"stringifiedShapeNode":"","extent":{"__isSmartRef__":true,"id":516},"__SourceModuleName__":"Global.lively.morphic.Shapes","_Extent":{"__isSmartRef__":true,"id":517},"__LivelyClassName__":"lively.morphic.Shapes.External"},"513":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getExtent":"getExtentHTML","initFromStringifiedShapeNode":"initFromStringifiedShapeNodeHTML"},"514":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"515":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"516":{"x":300,"y":150,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"517":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"518":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"519":{"morph":{"__isSmartRef__":true,"id":511},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"520":{"x":1004,"y":790,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"521":{"partName":"WhiteBoard","requiredModules":[],"partsSpaceName":"PartsBin/BP2012","comment":"A morph that has a canvas as its shape.","changes":[{"__isSmartRef__":true,"id":522},{"__isSmartRef__":true,"id":524}],"migrationLevel":4,"revisionOnLoad":152385,"__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"522":{"date":{"__isSmartRef__":true,"id":523},"author":"conradcalmez","message":"initial commit","id":"D262F8FB-F5EB-498A-A5DF-31BC7F58613B"},"523":{"isSerializedDate":true,"string":"Thu Apr 12 2012 19:59:04 GMT+0200 (CEST)"},"524":{"date":{"__isSmartRef__":true,"id":525},"author":"conradcalmez","message":"","id":"D5F11A84-A382-4518-8A0D-8180517818D6"},"525":{"isSerializedDate":true,"string":"Mon Apr 16 2012 13:22:45 GMT+0200 (CEST)"},"526":{"x":201,"y":-14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"527":{"onrestore":{"__isSmartRef__":true,"id":528},"getDrawingContext":{"__isSmartRef__":true,"id":536},"onTouchStart":{"__isSmartRef__":true,"id":540},"onTouchMove":{"__isSmartRef__":true,"id":548},"onTouchEnd":{"__isSmartRef__":true,"id":552},"onMouseUp":{"__isSmartRef__":true,"id":560},"clear":{"__isSmartRef__":true,"id":568},"getCanvas":{"__isSmartRef__":true,"id":572},"transformPoint":{"__isSmartRef__":true,"id":576},"onMouseDown":{"__isSmartRef__":true,"id":580},"onMouseMove":{"__isSmartRef__":true,"id":588},"moveTo":{"__isSmartRef__":true,"id":596},"lineTo":{"__isSmartRef__":true,"id":600},"onMouseOut":{"__isSmartRef__":true,"id":604},"startDrawing":{"__isSmartRef__":true,"id":612},"stopDrawing":{"__isSmartRef__":true,"id":616},"remove":{"__isSmartRef__":true,"id":620}},"528":{"varMapping":{"__isSmartRef__":true,"id":529},"source":"function onrestore() {\n this.isDrawing = false;\n this.disableGrabbing();\n // XXX start longpolling\n}","funcProperties":{"__isSmartRef__":true,"id":534},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"529":{"this":{"__isSmartRef__":true,"id":511},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":530}},"530":{"$super":{"__isSmartRef__":true,"id":531}},"531":{"varMapping":{"__isSmartRef__":true,"id":532},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":533},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"532":{"obj":{"__isSmartRef__":true,"id":511},"name":"onrestore"},"533":{},"534":{"timestamp":{"__isSmartRef__":true,"id":535},"user":"conradcalmez","tags":["initialization"]},"535":{"isSerializedDate":true,"string":"Fri Apr 13 2012 14:20:53 GMT+0200 (CEST)"},"536":{"varMapping":{"__isSmartRef__":true,"id":537},"source":"function getDrawingContext() {\n return this.getCanvas().getContext(\"2d\");\n}","funcProperties":{"__isSmartRef__":true,"id":538},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"537":{"this":{"__isSmartRef__":true,"id":511}},"538":{"timestamp":{"__isSmartRef__":true,"id":539},"user":"conradcalmez","tags":["accessing"]},"539":{"isSerializedDate":true,"string":"Fri Apr 13 2012 10:50:19 GMT+0200 (CEST)"},"540":{"varMapping":{"__isSmartRef__":true,"id":541},"source":"function onTouchStart(evt) {\n this.startDrawing(evt);\n evt.stop();\n}","funcProperties":{"__isSmartRef__":true,"id":546},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"541":{"this":{"__isSmartRef__":true,"id":511},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":542}},"542":{"$super":{"__isSmartRef__":true,"id":543}},"543":{"varMapping":{"__isSmartRef__":true,"id":544},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":545},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"544":{"obj":{"__isSmartRef__":true,"id":511},"name":"onTouchStart"},"545":{},"546":{"timestamp":{"__isSmartRef__":true,"id":547},"user":"conradcalmez","tags":["touch actions"]},"547":{"isSerializedDate":true,"string":"Fri Apr 13 2012 12:27:35 GMT+0200 (CEST)"},"548":{"varMapping":{"__isSmartRef__":true,"id":549},"source":"function onTouchMove(evt) {\n if (this.isDrawing) {\n this.lineTo(pt(evt.pageX, evt.pageY));\n }\n evt.stop();\n}","funcProperties":{"__isSmartRef__":true,"id":550},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"549":{"this":{"__isSmartRef__":true,"id":511}},"550":{"timestamp":{"__isSmartRef__":true,"id":551},"user":"conradcalmez","tags":["touch actions"]},"551":{"isSerializedDate":true,"string":"Fri Apr 13 2012 16:03:31 GMT+0200 (CEST)"},"552":{"varMapping":{"__isSmartRef__":true,"id":553},"source":"function onTouchEnd(evt) {\n this.stopDrawing(evt, true);\n evt.stop();\n}","funcProperties":{"__isSmartRef__":true,"id":558},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"553":{"this":{"__isSmartRef__":true,"id":511},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":554}},"554":{"$super":{"__isSmartRef__":true,"id":555}},"555":{"varMapping":{"__isSmartRef__":true,"id":556},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":557},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"556":{"obj":{"__isSmartRef__":true,"id":511},"name":"onTouchEnd"},"557":{},"558":{"timestamp":{"__isSmartRef__":true,"id":559},"user":"conradcalmez","tags":["touch actions"]},"559":{"isSerializedDate":true,"string":"Fri Apr 13 2012 13:17:41 GMT+0200 (CEST)"},"560":{"varMapping":{"__isSmartRef__":true,"id":561},"source":"function onMouseUp(evt) {\n this.stopDrawing(evt);\n evt.stop();\n}","funcProperties":{"__isSmartRef__":true,"id":566},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"561":{"this":{"__isSmartRef__":true,"id":511},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":562}},"562":{"$super":{"__isSmartRef__":true,"id":563}},"563":{"varMapping":{"__isSmartRef__":true,"id":564},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":565},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"564":{"obj":{"__isSmartRef__":true,"id":511},"name":"onMouseUp"},"565":{},"566":{"timestamp":{"__isSmartRef__":true,"id":567},"user":"conradcalmez","tags":["mouse actions"]},"567":{"isSerializedDate":true,"string":"Fri Apr 13 2012 13:20:09 GMT+0200 (CEST)"},"568":{"varMapping":{"__isSmartRef__":true,"id":569},"source":"function clear() {\n var canvas = this.getCanvas();\n var ctx = this.getDrawingContext();\n ctx.clearRect(0, 0, canvas.width, canvas.height);\n // XXX send clear to couch\n}","funcProperties":{"__isSmartRef__":true,"id":570},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"569":{"this":{"__isSmartRef__":true,"id":511}},"570":{"timestamp":{"__isSmartRef__":true,"id":571},"user":"conradcalmez","tags":["drawing"]},"571":{"isSerializedDate":true,"string":"Fri Apr 13 2012 13:45:49 GMT+0200 (CEST)"},"572":{"varMapping":{"__isSmartRef__":true,"id":573},"source":"function getCanvas() {\n return this._renderContext.shapeNode;\n}","funcProperties":{"__isSmartRef__":true,"id":574},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"573":{"this":{"__isSmartRef__":true,"id":511}},"574":{"timestamp":{"__isSmartRef__":true,"id":575},"user":"conradcalmez","tags":["accessing"]},"575":{"isSerializedDate":true,"string":"Fri Apr 13 2012 10:50:08 GMT+0200 (CEST)"},"576":{"varMapping":{"__isSmartRef__":true,"id":577},"source":"function transformPoint(pagePoint) {\n var canvasPosition = this.getPosition();\n return pagePoint.subPt(canvasPosition);\n}","funcProperties":{"__isSmartRef__":true,"id":578},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"577":{"this":{"__isSmartRef__":true,"id":511}},"578":{"timestamp":{"__isSmartRef__":true,"id":579},"user":"conradcalmez","tags":["drawing"]},"579":{"isSerializedDate":true,"string":"Fri Apr 13 2012 10:58:01 GMT+0200 (CEST)"},"580":{"varMapping":{"__isSmartRef__":true,"id":581},"source":"function onMouseDown(evt) {\n this.startDrawing(evt);\n evt.stop();\n}","funcProperties":{"__isSmartRef__":true,"id":586},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"581":{"this":{"__isSmartRef__":true,"id":511},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":582}},"582":{"$super":{"__isSmartRef__":true,"id":583}},"583":{"varMapping":{"__isSmartRef__":true,"id":584},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":585},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"584":{"obj":{"__isSmartRef__":true,"id":511},"name":"onMouseDown"},"585":{},"586":{"timestamp":{"__isSmartRef__":true,"id":587},"user":"conradcalmez","tags":["mouse actions"]},"587":{"isSerializedDate":true,"string":"Fri Apr 13 2012 13:19:46 GMT+0200 (CEST)"},"588":{"varMapping":{"__isSmartRef__":true,"id":589},"source":"function onMouseMove(evt) {\n if (this.isDrawing) {\n this.lineTo(pt(evt.pageX, evt.pageY));\n }\n evt.stop();\n}","funcProperties":{"__isSmartRef__":true,"id":594},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"589":{"this":{"__isSmartRef__":true,"id":511},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":590}},"590":{"$super":{"__isSmartRef__":true,"id":591}},"591":{"varMapping":{"__isSmartRef__":true,"id":592},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":593},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"592":{"obj":{"__isSmartRef__":true,"id":511},"name":"onMouseMove"},"593":{},"594":{"timestamp":{"__isSmartRef__":true,"id":595},"user":"conradcalmez","tags":["mouse actions"]},"595":{"isSerializedDate":true,"string":"Fri Apr 13 2012 13:20:22 GMT+0200 (CEST)"},"596":{"varMapping":{"__isSmartRef__":true,"id":597},"source":"function moveTo(point) {\n var ctx = this.getDrawingContext();\n ctx.beginPath();\n var pos = this.transformPoint(point);\n ctx.moveTo(pos.x, pos.y);\n}","funcProperties":{"__isSmartRef__":true,"id":598},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"597":{"this":{"__isSmartRef__":true,"id":511}},"598":{"timestamp":{"__isSmartRef__":true,"id":599},"user":"conradcalmez","tags":["drawing"]},"599":{"isSerializedDate":true,"string":"Fri Apr 13 2012 13:59:04 GMT+0200 (CEST)"},"600":{"varMapping":{"__isSmartRef__":true,"id":601},"source":"function lineTo(point, color) {\n var ctx = this.getDrawingContext();\n var pos = this.transformPoint(point);\n if (color) {\n ctx.strokeStyle = color.toString();\n } else {\n ctx.strokeStyle = \"rgb(0,0,0)\";\n }\n ctx.lineTo(pos.x, pos.y);\n ctx.stroke();\n}","funcProperties":{"__isSmartRef__":true,"id":602},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"601":{"this":{"__isSmartRef__":true,"id":511}},"602":{"timestamp":{"__isSmartRef__":true,"id":603},"user":"conradcalmez","tags":["drawing"]},"603":{"isSerializedDate":true,"string":"Fri Apr 13 2012 16:39:06 GMT+0200 (CEST)"},"604":{"varMapping":{"__isSmartRef__":true,"id":605},"source":"function onMouseOut(evt) {\n // XXX cancelation better than strange drawing behavior?\n // this.onMouseUp(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":610},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"605":{"this":{"__isSmartRef__":true,"id":511},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":606}},"606":{"$super":{"__isSmartRef__":true,"id":607}},"607":{"varMapping":{"__isSmartRef__":true,"id":608},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":609},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"608":{"obj":{"__isSmartRef__":true,"id":511},"name":"onMouseOut"},"609":{},"610":{"timestamp":{"__isSmartRef__":true,"id":611},"user":"conradcalmez","tags":["mouse actions"]},"611":{"isSerializedDate":true,"string":"Fri Apr 13 2012 13:22:56 GMT+0200 (CEST)"},"612":{"varMapping":{"__isSmartRef__":true,"id":613},"source":"function startDrawing(evt) {\n this.moveTo(pt(evt.pageX, evt.pageY));\n this.isDrawing = true;\n}","funcProperties":{"__isSmartRef__":true,"id":614},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"613":{"this":{"__isSmartRef__":true,"id":511}},"614":{"timestamp":{"__isSmartRef__":true,"id":615},"user":"conradcalmez","tags":["drawing"]},"615":{"isSerializedDate":true,"string":"Fri Apr 13 2012 12:27:00 GMT+0200 (CEST)"},"616":{"varMapping":{"__isSmartRef__":true,"id":617},"source":"function stopDrawing(evt, touch) {\n //var ctx = this.getDrawingContext();\n //ctx.closePath();\n if (this.isDrawing) {\n if (!touch) {\n this.onMouseMove(evt);\n } else {\n this.onTouchMove(evt);\n }\n this.isDrawing = false;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":618},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"617":{"this":{"__isSmartRef__":true,"id":511}},"618":{"timestamp":{"__isSmartRef__":true,"id":619},"user":"conradcalmez","tags":["drawing"]},"619":{"isSerializedDate":true,"string":"Fri Apr 13 2012 16:05:01 GMT+0200 (CEST)"},"620":{"varMapping":{"__isSmartRef__":true,"id":621},"source":"function remove() {\n // XXX stop longpolling\n this.suspendSteppingAll();\n if (this.showsHalos) this.removeHalos();\n this.renderContextDispatch('remove');\n}","funcProperties":{"__isSmartRef__":true,"id":626},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"621":{"this":{"__isSmartRef__":true,"id":511},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":622}},"622":{"$super":{"__isSmartRef__":true,"id":623}},"623":{"varMapping":{"__isSmartRef__":true,"id":624},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":625},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"624":{"obj":{"__isSmartRef__":true,"id":511},"name":"remove"},"625":{},"626":{"timestamp":{"__isSmartRef__":true,"id":627},"user":"conradcalmez","tags":["initialization"]},"627":{"isSerializedDate":true,"string":"Fri Apr 13 2012 13:47:29 GMT+0200 (CEST)"},"628":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":629},"derivationIds":[null,"99868D5B-4AFB-4D0F-B333-75FDADC8EBAA","1724C6E9-0FFC-430F-8EA9-0CB466CF3B46"],"id":"83CF2C89-334F-431A-8847-02801E94371E","renderContextTable":{"__isSmartRef__":true,"id":635},"eventHandler":{"__isSmartRef__":true,"id":636},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":637},"isBeingDragged":false,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":638},"name":"WhiteBoard","prevScroll":[0,0],"distanceToDragEvent":{"__isSmartRef__":true,"id":657},"__SourceModuleName__":"Global.lively.morphic.Core","fillStyle":"rgb(0, 0, 200)","isDrawing":false,"grabbingEnabled":false,"owner":{"__isSmartRef__":true,"id":0},"_Rotation":0,"_Scale":1,"pointQueue":[[111,43],[110,43]],"active":false,"db":{"__isSmartRef__":true,"id":658},"dbName":"","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":679},"__LivelyClassName__":"lively.morphic.Morph"},"629":{"renderContextTable":{"__isSmartRef__":true,"id":630},"_ClipMode":"visible","_BorderWidth":1,"_Padding":{"__isSmartRef__":true,"id":631},"_BorderColor":{"__isSmartRef__":true,"id":632},"stringifiedShapeNode":"","extent":{"__isSmartRef__":true,"id":633},"__SourceModuleName__":"Global.lively.morphic.Shapes","_Extent":{"__isSmartRef__":true,"id":634},"__LivelyClassName__":"lively.morphic.Shapes.External"},"630":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getExtent":"getExtentHTML","initFromStringifiedShapeNode":"initFromStringifiedShapeNodeHTML"},"631":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"632":{"r":0,"g":0,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"633":{"x":300,"y":150,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"634":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"635":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"636":{"morph":{"__isSmartRef__":true,"id":628},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"637":{"x":1012,"y":1409,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"638":{"partName":"WhiteBoard","requiredModules":[],"partsSpaceName":"PartsBin/BP2012","comment":"A morph that has a canvas as its shape.","changes":[{"__isSmartRef__":true,"id":639},{"__isSmartRef__":true,"id":641},{"__isSmartRef__":true,"id":643},{"__isSmartRef__":true,"id":645},{"__isSmartRef__":true,"id":647},{"__isSmartRef__":true,"id":649},{"__isSmartRef__":true,"id":651},{"__isSmartRef__":true,"id":653},{"__isSmartRef__":true,"id":655}],"migrationLevel":4,"revisionOnLoad":152831,"__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"639":{"date":{"__isSmartRef__":true,"id":640},"author":"conradcalmez","message":"initial commit","id":"D262F8FB-F5EB-498A-A5DF-31BC7F58613B"},"640":{"isSerializedDate":true,"string":"Thu Apr 12 2012 19:59:04 GMT+0200 (CEST)"},"641":{"date":{"__isSmartRef__":true,"id":642},"author":"conradcalmez","message":"now with broken sync features","id":"102D4E0F-9485-446E-97C2-C5424D0B5E3A"},"642":{"isSerializedDate":true,"string":"Tue Apr 17 2012 12:02:14 GMT+0200 (CEST)"},"643":{"date":{"__isSmartRef__":true,"id":644},"author":"conradcalmez","message":"now with broken sync features","id":"2E3F8836-6EE4-4977-A531-59319E60E001"},"644":{"isSerializedDate":true,"string":"Tue Apr 17 2012 12:04:08 GMT+0200 (CEST)"},"645":{"date":{"__isSmartRef__":true,"id":646},"author":"conradcalmez","message":"testeditest","id":"30D494A6-CB75-4429-AAEB-BF3F89183131"},"646":{"isSerializedDate":true,"string":"Tue Apr 17 2012 12:12:38 GMT+0200 (CEST)"},"647":{"date":{"__isSmartRef__":true,"id":648},"author":"conradcalmez","message":"now with initial sync","id":"6D19AA73-DD7B-4DF9-8482-2F7E4D5CB6CE"},"648":{"isSerializedDate":true,"string":"Tue Apr 17 2012 14:29:51 GMT+0200 (CEST)"},"649":{"date":{"__isSmartRef__":true,"id":650},"author":"conradcalmez","message":"initial sync now syncs own offline drawn content to db","id":"4A09CB70-7DAB-40A6-BF27-625233BB1B1A"},"650":{"isSerializedDate":true,"string":"Tue Apr 17 2012 14:39:31 GMT+0200 (CEST)"},"651":{"date":{"__isSmartRef__":true,"id":652},"author":"conradcalmez","message":"no more data leaks","id":"A2A34766-50FD-4EAF-85B5-CEB78CB39DDB"},"652":{"isSerializedDate":true,"string":"Tue Apr 17 2012 14:59:37 GMT+0200 (CEST)"},"653":{"date":{"__isSmartRef__":true,"id":654},"author":"conradcalmez","message":"clear please the whiteboard not the couch","id":"E391F433-E613-4852-8011-10C2DAF18120"},"654":{"isSerializedDate":true,"string":"Tue Apr 17 2012 15:06:12 GMT+0200 (CEST)"},"655":{"date":{"__isSmartRef__":true,"id":656},"author":"conradcalmez","message":"right mouse click does not draw","id":"1C1B5B38-BF89-448D-9264-FB9068ACA9E5"},"656":{"isSerializedDate":true,"string":"Tue Apr 17 2012 15:12:42 GMT+0200 (CEST)"},"657":{"x":199,"y":-15,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"658":{"name":"whiteboard","urlStart":"http://lively-kernel.org/couchdb/","uri":"http://lively-kernel.org/couchdb/whiteboard/","last_req":{"__isSmartRef__":true,"id":659},"uuids_cache":["385d4340080fa20047f762df52c9d980","385d4340080fa20047f762df52c9e325","385d4340080fa20047f762df52c9ecb1","385d4340080fa20047f762df52c9eead","385d4340080fa20047f762df52c9f48b","385d4340080fa20047f762df52ca00c2","385d4340080fa20047f762df52ca048d","385d4340080fa20047f762df52ca0b89","385d4340080fa20047f762df52ca13ab","385d4340080fa20047f762df52ca1ffd","385d4340080fa20047f762df52ca2930","385d4340080fa20047f762df52ca2db5","385d4340080fa20047f762df52ca3006","385d4340080fa20047f762df52ca35f1","385d4340080fa20047f762df52ca406b","385d4340080fa20047f762df52ca4813","385d4340080fa20047f762df52ca57dc","385d4340080fa20047f762df52ca57f9","385d4340080fa20047f762df52ca637e","385d4340080fa20047f762df52ca70ca","385d4340080fa20047f762df52ca7893","385d4340080fa20047f762df52ca847c","385d4340080fa20047f762df52ca87f0","385d4340080fa20047f762df52ca9637","385d4340080fa20047f762df52ca9a6f","385d4340080fa20047f762df52ca9ed3","385d4340080fa20047f762df52caa4c8","385d4340080fa20047f762df52caa7da","385d4340080fa20047f762df52caae24","385d4340080fa20047f762df52cab0f2","385d4340080fa20047f762df52cab9e1","385d4340080fa20047f762df52cabace","385d4340080fa20047f762df52cabe26","385d4340080fa20047f762df52cac22a","385d4340080fa20047f762df52cacd9f","385d4340080fa20047f762df52cadc9b","385d4340080fa20047f762df52cae0be","385d4340080fa20047f762df52caed5e","385d4340080fa20047f762df52caef11","385d4340080fa20047f762df52caf7fa","385d4340080fa20047f762df52cb046d","385d4340080fa20047f762df52cb0b2e","385d4340080fa20047f762df52cb1738","385d4340080fa20047f762df52cb2557","385d4340080fa20047f762df52cb2f79","385d4340080fa20047f762df52cb3edc","385d4340080fa20047f762df52cb4c2d","385d4340080fa20047f762df52cb4eaf","385d4340080fa20047f762df52cb5c79","385d4340080fa20047f762df52cb6c5f","385d4340080fa20047f762df52cb7736","385d4340080fa20047f762df52cb84b2","385d4340080fa20047f762df52cb924c","385d4340080fa20047f762df52cb97d0","385d4340080fa20047f762df52cb9961","385d4340080fa20047f762df52cba3c5","385d4340080fa20047f762df52cbac59","385d4340080fa20047f762df52cbb60e","385d4340080fa20047f762df52cbbe02","385d4340080fa20047f762df52cbc3c6","385d4340080fa20047f762df52cbd11e","385d4340080fa20047f762df52cbda1c","385d4340080fa20047f762df52cbe35c","385d4340080fa20047f762df52cbf358","385d4340080fa20047f762df52cbf8a0","385d4340080fa20047f762df52cc088c","385d4340080fa20047f762df52cc1807","385d4340080fa20047f762df52cc1b1d","385d4340080fa20047f762df52cc1cb4","385d4340080fa20047f762df52cc2813","385d4340080fa20047f762df52cc335c","385d4340080fa20047f762df52cc420a","385d4340080fa20047f762df52cc481c","385d4340080fa20047f762df52cc49da","385d4340080fa20047f762df52cc58ef","385d4340080fa20047f762df52cc5cfc","385d4340080fa20047f762df52cc698e","385d4340080fa20047f762df52cc71c2","385d4340080fa20047f762df52cc7f89","385d4340080fa20047f762df52cc8dee","385d4340080fa20047f762df52cc98a8","385d4340080fa20047f762df52cca728","385d4340080fa20047f762df52ccb4c0","385d4340080fa20047f762df52ccc32a","385d4340080fa20047f762df52cccfd1","385d4340080fa20047f762df52ccd738","385d4340080fa20047f762df52cce435"],"docQueue":[],"last_changes_req":{"__isSmartRef__":true,"id":666},"last_changes_seq":19603,"pollingChanges":false,"__LivelyClassName__":"CouchDB","__SourceModuleName__":"Global.apps.CouchDB"},"659":{"_url":{"__isSmartRef__":true,"id":660},"_isSync":true,"_isBinary":false,"status":{"__isSmartRef__":true,"id":661},"content":"{\"ok\":true,\"id\":\"385d4340080fa20047f762df52cd6468\",\"rev\":\"2-35bfdc0121f2e45ff89cce00ad1d28d5\"}\n","contentDocument":"","isExisting":true,"subResources":null,"requestHeaders":{"__isSmartRef__":true,"id":664},"responseHeaders":{"__isSmartRef__":true,"id":665},"readystate":4,"__LivelyClassName__":"WebResource","__SourceModuleName__":"Global.lively.Network"},"660":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/couchdb/whiteboard/385d4340080fa20047f762df52cd6468","search":"?rev=1-43ac4c928d4502e9caaa296e4fe074c6","__LivelyClassName__":"URL","__SourceModuleName__":"Global.lively.Network"},"661":{"method":"DELETE","url":{"__isSmartRef__":true,"id":660},"transport":{"__isSmartRef__":true,"id":662},"exception":null,"__LivelyClassName__":"NetRequestStatus","__SourceModuleName__":"Global.lively.Network"},"662":{"responseType":"","onprogress":null,"onerror":null,"readyState":4,"upload":{"__isSmartRef__":true,"id":663},"responseXML":null,"responseText":"{\"ok\":true,\"id\":\"385d4340080fa20047f762df52cd6468\",\"rev\":\"2-35bfdc0121f2e45ff89cce00ad1d28d5\"}\n","onloadstart":null,"onabort":null,"statusText":"OK","withCredentials":false,"onload":null,"response":"{\"ok\":true,\"id\":\"385d4340080fa20047f762df52cd6468\",\"rev\":\"2-35bfdc0121f2e45ff89cce00ad1d28d5\"}\n","status":200,"onloadend":null},"663":{"onprogress":null,"onerror":null,"onloadstart":null,"onabort":null,"onload":null,"onloadend":null},"664":{"Depth":"infinity"},"665":{"Date":"Tue, 17 Apr 2012 13:04:49 GMT","date":"Tue, 17 Apr 2012 13:04:49 GMT","Content-Encoding":"gzip","content-encoding":"gzip","Transfer-Encoding":"chunked","transfer-encoding":"chunked","Connection":"Keep-Alive","connection":"Keep-Alive","Server":"CouchDB/0.11.0 (Erlang OTP/R14B)","server":"CouchDB/0.11.0 (Erlang OTP/R14B)","Etag":"\"2-35bfdc0121f2e45ff89cce00ad1d28d5\"","etag":"\"2-35bfdc0121f2e45ff89cce00ad1d28d5\"","Vary":"Accept-Encoding","vary":"Accept-Encoding","Content-Type":"text/plain;charset=utf-8","content-type":"text/plain;charset=utf-8","Cache-Control":"must-revalidate","cache-control":"must-revalidate","Keep-Alive":"timeout=15, max=62","keep-alive":"timeout=15, max=62"},"666":{"_url":{"__isSmartRef__":true,"id":667},"_isSync":false,"_isBinary":false,"status":{"__isSmartRef__":true,"id":668},"content":"{\"db_name\":\"whiteboard\",\"doc_count\":1,\"doc_del_count\":9591,\"update_seq\":19532,\"purge_seq\":0,\"compact_running\":false,\"disk_size\":107763650,\"instance_start_time\":\"1334574855467202\",\"disk_format_version\":5}\n","contentDocument":"","isExisting":true,"subResources":null,"requestHeaders":{"__isSmartRef__":true,"id":671},"responseHeaders":{"__isSmartRef__":true,"id":672},"attributeConnections":[{"__isSmartRef__":true,"id":673}],"doNotSerialize":["$$readystate"],"doNotCopyProperties":["$$readystate"],"readystate":4,"streamContent":"{\"db_name\":\"whiteboard\",\"doc_count\":1,\"doc_del_count\":9591,\"update_seq\":19532,\"purge_seq\":0,\"compact_running\":false,\"disk_size\":107763650,\"instance_start_time\":\"1334574855467202\",\"disk_format_version\":5}","__LivelyClassName__":"WebResource","__SourceModuleName__":"Global.lively.Network"},"667":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/couchdb/whiteboard/","__LivelyClassName__":"URL","__SourceModuleName__":"Global.lively.Network"},"668":{"method":"GET","url":{"__isSmartRef__":true,"id":667},"transport":{"__isSmartRef__":true,"id":669},"exception":null,"__LivelyClassName__":"NetRequestStatus","__SourceModuleName__":"Global.lively.Network"},"669":{"responseType":"","onprogress":null,"onerror":null,"readyState":4,"upload":{"__isSmartRef__":true,"id":670},"responseXML":null,"responseText":"{\"db_name\":\"whiteboard\",\"doc_count\":1,\"doc_del_count\":9591,\"update_seq\":19532,\"purge_seq\":0,\"compact_running\":false,\"disk_size\":107763650,\"instance_start_time\":\"1334574855467202\",\"disk_format_version\":5}\n","onloadstart":null,"onabort":null,"statusText":"OK","withCredentials":false,"onload":null,"response":"{\"db_name\":\"whiteboard\",\"doc_count\":1,\"doc_del_count\":9591,\"update_seq\":19532,\"purge_seq\":0,\"compact_running\":false,\"disk_size\":107763650,\"instance_start_time\":\"1334574855467202\",\"disk_format_version\":5}\n","status":200,"onloadend":null},"670":{"onprogress":null,"onerror":null,"onloadstart":null,"onabort":null,"onload":null,"onloadend":null},"671":{},"672":{"Date":"Tue, 17 Apr 2012 13:03:43 GMT","date":"Tue, 17 Apr 2012 13:03:43 GMT","Content-Encoding":"gzip","content-encoding":"gzip","Transfer-Encoding":"chunked","transfer-encoding":"chunked","Connection":"Keep-Alive","connection":"Keep-Alive","Server":"CouchDB/0.11.0 (Erlang OTP/R14B)","server":"CouchDB/0.11.0 (Erlang OTP/R14B)","Vary":"Accept-Encoding","vary":"Accept-Encoding","Content-Type":"text/plain;charset=utf-8","content-type":"text/plain;charset=utf-8","Cache-Control":"must-revalidate","cache-control":"must-revalidate","Keep-Alive":"timeout=15, max=98","keep-alive":"timeout=15, max=98"},"673":{"sourceObj":{"__isSmartRef__":true,"id":666},"sourceAttrName":"readystate","targetObj":{"__isSmartRef__":true,"id":674},"targetMethodName":"cb","converterString":"function () { return this.sourceObj; }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":675},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":676},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"674":{},"675":{"source":{"__isSmartRef__":true,"id":666},"target":{"__isSmartRef__":true,"id":674}},"676":{"converter":{"__isSmartRef__":true,"id":677}},"677":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":675},"source":"function () { return this.sourceObj; }","funcProperties":{"__isSmartRef__":true,"id":678},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"678":{},"679":{"onrestore":{"__isSmartRef__":true,"id":680},"activate":{"__isSmartRef__":true,"id":688},"initialSync":{"__isSmartRef__":true,"id":692},"getDB":{"__isSmartRef__":true,"id":696},"getDrawingContext":{"__isSmartRef__":true,"id":700},"onTouchStart":{"__isSmartRef__":true,"id":704},"onTouchMove":{"__isSmartRef__":true,"id":712},"onTouchEnd":{"__isSmartRef__":true,"id":716},"onMouseUp":{"__isSmartRef__":true,"id":724},"clear":{"__isSmartRef__":true,"id":732},"getCanvas":{"__isSmartRef__":true,"id":736},"transformPoint":{"__isSmartRef__":true,"id":740},"onMouseDown":{"__isSmartRef__":true,"id":744},"onMouseMove":{"__isSmartRef__":true,"id":752},"moveTo":{"__isSmartRef__":true,"id":760},"lineTo":{"__isSmartRef__":true,"id":764},"onMouseOut":{"__isSmartRef__":true,"id":768},"startDrawing":{"__isSmartRef__":true,"id":776},"stopDrawing":{"__isSmartRef__":true,"id":780},"remove":{"__isSmartRef__":true,"id":784},"defaultDBName":{"__isSmartRef__":true,"id":792},"getDBName":{"__isSmartRef__":true,"id":796},"deactivate":{"__isSmartRef__":true,"id":800},"resetPointQueue":{"__isSmartRef__":true,"id":804},"getPointQueue":{"__isSmartRef__":true,"id":808},"setPointQueue":{"__isSmartRef__":true,"id":812},"syncPointQueueToDatabase":{"__isSmartRef__":true,"id":816},"morphMenuItems":{"__isSmartRef__":true,"id":820},"clearDatabase":{"__isSmartRef__":true,"id":828},"toggleActivation":{"__isSmartRef__":true,"id":832},"getDrawerID":{"__isSmartRef__":true,"id":836},"reset":{"__isSmartRef__":true,"id":840},"drawLineFrom":{"__isSmartRef__":true,"id":844},"setDBName":{"__isSmartRef__":true,"id":848}},"680":{"varMapping":{"__isSmartRef__":true,"id":681},"source":"function onrestore() {\n this.reset();\n // XXX start longpolling ???\n}","funcProperties":{"__isSmartRef__":true,"id":686},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"681":{"this":{"__isSmartRef__":true,"id":628},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":682}},"682":{"$super":{"__isSmartRef__":true,"id":683}},"683":{"varMapping":{"__isSmartRef__":true,"id":684},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":685},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"684":{"obj":{"__isSmartRef__":true,"id":628},"name":"onrestore"},"685":{},"686":{"timestamp":{"__isSmartRef__":true,"id":687},"user":"conradcalmez","tags":["initialization"]},"687":{"isSerializedDate":true,"string":"Tue Apr 17 2012 14:37:06 GMT+0200 (CEST)"},"688":{"varMapping":{"__isSmartRef__":true,"id":689},"source":"function activate() {\n this.active = true;\n this.applyStyle({borderColor: Color.green});\n this.initialSync();\n var that = this;\n this.getDB().startPollingChanges(function (change) {\n if(typeof change === \"object\"){\n if (change.deleted) {\n // only whole deletion of whiteboard possible right now\n that.clear(true);\n } else {\n // XXX no support for multiple parallel boards\n var document = that.getDB().open(change.id);\n if (document.drawer != that.getDrawerID()) {\n that.drawLineFrom(document);\n }\n }\n } else {\n alert(\"change is no object\");\n }\n },\n function(e){\n alert(e);\n throw(e);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":690},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"689":{"this":{"__isSmartRef__":true,"id":628}},"690":{"timestamp":{"__isSmartRef__":true,"id":691},"user":"conradcalmez","tags":["synchonization"]},"691":{"isSerializedDate":true,"string":"Tue Apr 17 2012 15:03:45 GMT+0200 (CEST)"},"692":{"varMapping":{"__isSmartRef__":true,"id":693},"source":"function initialSync() {\n // XXX TODO implement\n var that = this;\n var docs = this.getDB().allDocs();\n docs.rows.each(function (ea) {\n var doc = that.getDB().open(ea.id);\n that.drawLineFrom(doc);\n });\n // following code can be at beginning\n // tradeoff: (1) data reduction because one gets everything that not has been drawn offline\n // (2) updates to other clients will come a little later (after update of this client)\n this.syncPointQueueToDatabase();\n}","funcProperties":{"__isSmartRef__":true,"id":694},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"693":{"this":{"__isSmartRef__":true,"id":628}},"694":{"timestamp":{"__isSmartRef__":true,"id":695},"user":"conradcalmez","tags":["synchonization"]},"695":{"isSerializedDate":true,"string":"Tue Apr 17 2012 14:35:37 GMT+0200 (CEST)"},"696":{"varMapping":{"__isSmartRef__":true,"id":697},"source":"function getDB() {\n module('apps.CouchDB').load(true);\n if(!this.db){\n this.db = new CouchDB(this.getDBName());\n }\n return this.db;\n}","funcProperties":{"__isSmartRef__":true,"id":698},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"697":{"this":{"__isSmartRef__":true,"id":628}},"698":{"timestamp":{"__isSmartRef__":true,"id":699},"user":"conradcalmez","tags":[]},"699":{"isSerializedDate":true,"string":"Mon Apr 16 2012 13:29:07 GMT+0200 (CEST)"},"700":{"varMapping":{"__isSmartRef__":true,"id":701},"source":"function getDrawingContext() {\n return this.getCanvas().getContext(\"2d\");\n}","funcProperties":{"__isSmartRef__":true,"id":702},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"701":{"this":{"__isSmartRef__":true,"id":628}},"702":{"timestamp":{"__isSmartRef__":true,"id":703},"user":"conradcalmez","tags":["accessing"]},"703":{"isSerializedDate":true,"string":"Fri Apr 13 2012 10:50:19 GMT+0200 (CEST)"},"704":{"varMapping":{"__isSmartRef__":true,"id":705},"source":"function onTouchStart(evt) {\n this.startDrawing(evt);\n evt.stop();\n}","funcProperties":{"__isSmartRef__":true,"id":710},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"705":{"this":{"__isSmartRef__":true,"id":628},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":706}},"706":{"$super":{"__isSmartRef__":true,"id":707}},"707":{"varMapping":{"__isSmartRef__":true,"id":708},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":709},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"708":{"obj":{"__isSmartRef__":true,"id":628},"name":"onTouchStart"},"709":{},"710":{"timestamp":{"__isSmartRef__":true,"id":711},"user":"conradcalmez","tags":["touch actions"]},"711":{"isSerializedDate":true,"string":"Fri Apr 13 2012 12:27:35 GMT+0200 (CEST)"},"712":{"varMapping":{"__isSmartRef__":true,"id":713},"source":"function onTouchMove(evt) {\n if (this.isDrawing) {\n this.lineTo(pt(evt.pageX, evt.pageY), true, true);\n }\n evt.stop();\n}","funcProperties":{"__isSmartRef__":true,"id":714},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"713":{"this":{"__isSmartRef__":true,"id":628}},"714":{"timestamp":{"__isSmartRef__":true,"id":715},"user":"conradcalmez","tags":["touch actions"]},"715":{"isSerializedDate":true,"string":"Tue Apr 17 2012 14:58:14 GMT+0200 (CEST)"},"716":{"varMapping":{"__isSmartRef__":true,"id":717},"source":"function onTouchEnd(evt) {\n this.stopDrawing(evt, true);\n evt.stop();\n}","funcProperties":{"__isSmartRef__":true,"id":722},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"717":{"this":{"__isSmartRef__":true,"id":628},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":718}},"718":{"$super":{"__isSmartRef__":true,"id":719}},"719":{"varMapping":{"__isSmartRef__":true,"id":720},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":721},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"720":{"obj":{"__isSmartRef__":true,"id":628},"name":"onTouchEnd"},"721":{},"722":{"timestamp":{"__isSmartRef__":true,"id":723},"user":"conradcalmez","tags":["touch actions"]},"723":{"isSerializedDate":true,"string":"Fri Apr 13 2012 13:17:41 GMT+0200 (CEST)"},"724":{"varMapping":{"__isSmartRef__":true,"id":725},"source":"function onMouseUp(evt) {\n this.stopDrawing(evt);\n evt.stop();\n}","funcProperties":{"__isSmartRef__":true,"id":730},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"725":{"this":{"__isSmartRef__":true,"id":628},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":726}},"726":{"$super":{"__isSmartRef__":true,"id":727}},"727":{"varMapping":{"__isSmartRef__":true,"id":728},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":729},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"728":{"obj":{"__isSmartRef__":true,"id":628},"name":"onMouseUp"},"729":{},"730":{"timestamp":{"__isSmartRef__":true,"id":731},"user":"conradcalmez","tags":["mouse actions"]},"731":{"isSerializedDate":true,"string":"Fri Apr 13 2012 13:20:09 GMT+0200 (CEST)"},"732":{"varMapping":{"__isSmartRef__":true,"id":733},"source":"function clear(leaveOutSync) {\n var canvas = this.getCanvas();\n var ctx = this.getDrawingContext();\n ctx.clearRect(0, 0, canvas.width, canvas.height);\n if (!leaveOutSync) {\n this.clearDatabase();\n } \n}","funcProperties":{"__isSmartRef__":true,"id":734},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"733":{"this":{"__isSmartRef__":true,"id":628}},"734":{"timestamp":{"__isSmartRef__":true,"id":735},"user":"conradcalmez","tags":["drawing"]},"735":{"isSerializedDate":true,"string":"Mon Apr 16 2012 14:50:00 GMT+0200 (CEST)"},"736":{"varMapping":{"__isSmartRef__":true,"id":737},"source":"function getCanvas() {\n return this._renderContext.shapeNode;\n}","funcProperties":{"__isSmartRef__":true,"id":738},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"737":{"this":{"__isSmartRef__":true,"id":628}},"738":{"timestamp":{"__isSmartRef__":true,"id":739},"user":"conradcalmez","tags":["accessing"]},"739":{"isSerializedDate":true,"string":"Fri Apr 13 2012 10:50:08 GMT+0200 (CEST)"},"740":{"varMapping":{"__isSmartRef__":true,"id":741},"source":"function transformPoint(pagePoint) {\n var canvasPosition = this.getPosition();\n return pagePoint.subPt(canvasPosition);\n}","funcProperties":{"__isSmartRef__":true,"id":742},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"741":{"this":{"__isSmartRef__":true,"id":628}},"742":{"timestamp":{"__isSmartRef__":true,"id":743},"user":"conradcalmez","tags":["drawing"]},"743":{"isSerializedDate":true,"string":"Fri Apr 13 2012 10:58:01 GMT+0200 (CEST)"},"744":{"varMapping":{"__isSmartRef__":true,"id":745},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown()) {\n this.startDrawing(evt);\n evt.stop();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":750},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"745":{"this":{"__isSmartRef__":true,"id":628},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":746}},"746":{"$super":{"__isSmartRef__":true,"id":747}},"747":{"varMapping":{"__isSmartRef__":true,"id":748},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":749},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"748":{"obj":{"__isSmartRef__":true,"id":628},"name":"onMouseDown"},"749":{},"750":{"timestamp":{"__isSmartRef__":true,"id":751},"user":"conradcalmez","tags":["mouse actions"]},"751":{"isSerializedDate":true,"string":"Tue Apr 17 2012 15:11:58 GMT+0200 (CEST)"},"752":{"varMapping":{"__isSmartRef__":true,"id":753},"source":"function onMouseMove(evt) {\n if (this.isDrawing) {\n this.lineTo(pt(evt.pageX, evt.pageY), true, true);\n }\n evt.stop();\n}","funcProperties":{"__isSmartRef__":true,"id":758},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"753":{"this":{"__isSmartRef__":true,"id":628},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":754}},"754":{"$super":{"__isSmartRef__":true,"id":755}},"755":{"varMapping":{"__isSmartRef__":true,"id":756},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":757},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"756":{"obj":{"__isSmartRef__":true,"id":628},"name":"onMouseMove"},"757":{},"758":{"timestamp":{"__isSmartRef__":true,"id":759},"user":"conradcalmez","tags":["mouse actions"]},"759":{"isSerializedDate":true,"string":"Tue Apr 17 2012 14:58:06 GMT+0200 (CEST)"},"760":{"varMapping":{"__isSmartRef__":true,"id":761},"source":"function moveTo(point, sync, optTransform) {\n var pos = point;\n if (optTransform) {\n pos = this.transformPoint(pos);\n }\n if (sync) {\n if (this.getPointQueue().length > 0) {\n this.getPointQueue().push([-1, -1]);\n }\n this.getPointQueue().push([pos.x, pos.y]);\n }\n var ctx = this.getDrawingContext();\n ctx.beginPath();\n ctx.moveTo(pos.x, pos.y);\n}","funcProperties":{"__isSmartRef__":true,"id":762},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"761":{"this":{"__isSmartRef__":true,"id":628}},"762":{"timestamp":{"__isSmartRef__":true,"id":763},"user":"conradcalmez","tags":["drawing"]},"763":{"isSerializedDate":true,"string":"Tue Apr 17 2012 14:57:07 GMT+0200 (CEST)"},"764":{"varMapping":{"__isSmartRef__":true,"id":765},"source":"function lineTo(point, sync, optTransform, color) {\n var pos = point;\n if (optTransform) {\n pos = this.transformPoint(pos);\n }\n if (sync) {\n this.getPointQueue().push([pos.x, pos.y]);\n }\n var ctx = this.getDrawingContext();\n if (color) {\n ctx.strokeStyle = color.toString();\n } else {\n ctx.strokeStyle = \"rgb(0,0,0)\";\n }\n ctx.lineTo(pos.x, pos.y);\n ctx.stroke();\n}","funcProperties":{"__isSmartRef__":true,"id":766},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"765":{"this":{"__isSmartRef__":true,"id":628}},"766":{"timestamp":{"__isSmartRef__":true,"id":767},"user":"conradcalmez","tags":["drawing"]},"767":{"isSerializedDate":true,"string":"Tue Apr 17 2012 14:56:57 GMT+0200 (CEST)"},"768":{"varMapping":{"__isSmartRef__":true,"id":769},"source":"function onMouseOut(evt) {\n // XXX cancelation better than strange drawing behavior?\n this.onMouseUp(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":774},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"769":{"this":{"__isSmartRef__":true,"id":628},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":770}},"770":{"$super":{"__isSmartRef__":true,"id":771}},"771":{"varMapping":{"__isSmartRef__":true,"id":772},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":773},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"772":{"obj":{"__isSmartRef__":true,"id":628},"name":"onMouseOut"},"773":{},"774":{"timestamp":{"__isSmartRef__":true,"id":775},"user":"conradcalmez","tags":["mouse actions"]},"775":{"isSerializedDate":true,"string":"Mon Apr 16 2012 14:52:16 GMT+0200 (CEST)"},"776":{"varMapping":{"__isSmartRef__":true,"id":777},"source":"function startDrawing(evt) {\n this.resetPointQueue();\n this.moveTo(pt(evt.pageX, evt.pageY), true, true);\n this.isDrawing = true;\n}","funcProperties":{"__isSmartRef__":true,"id":778},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"777":{"this":{"__isSmartRef__":true,"id":628}},"778":{"timestamp":{"__isSmartRef__":true,"id":779},"user":"conradcalmez","tags":["drawing"]},"779":{"isSerializedDate":true,"string":"Tue Apr 17 2012 14:58:42 GMT+0200 (CEST)"},"780":{"varMapping":{"__isSmartRef__":true,"id":781},"source":"function stopDrawing(evt, touch) {\n //var ctx = this.getDrawingContext();\n //ctx.closePath();\n if (this.isDrawing) {\n if (!touch) {\n this.onMouseMove(evt);\n } else {\n this.onTouchMove(evt);\n }\n this.isDrawing = false;\n this.syncPointQueueToDatabase();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":782},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"781":{"this":{"__isSmartRef__":true,"id":628}},"782":{"timestamp":{"__isSmartRef__":true,"id":783},"user":"conradcalmez","tags":["drawing"]},"783":{"isSerializedDate":true,"string":"Mon Apr 16 2012 16:33:36 GMT+0200 (CEST)"},"784":{"varMapping":{"__isSmartRef__":true,"id":785},"source":"function remove() {\n // XXX stop longpolling\n this.suspendSteppingAll();\n if (this.showsHalos) this.removeHalos();\n this.renderContextDispatch('remove');\n}","funcProperties":{"__isSmartRef__":true,"id":790},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"785":{"this":{"__isSmartRef__":true,"id":628},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":786}},"786":{"$super":{"__isSmartRef__":true,"id":787}},"787":{"varMapping":{"__isSmartRef__":true,"id":788},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":789},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"788":{"obj":{"__isSmartRef__":true,"id":628},"name":"remove"},"789":{},"790":{"timestamp":{"__isSmartRef__":true,"id":791},"user":"conradcalmez","tags":["initialization"]},"791":{"isSerializedDate":true,"string":"Fri Apr 13 2012 13:47:29 GMT+0200 (CEST)"},"792":{"varMapping":{"__isSmartRef__":true,"id":793},"source":"function defaultDBName() {\n return \"whiteboard\"\n}","funcProperties":{"__isSmartRef__":true,"id":794},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"793":{"this":{"__isSmartRef__":true,"id":628}},"794":{"timestamp":{"__isSmartRef__":true,"id":795},"user":"conradcalmez","tags":[]},"795":{"isSerializedDate":true,"string":"Mon Apr 16 2012 13:27:22 GMT+0200 (CEST)"},"796":{"varMapping":{"__isSmartRef__":true,"id":797},"source":"function getDBName() {\n return this.dbName || this.defaultDBName()\n}","funcProperties":{"__isSmartRef__":true,"id":798},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"797":{"this":{"__isSmartRef__":true,"id":628}},"798":{"timestamp":{"__isSmartRef__":true,"id":799},"user":"conradcalmez","tags":[]},"799":{"isSerializedDate":true,"string":"Mon Apr 16 2012 13:27:37 GMT+0200 (CEST)"},"800":{"varMapping":{"__isSmartRef__":true,"id":801},"source":"function deactivate() {\n this.active = false;\n this.applyStyle({borderColor: Color.black});\n this.getDB().stopPollingChanges();\n}","funcProperties":{"__isSmartRef__":true,"id":802},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"801":{"this":{"__isSmartRef__":true,"id":628}},"802":{"timestamp":{"__isSmartRef__":true,"id":803},"user":"conradcalmez","tags":["synchonization"]},"803":{"isSerializedDate":true,"string":"Tue Apr 17 2012 11:42:53 GMT+0200 (CEST)"},"804":{"varMapping":{"__isSmartRef__":true,"id":805},"source":"function resetPointQueue() {\n this.setPointQueue([]);\n}","funcProperties":{"__isSmartRef__":true,"id":806},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"805":{"this":{"__isSmartRef__":true,"id":628}},"806":{"timestamp":{"__isSmartRef__":true,"id":807},"user":"conradcalmez","tags":["synchonization"]},"807":{"isSerializedDate":true,"string":"Mon Apr 16 2012 13:41:59 GMT+0200 (CEST)"},"808":{"varMapping":{"__isSmartRef__":true,"id":809},"source":"function getPointQueue() {\n return this.pointQueue || [];\n}","funcProperties":{"__isSmartRef__":true,"id":810},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"809":{"this":{"__isSmartRef__":true,"id":628}},"810":{"timestamp":{"__isSmartRef__":true,"id":811},"user":"conradcalmez","tags":["synchonization"]},"811":{"isSerializedDate":true,"string":"Mon Apr 16 2012 13:40:50 GMT+0200 (CEST)"},"812":{"varMapping":{"__isSmartRef__":true,"id":813},"source":"function setPointQueue(queue) {\n this.pointQueue = queue;\n}","funcProperties":{"__isSmartRef__":true,"id":814},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"813":{"this":{"__isSmartRef__":true,"id":628}},"814":{"timestamp":{"__isSmartRef__":true,"id":815},"user":"conradcalmez","tags":["synchonization"]},"815":{"isSerializedDate":true,"string":"Mon Apr 16 2012 13:41:41 GMT+0200 (CEST)"},"816":{"varMapping":{"__isSmartRef__":true,"id":817},"source":"function syncPointQueueToDatabase() {\n if (this.active) {\n var queue = this.getPointQueue();\n for (var i=0; i < queue.length-1; i++) {\n var start = queue[i],\n end = queue[i+1];\n if (end == [-1, -1]) {\n continue;\n }\n var document = {\n board: \"example\",\n time: Date.now(),\n drawer: this.getDrawerID(),\n startPoint: start,\n endPoint: end\n };\n var result = this.getDB().save(document);\n if (result.error == \"conflict\") {\n console.log(\"an error occured while synching the whiteboard\");\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":818},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"817":{"this":{"__isSmartRef__":true,"id":628}},"818":{"timestamp":{"__isSmartRef__":true,"id":819},"user":"conradcalmez","tags":["synchonization"]},"819":{"isSerializedDate":true,"string":"Tue Apr 17 2012 11:11:01 GMT+0200 (CEST)"},"820":{"varMapping":{"__isSmartRef__":true,"id":821},"source":"function morphMenuItems() {\n items = $super();\n var itemString = \"activate sync\";\n if (this.active) itemString = \"de\" + itemString;\n items.push([itemString, (function () {this.toggleActivation()}).bind(this)]);\n items.push([\"clear whiteboard\", (function () {this.clear()}).bind(this)])\n return items;\n}","funcProperties":{"__isSmartRef__":true,"id":826},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"821":{"this":{"__isSmartRef__":true,"id":628},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":822}},"822":{"$super":{"__isSmartRef__":true,"id":823}},"823":{"varMapping":{"__isSmartRef__":true,"id":824},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":825},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"824":{"obj":{"__isSmartRef__":true,"id":628},"name":"morphMenuItems"},"825":{},"826":{"timestamp":{"__isSmartRef__":true,"id":827},"user":"conradcalmez","tags":[]},"827":{"isSerializedDate":true,"string":"Mon Apr 16 2012 15:06:24 GMT+0200 (CEST)"},"828":{"varMapping":{"__isSmartRef__":true,"id":829},"source":"function clearDatabase() {\n if (this.active) {\n var docs = this.getDB().allDocs();\n var that = this;\n docs.rows.each(function (ea) {\n var doc = that.getDB().open(ea.id);\n that.getDB().deleteDoc(doc);\n });\n }\n}","funcProperties":{"__isSmartRef__":true,"id":830},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"829":{"this":{"__isSmartRef__":true,"id":628}},"830":{"timestamp":{"__isSmartRef__":true,"id":831},"user":"conradcalmez","tags":["synchonization"]},"831":{"isSerializedDate":true,"string":"Mon Apr 16 2012 14:33:34 GMT+0200 (CEST)"},"832":{"varMapping":{"__isSmartRef__":true,"id":833},"source":"function toggleActivation() {\n if (!this.active) {\n this.activate();\n } else {\n this.deactivate();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":834},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"833":{"this":{"__isSmartRef__":true,"id":628}},"834":{"timestamp":{"__isSmartRef__":true,"id":835},"user":"conradcalmez","tags":[]},"835":{"isSerializedDate":true,"string":"Mon Apr 16 2012 15:03:54 GMT+0200 (CEST)"},"836":{"varMapping":{"__isSmartRef__":true,"id":837},"source":"function getDrawerID() {\n return $world.getUserName() + \"_ON_\" + this.id;\n}","funcProperties":{"__isSmartRef__":true,"id":838},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"837":{"this":{"__isSmartRef__":true,"id":628}},"838":{"timestamp":{"__isSmartRef__":true,"id":839},"user":"conradcalmez","tags":[]},"839":{"isSerializedDate":true,"string":"Tue Apr 17 2012 11:09:14 GMT+0200 (CEST)"},"840":{"varMapping":{"__isSmartRef__":true,"id":841},"source":"function reset() {\n this.deactivate();\n this.disableGrabbing();\n this.db = undefined;\n this.setDBName(\"\");\n this.isDrawing = false;\n this.clear();\n}","funcProperties":{"__isSmartRef__":true,"id":842},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"841":{"this":{"__isSmartRef__":true,"id":628}},"842":{"timestamp":{"__isSmartRef__":true,"id":843},"user":"conradcalmez","tags":["initialization"]},"843":{"isSerializedDate":true,"string":"Tue Apr 17 2012 14:37:53 GMT+0200 (CEST)"},"844":{"varMapping":{"__isSmartRef__":true,"id":845},"source":"function drawLineFrom(document) {\n var startPoint = pt(document.startPoint[0], document.startPoint[1]);\n var endPoint = pt(document.endPoint[0], document.endPoint[1]);\n this.moveTo(startPoint);\n this.lineTo(endPoint);\n}","funcProperties":{"__isSmartRef__":true,"id":846},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"845":{"this":{"__isSmartRef__":true,"id":628}},"846":{"timestamp":{"__isSmartRef__":true,"id":847},"user":"conradcalmez","tags":[]},"847":{"isSerializedDate":true,"string":"Tue Apr 17 2012 14:28:05 GMT+0200 (CEST)"},"848":{"varMapping":{"__isSmartRef__":true,"id":849},"source":"function setDBName(name) {\n this.dbName = name\n}","funcProperties":{"__isSmartRef__":true,"id":850},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"849":{"this":{"__isSmartRef__":true,"id":628}},"850":{"timestamp":{"__isSmartRef__":true,"id":851},"user":"conradcalmez","tags":[]},"851":{"isSerializedDate":true,"string":"Tue Apr 17 2012 14:38:40 GMT+0200 (CEST)"},"852":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":853},"derivationIds":[null,"13D1B6D9-5D4B-4F9C-8B54-993B9BB684BC"],"id":"D2B9F9F8-3D56-4E06-B725-4D7755C74B70","renderContextTable":{"__isSmartRef__":true,"id":860},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":861},{"__isSmartRef__":true,"id":863},{"__isSmartRef__":true,"id":865},{"__isSmartRef__":true,"id":867},{"__isSmartRef__":true,"id":869},{"__isSmartRef__":true,"id":871},{"__isSmartRef__":true,"id":873},{"__isSmartRef__":true,"id":875},{"__isSmartRef__":true,"id":877},{"__isSmartRef__":true,"id":879},{"__isSmartRef__":true,"id":881},{"__isSmartRef__":true,"id":883},{"__isSmartRef__":true,"id":885},{"__isSmartRef__":true,"id":887},{"__isSmartRef__":true,"id":889},{"__isSmartRef__":true,"id":891},{"__isSmartRef__":true,"id":893},{"__isSmartRef__":true,"id":895},{"__isSmartRef__":true,"id":897},{"__isSmartRef__":true,"id":899},{"__isSmartRef__":true,"id":901},{"__isSmartRef__":true,"id":903},{"__isSmartRef__":true,"id":905}],"eventHandler":{"__isSmartRef__":true,"id":907},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"auto","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco,monospace","_FontSize":10,"evalEnabled":false,"priorExtent":{"__isSmartRef__":true,"id":908},"_MaxTextWidth":219,"_MinTextWidth":219,"_MaxTextHeight":null,"_MinTextHeight":null,"_Position":{"__isSmartRef__":true,"id":909},"layout":{"__isSmartRef__":true,"id":910},"syntaxHighlightingWhileTyping":true,"attributeConnections":[{"__isSmartRef__":true,"id":911}],"doNotSerialize":["$$textString"],"doNotCopyProperties":["$$textString"],"lastSyntaxHighlightTime":1334668717113,"accessibleInInactiveWindow":true,"previousSelection":[154,91],"priorSelectionRange":[23,23],"charsReplaced":" ","lastFindLoc":46,"savedTextString":"{\n board: \"example\",\n time: 1234567890,\n lineEnd: false,\n startPoint: [0,0],\n endPoint: [1,1],\n}\n\n// when endPoint: [-1, -1], it's the line end (at startPoint)","showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.TextCore","isBeingDragged":false,"textString":"{\n board: \"example\",\n time: 1234567890,\n startPoint: [0,0],\n endPoint: [1,1],\n}","name":"Text6","owner":{"__isSmartRef__":true,"id":0},"_Rotation":0,"_Scale":1,"distanceToDragEvent":{"__isSmartRef__":true,"id":912},"__LivelyClassName__":"lively.morphic.Text"},"853":{"_Position":{"__isSmartRef__":true,"id":854},"renderContextTable":{"__isSmartRef__":true,"id":855},"_Extent":{"__isSmartRef__":true,"id":856},"_ClipMode":"auto","_Padding":{"__isSmartRef__":true,"id":857},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":858},"_Fill":{"__isSmartRef__":true,"id":859},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"854":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"855":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"856":{"x":229,"y":116,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"857":{"x":4,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"858":{"r":0.372,"g":0.369,"b":0.372,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"859":{"r":0.9529411764705882,"g":0.9529411764705882,"b":0.9529411764705882,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"860":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"861":{"style":{"__isSmartRef__":true,"id":862},"chunkOwner":{"__isSmartRef__":true,"id":852},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"862":{"color":{"__isSmartRef__":true,"id":45},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"863":{"style":{"__isSmartRef__":true,"id":864},"chunkOwner":{"__isSmartRef__":true,"id":852},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"864":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"865":{"style":{"__isSmartRef__":true,"id":866},"chunkOwner":{"__isSmartRef__":true,"id":852},"storedString":"board:","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"866":{"color":{"__isSmartRef__":true,"id":48},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"867":{"style":{"__isSmartRef__":true,"id":868},"chunkOwner":{"__isSmartRef__":true,"id":852},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"868":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"869":{"style":{"__isSmartRef__":true,"id":870},"chunkOwner":{"__isSmartRef__":true,"id":852},"storedString":"\"example\"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"870":{"color":{"__isSmartRef__":true,"id":40},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"871":{"style":{"__isSmartRef__":true,"id":872},"chunkOwner":{"__isSmartRef__":true,"id":852},"storedString":",\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"872":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"873":{"style":{"__isSmartRef__":true,"id":874},"chunkOwner":{"__isSmartRef__":true,"id":852},"storedString":"time:","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"874":{"color":{"__isSmartRef__":true,"id":48},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"875":{"style":{"__isSmartRef__":true,"id":876},"chunkOwner":{"__isSmartRef__":true,"id":852},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"876":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"877":{"style":{"__isSmartRef__":true,"id":878},"chunkOwner":{"__isSmartRef__":true,"id":852},"storedString":"1234567890","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"878":{"color":{"__isSmartRef__":true,"id":53},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"879":{"style":{"__isSmartRef__":true,"id":880},"chunkOwner":{"__isSmartRef__":true,"id":852},"storedString":",\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"880":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"881":{"style":{"__isSmartRef__":true,"id":882},"chunkOwner":{"__isSmartRef__":true,"id":852},"storedString":"startPoint:","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"882":{"color":{"__isSmartRef__":true,"id":48},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"883":{"style":{"__isSmartRef__":true,"id":884},"chunkOwner":{"__isSmartRef__":true,"id":852},"storedString":" [","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"884":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"885":{"style":{"__isSmartRef__":true,"id":886},"chunkOwner":{"__isSmartRef__":true,"id":852},"storedString":"0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"886":{"color":{"__isSmartRef__":true,"id":53},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"887":{"style":{"__isSmartRef__":true,"id":888},"chunkOwner":{"__isSmartRef__":true,"id":852},"storedString":",","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"888":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"889":{"style":{"__isSmartRef__":true,"id":890},"chunkOwner":{"__isSmartRef__":true,"id":852},"storedString":"0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"890":{"color":{"__isSmartRef__":true,"id":53},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"891":{"style":{"__isSmartRef__":true,"id":892},"chunkOwner":{"__isSmartRef__":true,"id":852},"storedString":"],\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"892":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"893":{"style":{"__isSmartRef__":true,"id":894},"chunkOwner":{"__isSmartRef__":true,"id":852},"storedString":"endPoint:","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"894":{"color":{"__isSmartRef__":true,"id":48},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"895":{"style":{"__isSmartRef__":true,"id":896},"chunkOwner":{"__isSmartRef__":true,"id":852},"storedString":" [","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"896":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"897":{"style":{"__isSmartRef__":true,"id":898},"chunkOwner":{"__isSmartRef__":true,"id":852},"storedString":"1","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"898":{"color":{"__isSmartRef__":true,"id":53},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"899":{"style":{"__isSmartRef__":true,"id":900},"chunkOwner":{"__isSmartRef__":true,"id":852},"storedString":",","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"900":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"901":{"style":{"__isSmartRef__":true,"id":902},"chunkOwner":{"__isSmartRef__":true,"id":852},"storedString":"1","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"902":{"color":{"__isSmartRef__":true,"id":53},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"903":{"style":{"__isSmartRef__":true,"id":904},"chunkOwner":{"__isSmartRef__":true,"id":852},"storedString":"],\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"904":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"905":{"style":{"__isSmartRef__":true,"id":906},"chunkOwner":{"__isSmartRef__":true,"id":852},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"906":{"color":{"__isSmartRef__":true,"id":45},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"907":{"morph":{"__isSmartRef__":true,"id":852},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"908":{"x":229,"y":116,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"909":{"x":972,"y":1716,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"910":{"resizeWidth":true,"resizeHeight":true},"911":{"sourceObj":{"__isSmartRef__":true,"id":852},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":852},"targetMethodName":"highlightJavaScriptSyntax","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"912":{"x":163,"y":-8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"913":{"submorphs":[{"__isSmartRef__":true,"id":914},{"__isSmartRef__":true,"id":2633},{"__isSmartRef__":true,"id":2673}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2821},"id":"3787D657-2BB2-4C5F-B75C-93EFACD63624","renderContextTable":{"__isSmartRef__":true,"id":2826},"eventHandler":{"__isSmartRef__":true,"id":2827},"droppingEnabled":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":2828},"LK2":true,"priorExtent":{"__isSmartRef__":true,"id":2829},"targetMorph":{"__isSmartRef__":true,"id":914},"titleBar":{"__isSmartRef__":true,"id":2673},"contentOffset":{"__isSmartRef__":true,"id":2830},"collapsedTransform":{"__isSmartRef__":true,"id":2831},"collapsedExtent":{"__isSmartRef__":true,"id":2832},"expandedTransform":{"__isSmartRef__":true,"id":2833},"expandedExtent":{"__isSmartRef__":true,"id":2834},"ignoreEventsOnExpand":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2835},"name":"ObjectEditor","prevDragPos":{"__isSmartRef__":true,"id":2898},"highlighted":false,"cameForward":false,"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","expandedPosition":{"__isSmartRef__":true,"id":2899},"state":"expanded","collapsedPosition":{"__isSmartRef__":true,"id":2900},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isBeingDragged":false,"prevScroll":[0,0],"minSize":{"__isSmartRef__":true,"id":2901},"minExtent":{"__isSmartRef__":true,"id":2902},"isCopyMorphRef":true,"morphRefId":16,"derivationIds":[205,"2951753B-EB95-4093-A0DD-249E83AC2204","A32DE788-E06D-492C-B2E6-19C3710B5AE0","96D56291-98FB-42C4-A247-0A20B4183B14","1E6BCC46-3FE3-4950-AE50-9751458F7E18","22248328-5B04-4E39-ADDE-460C107C790F","2F4F6161-9F4C-469E-AF56-24765FF03B72","88EF08D5-C1E7-4B5B-B393-FFF5921009D7"],"_Position":{"__isSmartRef__":true,"id":2903},"moved":true,"_Rotation":0,"_Scale":1.008036120330794,"owner":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2904},"__LivelyClassName__":"lively.morphic.Window","withoutLayers":["Global.lively.morphic.GrabbingLayer"]},"914":{"submorphs":[{"__isSmartRef__":true,"id":915},{"__isSmartRef__":true,"id":1818},{"__isSmartRef__":true,"id":1600},{"__isSmartRef__":true,"id":1833},{"__isSmartRef__":true,"id":1849},{"__isSmartRef__":true,"id":1900},{"__isSmartRef__":true,"id":1950},{"__isSmartRef__":true,"id":2006},{"__isSmartRef__":true,"id":1410},{"__isSmartRef__":true,"id":1477},{"__isSmartRef__":true,"id":2061},{"__isSmartRef__":true,"id":2179},{"__isSmartRef__":true,"id":2194},{"__isSmartRef__":true,"id":2209},{"__isSmartRef__":true,"id":2294},{"__isSmartRef__":true,"id":2378},{"__isSmartRef__":true,"id":2462}],"scripts":[{"__isSmartRef__":true,"id":2510}],"id":"D92F38F4-2A4F-4894-B46C-8C948BD26575","shape":{"__isSmartRef__":true,"id":2511},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"ObjectEditorPane","partsBinMetaInfo":{"__isSmartRef__":true,"id":2518},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":2521},"eventHandler":{"__isSmartRef__":true,"id":2522},"priorExtent":{"__isSmartRef__":true,"id":2523},"layout":{"__isSmartRef__":true,"id":2524},"target":{"__isSmartRef__":true,"id":511},"scriptPane":{"__isSmartRef__":true,"id":1410},"scriptList":{"__isSmartRef__":true,"id":915},"connectionList":{"__isSmartRef__":true,"id":1600},"morphSelector":{"__isSmartRef__":true,"id":2061},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"changeIndicator":{"__isSmartRef__":true,"id":1477},"isBeingDragged":false,"prevScroll":[0,0],"grabbingEnabled":false,"draggingEnabled":false,"currentCategory":null,"distanceToDragEvent":{"__isSmartRef__":true,"id":2525},"tagChooser":{"__isSmartRef__":true,"id":2209},"currentTag":null,"derivationIds":[206,"3BDE080D-3D60-4BB9-A690-E6001350F596","00E28CBF-E803-4BC0-93CC-651AC21008A5","1B7E7936-0145-47E4-8433-DFE58134E74B","422B98E3-E52B-4057-9C28-865873682DE1","BCDE8D30-ECC2-4883-9587-2518B6822233","BA6D5198-5AC2-4A63-9597-D4CF98A99CA9","17E22972-5EBC-4511-9779-05E9E665D899"],"_Position":{"__isSmartRef__":true,"id":2526},"owner":{"__isSmartRef__":true,"id":913},"_Rotation":0,"_Scale":1,"partTests":{"__isSmartRef__":true,"id":2527},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2528},"__LivelyClassName__":"lively.morphic.Box"},"915":{"submorphs":[],"scripts":[],"id":"A950064F-94D1-4F9E-AA6C-53938FB310F3","shape":{"__isSmartRef__":true,"id":916},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":923},"itemList":["-- ALL --","clear","getCanvas","getDrawingContext","lineTo","moveTo","onMouseDown","onMouseMove","onMouseOut","onMouseUp","onrestore","onTouchEnd","onTouchMove","onTouchStart","remove","startDrawing","stopDrawing","transformPoint"],"selectedLineNo":1,"showsHalos":false,"name":"ObjectEditorScriptList","partsBinMetaInfo":{"__isSmartRef__":true,"id":924},"__SourceModuleName__":"Global.lively.morphic.Core","_ClipMode":"auto","owner":{"__isSmartRef__":true,"id":914},"priorExtent":{"__isSmartRef__":true,"id":925},"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":926}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"layout":{"__isSmartRef__":true,"id":931},"doitContext":{"__isSmartRef__":true,"id":932},"renderContextTable":{"__isSmartRef__":true,"id":1807},"eventHandler":{"__isSmartRef__":true,"id":1808},"_FontSize":10,"distanceToDragEvent":{"__isSmartRef__":true,"id":1809},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"isCopyMorphRef":true,"morphRefId":17,"currentCategory":null,"derivationIds":[207,"D87334B5-DFB8-438D-8038-D2C55A798E3B","4242A24B-D284-4130-BB19-C1AB8C7E96CB","1F2230C1-4745-4EED-8827-5D3FC0EA8D8A","1260A8AA-AD41-451A-A761-BE75A33282E8","11AABB24-1595-4EDC-95DF-8BC66785F47A","CA99FFE7-13DD-4721-8DE2-6A587B0C65D9","E01A3DAA-0001-4C7C-A6A7-449C3945A3E6"],"_Rotation":0,"_Scale":1,"selection":"clear","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1810},"__LivelyClassName__":"lively.morphic.List"},"916":{"position":{"__isSmartRef__":true,"id":917},"_Extent":{"__isSmartRef__":true,"id":918},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":919},"_Fill":{"__isSmartRef__":true,"id":920},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderRadius":0,"renderContextTable":{"__isSmartRef__":true,"id":921},"_Opacity":1,"_BorderStyle":"solid","_Padding":{"__isSmartRef__":true,"id":922},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"917":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"918":{"x":180,"y":337.61253261443596,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"919":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"920":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"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":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"923":{"x":10,"y":63.027958027992966,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"924":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":2,"__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"925":{"x":180,"y":338.61253261443596,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"926":{"sourceObj":{"__isSmartRef__":true,"id":915},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":914},"targetMethodName":"displaySourceForScript","converterString":"function (value) {\n return (value === '-- ALL --') ? null : value;\n}","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":927},"__SourceModuleName__":"Global.lively.bindings","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":928},"__LivelyClassName__":"AttributeConnection"},"927":{"source":{"__isSmartRef__":true,"id":915},"target":{"__isSmartRef__":true,"id":914}},"928":{"converter":{"__isSmartRef__":true,"id":929}},"929":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":927},"source":"function (value) {\n return (value === '-- ALL --') ? null : value;\n}","funcProperties":{"__isSmartRef__":true,"id":930},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"930":{},"931":{"resizeHeight":true},"932":{"submorphs":[],"scripts":[],"id":836,"shape":{"__isSmartRef__":true,"id":933},"droppingEnabled":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":938},"priorExtent":{"__isSmartRef__":true,"id":939},"titleBar":{"__isSmartRef__":true,"id":940},"contentOffset":{"__isSmartRef__":true,"id":1081},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":{"__isSmartRef__":true,"id":1082},"expandedExtent":{"__isSmartRef__":true,"id":1083},"highlighted":true,"_Rotation":0,"_Scale":1,"prevDragPos":{"__isSmartRef__":true,"id":1084},"showsHalos":false,"name":"ObjectEditor","__SourceModuleName__":"Global.lively.morphic.Widgets","target":{"__isSmartRef__":true,"id":1085},"expandedPosition":{"__isSmartRef__":true,"id":1408},"partsBinMetaInfo":{"__isSmartRef__":true,"id":1409},"scriptList":{"__isSmartRef__":true,"id":915},"scriptPane":{"__isSmartRef__":true,"id":1410},"classButton":{"__isSmartRef__":true,"id":1555},"connectionList":{"__isSmartRef__":true,"id":1600},"targetButton":{"__isSmartRef__":true,"id":1625},"renderContextTable":{"__isSmartRef__":true,"id":1668},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Position":{"__isSmartRef__":true,"id":1669},"morphSelector":{"__isSmartRef__":true,"id":1670},"eventHandler":{"__isSmartRef__":true,"id":1754},"cameForward":false,"isCopyMorphRef":true,"morphRefId":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1755},"__LivelyClassName__":"lively.morphic.Window","withoutLayers":["Global.lively.morphic.GrabbingLayer"]},"933":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":934},"_StrokeOpacity":0,"_BorderRadius":9.25,"_Extent":{"__isSmartRef__":true,"id":935},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderColor":{"__isSmartRef__":true,"id":936},"renderContextTable":{"__isSmartRef__":true,"id":937},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"934":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"935":{"x":981,"y":585.2,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"936":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"937":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"938":{"adjustForNewBounds":true},"939":{"x":981,"y":585.2,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"940":{"submorphs":[{"__isSmartRef__":true,"id":941},{"__isSmartRef__":true,"id":954},{"__isSmartRef__":true,"id":998},{"__isSmartRef__":true,"id":1030}],"scripts":[],"id":837,"shape":{"__isSmartRef__":true,"id":1063},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":1076},"_Position":{"__isSmartRef__":true,"id":1077},"eventsAreIgnored":true,"windowMorph":{"__isSmartRef__":true,"id":932},"label":{"__isSmartRef__":true,"id":941},"closeButton":{"__isSmartRef__":true,"id":954},"menuButton":{"__isSmartRef__":true,"id":998},"collapseButton":{"__isSmartRef__":true,"id":1030},"priorExtent":{"__isSmartRef__":true,"id":1078},"owner":null,"__SourceModuleName__":"Global.lively.morphic.Widgets","name":"ObjectEditorTitleBar","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":1079},"eventHandler":{"__isSmartRef__":true,"id":1080},"__LivelyClassName__":"lively.morphic.TitleBar"},"941":{"submorphs":[],"scripts":[],"id":838,"shape":{"__isSmartRef__":true,"id":942},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":947},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":948},"priorExtent":{"__isSmartRef__":true,"id":949},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":950}],"evalEnabled":false,"isLabel":true,"eventsAreIgnored":true,"_FontSize":10,"_Align":"center","owner":{"__isSmartRef__":true,"id":940},"__SourceModuleName__":"Global.lively.morphic.TextCore","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":952},"eventHandler":{"__isSmartRef__":true,"id":953},"_HandStyle":"default","_PointerEvents":"none","__LivelyClassName__":"lively.morphic.Text"},"942":{"_Position":{"__isSmartRef__":true,"id":943},"_Extent":{"__isSmartRef__":true,"id":944},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":945},"_Fill":null,"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":946},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"943":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"944":{"x":921.9776803724167,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"945":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"946":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"947":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"948":{"x":20,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"949":{"x":921.9776803724167,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"950":{"style":{"__isSmartRef__":true,"id":951},"chunkOwner":{"__isSmartRef__":true,"id":941},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"951":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"952":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"953":{"morph":{"__isSmartRef__":true,"id":941},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"954":{"submorphs":[{"__isSmartRef__":true,"id":955}],"scripts":[],"id":839,"shape":{"__isSmartRef__":true,"id":967},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":982},"priorExtent":{"__isSmartRef__":true,"id":983},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":971},"lighterFill":{"__isSmartRef__":true,"id":984},"label":{"__isSmartRef__":true,"id":955},"owner":{"__isSmartRef__":true,"id":940},"layout":{"__isSmartRef__":true,"id":993},"attributeConnections":[{"__isSmartRef__":true,"id":994},{"__isSmartRef__":true,"id":995}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":996},"eventHandler":{"__isSmartRef__":true,"id":997},"__LivelyClassName__":"lively.morphic.WindowControl"},"955":{"submorphs":[],"scripts":[],"id":840,"shape":{"__isSmartRef__":true,"id":956},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":960},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":961},"priorExtent":{"__isSmartRef__":true,"id":962},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":963}],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":954},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":965},"eventHandler":{"__isSmartRef__":true,"id":966},"_HandStyle":"default","_PointerEvents":"none","__LivelyClassName__":"lively.morphic.Text"},"956":{"_Position":{"__isSmartRef__":true,"id":957},"_Extent":{"__isSmartRef__":true,"id":958},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":945},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":959},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"957":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"958":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"959":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"960":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"961":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"962":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"963":{"style":{"__isSmartRef__":true,"id":964},"chunkOwner":{"__isSmartRef__":true,"id":955},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"964":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"965":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"966":{"morph":{"__isSmartRef__":true,"id":955},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"967":{"_Position":{"__isSmartRef__":true,"id":968},"_Extent":{"__isSmartRef__":true,"id":969},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":970},"_Fill":{"__isSmartRef__":true,"id":971},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":981},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"968":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"969":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"970":{"r":0.7411764705882353,"g":0.7450980392156863,"b":0.7529411764705882,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"971":{"stops":[{"__isSmartRef__":true,"id":972},{"__isSmartRef__":true,"id":974},{"__isSmartRef__":true,"id":976},{"__isSmartRef__":true,"id":978}],"vector":{"__isSmartRef__":true,"id":980},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"972":{"offset":0,"color":{"__isSmartRef__":true,"id":973}},"973":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"974":{"offset":0.4,"color":{"__isSmartRef__":true,"id":975}},"975":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"976":{"offset":0.6,"color":{"__isSmartRef__":true,"id":977}},"977":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"978":{"offset":1,"color":{"__isSmartRef__":true,"id":979}},"979":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"980":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"981":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"982":{"x":960.9776803724167,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"983":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"984":{"stops":[{"__isSmartRef__":true,"id":985},{"__isSmartRef__":true,"id":987},{"__isSmartRef__":true,"id":989},{"__isSmartRef__":true,"id":991}],"vector":{"__isSmartRef__":true,"id":980},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"985":{"offset":0,"color":{"__isSmartRef__":true,"id":986}},"986":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"987":{"offset":0.4,"color":{"__isSmartRef__":true,"id":988}},"988":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"989":{"offset":0.6,"color":{"__isSmartRef__":true,"id":990}},"990":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"991":{"offset":1,"color":{"__isSmartRef__":true,"id":992}},"992":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"993":{"moveHorizontal":true},"994":{"sourceObj":{"__isSmartRef__":true,"id":954},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":932},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"995":{"sourceObj":{"__isSmartRef__":true,"id":954},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":932},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"996":{"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"},"997":{"morph":{"__isSmartRef__":true,"id":954},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"998":{"submorphs":[{"__isSmartRef__":true,"id":999}],"scripts":[],"id":841,"shape":{"__isSmartRef__":true,"id":1011},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1015},"priorExtent":{"__isSmartRef__":true,"id":1016},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":971},"lighterFill":{"__isSmartRef__":true,"id":1017},"label":{"__isSmartRef__":true,"id":999},"owner":{"__isSmartRef__":true,"id":940},"attributeConnections":[{"__isSmartRef__":true,"id":1026},{"__isSmartRef__":true,"id":1027}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","showsHalos":false,"_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":1028},"eventHandler":{"__isSmartRef__":true,"id":1029},"__LivelyClassName__":"lively.morphic.WindowControl"},"999":{"submorphs":[],"scripts":[],"id":842,"shape":{"__isSmartRef__":true,"id":1000},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1004},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":1005},"priorExtent":{"__isSmartRef__":true,"id":1006},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":1007}],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":998},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":1009},"eventHandler":{"__isSmartRef__":true,"id":1010},"_HandStyle":"default","_PointerEvents":"none","__LivelyClassName__":"lively.morphic.Text"},"1000":{"_Position":{"__isSmartRef__":true,"id":1001},"_Extent":{"__isSmartRef__":true,"id":1002},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":945},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1003},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1001":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1002":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1003":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1004":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1005":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1006":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1007":{"style":{"__isSmartRef__":true,"id":1008},"chunkOwner":{"__isSmartRef__":true,"id":999},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"1008":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1009":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1010":{"morph":{"__isSmartRef__":true,"id":999},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1011":{"_Position":{"__isSmartRef__":true,"id":1012},"_Extent":{"__isSmartRef__":true,"id":1013},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":970},"_Fill":{"__isSmartRef__":true,"id":971},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1014},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1012":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1013":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1014":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1015":{"x":3,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1016":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1017":{"stops":[{"__isSmartRef__":true,"id":1018},{"__isSmartRef__":true,"id":1020},{"__isSmartRef__":true,"id":1022},{"__isSmartRef__":true,"id":1024}],"vector":{"__isSmartRef__":true,"id":980},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1018":{"offset":0,"color":{"__isSmartRef__":true,"id":1019}},"1019":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1020":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1021}},"1021":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1022":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1023}},"1023":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1024":{"offset":1,"color":{"__isSmartRef__":true,"id":1025}},"1025":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1026":{"sourceObj":{"__isSmartRef__":true,"id":998},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":932},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1027":{"sourceObj":{"__isSmartRef__":true,"id":998},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":932},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1028":{"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"},"1029":{"morph":{"__isSmartRef__":true,"id":998},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1030":{"submorphs":[{"__isSmartRef__":true,"id":1031}],"scripts":[],"id":843,"shape":{"__isSmartRef__":true,"id":1043},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1047},"priorExtent":{"__isSmartRef__":true,"id":1048},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":971},"lighterFill":{"__isSmartRef__":true,"id":1049},"label":{"__isSmartRef__":true,"id":1031},"owner":{"__isSmartRef__":true,"id":940},"layout":{"__isSmartRef__":true,"id":1058},"attributeConnections":[{"__isSmartRef__":true,"id":1059},{"__isSmartRef__":true,"id":1060}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":1061},"eventHandler":{"__isSmartRef__":true,"id":1062},"__LivelyClassName__":"lively.morphic.WindowControl"},"1031":{"submorphs":[],"scripts":[],"id":844,"shape":{"__isSmartRef__":true,"id":1032},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1036},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":1037},"priorExtent":{"__isSmartRef__":true,"id":1038},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":1039}],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1030},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":1041},"eventHandler":{"__isSmartRef__":true,"id":1042},"_HandStyle":"default","_PointerEvents":"none","__LivelyClassName__":"lively.morphic.Text"},"1032":{"_Position":{"__isSmartRef__":true,"id":1033},"_Extent":{"__isSmartRef__":true,"id":1034},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":945},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1035},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1033":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1034":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1035":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1036":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1037":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1038":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1039":{"style":{"__isSmartRef__":true,"id":1040},"chunkOwner":{"__isSmartRef__":true,"id":1031},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"1040":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"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":{"morph":{"__isSmartRef__":true,"id":1031},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1043":{"_Position":{"__isSmartRef__":true,"id":1044},"_Extent":{"__isSmartRef__":true,"id":1045},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":970},"_Fill":{"__isSmartRef__":true,"id":971},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1046},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1044":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1045":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1046":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1047":{"x":941.9776803724167,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1048":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1049":{"stops":[{"__isSmartRef__":true,"id":1050},{"__isSmartRef__":true,"id":1052},{"__isSmartRef__":true,"id":1054},{"__isSmartRef__":true,"id":1056}],"vector":{"__isSmartRef__":true,"id":980},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1050":{"offset":0,"color":{"__isSmartRef__":true,"id":1051}},"1051":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1052":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1053}},"1053":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1054":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1055}},"1055":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1056":{"offset":1,"color":{"__isSmartRef__":true,"id":1057}},"1057":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1058":{"moveHorizontal":true},"1059":{"sourceObj":{"__isSmartRef__":true,"id":1030},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":932},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1060":{"sourceObj":{"__isSmartRef__":true,"id":1030},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":932},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1061":{"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"},"1062":{"morph":{"__isSmartRef__":true,"id":1030},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1063":{"_Position":{"__isSmartRef__":true,"id":1064},"_Extent":{"__isSmartRef__":true,"id":1065},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":1066},"_Fill":{"__isSmartRef__":true,"id":1067},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1075},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1064":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1065":{"x":980.9776803724167,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1066":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1067":{"stops":[{"__isSmartRef__":true,"id":1068},{"__isSmartRef__":true,"id":1070},{"__isSmartRef__":true,"id":1072}],"vector":{"__isSmartRef__":true,"id":1074},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1068":{"offset":0,"color":{"__isSmartRef__":true,"id":1069}},"1069":{"r":0.7200000000000001,"g":0.7200000000000001,"b":0.7200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1070":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1071}},"1071":{"r":0.9,"g":0.9,"b":0.9,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1072":{"offset":1,"color":{"__isSmartRef__":true,"id":1073}},"1073":{"r":0.7200000000000001,"g":0.7200000000000001,"b":0.7200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1074":{"x":0,"y":1,"width":0,"height":-1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1075":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1076":{"resizeWidth":true,"adjustForNewBounds":true},"1077":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1078":{"x":980.9776803724167,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1079":{"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"},"1080":{"morph":{"__isSmartRef__":true,"id":940},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1081":{"x":0,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1082":{"a":1,"b":0,"c":0,"d":1,"e":377.6609726943286,"f":419.5142810783999,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"lively.morphic.Similitude"},"1083":{"x":861.5223196275833,"y":575.166499196892,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1084":{"x":613,"y":129,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1085":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1086},"id":394,"renderContextTable":{"__isSmartRef__":true,"id":1092},"textChunks":[{"__isSmartRef__":true,"id":1093}],"eventHandler":{"__isSmartRef__":true,"id":1095},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1096},"_ClipMode":"auto","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":1097},"priorExtent":{"__isSmartRef__":true,"id":1098},"_MaxTextWidth":500,"_MaxTextHeight":200,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1099},"layout":{"__isSmartRef__":true,"id":1246},"doitContext":{"__isSmartRef__":true,"id":1247},"priorSelectionRange":[0,36],"charsReplaced":"","lastFindLoc":20,"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"1086":{"_Position":{"__isSmartRef__":true,"id":1087},"renderContextTable":{"__isSmartRef__":true,"id":1088},"_Extent":{"__isSmartRef__":true,"id":1089},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":1090},"_Fill":{"__isSmartRef__":true,"id":1091},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1087":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1088":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1089":{"x":500,"y":200,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1090":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1091":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1092":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1093":{"style":{"__isSmartRef__":true,"id":1094},"chunkOwner":{"__isSmartRef__":true,"id":1085},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"1094":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1095":{"morph":{"__isSmartRef__":true,"id":1085},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1096":{"x":2,"y":1,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1097":{"x":0,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1098":{"x":500,"y":200,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1099":{"submorphs":[{"__isSmartRef__":true,"id":1085},{"__isSmartRef__":true,"id":1100}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1237},"id":395,"renderContextTable":{"__isSmartRef__":true,"id":1240},"eventHandler":{"__isSmartRef__":true,"id":1241},"droppingEnabled":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":1242},"LK2":true,"_Position":{"__isSmartRef__":true,"id":1243},"priorExtent":{"__isSmartRef__":true,"id":1244},"targetMorph":{"__isSmartRef__":true,"id":1085},"titleBar":{"__isSmartRef__":true,"id":1100},"contentOffset":{"__isSmartRef__":true,"id":1097},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":null,"expandedExtent":null,"ignoreEventsOnExpand":false,"highlighted":true,"_Rotation":0,"_Scale":1,"prevDragPos":{"__isSmartRef__":true,"id":1245},"cameForward":false,"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.Window","withoutLayers":["Global.lively.morphic.GrabbingLayer"]},"1100":{"submorphs":[{"__isSmartRef__":true,"id":1101},{"__isSmartRef__":true,"id":1114},{"__isSmartRef__":true,"id":1160},{"__isSmartRef__":true,"id":1193}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1227},"id":396,"renderContextTable":{"__isSmartRef__":true,"id":1232},"eventHandler":{"__isSmartRef__":true,"id":1233},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":1234},"_Position":{"__isSmartRef__":true,"id":1235},"windowMorph":{"__isSmartRef__":true,"id":1099},"label":{"__isSmartRef__":true,"id":1101},"closeButton":{"__isSmartRef__":true,"id":1114},"menuButton":{"__isSmartRef__":true,"id":1160},"collapseButton":{"__isSmartRef__":true,"id":1193},"priorExtent":{"__isSmartRef__":true,"id":1236},"owner":{"__isSmartRef__":true,"id":1099},"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.TitleBar"},"1101":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1102},"id":397,"renderContextTable":{"__isSmartRef__":true,"id":1106},"textChunks":[{"__isSmartRef__":true,"id":1107}],"eventHandler":{"__isSmartRef__":true,"id":1109},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1110},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","evalEnabled":false,"isLabel":true,"_HandStyle":"default","layout":{"__isSmartRef__":true,"id":1111},"_FontSize":10,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","owner":{"__isSmartRef__":true,"id":1100},"priorExtent":{"__isSmartRef__":true,"id":1112},"_MaxTextWidth":441,"_MaxTextHeight":17,"_Position":{"__isSmartRef__":true,"id":1113},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"1102":{"_Position":{"__isSmartRef__":true,"id":1103},"renderContextTable":{"__isSmartRef__":true,"id":1104},"_Extent":{"__isSmartRef__":true,"id":1105},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1090},"_Fill":null,"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1103":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1104":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1105":{"x":441,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"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":1101},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"1108":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1109":{"morph":{"__isSmartRef__":true,"id":1101},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1110":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1111":{"resizeWidth":true},"1112":{"x":0,"y":14,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1113":{"x":20,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1114":{"submorphs":[{"__isSmartRef__":true,"id":1115}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1127},"id":398,"renderContextTable":{"__isSmartRef__":true,"id":1142},"eventHandler":{"__isSmartRef__":true,"id":1143},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1144},"priorExtent":{"__isSmartRef__":true,"id":1145},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1132},"lighterFill":{"__isSmartRef__":true,"id":1146},"label":{"__isSmartRef__":true,"id":1115},"owner":{"__isSmartRef__":true,"id":1100},"layout":{"__isSmartRef__":true,"id":1155},"attributeConnections":[{"__isSmartRef__":true,"id":1156},{"__isSmartRef__":true,"id":1158}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"1115":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1116},"id":399,"renderContextTable":{"__isSmartRef__":true,"id":1120},"textChunks":[{"__isSmartRef__":true,"id":1121}],"eventHandler":{"__isSmartRef__":true,"id":1123},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1124},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":1125},"priorExtent":{"__isSmartRef__":true,"id":1126},"_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1114},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"1116":{"_Position":{"__isSmartRef__":true,"id":1117},"renderContextTable":{"__isSmartRef__":true,"id":1118},"_Extent":{"__isSmartRef__":true,"id":1119},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1090},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1117":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1118":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1119":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1120":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1121":{"style":{"__isSmartRef__":true,"id":1122},"chunkOwner":{"__isSmartRef__":true,"id":1115},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"1122":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1123":{"morph":{"__isSmartRef__":true,"id":1115},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1124":{"x":0,"y":3,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1125":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1126":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1127":{"_Position":{"__isSmartRef__":true,"id":1128},"renderContextTable":{"__isSmartRef__":true,"id":1129},"_Extent":{"__isSmartRef__":true,"id":1130},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1131},"_Fill":{"__isSmartRef__":true,"id":1132},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1128":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1129":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1130":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1131":{"r":0.7411764705882353,"g":0.7450980392156863,"b":0.7529411764705882,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1132":{"stops":[{"__isSmartRef__":true,"id":1133},{"__isSmartRef__":true,"id":1135},{"__isSmartRef__":true,"id":1137},{"__isSmartRef__":true,"id":1139}],"vector":{"__isSmartRef__":true,"id":1141},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1133":{"offset":0,"color":{"__isSmartRef__":true,"id":1134}},"1134":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1135":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1136}},"1136":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1137":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1138}},"1138":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1139":{"offset":1,"color":{"__isSmartRef__":true,"id":1140}},"1140":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1141":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1142":{"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"},"1143":{"morph":{"__isSmartRef__":true,"id":1114},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1144":{"x":480,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1145":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1146":{"stops":[{"__isSmartRef__":true,"id":1147},{"__isSmartRef__":true,"id":1149},{"__isSmartRef__":true,"id":1151},{"__isSmartRef__":true,"id":1153}],"vector":{"__isSmartRef__":true,"id":1141},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1147":{"offset":0,"color":{"__isSmartRef__":true,"id":1148}},"1148":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1149":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1150}},"1150":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1151":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1152}},"1152":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1153":{"offset":1,"color":{"__isSmartRef__":true,"id":1154}},"1154":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1155":{"moveHorizontal":true},"1156":{"sourceObj":{"__isSmartRef__":true,"id":1114},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":1099},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1157},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1157":{"source":{"__isSmartRef__":true,"id":1114},"target":{"__isSmartRef__":true,"id":1099}},"1158":{"sourceObj":{"__isSmartRef__":true,"id":1114},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1099},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1159},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1159":{"source":{"__isSmartRef__":true,"id":1114},"target":{"__isSmartRef__":true,"id":1099}},"1160":{"submorphs":[{"__isSmartRef__":true,"id":1161}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1172},"id":400,"renderContextTable":{"__isSmartRef__":true,"id":1176},"eventHandler":{"__isSmartRef__":true,"id":1177},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1178},"priorExtent":{"__isSmartRef__":true,"id":1179},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1132},"lighterFill":{"__isSmartRef__":true,"id":1180},"label":{"__isSmartRef__":true,"id":1161},"owner":{"__isSmartRef__":true,"id":1100},"attributeConnections":[{"__isSmartRef__":true,"id":1189},{"__isSmartRef__":true,"id":1191}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"1161":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1162},"id":401,"renderContextTable":{"__isSmartRef__":true,"id":1166},"textChunks":[{"__isSmartRef__":true,"id":1167}],"eventHandler":{"__isSmartRef__":true,"id":1169},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1124},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":1170},"priorExtent":{"__isSmartRef__":true,"id":1171},"_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1160},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"1162":{"_Position":{"__isSmartRef__":true,"id":1163},"renderContextTable":{"__isSmartRef__":true,"id":1164},"_Extent":{"__isSmartRef__":true,"id":1165},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1090},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1163":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1164":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1165":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1166":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1167":{"style":{"__isSmartRef__":true,"id":1168},"chunkOwner":{"__isSmartRef__":true,"id":1161},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"1168":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1169":{"morph":{"__isSmartRef__":true,"id":1161},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1170":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1171":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1172":{"_Position":{"__isSmartRef__":true,"id":1173},"renderContextTable":{"__isSmartRef__":true,"id":1174},"_Extent":{"__isSmartRef__":true,"id":1175},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1131},"_Fill":{"__isSmartRef__":true,"id":1132},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1173":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1174":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1175":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1176":{"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"},"1177":{"morph":{"__isSmartRef__":true,"id":1160},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1178":{"x":3,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1179":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1180":{"stops":[{"__isSmartRef__":true,"id":1181},{"__isSmartRef__":true,"id":1183},{"__isSmartRef__":true,"id":1185},{"__isSmartRef__":true,"id":1187}],"vector":{"__isSmartRef__":true,"id":1141},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1181":{"offset":0,"color":{"__isSmartRef__":true,"id":1182}},"1182":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1183":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1184}},"1184":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1185":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1186}},"1186":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1187":{"offset":1,"color":{"__isSmartRef__":true,"id":1188}},"1188":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1189":{"sourceObj":{"__isSmartRef__":true,"id":1160},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":1099},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1190},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1190":{"source":{"__isSmartRef__":true,"id":1160},"target":{"__isSmartRef__":true,"id":1099}},"1191":{"sourceObj":{"__isSmartRef__":true,"id":1160},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1099},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1192},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1192":{"source":{"__isSmartRef__":true,"id":1160},"target":{"__isSmartRef__":true,"id":1099}},"1193":{"submorphs":[{"__isSmartRef__":true,"id":1194}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1205},"id":402,"renderContextTable":{"__isSmartRef__":true,"id":1209},"eventHandler":{"__isSmartRef__":true,"id":1210},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1211},"priorExtent":{"__isSmartRef__":true,"id":1212},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1132},"lighterFill":{"__isSmartRef__":true,"id":1213},"label":{"__isSmartRef__":true,"id":1194},"owner":{"__isSmartRef__":true,"id":1100},"layout":{"__isSmartRef__":true,"id":1222},"attributeConnections":[{"__isSmartRef__":true,"id":1223},{"__isSmartRef__":true,"id":1225}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"1194":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1195},"id":403,"renderContextTable":{"__isSmartRef__":true,"id":1199},"textChunks":[{"__isSmartRef__":true,"id":1200}],"eventHandler":{"__isSmartRef__":true,"id":1202},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1124},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":1203},"priorExtent":{"__isSmartRef__":true,"id":1204},"_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1193},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"1195":{"_Position":{"__isSmartRef__":true,"id":1196},"renderContextTable":{"__isSmartRef__":true,"id":1197},"_Extent":{"__isSmartRef__":true,"id":1198},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1090},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1196":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1197":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1198":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1199":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1200":{"style":{"__isSmartRef__":true,"id":1201},"chunkOwner":{"__isSmartRef__":true,"id":1194},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"1201":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1202":{"morph":{"__isSmartRef__":true,"id":1194},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1203":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1204":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1205":{"_Position":{"__isSmartRef__":true,"id":1206},"renderContextTable":{"__isSmartRef__":true,"id":1207},"_Extent":{"__isSmartRef__":true,"id":1208},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1131},"_Fill":{"__isSmartRef__":true,"id":1132},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1206":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1207":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1208":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1209":{"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"},"1210":{"morph":{"__isSmartRef__":true,"id":1193},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1211":{"x":461,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1212":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1213":{"stops":[{"__isSmartRef__":true,"id":1214},{"__isSmartRef__":true,"id":1216},{"__isSmartRef__":true,"id":1218},{"__isSmartRef__":true,"id":1220}],"vector":{"__isSmartRef__":true,"id":1141},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1214":{"offset":0,"color":{"__isSmartRef__":true,"id":1215}},"1215":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1216":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1217}},"1217":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1218":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1219}},"1219":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1220":{"offset":1,"color":{"__isSmartRef__":true,"id":1221}},"1221":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1222":{"moveHorizontal":true},"1223":{"sourceObj":{"__isSmartRef__":true,"id":1193},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":1099},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1224},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1224":{"source":{"__isSmartRef__":true,"id":1193},"target":{"__isSmartRef__":true,"id":1099}},"1225":{"sourceObj":{"__isSmartRef__":true,"id":1193},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1099},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1226},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1226":{"source":{"__isSmartRef__":true,"id":1193},"target":{"__isSmartRef__":true,"id":1099}},"1227":{"_Position":{"__isSmartRef__":true,"id":1228},"renderContextTable":{"__isSmartRef__":true,"id":1229},"_Extent":{"__isSmartRef__":true,"id":1230},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1231},"_Fill":{"__isSmartRef__":true,"id":1067},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1228":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1229":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1230":{"x":500,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1231":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1232":{"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"},"1233":{"morph":{"__isSmartRef__":true,"id":1100},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1234":{"resizeWidth":true,"adjustForNewBounds":true},"1235":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1236":{"x":500,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1237":{"renderContextTable":{"__isSmartRef__":true,"id":1238},"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_Extent":{"__isSmartRef__":true,"id":1239},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1238":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1239":{"x":500,"y":222,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1240":{"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"},"1241":{"morph":{"__isSmartRef__":true,"id":1099},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1242":{"adjustForNewBounds":true},"1243":{"x":1234,"y":448,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1244":{"x":500,"y":222,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1245":{"x":1478,"y":453,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1246":{"resizeWidth":true,"resizeHeight":true},"1247":{"submorphs":[{"__isSmartRef__":true,"id":1248},{"__isSmartRef__":true,"id":1262}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1392},"id":361,"renderContextTable":{"__isSmartRef__":true,"id":1396},"eventHandler":{"__isSmartRef__":true,"id":1397},"droppingEnabled":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":1398},"LK2":true,"_Position":{"__isSmartRef__":true,"id":1399},"priorExtent":{"__isSmartRef__":true,"id":1400},"targetMorph":{"__isSmartRef__":true,"id":1248},"titleBar":{"__isSmartRef__":true,"id":1262},"contentOffset":{"__isSmartRef__":true,"id":1258},"collapsedTransform":{"__isSmartRef__":true,"id":1401},"collapsedExtent":{"__isSmartRef__":true,"id":1402},"expandedTransform":{"__isSmartRef__":true,"id":1403},"expandedExtent":{"__isSmartRef__":true,"id":1404},"ignoreEventsOnExpand":false,"owner":null,"showsHalos":false,"highlighted":true,"_Rotation":0,"_Scale":1,"prevDragPos":{"__isSmartRef__":true,"id":1405},"expandedPosition":{"__isSmartRef__":true,"id":1406},"state":"shutdown","collapsedPosition":{"__isSmartRef__":true,"id":1407},"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.Window","withoutLayers":["Global.lively.morphic.GrabbingLayer"]},"1248":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1249},"id":360,"renderContextTable":{"__isSmartRef__":true,"id":1254},"textChunks":[{"__isSmartRef__":true,"id":1255}],"eventHandler":{"__isSmartRef__":true,"id":1257},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1096},"_ClipMode":"auto","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco,monospace","_Position":{"__isSmartRef__":true,"id":1258},"priorExtent":{"__isSmartRef__":true,"id":1259},"_MaxTextWidth":500,"_MaxTextHeight":0,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1247},"layout":{"__isSmartRef__":true,"id":1260},"syntaxHighlightingWhileTyping":true,"attributeConnections":[{"__isSmartRef__":true,"id":1261}],"doNotSerialize":["$$textString"],"doNotCopyProperties":["$$textString"],"lastSyntaxHighlightTime":1307282796737,"accessibleInInactiveWindow":true,"eventsAreIgnored":false,"_HandStyle":"default","_PointerEvents":"auto","_Visible":true,"priorSelectionRange":[0,22],"charsReplaced":"","lastFindLoc":15,"__SourceModuleName__":"Global.lively.morphic.TextCore","textString":"undefined","__LivelyClassName__":"lively.morphic.Text"},"1249":{"_Position":{"__isSmartRef__":true,"id":1250},"renderContextTable":{"__isSmartRef__":true,"id":1251},"_Extent":{"__isSmartRef__":true,"id":1252},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":1090},"_Fill":{"__isSmartRef__":true,"id":1253},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1250":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1251":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1252":{"x":500,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1253":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1254":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1255":{"style":{"__isSmartRef__":true,"id":1256},"chunkOwner":{"__isSmartRef__":true,"id":1248},"storedString":"undefined","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1256":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1257":{"morph":{"__isSmartRef__":true,"id":1248},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1258":{"x":0,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1259":{"x":500,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1260":{"resizeWidth":true,"resizeHeight":true},"1261":{"sourceObj":{"__isSmartRef__":true,"id":1248},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":1248},"targetMethodName":"highlightJavaScriptSyntax","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1262":{"submorphs":[{"__isSmartRef__":true,"id":1263},{"__isSmartRef__":true,"id":1275},{"__isSmartRef__":true,"id":1309},{"__isSmartRef__":true,"id":1342}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1376},"id":362,"renderContextTable":{"__isSmartRef__":true,"id":1387},"eventHandler":{"__isSmartRef__":true,"id":1388},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":1389},"_Position":{"__isSmartRef__":true,"id":1390},"windowMorph":{"__isSmartRef__":true,"id":1247},"label":{"__isSmartRef__":true,"id":1263},"closeButton":{"__isSmartRef__":true,"id":1275},"menuButton":{"__isSmartRef__":true,"id":1309},"collapseButton":{"__isSmartRef__":true,"id":1342},"priorExtent":{"__isSmartRef__":true,"id":1391},"owner":{"__isSmartRef__":true,"id":1247},"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.TitleBar"},"1263":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1264},"id":363,"renderContextTable":{"__isSmartRef__":true,"id":1268},"textChunks":[{"__isSmartRef__":true,"id":1269}],"eventHandler":{"__isSmartRef__":true,"id":1271},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1110},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","evalEnabled":false,"isLabel":true,"_HandStyle":"default","layout":{"__isSmartRef__":true,"id":1272},"_FontSize":10,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","owner":{"__isSmartRef__":true,"id":1262},"priorExtent":{"__isSmartRef__":true,"id":1273},"_MaxTextWidth":441,"_MaxTextHeight":17,"_Position":{"__isSmartRef__":true,"id":1274},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"1264":{"_Position":{"__isSmartRef__":true,"id":1265},"renderContextTable":{"__isSmartRef__":true,"id":1266},"_Extent":{"__isSmartRef__":true,"id":1267},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1090},"_Fill":null,"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1265":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1266":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1267":{"x":441,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1268":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1269":{"style":{"__isSmartRef__":true,"id":1270},"chunkOwner":{"__isSmartRef__":true,"id":1263},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"1270":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1271":{"morph":{"__isSmartRef__":true,"id":1263},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1272":{"resizeWidth":true},"1273":{"x":0,"y":14,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1274":{"x":20,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1275":{"submorphs":[{"__isSmartRef__":true,"id":1276}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1287},"id":364,"renderContextTable":{"__isSmartRef__":true,"id":1291},"eventHandler":{"__isSmartRef__":true,"id":1292},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1293},"priorExtent":{"__isSmartRef__":true,"id":1294},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1132},"lighterFill":{"__isSmartRef__":true,"id":1295},"label":{"__isSmartRef__":true,"id":1276},"owner":{"__isSmartRef__":true,"id":1262},"layout":{"__isSmartRef__":true,"id":1304},"attributeConnections":[{"__isSmartRef__":true,"id":1305},{"__isSmartRef__":true,"id":1307}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"1276":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1277},"id":365,"renderContextTable":{"__isSmartRef__":true,"id":1281},"textChunks":[{"__isSmartRef__":true,"id":1282}],"eventHandler":{"__isSmartRef__":true,"id":1284},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1124},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":1285},"priorExtent":{"__isSmartRef__":true,"id":1286},"_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1275},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"1277":{"_Position":{"__isSmartRef__":true,"id":1278},"renderContextTable":{"__isSmartRef__":true,"id":1279},"_Extent":{"__isSmartRef__":true,"id":1280},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1090},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1278":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1279":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1280":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1281":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1282":{"style":{"__isSmartRef__":true,"id":1283},"chunkOwner":{"__isSmartRef__":true,"id":1276},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"1283":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1284":{"morph":{"__isSmartRef__":true,"id":1276},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1285":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1286":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1287":{"_Position":{"__isSmartRef__":true,"id":1288},"renderContextTable":{"__isSmartRef__":true,"id":1289},"_Extent":{"__isSmartRef__":true,"id":1290},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1131},"_Fill":{"__isSmartRef__":true,"id":1132},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1288":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1289":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1290":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1291":{"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"},"1292":{"morph":{"__isSmartRef__":true,"id":1275},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1293":{"x":480,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1294":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1295":{"stops":[{"__isSmartRef__":true,"id":1296},{"__isSmartRef__":true,"id":1298},{"__isSmartRef__":true,"id":1300},{"__isSmartRef__":true,"id":1302}],"vector":{"__isSmartRef__":true,"id":1141},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1296":{"offset":0,"color":{"__isSmartRef__":true,"id":1297}},"1297":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1298":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1299}},"1299":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1300":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1301}},"1301":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1302":{"offset":1,"color":{"__isSmartRef__":true,"id":1303}},"1303":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1304":{"moveHorizontal":true},"1305":{"sourceObj":{"__isSmartRef__":true,"id":1275},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":1247},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1306},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1306":{"source":{"__isSmartRef__":true,"id":1275},"target":{"__isSmartRef__":true,"id":1247}},"1307":{"sourceObj":{"__isSmartRef__":true,"id":1275},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1247},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1308},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1308":{"source":{"__isSmartRef__":true,"id":1275},"target":{"__isSmartRef__":true,"id":1247}},"1309":{"submorphs":[{"__isSmartRef__":true,"id":1310}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1321},"id":366,"renderContextTable":{"__isSmartRef__":true,"id":1325},"eventHandler":{"__isSmartRef__":true,"id":1326},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1327},"priorExtent":{"__isSmartRef__":true,"id":1328},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1132},"lighterFill":{"__isSmartRef__":true,"id":1329},"label":{"__isSmartRef__":true,"id":1310},"owner":{"__isSmartRef__":true,"id":1262},"attributeConnections":[{"__isSmartRef__":true,"id":1338},{"__isSmartRef__":true,"id":1340}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"1310":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1311},"id":367,"renderContextTable":{"__isSmartRef__":true,"id":1315},"textChunks":[{"__isSmartRef__":true,"id":1316}],"eventHandler":{"__isSmartRef__":true,"id":1318},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1124},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":1319},"priorExtent":{"__isSmartRef__":true,"id":1320},"_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1309},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"1311":{"_Position":{"__isSmartRef__":true,"id":1312},"renderContextTable":{"__isSmartRef__":true,"id":1313},"_Extent":{"__isSmartRef__":true,"id":1314},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1090},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1312":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1313":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1314":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1315":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1316":{"style":{"__isSmartRef__":true,"id":1317},"chunkOwner":{"__isSmartRef__":true,"id":1310},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"1317":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1318":{"morph":{"__isSmartRef__":true,"id":1310},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1319":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1320":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1321":{"_Position":{"__isSmartRef__":true,"id":1322},"renderContextTable":{"__isSmartRef__":true,"id":1323},"_Extent":{"__isSmartRef__":true,"id":1324},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1131},"_Fill":{"__isSmartRef__":true,"id":1132},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1322":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1323":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1324":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1325":{"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"},"1326":{"morph":{"__isSmartRef__":true,"id":1309},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1327":{"x":3,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1328":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1329":{"stops":[{"__isSmartRef__":true,"id":1330},{"__isSmartRef__":true,"id":1332},{"__isSmartRef__":true,"id":1334},{"__isSmartRef__":true,"id":1336}],"vector":{"__isSmartRef__":true,"id":1141},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1330":{"offset":0,"color":{"__isSmartRef__":true,"id":1331}},"1331":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1332":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1333}},"1333":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1334":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1335}},"1335":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1336":{"offset":1,"color":{"__isSmartRef__":true,"id":1337}},"1337":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1338":{"sourceObj":{"__isSmartRef__":true,"id":1309},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":1247},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1339},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1339":{"source":{"__isSmartRef__":true,"id":1309},"target":{"__isSmartRef__":true,"id":1247}},"1340":{"sourceObj":{"__isSmartRef__":true,"id":1309},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1247},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1341},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1341":{"source":{"__isSmartRef__":true,"id":1309},"target":{"__isSmartRef__":true,"id":1247}},"1342":{"submorphs":[{"__isSmartRef__":true,"id":1343}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1354},"id":368,"renderContextTable":{"__isSmartRef__":true,"id":1358},"eventHandler":{"__isSmartRef__":true,"id":1359},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1360},"priorExtent":{"__isSmartRef__":true,"id":1361},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1132},"lighterFill":{"__isSmartRef__":true,"id":1362},"label":{"__isSmartRef__":true,"id":1343},"owner":{"__isSmartRef__":true,"id":1262},"layout":{"__isSmartRef__":true,"id":1371},"attributeConnections":[{"__isSmartRef__":true,"id":1372},{"__isSmartRef__":true,"id":1374}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"1343":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1344},"id":369,"renderContextTable":{"__isSmartRef__":true,"id":1348},"textChunks":[{"__isSmartRef__":true,"id":1349}],"eventHandler":{"__isSmartRef__":true,"id":1351},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1124},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":1352},"priorExtent":{"__isSmartRef__":true,"id":1353},"_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1342},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"1344":{"_Position":{"__isSmartRef__":true,"id":1345},"renderContextTable":{"__isSmartRef__":true,"id":1346},"_Extent":{"__isSmartRef__":true,"id":1347},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1090},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1345":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1346":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1347":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1348":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1349":{"style":{"__isSmartRef__":true,"id":1350},"chunkOwner":{"__isSmartRef__":true,"id":1343},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"1350":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1351":{"morph":{"__isSmartRef__":true,"id":1343},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1352":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1353":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1354":{"_Position":{"__isSmartRef__":true,"id":1355},"renderContextTable":{"__isSmartRef__":true,"id":1356},"_Extent":{"__isSmartRef__":true,"id":1357},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1131},"_Fill":{"__isSmartRef__":true,"id":1132},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1355":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1356":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1357":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1358":{"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"},"1359":{"morph":{"__isSmartRef__":true,"id":1342},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1360":{"x":461,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1361":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1362":{"stops":[{"__isSmartRef__":true,"id":1363},{"__isSmartRef__":true,"id":1365},{"__isSmartRef__":true,"id":1367},{"__isSmartRef__":true,"id":1369}],"vector":{"__isSmartRef__":true,"id":1141},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1363":{"offset":0,"color":{"__isSmartRef__":true,"id":1364}},"1364":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1365":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1366}},"1366":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1367":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1368}},"1368":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1369":{"offset":1,"color":{"__isSmartRef__":true,"id":1370}},"1370":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1371":{"moveHorizontal":true},"1372":{"sourceObj":{"__isSmartRef__":true,"id":1342},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":1247},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1373},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1373":{"source":{"__isSmartRef__":true,"id":1342},"target":{"__isSmartRef__":true,"id":1247}},"1374":{"sourceObj":{"__isSmartRef__":true,"id":1342},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1247},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1375},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1375":{"source":{"__isSmartRef__":true,"id":1342},"target":{"__isSmartRef__":true,"id":1247}},"1376":{"_Position":{"__isSmartRef__":true,"id":1377},"renderContextTable":{"__isSmartRef__":true,"id":1378},"_Extent":{"__isSmartRef__":true,"id":1379},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1231},"_Fill":{"__isSmartRef__":true,"id":1380},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1377":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1378":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1379":{"x":500,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1380":{"stops":[{"__isSmartRef__":true,"id":1381},{"__isSmartRef__":true,"id":1383},{"__isSmartRef__":true,"id":1385}],"vector":{"__isSmartRef__":true,"id":1141},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1381":{"offset":0,"color":{"__isSmartRef__":true,"id":1382}},"1382":{"r":0.8600000000000001,"g":0.8600000000000001,"b":0.8600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1383":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1384}},"1384":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1385":{"offset":1,"color":{"__isSmartRef__":true,"id":1386}},"1386":{"r":0.8600000000000001,"g":0.8600000000000001,"b":0.8600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1387":{"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"},"1388":{"morph":{"__isSmartRef__":true,"id":1262},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1389":{"resizeWidth":true,"adjustForNewBounds":true},"1390":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1391":{"x":500,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1392":{"renderContextTable":{"__isSmartRef__":true,"id":1393},"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_Extent":{"__isSmartRef__":true,"id":1394},"_Position":{"__isSmartRef__":true,"id":1395},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1393":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1394":{"x":500,"y":222,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1395":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1396":{"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"},"1397":{"morph":{"__isSmartRef__":true,"id":1247},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1398":{"adjustForNewBounds":true},"1399":{"x":1131,"y":79,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1400":{"x":500,"y":222,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1401":{"a":1,"b":0,"c":0,"d":1,"e":1131,"f":79,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"lively.morphic.Similitude"},"1402":{"x":500,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1403":{"a":1,"b":0,"c":0,"d":1,"e":1131,"f":79,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"lively.morphic.Similitude"},"1404":{"x":500,"y":222,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1405":{"x":1507,"y":76,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1406":{"x":1131,"y":79,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1407":{"x":1131,"y":79,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1408":{"x":377.6609726943286,"y":419.5142810783999,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1409":{"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"},"1410":{"submorphs":[],"scripts":[],"id":"BB601D40-B724-443D-975B-6D48DE6D8FCD","shape":{"__isSmartRef__":true,"id":1411},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1418},"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco,courier","_MaxTextWidth":689.0285365288845,"_MaxTextHeight":null,"textChunks":[{"__isSmartRef__":true,"id":1419},{"__isSmartRef__":true,"id":1421},{"__isSmartRef__":true,"id":1423},{"__isSmartRef__":true,"id":1425},{"__isSmartRef__":true,"id":1427},{"__isSmartRef__":true,"id":1429},{"__isSmartRef__":true,"id":1431},{"__isSmartRef__":true,"id":1433},{"__isSmartRef__":true,"id":1435},{"__isSmartRef__":true,"id":1437},{"__isSmartRef__":true,"id":1439},{"__isSmartRef__":true,"id":1441},{"__isSmartRef__":true,"id":1443},{"__isSmartRef__":true,"id":1445},{"__isSmartRef__":true,"id":1447},{"__isSmartRef__":true,"id":1449},{"__isSmartRef__":true,"id":1451},{"__isSmartRef__":true,"id":1453},{"__isSmartRef__":true,"id":1455},{"__isSmartRef__":true,"id":1457},{"__isSmartRef__":true,"id":1459},{"__isSmartRef__":true,"id":1461},{"__isSmartRef__":true,"id":1463},{"__isSmartRef__":true,"id":1465},{"__isSmartRef__":true,"id":1467},{"__isSmartRef__":true,"id":1469}],"layout":{"__isSmartRef__":true,"id":1471},"showsHalos":false,"prevScroll":[0,0],"priorSelectionRange":[156,156],"name":"ObjectEditorScriptPane","charsReplaced":"","lastFindLoc":152,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1472},"__SourceModuleName__":"Global.lively.morphic.TextCore","priorExtent":{"__isSmartRef__":true,"id":1473},"_ClipMode":"auto","_FontSize":9,"lastSyntaxHighlightTime":1334581109016,"doitContext":{"__isSmartRef__":true,"id":511},"savedTextString":"// changed at Thu Feb 02 2012 14:37:57 GMT+0100 (CET) by conradcalmez \nthis.addScript(function createMenuItems(items) {\n alertOK(\"creating menu items ... like a boss\");\n}).tag([]);","_Align":"left","renderContextTable":{"__isSmartRef__":true,"id":1474},"lastSearchString":"stringsformat","eventHandler":{"__isSmartRef__":true,"id":1475},"attributeConnections":[{"__isSmartRef__":true,"id":1476}],"doNotSerialize":["$$textString"],"doNotCopyProperties":["$$textString"],"distanceToDragEvent":{"__isSmartRef__":true,"id":1501},"_MinTextWidth":689.0285365288845,"_MinTextHeight":null,"previousSelection":[120,120],"lastSaveSource":"// changed at Fri Apr 13 2012 13:45:49 GMT+0200 (CEST) by conradcalmez \nthis.addScript(function clear() {\n var canvas = this.getCanvas();\n var ctx = this.getDrawingContext();\n ctx.clearRect(0, 0, canvas.width, canvas.height);\n // XXX send clear to couch\n}).tag([\"drawing\"]);","isBeingDragged":false,"draggingEnabled":false,"objectEditorPane":{"__isSmartRef__":true,"id":914},"isCopyMorphRef":true,"morphRefId":1,"statusMorph":{"__isSmartRef__":true,"id":1502},"derivationIds":[219,"DD5046D0-C1D6-412A-83C9-CD7EE63D40E0","4D92BDFD-A599-4154-A197-A4B1292C1619","98551F68-B128-4262-9BC2-6B8AC7C8D7C0","47731662-FF8E-4C0F-A170-FD5C56A06021","3FC7FDE6-156F-4056-BB04-B76D8B6C5472","C1E8D5BB-56F9-47B3-A520-BEEFEF791823","115FC149-EEF9-415A-A5B7-AB0B9D0170A4"],"_Position":{"__isSmartRef__":true,"id":1517},"owner":{"__isSmartRef__":true,"id":914},"_Rotation":0,"_Scale":1,"textString":"// changed at Fri Apr 13 2012 13:45:49 GMT+0200 (CEST) by conradcalmez \nthis.addScript(function clear() {\n var canvas = this.getCanvas();\n var ctx = this.getDrawingContext();\n ctx.clearRect(0, 0, canvas.width, canvas.height);\n // XXX send clear to couch\n}).tag([\"drawing\"]);","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1518},"__LivelyClassName__":"lively.morphic.Text"},"1411":{"_Position":{"__isSmartRef__":true,"id":1412},"_Extent":{"__isSmartRef__":true,"id":1413},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1414},"_Fill":{"__isSmartRef__":true,"id":1415},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderRadius":0,"renderContextTable":{"__isSmartRef__":true,"id":1416},"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"auto","_Padding":{"__isSmartRef__":true,"id":1417},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1412":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1413":{"x":691.0285365288845,"y":475.61253261443596,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1414":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1415":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1416":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1417":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1418":{"x":2,"y":1,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1419":{"style":{"__isSmartRef__":true,"id":1420},"chunkOwner":{"__isSmartRef__":true,"id":1410},"storedString":"// changed at Fri Apr 13 2012 13:45:49 GMT+0200 (CEST) by conradcalmez ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1420":{"color":{"__isSmartRef__":true,"id":45},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1421":{"style":{"__isSmartRef__":true,"id":1422},"chunkOwner":{"__isSmartRef__":true,"id":1410},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1422":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1423":{"style":{"__isSmartRef__":true,"id":1424},"chunkOwner":{"__isSmartRef__":true,"id":1410},"storedString":"this","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1424":{"color":{"__isSmartRef__":true,"id":31},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1425":{"style":{"__isSmartRef__":true,"id":1426},"chunkOwner":{"__isSmartRef__":true,"id":1410},"storedString":".addScript(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1426":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1427":{"style":{"__isSmartRef__":true,"id":1428},"chunkOwner":{"__isSmartRef__":true,"id":1410},"storedString":"function","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1428":{"color":{"__isSmartRef__":true,"id":31},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1429":{"style":{"__isSmartRef__":true,"id":1430},"chunkOwner":{"__isSmartRef__":true,"id":1410},"storedString":" clear() ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1430":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1431":{"style":{"__isSmartRef__":true,"id":1432},"chunkOwner":{"__isSmartRef__":true,"id":1410},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1432":{"color":{"__isSmartRef__":true,"id":45},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1433":{"style":{"__isSmartRef__":true,"id":1434},"chunkOwner":{"__isSmartRef__":true,"id":1410},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1434":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1435":{"style":{"__isSmartRef__":true,"id":1436},"chunkOwner":{"__isSmartRef__":true,"id":1410},"storedString":"var","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1436":{"color":{"__isSmartRef__":true,"id":26},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1437":{"style":{"__isSmartRef__":true,"id":1438},"chunkOwner":{"__isSmartRef__":true,"id":1410},"storedString":" canvas = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1438":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1439":{"style":{"__isSmartRef__":true,"id":1440},"chunkOwner":{"__isSmartRef__":true,"id":1410},"storedString":"this","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1440":{"color":{"__isSmartRef__":true,"id":31},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1441":{"style":{"__isSmartRef__":true,"id":1442},"chunkOwner":{"__isSmartRef__":true,"id":1410},"storedString":".getCanvas();\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1442":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1443":{"style":{"__isSmartRef__":true,"id":1444},"chunkOwner":{"__isSmartRef__":true,"id":1410},"storedString":"var","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1444":{"color":{"__isSmartRef__":true,"id":26},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1445":{"style":{"__isSmartRef__":true,"id":1446},"chunkOwner":{"__isSmartRef__":true,"id":1410},"storedString":" ctx = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1446":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1447":{"style":{"__isSmartRef__":true,"id":1448},"chunkOwner":{"__isSmartRef__":true,"id":1410},"storedString":"this","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1448":{"color":{"__isSmartRef__":true,"id":31},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1449":{"style":{"__isSmartRef__":true,"id":1450},"chunkOwner":{"__isSmartRef__":true,"id":1410},"storedString":".getDrawingContext();\n ctx.clearRect(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1450":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1451":{"style":{"__isSmartRef__":true,"id":1452},"chunkOwner":{"__isSmartRef__":true,"id":1410},"storedString":"0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1452":{"color":{"__isSmartRef__":true,"id":53},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1453":{"style":{"__isSmartRef__":true,"id":1454},"chunkOwner":{"__isSmartRef__":true,"id":1410},"storedString":", ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1454":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1455":{"style":{"__isSmartRef__":true,"id":1456},"chunkOwner":{"__isSmartRef__":true,"id":1410},"storedString":"0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1456":{"color":{"__isSmartRef__":true,"id":53},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1457":{"style":{"__isSmartRef__":true,"id":1458},"chunkOwner":{"__isSmartRef__":true,"id":1410},"storedString":", canvas.width, canvas.height);\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1458":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1459":{"style":{"__isSmartRef__":true,"id":1460},"chunkOwner":{"__isSmartRef__":true,"id":1410},"storedString":"// XXX send clear to couch","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1460":{"color":{"__isSmartRef__":true,"id":45},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1461":{"style":{"__isSmartRef__":true,"id":1462},"chunkOwner":{"__isSmartRef__":true,"id":1410},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1462":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1463":{"style":{"__isSmartRef__":true,"id":1464},"chunkOwner":{"__isSmartRef__":true,"id":1410},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1464":{"color":{"__isSmartRef__":true,"id":45},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1465":{"style":{"__isSmartRef__":true,"id":1466},"chunkOwner":{"__isSmartRef__":true,"id":1410},"storedString":").tag([","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1466":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1467":{"style":{"__isSmartRef__":true,"id":1468},"chunkOwner":{"__isSmartRef__":true,"id":1410},"storedString":"\"drawing\"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1468":{"color":{"__isSmartRef__":true,"id":40},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1469":{"style":{"__isSmartRef__":true,"id":1470},"chunkOwner":{"__isSmartRef__":true,"id":1410},"storedString":"]);","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1470":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1471":{"resizeWidth":true,"resizeHeight":true},"1472":{"requiredModules":[],"partsSpaceName":"PartsBin/Widgets/","migrationLevel":2,"__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1473":{"x":691.0285365288845,"y":475.61253261443596,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1474":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1475":{"morph":{"__isSmartRef__":true,"id":1410},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1476":{"sourceObj":{"__isSmartRef__":true,"id":1410},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":1477},"targetMethodName":"indicateUnsavedChanges","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1477":{"submorphs":[],"scripts":[],"id":"C81AEB1E-3D83-400D-8BD9-945DA6181176","shape":{"__isSmartRef__":true,"id":1478},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1484},"showsHalos":false,"name":"ChangeIndicator","partsBinMetaInfo":{"__isSmartRef__":true,"id":1485},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":1486},"eventHandler":{"__isSmartRef__":true,"id":1487},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"owner":{"__isSmartRef__":true,"id":914},"priorExtent":{"__isSmartRef__":true,"id":1488},"layout":{"__isSmartRef__":true,"id":1489},"isBeingDragged":false,"savedColor":{"__isSmartRef__":true,"id":1481},"alarmColor":{"__isSmartRef__":true,"id":1490},"grabbingEnabled":false,"draggingEnabled":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":1491},"isCopyMorphRef":true,"morphRefId":26,"derivationIds":[220,"EE491D24-F056-4AFE-A669-7B7048C6C3D1","3FA4A8C3-0FC0-43A0-8C00-00A96F9022E2","62DAD3C6-A81D-450F-B32F-601EA7E619D8","EEDB0C58-5990-481A-A7FF-ACB1A2DF08DD","16F708CB-1259-4A75-BAEF-1A5216C6CB19","97CA61D3-E09B-43CD-9880-D8B36FA303F3","0AF6BEEC-8A57-44FF-9D8D-40BA6CC6A0CD"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1492},"__LivelyClassName__":"lively.morphic.Box"},"1478":{"position":{"__isSmartRef__":true,"id":1479},"_Extent":{"__isSmartRef__":true,"id":1480},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1481},"_Fill":{"__isSmartRef__":true,"id":1481},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1482},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1483},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1479":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1480":{"x":8.637782619743348,"y":9.712632235981744,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1481":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1482":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1483":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1484":{"x":883.0245425248855,"y":39.999999999999986,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1485":{"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"},"1486":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1487":{"morph":{"__isSmartRef__":true,"id":1477},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1488":{"x":8.637782619743348,"y":10.787481852220026,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1489":{"moveHorizontal":true,"adjustForNewBounds":true},"1490":{"r":0.9411764705882353,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1491":{"x":37.328206296760186,"y":-17.53316489131697,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1492":{"indicateUnsavedChanges":{"__isSmartRef__":true,"id":1493},"setColors":{"__isSmartRef__":true,"id":1497}},"1493":{"varMapping":{"__isSmartRef__":true,"id":1494},"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":1495},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1494":{"this":{"__isSmartRef__":true,"id":1477}},"1495":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":1496}},"1496":{"isSerializedDate":true,"string":"Tue Sep 27 2011 20:09:19 GMT+0200 (CEST)"},"1497":{"varMapping":{"__isSmartRef__":true,"id":1498},"source":"function setColors(color) {\n this.setFill(color);\n this.setBorderColor(color);\n}","funcProperties":{"__isSmartRef__":true,"id":1499},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1498":{"this":{"__isSmartRef__":true,"id":1477}},"1499":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":1500}},"1500":{"isSerializedDate":true,"string":"Tue Sep 27 2011 19:06:09 GMT+0200 (CEST)"},"1501":{"x":341.1979959929888,"y":-18.288721442524036,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1502":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1503},"id":553,"renderContextTable":{"__isSmartRef__":true,"id":1510},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":1511}],"eventHandler":{"__isSmartRef__":true,"id":1513},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":11,"_Position":{"__isSmartRef__":true,"id":1514},"priorExtent":{"__isSmartRef__":true,"id":1515},"_MaxTextWidth":90,"_MinTextWidth":90,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"_Align":"center","_VerticalAlign":"center","_TextColor":{"__isSmartRef__":true,"id":1516},"owner":null,"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"1503":{"_Position":{"__isSmartRef__":true,"id":1504},"renderContextTable":{"__isSmartRef__":true,"id":1505},"_Extent":{"__isSmartRef__":true,"id":1506},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1507},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1508},"_Fill":{"__isSmartRef__":true,"id":1509},"_StrokeOpacity":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1504":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1505":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1506":{"x":100,"y":25,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1507":{"x":4,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1508":{"r":0.8,"g":0.8,"b":0.8,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1509":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1510":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1511":{"style":{"__isSmartRef__":true,"id":1512},"chunkOwner":{"__isSmartRef__":true,"id":1502},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"1512":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1513":{"morph":{"__isSmartRef__":true,"id":1502},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1514":{"x":313.51426826444225,"y":228.80626630721798,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1515":{"x":100,"y":25,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1516":{"r":0,"g":0.8,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1517":{"x":200,"y":40,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1518":{"doSave":{"__isSmartRef__":true,"id":1519},"boundEval":{"__isSmartRef__":true,"id":1527},"reset":{"__isSmartRef__":true,"id":1535},"display":{"__isSmartRef__":true,"id":1539},"hasChanged":{"__isSmartRef__":true,"id":1543},"setTarget":{"__isSmartRef__":true,"id":1547},"displayStatus":{"__isSmartRef__":true,"id":1551}},"1519":{"varMapping":{"__isSmartRef__":true,"id":1520},"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":1525},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1520":{"this":{"__isSmartRef__":true,"id":1410},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1521}},"1521":{"$super":{"__isSmartRef__":true,"id":1522}},"1522":{"varMapping":{"__isSmartRef__":true,"id":1523},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1524},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1523":{"obj":{"__isSmartRef__":true,"id":1410},"name":"doSave"},"1524":{},"1525":{"timestamp":{"__isSmartRef__":true,"id":1526},"user":"lauritz"},"1526":{"isSerializedDate":true,"string":"Thu Nov 17 2011 23:15:19 GMT+0100 (CET)"},"1527":{"varMapping":{"__isSmartRef__":true,"id":1528},"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":1533},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1528":{"this":{"__isSmartRef__":true,"id":1410},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1529}},"1529":{"$super":{"__isSmartRef__":true,"id":1530}},"1530":{"varMapping":{"__isSmartRef__":true,"id":1531},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1532},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1531":{"obj":{"__isSmartRef__":true,"id":1410},"name":"boundEval"},"1532":{},"1533":{"timestamp":{"__isSmartRef__":true,"id":1534},"user":"lauritz","categories":[]},"1534":{"isSerializedDate":true,"string":"Wed Nov 16 2011 05:41:53 GMT+0100 (CET)"},"1535":{"varMapping":{"__isSmartRef__":true,"id":1536},"source":"function reset() {\n this.doitContext = null;\n this.lastSaveSource = \"\";\n this.textString = \"\";\n this.lastSaveSource = this.textString;\n}","funcProperties":{"__isSmartRef__":true,"id":1537},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1536":{"this":{"__isSmartRef__":true,"id":1410}},"1537":{"timestamp":{"__isSmartRef__":true,"id":1538},"user":"lauritz","categories":[]},"1538":{"isSerializedDate":true,"string":"Tue Sep 27 2011 20:14:35 GMT+0200 (CEST)"},"1539":{"varMapping":{"__isSmartRef__":true,"id":1540},"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":1541},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1540":{"this":{"__isSmartRef__":true,"id":1410}},"1541":{"timestamp":{"__isSmartRef__":true,"id":1542},"user":"lauritz","categories":[]},"1542":{"isSerializedDate":true,"string":"Tue Sep 27 2011 19:47:57 GMT+0200 (CEST)"},"1543":{"varMapping":{"__isSmartRef__":true,"id":1544},"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":1545},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1544":{"this":{"__isSmartRef__":true,"id":1410}},"1545":{"timestamp":{"__isSmartRef__":true,"id":1546},"user":"lauritz","categories":[]},"1546":{"isSerializedDate":true,"string":"Mon Oct 03 2011 18:29:45 GMT+0200 (CEST)"},"1547":{"varMapping":{"__isSmartRef__":true,"id":1548},"source":"function setTarget(target) {\n module('lively.ide.SyntaxHighlighting').load(true);\n this.doitContext = target;\n}","funcProperties":{"__isSmartRef__":true,"id":1549},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1548":{"this":{"__isSmartRef__":true,"id":1410}},"1549":{"timestamp":{"__isSmartRef__":true,"id":1550},"user":"lauritz","categories":[]},"1550":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:30:39 GMT+0100 (CET)"},"1551":{"varMapping":{"__isSmartRef__":true,"id":1552},"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":1553},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1552":{"this":{"__isSmartRef__":true,"id":1410}},"1553":{"timestamp":{"__isSmartRef__":true,"id":1554},"user":"lauritz","categories":[]},"1554":{"isSerializedDate":true,"string":"Wed Nov 23 2011 18:23:05 GMT+0100 (CET)"},"1555":{"submorphs":[{"__isSmartRef__":true,"id":1556}],"scripts":[],"id":847,"shape":{"__isSmartRef__":true,"id":1570},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1585},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1573},"lighterFill":{"__isSmartRef__":true,"id":1586},"label":{"__isSmartRef__":true,"id":1556},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","_Rotation":0,"padding":{"__isSmartRef__":true,"id":1595},"name":"ObjectEditorClassButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":1596},"_Scale":1,"owner":null,"layout":{"__isSmartRef__":true,"id":1597},"renderContextTable":{"__isSmartRef__":true,"id":1598},"eventHandler":{"__isSmartRef__":true,"id":1599},"__LivelyClassName__":"lively.morphic.Button"},"1556":{"submorphs":[],"scripts":[],"id":848,"shape":{"__isSmartRef__":true,"id":1557},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":116,"_MaxTextHeight":18,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1562},"textColor":{"__isSmartRef__":true,"id":1560},"owner":{"__isSmartRef__":true,"id":1555},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":1563}],"padding":{"__isSmartRef__":true,"id":1565},"_Padding":{"__isSmartRef__":true,"id":1566},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":1567},"_FontFamily":"Helvetica, Sans-Serif","_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","_Align":"center","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":1568},"eventHandler":{"__isSmartRef__":true,"id":1569},"_HandStyle":"default","_PointerEvents":"none","__LivelyClassName__":"lively.morphic.Text"},"1557":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1558},"_Extent":{"__isSmartRef__":true,"id":1559},"_BorderColor":{"__isSmartRef__":true,"id":1560},"renderContextTable":{"__isSmartRef__":true,"id":1561},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1558":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1559":{"x":116,"y":18,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1560":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1561":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1562":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1563":{"style":{"__isSmartRef__":true,"id":1564},"chunkOwner":{"__isSmartRef__":true,"id":1556},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"1564":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1565":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1566":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1567":{"x":116,"y":18,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1568":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1569":{"morph":{"__isSmartRef__":true,"id":1556},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1570":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1571},"_Extent":{"__isSmartRef__":true,"id":1572},"_Fill":{"__isSmartRef__":true,"id":1573},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1583},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":1584},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1571":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1572":{"x":116,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1573":{"stops":[{"__isSmartRef__":true,"id":1574},{"__isSmartRef__":true,"id":1576},{"__isSmartRef__":true,"id":1578},{"__isSmartRef__":true,"id":1580}],"vector":{"__isSmartRef__":true,"id":1582},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1574":{"offset":0,"color":{"__isSmartRef__":true,"id":1575}},"1575":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1576":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1577}},"1577":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1578":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1579}},"1579":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1580":{"offset":1,"color":{"__isSmartRef__":true,"id":1581}},"1581":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1582":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1583":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1584":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1585":{"x":820,"y":8.999999999999972,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1586":{"stops":[{"__isSmartRef__":true,"id":1587},{"__isSmartRef__":true,"id":1589},{"__isSmartRef__":true,"id":1591},{"__isSmartRef__":true,"id":1593}],"vector":{"__isSmartRef__":true,"id":1582},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1587":{"offset":0,"color":{"__isSmartRef__":true,"id":1588}},"1588":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1589":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1590}},"1590":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1591":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1592}},"1592":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1593":{"offset":1,"color":{"__isSmartRef__":true,"id":1594}},"1594":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1595":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1596":{"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"},"1597":{"moveHorizontal":true},"1598":{"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"},"1599":{"morph":{"__isSmartRef__":true,"id":1555},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1600":{"submorphs":[],"scripts":[],"id":"83425ECC-C33F-4C7D-9AF3-6C00BF1A0F88","shape":{"__isSmartRef__":true,"id":1601},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1608},"itemList":["-- ALL --"],"selectedLineNo":1,"showsHalos":false,"name":"ObjectEditorConnectionList","partsBinMetaInfo":{"__isSmartRef__":true,"id":1609},"__SourceModuleName__":"Global.lively.morphic.Core","_ClipMode":"auto","owner":{"__isSmartRef__":true,"id":914},"priorExtent":{"__isSmartRef__":true,"id":1610},"attributeConnections":[{"__isSmartRef__":true,"id":1611}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"prevScroll":[0,0],"layout":{"__isSmartRef__":true,"id":1616},"renderContextTable":{"__isSmartRef__":true,"id":1617},"eventHandler":{"__isSmartRef__":true,"id":1618},"_FontSize":10,"distanceToDragEvent":{"__isSmartRef__":true,"id":1619},"grabbingEnabled":false,"draggingEnabled":false,"isCopyMorphRef":true,"morphRefId":19,"derivationIds":[209,"3900F5DF-0FF7-4C94-8BDB-44AAE12B4A3E","35301083-B60D-4A43-8566-23860EEB4C04","9CC401CC-5A35-4643-935B-FD049C284E16","C9879D40-5E79-4C56-AA79-562ED82BF052","9F6F9261-EB76-4B58-B77D-7D70813A1ED7","8B59E237-F372-4F70-9768-7E9C1A7A021D","FC85F1B9-1978-42D2-850C-BD249981E8B4"],"_Rotation":0,"_Scale":1,"selection":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1620},"__LivelyClassName__":"lively.morphic.List"},"1601":{"position":{"__isSmartRef__":true,"id":1602},"_Extent":{"__isSmartRef__":true,"id":1603},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1604},"_Fill":{"__isSmartRef__":true,"id":1605},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderRadius":0,"renderContextTable":{"__isSmartRef__":true,"id":1606},"_Opacity":1,"_BorderStyle":"solid","_Padding":{"__isSmartRef__":true,"id":1607},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1602":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1603":{"x":180,"y":74,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1604":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1605":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1606":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1607":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1608":{"x":10,"y":441.5965565984398,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1609":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":2,"__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1610":{"x":180,"y":75,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1611":{"sourceObj":{"__isSmartRef__":true,"id":1600},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":914},"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":1612},"__SourceModuleName__":"Global.lively.bindings","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1613},"__LivelyClassName__":"AttributeConnection"},"1612":{"source":{"__isSmartRef__":true,"id":1600},"target":{"__isSmartRef__":true,"id":914}},"1613":{"converter":{"__isSmartRef__":true,"id":1614}},"1614":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":1612},"source":"function (value) {\n if (!value) return;\n return (value === '-- ALL --') ? null : value[1];\n}","funcProperties":{"__isSmartRef__":true,"id":1615},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1615":{},"1616":{"resizeHeight":false,"moveVertical":true},"1617":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","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"},"1618":{"morph":{"__isSmartRef__":true,"id":1600},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1619":{"x":124.95989979964943,"y":-17.076643708895745,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1620":{"preselectItem":{"__isSmartRef__":true,"id":1621}},"1621":{"varMapping":{"__isSmartRef__":true,"id":1622},"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":1623},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1622":{"this":{"__isSmartRef__":true,"id":1600}},"1623":{"timestamp":{"__isSmartRef__":true,"id":1624},"user":"lauritz"},"1624":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:12:58 GMT+0100 (CET)"},"1625":{"submorphs":[{"__isSmartRef__":true,"id":1626}],"scripts":[],"id":47,"shape":{"__isSmartRef__":true,"id":1639},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1654},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1642},"lighterFill":{"__isSmartRef__":true,"id":1655},"label":{"__isSmartRef__":true,"id":1626},"attributeConnections":[{"__isSmartRef__":true,"id":1664}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","_Rotation":0,"padding":{"__isSmartRef__":true,"id":1665},"name":"ObjectEditorTargetButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":1666},"_Scale":1,"owner":null,"renderContextTable":{"__isSmartRef__":true,"id":1667},"isCopyMorphRef":true,"morphRefId":1,"__LivelyClassName__":"lively.morphic.Button"},"1626":{"submorphs":[],"scripts":[],"id":48,"shape":{"__isSmartRef__":true,"id":1627},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":116,"_MaxTextHeight":20,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1632},"textColor":{"__isSmartRef__":true,"id":1630},"owner":{"__isSmartRef__":true,"id":1625},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":1633}],"padding":{"__isSmartRef__":true,"id":1635},"_Padding":{"__isSmartRef__":true,"id":1636},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":1637},"_FontFamily":"Helvetica, Sans-Serif","_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","_Align":"center","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":1638},"__LivelyClassName__":"lively.morphic.Text"},"1627":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1628},"_Extent":{"__isSmartRef__":true,"id":1629},"_BorderColor":{"__isSmartRef__":true,"id":1630},"renderContextTable":{"__isSmartRef__":true,"id":1631},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1628":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1629":{"x":116,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1630":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1631":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setOpacity":"setOpacityHTML"},"1632":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1633":{"style":{"__isSmartRef__":true,"id":1634},"chunkOwner":{"__isSmartRef__":true,"id":1626},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"1634":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1635":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1636":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1637":{"x":116,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1638":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1639":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1640},"_Extent":{"__isSmartRef__":true,"id":1641},"_Fill":{"__isSmartRef__":true,"id":1642},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1652},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":1653},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1640":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1641":{"x":116,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1642":{"stops":[{"__isSmartRef__":true,"id":1643},{"__isSmartRef__":true,"id":1645},{"__isSmartRef__":true,"id":1647},{"__isSmartRef__":true,"id":1649}],"vector":{"__isSmartRef__":true,"id":1651},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1643":{"offset":0,"color":{"__isSmartRef__":true,"id":1644}},"1644":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1645":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1646}},"1646":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1647":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1648}},"1648":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1649":{"offset":1,"color":{"__isSmartRef__":true,"id":1650}},"1650":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1651":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1652":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1653":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setOpacity":"setOpacityHTML"},"1654":{"x":215,"y":35,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1655":{"stops":[{"__isSmartRef__":true,"id":1656},{"__isSmartRef__":true,"id":1658},{"__isSmartRef__":true,"id":1660},{"__isSmartRef__":true,"id":1662}],"vector":{"__isSmartRef__":true,"id":1651},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1656":{"offset":0,"color":{"__isSmartRef__":true,"id":1657}},"1657":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1658":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1659}},"1659":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1660":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1661}},"1661":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1662":{"offset":1,"color":{"__isSmartRef__":true,"id":1663}},"1663":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1664":{"sourceObj":{"__isSmartRef__":true,"id":1625},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":932},"targetMethodName":"chooseTargetMorphMenu","__SourceModuleName__":"Global.lively.bindings","converter":null,"converterString":null,"updater":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection"},"1665":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1666":{"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"},"1667":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"1668":{"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"},"1669":{"x":715.5,"y":73.89999999999998,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1670":{"submorphs":[],"scripts":[],"id":435,"shape":{"__isSmartRef__":true,"id":1671},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1678},"_MaxTextWidth":218,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":1679},"showsHalos":false,"_FontSize":12,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"ObjectEditorMorphSelector","partsBinMetaInfo":{"__isSmartRef__":true,"id":1680},"textChunks":[{"__isSmartRef__":true,"id":1681}],"charsReplaced":"","lastFindLoc":5,"priorSelectionRange":[15,15],"prevScroll":[0,0],"_ClipMode":"visible","list":[],"attributeConnections":[{"__isSmartRef__":true,"id":1683}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"listMorph":null,"_WhiteSpaceHandling":"pre-wrap","owner":null,"priorExtent":{"__isSmartRef__":true,"id":1685},"_Align":"left","renderContextTable":{"__isSmartRef__":true,"id":1686},"eventHandler":{"__isSmartRef__":true,"id":1687},"_MinTextWidth":218,"_MinTextHeight":null,"scriptAnnotations":{"__isSmartRef__":true,"id":1688},"selection":{"__isSmartRef__":true,"id":913},"previousSelection":[0,13],"isCopyMorphRef":true,"morphRefId":1,"isBeingDragged":false,"draggingEnabled":false,"layout":{"__isSmartRef__":true,"id":1707},"_Rotation":0,"_Scale":1,"distanceToDragEvent":{"__isSmartRef__":true,"id":1708},"savedTextString":"100","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1709},"__LivelyClassName__":"lively.morphic.Text"},"1671":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1672},"_Extent":{"__isSmartRef__":true,"id":1673},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1674},"renderContextTable":{"__isSmartRef__":true,"id":1675},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1676},"_BorderRadius":3.7000000000000006,"_Opacity":1,"_BorderStyle":"solid","_Fill":{"__isSmartRef__":true,"id":1677},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1672":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1673":{"x":220,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1674":{"r":0.753,"g":0.753,"b":0.753,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1675":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1676":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1677":{"r":0.9548430751559654,"g":0.9548430751559654,"b":0.9548430751559654,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1678":{"x":200,"y":10,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1679":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1680":{"partsSpaceName":"PartsBin/Inputs/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1681":{"style":{"__isSmartRef__":true,"id":1682},"chunkOwner":{"__isSmartRef__":true,"id":1670},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"1682":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1683":{"sourceObj":{"__isSmartRef__":true,"id":1670},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":914},"targetMethodName":"setTarget","converter":null,"converterString":"function (name) { return $world.get(name)}","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1684},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1684":{"source":{"__isSmartRef__":true,"id":1670},"target":{"__isSmartRef__":true,"id":914}},"1685":{"x":220,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1686":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1687":{"morph":{"__isSmartRef__":true,"id":1670},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1688":{"createListMorph":{"__isSmartRef__":true,"id":1689},"displayTopLevelMorphs":{"__isSmartRef__":true,"id":1691},"onMouseUp":{"__isSmartRef__":true,"id":1693},"resetConnections":{"__isSmartRef__":true,"id":1695},"setTargetToListSelection":{"__isSmartRef__":true,"id":1697},"setTargetOfPane":{"__isSmartRef__":true,"id":1699},"onBlur":{"__isSmartRef__":true,"id":1701},"reset":{"__isSmartRef__":true,"id":1703},"onMouseDown":{"__isSmartRef__":true,"id":1705}},"1689":{"time":{"__isSmartRef__":true,"id":1690},"user":"lauritz"},"1690":{"isSerializedDate":true,"string":"Fri Oct 28 2011 05:27:29 GMT+0200 (CEST)"},"1691":{"time":{"__isSmartRef__":true,"id":1692},"user":"lauritz"},"1692":{"isSerializedDate":true,"string":"Fri Oct 14 2011 23:48:37 GMT+0200 (CEST)"},"1693":{"time":{"__isSmartRef__":true,"id":1694},"user":"lauritz"},"1694":{"isSerializedDate":true,"string":"Mon Oct 03 2011 18:51:14 GMT+0200 (CEST)"},"1695":{"time":{"__isSmartRef__":true,"id":1696},"user":"lauritz"},"1696":{"isSerializedDate":true,"string":"Wed Sep 28 2011 01:03:17 GMT+0200 (CEST)"},"1697":{"time":{"__isSmartRef__":true,"id":1698},"user":"lauritz"},"1698":{"isSerializedDate":true,"string":"Sat Oct 15 2011 00:00:58 GMT+0200 (CEST)"},"1699":{"time":{"__isSmartRef__":true,"id":1700},"user":"lauritz"},"1700":{"isSerializedDate":true,"string":"Mon Oct 03 2011 18:34:37 GMT+0200 (CEST)"},"1701":{"time":{"__isSmartRef__":true,"id":1702},"user":"lauritz"},"1702":{"isSerializedDate":true,"string":"Fri Oct 07 2011 19:24:18 GMT+0200 (CEST)"},"1703":{"time":{"__isSmartRef__":true,"id":1704},"user":"lauritz"},"1704":{"isSerializedDate":true,"string":"Fri Oct 07 2011 19:26:15 GMT+0200 (CEST)"},"1705":{"time":{"__isSmartRef__":true,"id":1706},"user":"lauritz"},"1706":{"isSerializedDate":true,"string":"Mon Oct 17 2011 19:49:00 GMT+0200 (CEST)"},"1707":{},"1708":{"x":153.8540395186758,"y":-23.74126935194758,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1709":{"getList":{"__isSmartRef__":true,"id":1710},"setList":{"__isSmartRef__":true,"id":1713},"reset":{"__isSmartRef__":true,"id":1716},"example":{"__isSmartRef__":true,"id":1719},"removeList":{"__isSmartRef__":true,"id":1722},"onBlur":{"__isSmartRef__":true,"id":1725},"createListMorph":{"__isSmartRef__":true,"id":1732},"resetConnections":{"__isSmartRef__":true,"id":1735},"displayTopLevelMorphs":{"__isSmartRef__":true,"id":1738},"setTargetToListSelection":{"__isSmartRef__":true,"id":1741},"setTargetOfPane":{"__isSmartRef__":true,"id":1744},"onMouseDown":{"__isSmartRef__":true,"id":1747}},"1710":{"varMapping":{"__isSmartRef__":true,"id":1711},"source":"function getList() {\n return this.world().indentedListItemsOfMorphNames();\n}","funcProperties":{"__isSmartRef__":true,"id":1712},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1711":{"this":{"__isSmartRef__":true,"id":1670}},"1712":{},"1713":{"varMapping":{"__isSmartRef__":true,"id":1714},"source":"function setList(list) {\n return this.list = list;\n}","funcProperties":{"__isSmartRef__":true,"id":1715},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1714":{"this":{"__isSmartRef__":true,"id":1670}},"1715":{},"1716":{"varMapping":{"__isSmartRef__":true,"id":1717},"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":1718},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1717":{"this":{"__isSmartRef__":true,"id":1670}},"1718":{},"1719":{"varMapping":{"__isSmartRef__":true,"id":1720},"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":1721},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1720":{"this":{"__isSmartRef__":true,"id":1670}},"1721":{},"1722":{"varMapping":{"__isSmartRef__":true,"id":1723},"source":"function removeList() {\n this.listMorph && this.listMorph.remove()\n this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":1724},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1723":{"this":{"__isSmartRef__":true,"id":1670}},"1724":{},"1725":{"varMapping":{"__isSmartRef__":true,"id":1726},"source":"function onBlur() {\n $super();\n this.removeList();\n}","funcProperties":{"__isSmartRef__":true,"id":1731},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1726":{"this":{"__isSmartRef__":true,"id":1670},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1727}},"1727":{"$super":{"__isSmartRef__":true,"id":1728}},"1728":{"varMapping":{"__isSmartRef__":true,"id":1729},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1730},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1729":{"obj":{"__isSmartRef__":true,"id":1670},"name":"onBlur"},"1730":{},"1731":{},"1732":{"varMapping":{"__isSmartRef__":true,"id":1733},"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":1734},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1733":{"this":{"__isSmartRef__":true,"id":1670}},"1734":{},"1735":{"varMapping":{"__isSmartRef__":true,"id":1736},"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":1737},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1736":{"this":{"__isSmartRef__":true,"id":1670}},"1737":{},"1738":{"varMapping":{"__isSmartRef__":true,"id":1739},"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":1740},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1739":{"this":{"__isSmartRef__":true,"id":1670}},"1740":{},"1741":{"varMapping":{"__isSmartRef__":true,"id":1742},"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":1743},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1742":{"this":{"__isSmartRef__":true,"id":1670}},"1743":{},"1744":{"varMapping":{"__isSmartRef__":true,"id":1745},"source":"function setTargetOfPane(selection) {\n this.owner.setTarget(selection);\n this.setTextString(selection.getName());\n this.removeList();\n}","funcProperties":{"__isSmartRef__":true,"id":1746},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1745":{"this":{"__isSmartRef__":true,"id":1670}},"1746":{},"1747":{"varMapping":{"__isSmartRef__":true,"id":1748},"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":1753},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1748":{"this":{"__isSmartRef__":true,"id":1670},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1749}},"1749":{"$super":{"__isSmartRef__":true,"id":1750}},"1750":{"varMapping":{"__isSmartRef__":true,"id":1751},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1752},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1751":{"obj":{"__isSmartRef__":true,"id":1670},"name":"onMouseDown"},"1752":{},"1753":{},"1754":{"morph":{"__isSmartRef__":true,"id":932},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1755":{"sortedScriptNamesOfObj":{"__isSmartRef__":true,"id":1756},"setTarget":{"__isSmartRef__":true,"id":1759},"generateSourceForScript":{"__isSmartRef__":true,"id":1762},"generateSourceForConnection":{"__isSmartRef__":true,"id":1765},"generateTargetCode":{"__isSmartRef__":true,"id":1768},"sortedConnectionNamesOfObj":{"__isSmartRef__":true,"id":1771},"displayJavaScriptSource":{"__isSmartRef__":true,"id":1774},"displaySourceForScript":{"__isSmartRef__":true,"id":1777},"displaySourceForConnection":{"__isSmartRef__":true,"id":1780},"newScript":{"__isSmartRef__":true,"id":1783},"newConnection":{"__isSmartRef__":true,"id":1786},"deleteSelectedScript":{"__isSmartRef__":true,"id":1789},"disconnectConnection":{"__isSmartRef__":true,"id":1792},"updateLists":{"__isSmartRef__":true,"id":1795},"displayInitialScript":{"__isSmartRef__":true,"id":1798},"reset":{"__isSmartRef__":true,"id":1801},"selectChangedContent":{"__isSmartRef__":true,"id":1804}},"1756":{"varMapping":{"__isSmartRef__":true,"id":1757},"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":1758},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1757":{"this":{"__isSmartRef__":true,"id":932}},"1758":{},"1759":{"varMapping":{"__isSmartRef__":true,"id":1760},"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":1761},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1760":{"this":{"__isSmartRef__":true,"id":932}},"1761":{},"1762":{"varMapping":{"__isSmartRef__":true,"id":1763},"source":"function generateSourceForScript(scriptName) {\n var script = this.target[scriptName].getOriginal();\n return Strings.format('this.addScript(%s);' ,script)\n}","funcProperties":{"__isSmartRef__":true,"id":1764},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1763":{"this":{"__isSmartRef__":true,"id":932}},"1764":{},"1765":{"varMapping":{"__isSmartRef__":true,"id":1766},"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":1767},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1766":{"this":{"__isSmartRef__":true,"id":932}},"1767":{},"1768":{"varMapping":{"__isSmartRef__":true,"id":1769},"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":1770},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1769":{"this":{"__isSmartRef__":true,"id":932}},"1770":{},"1771":{"varMapping":{"__isSmartRef__":true,"id":1772},"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":1773},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1772":{"this":{"__isSmartRef__":true,"id":932}},"1773":{},"1774":{"varMapping":{"__isSmartRef__":true,"id":1775},"source":"function displayJavaScriptSource(jsCode) {\n this.scriptPane.setTextString(jsCode);\n this.scriptPane.highlightJavaScriptSyntax();\n}","funcProperties":{"__isSmartRef__":true,"id":1776},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1775":{"this":{"__isSmartRef__":true,"id":932}},"1776":{},"1777":{"varMapping":{"__isSmartRef__":true,"id":1778},"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":1779},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1778":{"this":{"__isSmartRef__":true,"id":932}},"1779":{},"1780":{"varMapping":{"__isSmartRef__":true,"id":1781},"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":1782},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1781":{"this":{"__isSmartRef__":true,"id":932}},"1782":{},"1783":{"varMapping":{"__isSmartRef__":true,"id":1784},"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":1785},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1784":{"this":{"__isSmartRef__":true,"id":932}},"1785":{},"1786":{"varMapping":{"__isSmartRef__":true,"id":1787},"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":1788},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1787":{"this":{"__isSmartRef__":true,"id":932}},"1788":{},"1789":{"varMapping":{"__isSmartRef__":true,"id":1790},"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":1791},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1790":{"this":{"__isSmartRef__":true,"id":932}},"1791":{},"1792":{"varMapping":{"__isSmartRef__":true,"id":1793},"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":1794},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1793":{"this":{"__isSmartRef__":true,"id":932}},"1794":{},"1795":{"varMapping":{"__isSmartRef__":true,"id":1796},"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":1797},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1796":{"this":{"__isSmartRef__":true,"id":932}},"1797":{},"1798":{"varMapping":{"__isSmartRef__":true,"id":1799},"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":1800},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1799":{"this":{"__isSmartRef__":true,"id":932}},"1800":{},"1801":{"varMapping":{"__isSmartRef__":true,"id":1802},"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":1803},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1802":{"this":{"__isSmartRef__":true,"id":932}},"1803":{},"1804":{"varMapping":{"__isSmartRef__":true,"id":1805},"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":2004},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2003":{"this":{"__isSmartRef__":true,"id":1950}},"2004":{"timestamp":{"__isSmartRef__":true,"id":2005},"user":"lauritz","categories":[]},"2005":{"isSerializedDate":true,"string":"Fri Nov 11 2011 01:46:54 GMT+0100 (CET)"},"2006":{"submorphs":[{"__isSmartRef__":true,"id":2007}],"scripts":[],"id":"0BC74024-5D60-4D6F-81C1-F08EAB8285A2","shape":{"__isSmartRef__":true,"id":2022},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2038},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":2025},"lighterFill":{"__isSmartRef__":true,"id":2039},"label":{"__isSmartRef__":true,"id":2007},"attributeConnections":[{"__isSmartRef__":true,"id":2048}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","padding":{"__isSmartRef__":true,"id":2050},"name":"ObjectEditorRemoveScriptButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":2051},"renderContextTable":{"__isSmartRef__":true,"id":2052},"priorExtent":{"__isSmartRef__":true,"id":2053},"owner":{"__isSmartRef__":true,"id":914},"eventHandler":{"__isSmartRef__":true,"id":2054},"isCopyMorphRef":true,"morphRefId":24,"draggingEnabled":false,"objectEditorPane":{"__isSmartRef__":true,"id":914},"distanceToDragEvent":{"__isSmartRef__":true,"id":2055},"derivationIds":[217,"FDC10087-12CF-4570-9211-8309CB6A9AA3","E18FC530-4B1F-4F08-8DA6-3866A3519E56","04A2AAC3-6A9E-40BB-9408-EBB2567EE63B","8C1A42CE-840C-4AAE-BD79-C93A445B9EBF","61FC11FA-B87E-4EFE-BD15-564D3178B68B","ED34F9B5-9E00-41B3-8313-D9C3D6B3B231","A7481F4B-D444-4B4F-BDA2-4F9F03AEC24D"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2056},"__LivelyClassName__":"lively.morphic.Button"},"2007":{"submorphs":[],"scripts":[],"id":"0E243F01-94F4-4C6E-9A41-2A89AC30ACC6","shape":{"__isSmartRef__":true,"id":2008},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":25,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2014},"textColor":{"__isSmartRef__":true,"id":2011},"owner":{"__isSmartRef__":true,"id":2006},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":2015}],"padding":{"__isSmartRef__":true,"id":2017},"_Padding":{"__isSmartRef__":true,"id":2018},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":2019},"_FontFamily":"Helvetica, Sans-Serif","renderContextTable":{"__isSmartRef__":true,"id":2020},"_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","_Align":"center","eventHandler":{"__isSmartRef__":true,"id":2021},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":25,"_MinTextHeight":null,"draggingEnabled":false,"derivationIds":[218,"852A7BD9-52EE-4708-A2D5-1BDECF33C958","7B4F173E-9726-472A-9B30-530D4AA92AD9","CBA217F6-2832-4213-9ABE-47753C1A4180","E6B97D1D-95D5-4644-9359-1D08D42A51F4","4391A57E-70C2-4628-9828-DD668CCE546E","F0C6C298-3B8B-42B2-B5E9-E5B82F607B01","DF0CAF75-4247-4797-B1A0-AD7444391E2A"],"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"2008":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":2009},"_Extent":{"__isSmartRef__":true,"id":2010},"_BorderColor":{"__isSmartRef__":true,"id":2011},"renderContextTable":{"__isSmartRef__":true,"id":2012},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2013},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2009":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2010":{"x":25,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2011":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2012":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2013":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2014":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2015":{"style":{"__isSmartRef__":true,"id":2016},"morph":{"__isSmartRef__":true,"id":2007},"__SourceModuleName__":"Global.lively.morphic.TextCore","chunkOwner":{"__isSmartRef__":true,"id":2007},"storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk"},"2016":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"2017":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2018":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2019":{"x":25,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2020":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"2021":{"morph":{"__isSmartRef__":true,"id":2007},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2022":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":2023},"_Extent":{"__isSmartRef__":true,"id":2024},"_Fill":{"__isSmartRef__":true,"id":2025},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2035},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":2036},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2037},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2023":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2024":{"x":25,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2025":{"stops":[{"__isSmartRef__":true,"id":2026},{"__isSmartRef__":true,"id":2028},{"__isSmartRef__":true,"id":2030},{"__isSmartRef__":true,"id":2032}],"vector":{"__isSmartRef__":true,"id":2034},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"2026":{"offset":0,"color":{"__isSmartRef__":true,"id":2027}},"2027":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2028":{"offset":0.4,"color":{"__isSmartRef__":true,"id":2029}},"2029":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2030":{"offset":0.6,"color":{"__isSmartRef__":true,"id":2031}},"2031":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2032":{"offset":1,"color":{"__isSmartRef__":true,"id":2033}},"2033":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2034":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2035":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2036":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2037":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2038":{"x":160,"y":40,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2039":{"stops":[{"__isSmartRef__":true,"id":2040},{"__isSmartRef__":true,"id":2042},{"__isSmartRef__":true,"id":2044},{"__isSmartRef__":true,"id":2046}],"vector":{"__isSmartRef__":true,"id":2034},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"2040":{"offset":0,"color":{"__isSmartRef__":true,"id":2041}},"2041":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2042":{"offset":0.4,"color":{"__isSmartRef__":true,"id":2043}},"2043":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2044":{"offset":0.6,"color":{"__isSmartRef__":true,"id":2045}},"2045":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2046":{"offset":1,"color":{"__isSmartRef__":true,"id":2047}},"2047":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2048":{"sourceObj":{"__isSmartRef__":true,"id":2006},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":2006},"targetMethodName":"deleteSelectedScript","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":2049},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2049":{"source":{"__isSmartRef__":true,"id":2006},"target":{"__isSmartRef__":true,"id":2006}},"2050":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2051":{"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"},"2052":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2053":{"x":30,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2054":{"morph":{"__isSmartRef__":true,"id":2006},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2055":{"x":33.35839679439101,"y":-21.324811622839547,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2056":{"deleteSelectedScript":{"__isSmartRef__":true,"id":2057}},"2057":{"varMapping":{"__isSmartRef__":true,"id":2058},"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":2059},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2058":{"this":{"__isSmartRef__":true,"id":2006}},"2059":{"timestamp":{"__isSmartRef__":true,"id":2060},"user":"lauritz"},"2060":{"isSerializedDate":true,"string":"Thu Nov 17 2011 18:12:21 GMT+0100 (CET)"},"2061":{"submorphs":[{"__isSmartRef__":true,"id":2062}],"scripts":[],"id":"9AE34344-43B7-4038-AC13-3C50F114EB35","shape":{"__isSmartRef__":true,"id":2077},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2093},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":2080},"lighterFill":{"__isSmartRef__":true,"id":2094},"label":{"__isSmartRef__":true,"id":2062},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","padding":{"__isSmartRef__":true,"id":2103},"name":"ObjectEditorMorphSelector","partsBinMetaInfo":{"__isSmartRef__":true,"id":2104},"list":[],"renderContextTable":{"__isSmartRef__":true,"id":2105},"eventHandler":{"__isSmartRef__":true,"id":2106},"distanceToDragEvent":{"__isSmartRef__":true,"id":2107},"priorExtent":{"__isSmartRef__":true,"id":2108},"owner":{"__isSmartRef__":true,"id":914},"textString":"","selection":{"__isSmartRef__":true,"id":2109},"_ClipMode":"visible","prevScroll":[0,0],"listMorph":null,"derivationIds":[221,"4AC64FBA-95AC-42B2-A078-B6DA97889093","E26ED0E6-C4CE-4C82-94D5-175270E8459E","D292F2FC-C2B6-48AE-B779-8CC5868FFA49","53A862EB-032C-4BF0-9B21-58C7E0C0A9B2","CC4D188B-510F-48DE-A0E1-EC8D2CD63F9F","0CD057F2-3517-4849-A69E-1EF79B05ACE8","66EBBB7D-8FA7-4D43-AE78-A18DA3B970BA"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2126},"__LivelyClassName__":"lively.morphic.Button"},"2062":{"submorphs":[],"scripts":[],"id":"49ECC26C-1F6F-4EE8-AFBC-3085AB8CDB1C","shape":{"__isSmartRef__":true,"id":2063},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":220,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2069},"textColor":{"__isSmartRef__":true,"id":2066},"owner":{"__isSmartRef__":true,"id":2061},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":2070}],"padding":{"__isSmartRef__":true,"id":2072},"_Padding":{"__isSmartRef__":true,"id":2072},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":2073},"attributeConnections":[{"__isSmartRef__":true,"id":2074}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"renderContextTable":{"__isSmartRef__":true,"id":2075},"eventHandler":{"__isSmartRef__":true,"id":2076},"_HandStyle":"default","_PointerEvents":"none","_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":220,"_MinTextHeight":null,"_Align":"left","_FontFamily":"Arial","_FontSize":11,"derivationIds":[222,"30F054A3-7658-405B-8098-B7D87AA8A9ED","556D6E07-45B7-42EC-A486-DE275EF0B034","06B0B080-467A-46CC-8B0D-9C0A9B9A71F1","5E2D96C9-BB9B-4735-8673-A79847435197","B48AA022-2022-4A2A-9090-4D884FB3DFD3","8B2F743A-98C5-45E1-B03C-5019114EAC47","D09C56C3-A2DC-4BDF-B8A1-6365138ECD01"],"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"2063":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":2064},"_Extent":{"__isSmartRef__":true,"id":2065},"_BorderColor":{"__isSmartRef__":true,"id":2066},"renderContextTable":{"__isSmartRef__":true,"id":2067},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":2068},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2064":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2065":{"x":220,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2066":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2067":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2068":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2069":{"x":2,"y":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2070":{"style":{"__isSmartRef__":true,"id":2071},"chunkOwner":{"__isSmartRef__":true,"id":2062},"storedString":"WhiteBoard2","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"2071":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"2072":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2073":{"x":220,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2074":{"sourceObj":{"__isSmartRef__":true,"id":2062},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":2061},"targetMethodName":"selection","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2075":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"2076":{"morph":{"__isSmartRef__":true,"id":2062},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2077":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":2078},"_Extent":{"__isSmartRef__":true,"id":2079},"_Fill":{"__isSmartRef__":true,"id":2080},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2090},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":2091},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2092},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2078":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2079":{"x":220,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2080":{"stops":[{"__isSmartRef__":true,"id":2081},{"__isSmartRef__":true,"id":2083},{"__isSmartRef__":true,"id":2085},{"__isSmartRef__":true,"id":2087}],"vector":{"__isSmartRef__":true,"id":2089},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"2081":{"offset":0,"color":{"__isSmartRef__":true,"id":2082}},"2082":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2083":{"offset":0.4,"color":{"__isSmartRef__":true,"id":2084}},"2084":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2085":{"offset":0.6,"color":{"__isSmartRef__":true,"id":2086}},"2086":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2087":{"offset":1,"color":{"__isSmartRef__":true,"id":2088}},"2088":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2089":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2090":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2091":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2092":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2093":{"x":240.1308656788165,"y":10,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2094":{"stops":[{"__isSmartRef__":true,"id":2095},{"__isSmartRef__":true,"id":2097},{"__isSmartRef__":true,"id":2099},{"__isSmartRef__":true,"id":2101}],"vector":{"__isSmartRef__":true,"id":2089},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"2095":{"offset":0,"color":{"__isSmartRef__":true,"id":2096}},"2096":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2097":{"offset":0.4,"color":{"__isSmartRef__":true,"id":2098}},"2098":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2099":{"offset":0.6,"color":{"__isSmartRef__":true,"id":2100}},"2100":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2101":{"offset":1,"color":{"__isSmartRef__":true,"id":2102}},"2102":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2103":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2104":{"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"},"2105":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2106":{"morph":{"__isSmartRef__":true,"id":2061},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2107":{"x":122.93118375058827,"y":-11.582832083333244,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2108":{"x":220,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2109":{"submorphs":[],"scripts":[],"id":181,"shape":{"__isSmartRef__":true,"id":2110},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2116},"_MaxTextWidth":580,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":2117},"showsHalos":false,"_FontSize":28,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"Title","partsBinMetaInfo":{"__isSmartRef__":true,"id":2118},"_TextColor":{"__isSmartRef__":true,"id":2119},"renderContextTable":{"__isSmartRef__":true,"id":2120},"textChunks":[{"__isSmartRef__":true,"id":2121}],"eventHandler":{"__isSmartRef__":true,"id":2123},"priorExtent":{"__isSmartRef__":true,"id":2124},"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":2125},"_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","isCopyMorphRef":true,"morphRefId":2,"prevScroll":[0,0],"__LivelyClassName__":"lively.morphic.Text"},"2110":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":2111},"_Extent":{"__isSmartRef__":true,"id":2112},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2113},"renderContextTable":{"__isSmartRef__":true,"id":2114},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2115},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2111":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2112":{"x":580,"y":43,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2113":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2114":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2115":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2116":{"x":37,"y":23,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2117":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2118":{"partsSpaceName":"PartsBin/Worlds/","__SourceModuleName__":"Global.lively.PartsBin","comment":"For example a world title.","partName":"Title","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"2119":{"r":0,"g":0.309,"b":0.595,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2120":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"2121":{"style":{"__isSmartRef__":true,"id":2122},"chunkOwner":{"__isSmartRef__":true,"id":2109},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk"},"2122":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"2123":{"morph":{"__isSmartRef__":true,"id":2109},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2124":{"x":580,"y":43,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2125":{"x":221,"y":-12,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2126":{"createListMorph":{"__isSmartRef__":true,"id":2127},"getList":{"__isSmartRef__":true,"id":2131},"removeList":{"__isSmartRef__":true,"id":2135},"reset":{"__isSmartRef__":true,"id":2139},"displayTopLevelMorphs":{"__isSmartRef__":true,"id":2143},"onMouseDown":{"__isSmartRef__":true,"id":2147},"setTargetOfPane":{"__isSmartRef__":true,"id":2155},"setTargetToListSelection":{"__isSmartRef__":true,"id":2159},"onBlur":{"__isSmartRef__":true,"id":2163},"setTarget":{"__isSmartRef__":true,"id":2171},"setTargetOnSelection":{"__isSmartRef__":true,"id":2175}},"2127":{"varMapping":{"__isSmartRef__":true,"id":2128},"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":2129},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2128":{"this":{"__isSmartRef__":true,"id":2061}},"2129":{"timestamp":{"__isSmartRef__":true,"id":2130},"user":"lauritz","tags":[]},"2130":{"isSerializedDate":true,"string":"Tue Dec 13 2011 18:55:41 GMT+0100 (CET)"},"2131":{"varMapping":{"__isSmartRef__":true,"id":2132},"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":2133},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2132":{"this":{"__isSmartRef__":true,"id":2061}},"2133":{"timestamp":{"__isSmartRef__":true,"id":2134},"user":"lauritz","tags":[]},"2134":{"isSerializedDate":true,"string":"Mon Nov 21 2011 23:12:23 GMT+0100 (CET)"},"2135":{"varMapping":{"__isSmartRef__":true,"id":2136},"source":"function removeList() {\n this.listMorph && this.listMorph.remove();\n this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":2137},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2136":{"this":{"__isSmartRef__":true,"id":2061}},"2137":{"timestamp":{"__isSmartRef__":true,"id":2138},"user":"lauritz","tags":[]},"2138":{"isSerializedDate":true,"string":"Wed Dec 07 2011 05:51:07 GMT+0100 (CET)"},"2139":{"varMapping":{"__isSmartRef__":true,"id":2140},"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":2141},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2140":{"this":{"__isSmartRef__":true,"id":2061}},"2141":{"timestamp":{"__isSmartRef__":true,"id":2142},"user":"lauritz","tags":[]},"2142":{"isSerializedDate":true,"string":"Wed Dec 07 2011 05:34:06 GMT+0100 (CET)"},"2143":{"varMapping":{"__isSmartRef__":true,"id":2144},"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":2145},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2144":{"this":{"__isSmartRef__":true,"id":2061}},"2145":{"timestamp":{"__isSmartRef__":true,"id":2146},"user":"lauritz","tags":[]},"2146":{"isSerializedDate":true,"string":"Tue Dec 13 2011 18:53:20 GMT+0100 (CET)"},"2147":{"varMapping":{"__isSmartRef__":true,"id":2148},"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":2153},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2148":{"this":{"__isSmartRef__":true,"id":2061},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2149}},"2149":{"$super":{"__isSmartRef__":true,"id":2150}},"2150":{"varMapping":{"__isSmartRef__":true,"id":2151},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2152},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2151":{"obj":{"__isSmartRef__":true,"id":2061},"name":"onMouseDown"},"2152":{},"2153":{"timestamp":{"__isSmartRef__":true,"id":2154},"user":"lauritz","tags":[]},"2154":{"isSerializedDate":true,"string":"Wed Dec 07 2011 05:30:39 GMT+0100 (CET)"},"2155":{"varMapping":{"__isSmartRef__":true,"id":2156},"source":"function setTargetOfPane(selection) {\n this.owner.setTarget(selection);\n this.label.setAlign('left');\n}","funcProperties":{"__isSmartRef__":true,"id":2157},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2156":{"this":{"__isSmartRef__":true,"id":2061}},"2157":{"timestamp":{"__isSmartRef__":true,"id":2158},"user":"lauritz","tags":[]},"2158":{"isSerializedDate":true,"string":"Wed Dec 07 2011 04:30:42 GMT+0100 (CET)"},"2159":{"varMapping":{"__isSmartRef__":true,"id":2160},"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":2161},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2160":{"this":{"__isSmartRef__":true,"id":2061}},"2161":{"timestamp":{"__isSmartRef__":true,"id":2162},"user":"lauritz","tags":[]},"2162":{"isSerializedDate":true,"string":"Wed Dec 07 2011 06:06:48 GMT+0100 (CET)"},"2163":{"varMapping":{"__isSmartRef__":true,"id":2164},"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":2169},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2164":{"this":{"__isSmartRef__":true,"id":2061},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2165}},"2165":{"$super":{"__isSmartRef__":true,"id":2166}},"2166":{"varMapping":{"__isSmartRef__":true,"id":2167},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2168},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2167":{"obj":{"__isSmartRef__":true,"id":2061},"name":"onBlur"},"2168":{},"2169":{"timestamp":{"__isSmartRef__":true,"id":2170},"user":"lauritz","tags":[]},"2170":{"isSerializedDate":true,"string":"Wed Dec 07 2011 05:30:08 GMT+0100 (CET)"},"2171":{"varMapping":{"__isSmartRef__":true,"id":2172},"source":"function setTarget(target) {\n this.label.setTextString(target.getName() || target.toString());\n}","funcProperties":{"__isSmartRef__":true,"id":2173},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2172":{"this":{"__isSmartRef__":true,"id":2061}},"2173":{"timestamp":{"__isSmartRef__":true,"id":2174},"user":"lauritz","tags":[]},"2174":{"isSerializedDate":true,"string":"Wed Dec 07 2011 04:29:39 GMT+0100 (CET)"},"2175":{"varMapping":{"__isSmartRef__":true,"id":2176},"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":2177},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2176":{"this":{"__isSmartRef__":true,"id":2061}},"2177":{"timestamp":{"__isSmartRef__":true,"id":2178},"user":"lauritz","tags":[]},"2178":{"isSerializedDate":true,"string":"Wed Dec 07 2011 06:12:06 GMT+0100 (CET)"},"2179":{"submorphs":[],"scripts":[],"id":"FC524A19-1A8E-43EC-8033-39970D01EF7C","shape":{"__isSmartRef__":true,"id":2180},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":false,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2186},"_MaxTextWidth":64.8979476392384,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":2183},"showsHalos":false,"_FontSize":9,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"ObjectEditorScriptsText1","partsBinMetaInfo":{"__isSmartRef__":true,"id":2187},"textChunks":[{"__isSmartRef__":true,"id":2188}],"charsReplaced":"Scripts","lastFindLoc":-7,"priorSelectionRange":[0,7],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":2190},"renderContextTable":{"__isSmartRef__":true,"id":2191},"eventHandler":{"__isSmartRef__":true,"id":2192},"_WhiteSpaceHandling":"pre-wrap","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":64.8979476392384,"_MinTextHeight":null,"_ClipMode":"visible","draggingEnabled":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":2193},"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":914},"isCopyMorphRef":true,"morphRefId":27,"derivationIds":[223,"5E3A69EF-26C1-4D0D-B04C-8C3894017F56","14AB1B91-3ED6-49AE-AA58-47D18B6C569F","991D4A54-1FC4-4BC7-AA82-F814AC52CDE3","DB9B19F7-4390-4CE5-9B1D-62177CB8D605","8F7B2EE9-9538-4044-B75B-6A12F3108B70","4B9F9B4B-C7D3-418D-9AC9-10503A4EBF8E","324EE422-8C94-43CE-B964-A3150830C25F"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"2180":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":2181},"_Extent":{"__isSmartRef__":true,"id":2182},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2183},"renderContextTable":{"__isSmartRef__":true,"id":2184},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2185},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2181":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2182":{"x":64.8979476392384,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2183":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2184":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2185":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2186":{"x":198.16434648623274,"y":12.911539589748486,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2187":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"2188":{"style":{"__isSmartRef__":true,"id":2189},"chunkOwner":{"__isSmartRef__":true,"id":2179},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"Target:","__LivelyClassName__":"lively.morphic.TextChunk"},"2189":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"2190":{"x":64.8979476392384,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2191":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"2192":{"morph":{"__isSmartRef__":true,"id":2179},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2193":{"x":41.065989525935834,"y":-10.506047005169194,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2194":{"submorphs":[],"scripts":[],"id":"BAC088D9-331D-44F9-B8A4-AFDF6CB18E28","shape":{"__isSmartRef__":true,"id":2195},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":false,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2201},"_MaxTextWidth":64.8979476392384,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":2198},"showsHalos":false,"_FontSize":9,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"ObjectEditorScriptsText2","partsBinMetaInfo":{"__isSmartRef__":true,"id":2202},"textChunks":[{"__isSmartRef__":true,"id":2203}],"charsReplaced":"Scripts","lastFindLoc":-7,"priorSelectionRange":[0,7],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":2205},"renderContextTable":{"__isSmartRef__":true,"id":2206},"eventHandler":{"__isSmartRef__":true,"id":2207},"_WhiteSpaceHandling":"pre-wrap","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":64.8979476392384,"_MinTextHeight":null,"_ClipMode":"visible","draggingEnabled":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":2208},"eventsAreIgnored":true,"isCopyMorphRef":true,"morphRefId":27,"owner":{"__isSmartRef__":true,"id":914},"derivationIds":[224,"35EF8FE5-067D-45B6-AF21-77040F11D340","80DC09DD-22D4-4089-B5C3-857B32C9BE9B","EF080074-E6B9-47F3-A87F-26313B40C430","F6977801-C1A7-445C-9BF1-8A1019E202FB","8C9157AE-0343-4CFB-8186-1D5E05D2ECBE","DD3C23F8-6463-4EAE-959B-C486E27D9BDA","1E8D3752-D212-41F8-BC63-B094E0C80707"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"2195":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":2196},"_Extent":{"__isSmartRef__":true,"id":2197},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2198},"renderContextTable":{"__isSmartRef__":true,"id":2199},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2200},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2196":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2197":{"x":64.8979476392384,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2198":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2199":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2200":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2201":{"x":10,"y":12.911539589749026,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2202":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"2203":{"style":{"__isSmartRef__":true,"id":2204},"chunkOwner":{"__isSmartRef__":true,"id":2194},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"Tag:","__LivelyClassName__":"lively.morphic.TextChunk"},"2204":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"2205":{"x":64.8979476392384,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2206":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"2207":{"morph":{"__isSmartRef__":true,"id":2194},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2208":{"x":45.76052154281416,"y":-27.783027415339603,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2209":{"submorphs":[{"__isSmartRef__":true,"id":2210}],"scripts":[],"id":"07AE9A96-331B-4A9F-A925-387C5F73F478","shape":{"__isSmartRef__":true,"id":2225},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2241},"value":true,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":2242},"lighterFill":{"__isSmartRef__":true,"id":2228},"label":{"__isSmartRef__":true,"id":2210},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","padding":{"__isSmartRef__":true,"id":2251},"name":"ObjectEditorTagChooser","partsBinMetaInfo":{"__isSmartRef__":true,"id":2252},"listMorph":null,"list":[],"renderContextTable":{"__isSmartRef__":true,"id":2253},"eventHandler":{"__isSmartRef__":true,"id":2254},"distanceToDragEvent":{"__isSmartRef__":true,"id":2255},"priorExtent":{"__isSmartRef__":true,"id":2256},"textString":"PartsBinBrowser","selection":"","_ClipMode":"visible","prevScroll":[0,0],"owner":{"__isSmartRef__":true,"id":914},"setTargetToListSelection":"all","savedTextString":"all","derivationIds":[225,"7F83847B-D0B1-4A31-8601-43424B97C858","E08FC110-71D7-4FFD-B4A8-08F8147B95BA","5534107D-C5C9-48DD-A1ED-B87E9D9B672C","0B89FA7A-768C-4062-98AE-C455E8DAFF19","799320C6-CFBA-40E7-B03D-64BFE9B78248","9B650AA3-271B-4E72-B230-51C6F64B7462","C95D3672-724C-4C2C-9CDD-EF308062F627"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2257},"__LivelyClassName__":"lively.morphic.Button"},"2210":{"submorphs":[],"scripts":[],"id":"6163AE33-DF1C-4EAE-971A-6FEC411D9B0B","shape":{"__isSmartRef__":true,"id":2211},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":130,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2217},"textColor":{"__isSmartRef__":true,"id":2214},"owner":{"__isSmartRef__":true,"id":2209},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":2218}],"padding":{"__isSmartRef__":true,"id":2220},"_Padding":{"__isSmartRef__":true,"id":2220},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":2221},"attributeConnections":[{"__isSmartRef__":true,"id":2222}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"renderContextTable":{"__isSmartRef__":true,"id":2223},"eventHandler":{"__isSmartRef__":true,"id":2224},"_HandStyle":"default","_PointerEvents":"none","_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":130,"_MinTextHeight":null,"_Align":"left","_FontFamily":"Arial","_FontSize":11,"derivationIds":[226,"03DBF3F8-8EA2-4426-BA64-C4297DDAB015","B8F87302-BEC3-48CD-9BBA-6C7DBB6287E1","4AA6AE51-338B-4E3E-814B-9F99C693A2D5","08F6CE56-AD91-4C27-9429-C3DEA313696C","D39C963C-FD24-4498-A6D8-71E5102CE58A","132C2A9E-3466-4051-AAEA-6E485A91F408","DB8BC4A1-ED41-446B-AB6C-7E73DD857B5D"],"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"2211":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":2212},"_Extent":{"__isSmartRef__":true,"id":2213},"_BorderColor":{"__isSmartRef__":true,"id":2214},"renderContextTable":{"__isSmartRef__":true,"id":2215},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":2216},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2212":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2213":{"x":130,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2214":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2215":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2216":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2217":{"x":2,"y":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2218":{"style":{"__isSmartRef__":true,"id":2219},"chunkOwner":{"__isSmartRef__":true,"id":2210},"storedString":"all","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"2219":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"2220":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2221":{"x":130,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2222":{"sourceObj":{"__isSmartRef__":true,"id":2210},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":2209},"targetMethodName":"selection","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2223":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"2224":{"morph":{"__isSmartRef__":true,"id":2210},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2225":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":2226},"_Extent":{"__isSmartRef__":true,"id":2227},"_Fill":{"__isSmartRef__":true,"id":2228},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2238},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":2239},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2240},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2226":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2227":{"x":130,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2228":{"stops":[{"__isSmartRef__":true,"id":2229},{"__isSmartRef__":true,"id":2231},{"__isSmartRef__":true,"id":2233},{"__isSmartRef__":true,"id":2235}],"vector":{"__isSmartRef__":true,"id":2237},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"2229":{"offset":0,"color":{"__isSmartRef__":true,"id":2230}},"2230":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2231":{"offset":0.4,"color":{"__isSmartRef__":true,"id":2232}},"2232":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2233":{"offset":0.6,"color":{"__isSmartRef__":true,"id":2234}},"2234":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2235":{"offset":1,"color":{"__isSmartRef__":true,"id":2236}},"2236":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2237":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2238":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2239":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2240":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2241":{"x":39.12381412396891,"y":10.000000000000057,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2242":{"stops":[{"__isSmartRef__":true,"id":2243},{"__isSmartRef__":true,"id":2245},{"__isSmartRef__":true,"id":2247},{"__isSmartRef__":true,"id":2249}],"vector":{"__isSmartRef__":true,"id":2237},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"2243":{"offset":0,"color":{"__isSmartRef__":true,"id":2244}},"2244":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2245":{"offset":0.4,"color":{"__isSmartRef__":true,"id":2246}},"2246":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2247":{"offset":0.6,"color":{"__isSmartRef__":true,"id":2248}},"2248":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2249":{"offset":1,"color":{"__isSmartRef__":true,"id":2250}},"2250":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2251":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2252":{"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"},"2253":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2254":{"morph":{"__isSmartRef__":true,"id":2209},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2255":{"x":85.7442776093583,"y":-11.582832083333244,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2256":{"x":130,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2257":{"createListMorph":{"__isSmartRef__":true,"id":2258},"getList":{"__isSmartRef__":true,"id":2262},"removeList":{"__isSmartRef__":true,"id":2266},"reset":{"__isSmartRef__":true,"id":2270},"onMouseUp":{"__isSmartRef__":true,"id":2274},"onBlur":{"__isSmartRef__":true,"id":2282},"setTag":{"__isSmartRef__":true,"id":2290}},"2258":{"varMapping":{"__isSmartRef__":true,"id":2259},"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":2260},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2259":{"this":{"__isSmartRef__":true,"id":2209}},"2260":{"timestamp":{"__isSmartRef__":true,"id":2261},"user":"lauritz","categories":[]},"2261":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:35:59 GMT+0100 (CET)"},"2262":{"varMapping":{"__isSmartRef__":true,"id":2263},"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":2264},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2263":{"this":{"__isSmartRef__":true,"id":2209}},"2264":{"timestamp":{"__isSmartRef__":true,"id":2265},"user":"lauritz","tags":[]},"2265":{"isSerializedDate":true,"string":"Fri Dec 16 2011 20:27:25 GMT+0100 (CET)"},"2266":{"varMapping":{"__isSmartRef__":true,"id":2267},"source":"function removeList() {\n this.listMorph && this.listMorph.remove()\n this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":2268},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2267":{"this":{"__isSmartRef__":true,"id":2209}},"2268":{"timestamp":{"__isSmartRef__":true,"id":2269},"user":"lauritz","categories":[]},"2269":{"isSerializedDate":true,"string":"Thu Nov 17 2011 19:06:51 GMT+0100 (CET)"},"2270":{"varMapping":{"__isSmartRef__":true,"id":2271},"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":2272},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2271":{"this":{"__isSmartRef__":true,"id":2209}},"2272":{"timestamp":{"__isSmartRef__":true,"id":2273},"user":"lauritz","tags":[]},"2273":{"isSerializedDate":true,"string":"Fri Dec 16 2011 20:27:53 GMT+0100 (CET)"},"2274":{"varMapping":{"__isSmartRef__":true,"id":2275},"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":2280},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2275":{"this":{"__isSmartRef__":true,"id":2209},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2276}},"2276":{"$super":{"__isSmartRef__":true,"id":2277}},"2277":{"varMapping":{"__isSmartRef__":true,"id":2278},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2279},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2278":{"obj":{"__isSmartRef__":true,"id":2209},"name":"onMouseUp"},"2279":{},"2280":{"timestamp":{"__isSmartRef__":true,"id":2281},"user":"lauritz","categories":[]},"2281":{"isSerializedDate":true,"string":"Thu Nov 17 2011 18:59:16 GMT+0100 (CET)"},"2282":{"varMapping":{"__isSmartRef__":true,"id":2283},"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":2288},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2283":{"this":{"__isSmartRef__":true,"id":2209},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2284}},"2284":{"$super":{"__isSmartRef__":true,"id":2285}},"2285":{"varMapping":{"__isSmartRef__":true,"id":2286},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2287},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2286":{"obj":{"__isSmartRef__":true,"id":2209},"name":"onBlur"},"2287":{},"2288":{"timestamp":{"__isSmartRef__":true,"id":2289},"user":"lauritz","categories":[]},"2289":{"isSerializedDate":true,"string":"Mon Nov 21 2011 23:10:03 GMT+0100 (CET)"},"2290":{"varMapping":{"__isSmartRef__":true,"id":2291},"source":"function setTag(tag) {\n this.setLabel(tag || '');\n this.label.setAlign('left');\n this.owner.setTag(tag);\n}","funcProperties":{"__isSmartRef__":true,"id":2292},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2291":{"this":{"__isSmartRef__":true,"id":2209}},"2292":{"timestamp":{"__isSmartRef__":true,"id":2293},"user":"lauritz","categories":[]},"2293":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:36:12 GMT+0100 (CET)"},"2294":{"submorphs":[{"__isSmartRef__":true,"id":2295}],"scripts":[],"id":"474CFB78-871F-4023-A433-E8693CB3F10A","shape":{"__isSmartRef__":true,"id":2310},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":2314},"lighterFill":{"__isSmartRef__":true,"id":2326},"label":{"__isSmartRef__":true,"id":2295},"name":"Button","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2335},"attributeConnections":[{"__isSmartRef__":true,"id":2336}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","priorExtent":{"__isSmartRef__":true,"id":2372},"renderContextTable":{"__isSmartRef__":true,"id":2373},"eventHandler":{"__isSmartRef__":true,"id":2374},"distanceToDragEvent":{"__isSmartRef__":true,"id":2375},"derivationIds":[7251,"BE69DA70-C9C3-4495-A6B5-413BD2FFA0D1","79FE3D3F-77C4-4B39-8243-D672185B416D","A4D2FEDF-2654-4381-AB43-8F89B9CA2E86","87E42FF6-3862-481D-97D6-643676E15F32","4F370A81-5A80-4821-8ECC-D52B56F31E15"],"_Position":{"__isSmartRef__":true,"id":2376},"owner":{"__isSmartRef__":true,"id":914},"layout":{"__isSmartRef__":true,"id":2377},"_Rotation":0,"_Scale":0.994014980014994,"prevScroll":[0,0],"__LivelyClassName__":"lively.morphic.Button"},"2295":{"submorphs":[],"scripts":[],"id":"D9C4C25D-FDD0-4841-9E96-DAE4DEDC4276","shape":{"__isSmartRef__":true,"id":2296},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2302},"_MaxTextWidth":101,"_MaxTextHeight":null,"textStyle":null,"padding":{"__isSmartRef__":true,"id":2303},"_Padding":{"__isSmartRef__":true,"id":2304},"owner":{"__isSmartRef__":true,"id":2294},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":2305},"textChunks":[{"__isSmartRef__":true,"id":2306}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":2308},"eventHandler":{"__isSmartRef__":true,"id":2309},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[7252,"E0EF3EFE-3ADF-4E46-8705-7BF444E4BCED","307A3596-1175-4EA6-AA27-5BA4C9D95AB7","0EF99131-C569-4C2C-B613-E0D8423C1334","BA4EC8D2-AB29-4F9F-B5A0-715A4746A4C4","56735895-BA99-4D98-9866-AA5DBD86237E"],"_MinTextWidth":101,"_MinTextHeight":null,"__LivelyClassName__":"lively.morphic.Text"},"2296":{"position":{"__isSmartRef__":true,"id":2297},"_Extent":{"__isSmartRef__":true,"id":2298},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2299},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":2300},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":2301},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2297":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2298":{"x":101,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2299":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2300":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2301":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2302":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2303":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2304":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2305":{"x":101,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2306":{"style":{"__isSmartRef__":true,"id":2307},"chunkOwner":{"__isSmartRef__":true,"id":2295},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"run","__LivelyClassName__":"lively.morphic.TextChunk"},"2307":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"2308":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"2309":{"morph":{"__isSmartRef__":true,"id":2295},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2310":{"position":{"__isSmartRef__":true,"id":2311},"_Extent":{"__isSmartRef__":true,"id":2312},"_BorderWidth":1.1840000000000002,"_BorderColor":{"__isSmartRef__":true,"id":2313},"_Fill":{"__isSmartRef__":true,"id":2314},"_BorderRadius":5.2,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":2324},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2325},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2311":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2312":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2313":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2314":{"stops":[{"__isSmartRef__":true,"id":2315},{"__isSmartRef__":true,"id":2317},{"__isSmartRef__":true,"id":2319},{"__isSmartRef__":true,"id":2321}],"vector":{"__isSmartRef__":true,"id":2323},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"2315":{"offset":0,"color":{"__isSmartRef__":true,"id":2316}},"2316":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2317":{"offset":0.4,"color":{"__isSmartRef__":true,"id":2318}},"2318":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2319":{"offset":0.6,"color":{"__isSmartRef__":true,"id":2320}},"2320":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2321":{"offset":1,"color":{"__isSmartRef__":true,"id":2322}},"2322":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2323":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"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":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2326":{"stops":[{"__isSmartRef__":true,"id":2327},{"__isSmartRef__":true,"id":2329},{"__isSmartRef__":true,"id":2331},{"__isSmartRef__":true,"id":2333}],"vector":{"__isSmartRef__":true,"id":2323},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"2327":{"offset":0,"color":{"__isSmartRef__":true,"id":2328}},"2328":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2329":{"offset":0.4,"color":{"__isSmartRef__":true,"id":2330}},"2330":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2331":{"offset":0.6,"color":{"__isSmartRef__":true,"id":2332}},"2332":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2333":{"offset":1,"color":{"__isSmartRef__":true,"id":2334}},"2334":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2335":{"partsSpaceName":"PartsBin/Inputs","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"2336":{"sourceObj":{"__isSmartRef__":true,"id":2294},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":914},"targetMethodName":"runScript","visualConnector":{"__isSmartRef__":true,"id":2337},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2337":{"submorphs":[{"__isSmartRef__":true,"id":2338}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2353},"derivationIds":[null],"id":"C89B50A0-17E7-4D22-AE1D-5112520DAEE7","renderContextTable":{"__isSmartRef__":true,"id":2360},"eventHandler":{"__isSmartRef__":true,"id":2361},"droppingEnabled":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":2362},{"__isSmartRef__":true,"id":2363}],"con":{"__isSmartRef__":true,"id":2336},"showsMorphMenu":true,"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2364},"__LivelyClassName__":"lively.morphic.Path"},"2338":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2339},"derivationIds":[null],"id":"2A71BE9E-6820-46AF-ACED-3C9BDCC918AF","renderContextTable":{"__isSmartRef__":true,"id":2350},"eventHandler":{"__isSmartRef__":true,"id":2351},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2352},"owner":{"__isSmartRef__":true,"id":2337},"_Rotation":-3.130064002485303,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.Path"},"2339":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2340},{"__isSmartRef__":true,"id":2341},{"__isSmartRef__":true,"id":2342},{"__isSmartRef__":true,"id":2343}],"renderContextTable":{"__isSmartRef__":true,"id":2344},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":2345},"_Extent":{"__isSmartRef__":true,"id":2346},"_Padding":{"__isSmartRef__":true,"id":2347},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2348},"_Fill":{"__isSmartRef__":true,"id":2349},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"2340":{"isAbsolute":true,"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"2341":{"isAbsolute":true,"x":-12,"y":6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"2342":{"isAbsolute":true,"x":4,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"2343":{"isAbsolute":true,"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"2344":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"2345":{"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2346":{"x":16,"y":12,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2347":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2348":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2349":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2350":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2351":{"morph":{"__isSmartRef__":true,"id":2338},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2352":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2353":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2354},{"__isSmartRef__":true,"id":2355}],"renderContextTable":{"__isSmartRef__":true,"id":2356},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":2357},"_Extent":{"__isSmartRef__":true,"id":2358},"_Padding":{"__isSmartRef__":true,"id":2359},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2348},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"2354":{"isAbsolute":true,"x":829.7085000406639,"y":9.565843617262885,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"2355":{"isAbsolute":true,"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"2356":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"2357":{"x":-1,"y":-1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2358":{"x":831,"y":11,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2359":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2360":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2361":{"morph":{"__isSmartRef__":true,"id":2337},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2362":{"morph":{"__isSmartRef__":true,"id":2337},"index":0,"connectedMagnet":null,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"2363":{"morph":{"__isSmartRef__":true,"id":2337},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":2338},"markerDirection":"prev","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"2364":{"morphMenuItems":{"__isSmartRef__":true,"id":2365}},"2365":{"varMapping":{"__isSmartRef__":true,"id":2366},"source":"function morphMenuItems() {\n var visualConnector = this, con = this.con, world = this.world();\n var items = [\n ['edit converter', function() {\n var source = con.converterString ||\n 'function converter(value) {\\n return value\\n}',\n editor = new lively.morphic.Text(new Rectangle(0,0, 400, 200), source);\n editor.doitContext = con;\n connect(editor, 'savedTextString', con, 'converterString', {updater:\n function($upd, source) { this.targetObj.converter = null; $upd(source) }});\n connect(editor, 'savedTextString', world, 'alertOK', {converter:\n function() { return 'setting new converter' }})\n editor.applyStyle({syntaxHighlighting: true,\n fontFamily: 'Courier', resizeWidth: true, resizeHeight: true});\n var title = con.targetObj.name && con.sourceObj.name ?\n 'Editor for ' + con.targetObj.name + ' -> ' + con.sourceObj.name :\n 'Editor for converter function';\n var window = world.addFramedMorph(editor, title)\n window.align(window.bounds().topCenter(),\n visualConnector.bounds().bottomCenter())\n }],\n ['hide', function() {\n visualConnector.disconnectFromMagnets();\n visualConnector.remove();\n }],\n ['disconnect', function() {\n alertOK('Disconnected ' + visualConnector.con);\n visualConnector.con.visualDisconnect();\n }],\n ['cancel', function() {}],\n ];\n return items;\n }","funcProperties":{"__isSmartRef__":true,"id":2371},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2366":{"this":{"__isSmartRef__":true,"id":2337},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2367}},"2367":{"$super":{"__isSmartRef__":true,"id":2368}},"2368":{"varMapping":{"__isSmartRef__":true,"id":2369},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2370},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2369":{"obj":{"__isSmartRef__":true,"id":2337},"name":"morphMenuItems"},"2370":{},"2371":{},"2372":{"x":101,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2373":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2374":{"morph":{"__isSmartRef__":true,"id":2294},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2375":{"x":71.99397894387357,"y":-13.030105280631261,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2376":{"x":788.7426780861911,"y":9.508591852040126,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2377":{"centeredHorizontal":false,"moveHorizontal":true},"2378":{"submorphs":[{"__isSmartRef__":true,"id":2379}],"scripts":[],"id":"B31F4840-965B-4D58-A1A9-C8CD5752B63F","shape":{"__isSmartRef__":true,"id":2394},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":2398},"lighterFill":{"__isSmartRef__":true,"id":2410},"label":{"__isSmartRef__":true,"id":2379},"name":"saveButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2419},"attributeConnections":[{"__isSmartRef__":true,"id":2420}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","priorExtent":{"__isSmartRef__":true,"id":2456},"renderContextTable":{"__isSmartRef__":true,"id":2457},"eventHandler":{"__isSmartRef__":true,"id":2458},"distanceToDragEvent":{"__isSmartRef__":true,"id":2459},"derivationIds":[7251,"BE69DA70-C9C3-4495-A6B5-413BD2FFA0D1","79FE3D3F-77C4-4B39-8243-D672185B416D","A4D2FEDF-2654-4381-AB43-8F89B9CA2E86","D686F0CB-027B-4CA9-8B8D-9306389B219D","F51327CB-803E-4234-BFB3-6F5252D1C936","A79280E8-6AE3-4016-AF47-CE78F71924C6"],"layout":{"__isSmartRef__":true,"id":2460},"_Position":{"__isSmartRef__":true,"id":2461},"owner":{"__isSmartRef__":true,"id":914},"_Rotation":0,"_Scale":0.9880657804942089,"prevScroll":[0,0],"__LivelyClassName__":"lively.morphic.Button"},"2379":{"submorphs":[],"scripts":[],"id":"0CF73B4B-755A-47BD-A3A4-ECC3361A3D53","shape":{"__isSmartRef__":true,"id":2380},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2386},"_MaxTextWidth":101,"_MaxTextHeight":null,"textStyle":null,"padding":{"__isSmartRef__":true,"id":2387},"_Padding":{"__isSmartRef__":true,"id":2388},"owner":{"__isSmartRef__":true,"id":2378},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":2389},"textChunks":[{"__isSmartRef__":true,"id":2390}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":2392},"eventHandler":{"__isSmartRef__":true,"id":2393},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[7252,"E0EF3EFE-3ADF-4E46-8705-7BF444E4BCED","307A3596-1175-4EA6-AA27-5BA4C9D95AB7","0EF99131-C569-4C2C-B613-E0D8423C1334","9AECBFB8-25A5-483F-86AD-D7CF9ABC9A25","918C6CC4-3540-4341-BAFD-B195F7807FEE","5AABB138-5EE8-40A5-AB3C-5A9625D0A353"],"_MinTextWidth":101,"_MinTextHeight":null,"__LivelyClassName__":"lively.morphic.Text"},"2380":{"position":{"__isSmartRef__":true,"id":2381},"_Extent":{"__isSmartRef__":true,"id":2382},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2383},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":2384},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":2385},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2381":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2382":{"x":101,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2383":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2384":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2385":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2386":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2387":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2388":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2389":{"x":101,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2390":{"style":{"__isSmartRef__":true,"id":2391},"chunkOwner":{"__isSmartRef__":true,"id":2379},"storedString":"save","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"2391":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"2392":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"2393":{"morph":{"__isSmartRef__":true,"id":2379},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2394":{"position":{"__isSmartRef__":true,"id":2395},"_Extent":{"__isSmartRef__":true,"id":2396},"_BorderWidth":1.1840000000000002,"_BorderColor":{"__isSmartRef__":true,"id":2397},"_Fill":{"__isSmartRef__":true,"id":2398},"_BorderRadius":5.2,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":2408},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2409},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2395":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2396":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2397":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2398":{"stops":[{"__isSmartRef__":true,"id":2399},{"__isSmartRef__":true,"id":2401},{"__isSmartRef__":true,"id":2403},{"__isSmartRef__":true,"id":2405}],"vector":{"__isSmartRef__":true,"id":2407},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"2399":{"offset":0,"color":{"__isSmartRef__":true,"id":2400}},"2400":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2401":{"offset":0.4,"color":{"__isSmartRef__":true,"id":2402}},"2402":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2403":{"offset":0.6,"color":{"__isSmartRef__":true,"id":2404}},"2404":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2405":{"offset":1,"color":{"__isSmartRef__":true,"id":2406}},"2406":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2407":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2408":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2409":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2410":{"stops":[{"__isSmartRef__":true,"id":2411},{"__isSmartRef__":true,"id":2413},{"__isSmartRef__":true,"id":2415},{"__isSmartRef__":true,"id":2417}],"vector":{"__isSmartRef__":true,"id":2407},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"2411":{"offset":0,"color":{"__isSmartRef__":true,"id":2412}},"2412":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2413":{"offset":0.4,"color":{"__isSmartRef__":true,"id":2414}},"2414":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2415":{"offset":0.6,"color":{"__isSmartRef__":true,"id":2416}},"2416":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2417":{"offset":1,"color":{"__isSmartRef__":true,"id":2418}},"2418":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2419":{"partsSpaceName":"PartsBin/Inputs","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"2420":{"sourceObj":{"__isSmartRef__":true,"id":2378},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1410},"targetMethodName":"doSave","visualConnector":{"__isSmartRef__":true,"id":2421},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2421":{"submorphs":[{"__isSmartRef__":true,"id":2422}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2437},"derivationIds":[null],"id":"F46012D5-C8BE-4E52-BF98-D052FDAAE17A","renderContextTable":{"__isSmartRef__":true,"id":2444},"eventHandler":{"__isSmartRef__":true,"id":2445},"droppingEnabled":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":2446},{"__isSmartRef__":true,"id":2447}],"con":{"__isSmartRef__":true,"id":2420},"showsMorphMenu":true,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2448},"__LivelyClassName__":"lively.morphic.Path"},"2422":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2423},"derivationIds":[null],"id":"A2A83C78-09B8-473C-829B-198206D7A9E4","renderContextTable":{"__isSmartRef__":true,"id":2434},"eventHandler":{"__isSmartRef__":true,"id":2435},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2436},"owner":{"__isSmartRef__":true,"id":2421},"_Rotation":3.077607197692381,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.Path"},"2423":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2424},{"__isSmartRef__":true,"id":2425},{"__isSmartRef__":true,"id":2426},{"__isSmartRef__":true,"id":2427}],"renderContextTable":{"__isSmartRef__":true,"id":2428},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":2429},"_Extent":{"__isSmartRef__":true,"id":2430},"_Padding":{"__isSmartRef__":true,"id":2431},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2432},"_Fill":{"__isSmartRef__":true,"id":2433},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"2424":{"isAbsolute":true,"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"2425":{"isAbsolute":true,"x":-12,"y":6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"2426":{"isAbsolute":true,"x":4,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"2427":{"isAbsolute":true,"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"2428":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"2429":{"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2430":{"x":16,"y":12,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2431":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2432":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2433":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2434":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2435":{"morph":{"__isSmartRef__":true,"id":2422},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2436":{"x":201.20421122525056,"y":40.24084224505009,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2437":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2438},{"__isSmartRef__":true,"id":2439}],"renderContextTable":{"__isSmartRef__":true,"id":2440},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":2441},"_Extent":{"__isSmartRef__":true,"id":2442},"_Padding":{"__isSmartRef__":true,"id":2443},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2432},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"2438":{"isAbsolute":true,"x":679.4857209639925,"y":9.595948897894004,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"2439":{"isAbsolute":true,"x":201.20421122525056,"y":40.24084224505009,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"2440":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"2441":{"x":200,"y":9,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2442":{"x":480,"y":32,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2443":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2444":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2445":{"morph":{"__isSmartRef__":true,"id":2421},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2446":{"morph":{"__isSmartRef__":true,"id":2421},"index":0,"connectedMagnet":null,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"2447":{"morph":{"__isSmartRef__":true,"id":2421},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":2422},"markerDirection":"prev","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"2448":{"morphMenuItems":{"__isSmartRef__":true,"id":2449}},"2449":{"varMapping":{"__isSmartRef__":true,"id":2450},"source":"function morphMenuItems() {\n var visualConnector = this, con = this.con, world = this.world();\n var items = [\n ['edit converter', function() {\n var source = con.converterString ||\n 'function converter(value) {\\n return value\\n}',\n editor = new lively.morphic.Text(new Rectangle(0,0, 400, 200), source);\n editor.doitContext = con;\n connect(editor, 'savedTextString', con, 'converterString', {updater:\n function($upd, source) { this.targetObj.converter = null; $upd(source) }});\n connect(editor, 'savedTextString', world, 'alertOK', {converter:\n function() { return 'setting new converter' }})\n editor.applyStyle({syntaxHighlighting: true,\n fontFamily: 'Courier', resizeWidth: true, resizeHeight: true});\n var title = con.targetObj.name && con.sourceObj.name ?\n 'Editor for ' + con.targetObj.name + ' -> ' + con.sourceObj.name :\n 'Editor for converter function';\n var window = world.addFramedMorph(editor, title)\n window.align(window.bounds().topCenter(),\n visualConnector.bounds().bottomCenter())\n }],\n ['hide', function() {\n visualConnector.disconnectFromMagnets();\n visualConnector.remove();\n }],\n ['disconnect', function() {\n alertOK('Disconnected ' + visualConnector.con);\n visualConnector.con.visualDisconnect();\n }],\n ['cancel', function() {}],\n ];\n return items;\n }","funcProperties":{"__isSmartRef__":true,"id":2455},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2450":{"this":{"__isSmartRef__":true,"id":2421},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2451}},"2451":{"$super":{"__isSmartRef__":true,"id":2452}},"2452":{"varMapping":{"__isSmartRef__":true,"id":2453},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2454},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2453":{"obj":{"__isSmartRef__":true,"id":2421},"name":"morphMenuItems"},"2454":{},"2455":{},"2456":{"x":101,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2457":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2458":{"morph":{"__isSmartRef__":true,"id":2378},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2459":{"x":68.77671624028653,"y":-14.497241813457947,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2460":{"centeredHorizontal":false,"moveHorizontal":true},"2461":{"x":675.4189853444968,"y":9.53851695196505,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2462":{"submorphs":[{"__isSmartRef__":true,"id":2463}],"scripts":[],"id":"6E5B2898-C430-4941-89B6-7D5EC471FEA8","shape":{"__isSmartRef__":true,"id":2478},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2494},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":2482},"lighterFill":{"__isSmartRef__":true,"id":2495},"label":{"__isSmartRef__":true,"id":2463},"name":"openTestsButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2504},"attributeConnections":[{"__isSmartRef__":true,"id":2505}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","priorExtent":{"__isSmartRef__":true,"id":2506},"renderContextTable":{"__isSmartRef__":true,"id":2507},"eventHandler":{"__isSmartRef__":true,"id":2508},"distanceToDragEvent":{"__isSmartRef__":true,"id":2509},"derivationIds":[7251,"84054D2E-8176-440D-B413-279956A34FC2","79434046-F834-490E-B705-0CE871D9E8B3"],"owner":{"__isSmartRef__":true,"id":914},"_Rotation":0,"_Scale":0.9940149800149939,"prevScroll":[0,0],"__LivelyClassName__":"lively.morphic.Button"},"2463":{"submorphs":[],"scripts":[],"id":"2513477A-4C94-499C-A4F5-AA8E401F3E7F","shape":{"__isSmartRef__":true,"id":2464},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2470},"_MaxTextWidth":101,"_MaxTextHeight":null,"textStyle":null,"padding":{"__isSmartRef__":true,"id":2471},"_Padding":{"__isSmartRef__":true,"id":2472},"owner":{"__isSmartRef__":true,"id":2462},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":2473},"textChunks":[{"__isSmartRef__":true,"id":2474}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":2476},"eventHandler":{"__isSmartRef__":true,"id":2477},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[7252,"0A0A6CB1-BD92-4F39-A425-2EB3D2D4CBA2","CB475566-05CE-43E2-B04D-EE32BC4CB718"],"_MinTextWidth":101,"_MinTextHeight":null,"__LivelyClassName__":"lively.morphic.Text"},"2464":{"position":{"__isSmartRef__":true,"id":2465},"_Extent":{"__isSmartRef__":true,"id":2466},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2467},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":2468},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":2469},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2465":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2466":{"x":101,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2467":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2468":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2469":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2470":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2471":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2472":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2473":{"x":101,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2474":{"style":{"__isSmartRef__":true,"id":2475},"chunkOwner":{"__isSmartRef__":true,"id":2463},"storedString":"Tests","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"2475":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"2476":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"2477":{"morph":{"__isSmartRef__":true,"id":2463},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2478":{"position":{"__isSmartRef__":true,"id":2479},"_Extent":{"__isSmartRef__":true,"id":2480},"_BorderWidth":1.1840000000000002,"_BorderColor":{"__isSmartRef__":true,"id":2481},"_Fill":{"__isSmartRef__":true,"id":2482},"_BorderRadius":5.2,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":2492},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2493},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2479":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2480":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2481":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2482":{"stops":[{"__isSmartRef__":true,"id":2483},{"__isSmartRef__":true,"id":2485},{"__isSmartRef__":true,"id":2487},{"__isSmartRef__":true,"id":2489}],"vector":{"__isSmartRef__":true,"id":2491},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"2483":{"offset":0,"color":{"__isSmartRef__":true,"id":2484}},"2484":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2485":{"offset":0.4,"color":{"__isSmartRef__":true,"id":2486}},"2486":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2487":{"offset":0.6,"color":{"__isSmartRef__":true,"id":2488}},"2488":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2489":{"offset":1,"color":{"__isSmartRef__":true,"id":2490}},"2490":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2491":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2492":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2493":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2494":{"x":510,"y":10,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2495":{"stops":[{"__isSmartRef__":true,"id":2496},{"__isSmartRef__":true,"id":2498},{"__isSmartRef__":true,"id":2500},{"__isSmartRef__":true,"id":2502}],"vector":{"__isSmartRef__":true,"id":2491},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"2496":{"offset":0,"color":{"__isSmartRef__":true,"id":2497}},"2497":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2498":{"offset":0.4,"color":{"__isSmartRef__":true,"id":2499}},"2499":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2500":{"offset":0.6,"color":{"__isSmartRef__":true,"id":2501}},"2501":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2502":{"offset":1,"color":{"__isSmartRef__":true,"id":2503}},"2503":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2504":{"partsSpaceName":"PartsBin/Inputs","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"2505":{"sourceObj":{"__isSmartRef__":true,"id":2462},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":914},"targetMethodName":"openPartTestRunner","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2506":{"x":101,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"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":2462},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2509":{"x":65.95178327801523,"y":-8.024108360992386,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2510":{"target":{"__isSmartRef__":true,"id":914},"selector":"update","args":[],"stopped":false,"tickTime":500,"currentTimeout":192551,"suspended":false,"__SourceModuleName__":"Global.lively.morphic.Core","__LivelyClassName__":"lively.morphic.TargetScript"},"2511":{"position":{"__isSmartRef__":true,"id":2512},"_Extent":{"__isSmartRef__":true,"id":2513},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2514},"_Fill":{"__isSmartRef__":true,"id":2515},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":2516},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2517},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2512":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2513":{"x":909.0285365288845,"y":526.612532614436,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2514":{"r":0.372,"g":0.369,"b":0.372,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2515":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2516":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"2517":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2518":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","comment":"Edit scripts and connections of a specific morph.","migrationLevel":4,"partName":"ObjectEditorPane","changes":[{"__isSmartRef__":true,"id":2519}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"2519":{"date":{"__isSmartRef__":true,"id":2520},"author":"lauritz","message":"Adapted the update behavior on ticks. Reduces the impact of HTML's autoscroll to selected list items."},"2520":{"isSerializedDate":true,"string":"Fri Oct 21 2011 00:39:30 GMT+0200 (CEST)"},"2521":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2522":{"morph":{"__isSmartRef__":true,"id":914},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2523":{"x":909.0285365288845,"y":526.612532614436,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2524":{"resizeWidth":true,"resizeHeight":true,"adjustForNewBounds":true},"2525":{"x":350.2386236582805,"y":-3.2455173507596555,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2526":{"x":0.971126750461849,"y":21.45669012569269,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2527":{},"2528":{"displayInitialScript":{"__isSmartRef__":true,"id":2529},"displayJavaScriptSource":{"__isSmartRef__":true,"id":2533},"displaySourceForConnection":{"__isSmartRef__":true,"id":2537},"displaySourceForScript":{"__isSmartRef__":true,"id":2541},"generateSourceForConnection":{"__isSmartRef__":true,"id":2545},"generateSourceForScript":{"__isSmartRef__":true,"id":2549},"generateTargetCode":{"__isSmartRef__":true,"id":2553},"newConnection":{"__isSmartRef__":true,"id":2557},"newScript":{"__isSmartRef__":true,"id":2561},"reset":{"__isSmartRef__":true,"id":2565},"selectChangedContent":{"__isSmartRef__":true,"id":2569},"setTarget":{"__isSmartRef__":true,"id":2573},"sortedConnectionNamesOfObj":{"__isSmartRef__":true,"id":2577},"sortedScriptNamesOfObj":{"__isSmartRef__":true,"id":2581},"updateLists":{"__isSmartRef__":true,"id":2585},"onShutdown":{"__isSmartRef__":true,"id":2589},"confirmUnsavedChanges":{"__isSmartRef__":true,"id":2593},"update":{"__isSmartRef__":true,"id":2597},"ensureAnnotationLayer":{"__isSmartRef__":true,"id":2601},"migrateOldScriptAnnotations":{"__isSmartRef__":true,"id":2605},"copyToPartsBinWithUserRequest":{"__isSmartRef__":true,"id":2609},"printTags":{"__isSmartRef__":true,"id":2617},"setTag":{"__isSmartRef__":true,"id":2621},"runScript":{"__isSmartRef__":true,"id":2625},"openPartTestRunner":{"__isSmartRef__":true,"id":2629}},"2529":{"varMapping":{"__isSmartRef__":true,"id":2530},"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":2531},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2530":{"this":{"__isSmartRef__":true,"id":914}},"2531":{"timestamp":{"__isSmartRef__":true,"id":2532},"user":"lauritz","tags":[]},"2532":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:13:43 GMT+0100 (CET)"},"2533":{"varMapping":{"__isSmartRef__":true,"id":2534},"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":2535},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2534":{"this":{"__isSmartRef__":true,"id":914}},"2535":{"timestamp":{"__isSmartRef__":true,"id":2536},"user":"lauritz","tags":[]},"2536":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (CET)"},"2537":{"varMapping":{"__isSmartRef__":true,"id":2538},"source":"function displaySourceForConnection(connection) {\n var code = \"\", that = this;\n if (connection === undefined) return;\n if (connection === null) {\n this.sortedConnectionNamesOfObj(this.target).forEach(function(each) {\n code = code.concat(that.generateSourceForConnection(each[1])).concat(\"\\n\\n\");\n });\n code = code.substring(0, code.length - \"\\n\\n\".length - 1);\n } else {\n code = this.generateSourceForConnection(connection);\n }\n this.displayJavaScriptSource(code);\n}","funcProperties":{"__isSmartRef__":true,"id":2539},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2538":{"this":{"__isSmartRef__":true,"id":914}},"2539":{"timestamp":{"__isSmartRef__":true,"id":2540},"user":"conradcalmez","tags":[]},"2540":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:59:30 GMT+0100 (CET)"},"2541":{"varMapping":{"__isSmartRef__":true,"id":2542},"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":2543},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2542":{"this":{"__isSmartRef__":true,"id":914}},"2543":{"timestamp":{"__isSmartRef__":true,"id":2544},"user":"lauritz","tags":[]},"2544":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:51:37 GMT+0100 (CET)"},"2545":{"varMapping":{"__isSmartRef__":true,"id":2546},"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":2547},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2546":{"this":{"__isSmartRef__":true,"id":914}},"2547":{"timestamp":{"__isSmartRef__":true,"id":2548},"user":"lauritz","tags":[]},"2548":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (CET)"},"2549":{"varMapping":{"__isSmartRef__":true,"id":2550},"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":2551},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2550":{"this":{"__isSmartRef__":true,"id":914}},"2551":{"timestamp":{"__isSmartRef__":true,"id":2552},"user":"lauritz","tags":[]},"2552":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:32:42 GMT+0100 (CET)"},"2553":{"varMapping":{"__isSmartRef__":true,"id":2554},"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":2555},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2554":{"this":{"__isSmartRef__":true,"id":914}},"2555":{"timestamp":{"__isSmartRef__":true,"id":2556},"user":"lauritz","tags":[]},"2556":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (CET)"},"2557":{"varMapping":{"__isSmartRef__":true,"id":2558},"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":2559},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2558":{"this":{"__isSmartRef__":true,"id":914}},"2559":{"timestamp":{"__isSmartRef__":true,"id":2560},"user":"lauritz","tags":[]},"2560":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (CET)"},"2561":{"varMapping":{"__isSmartRef__":true,"id":2562},"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":2563},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2562":{"this":{"__isSmartRef__":true,"id":914}},"2563":{"timestamp":{"__isSmartRef__":true,"id":2564},"user":"lauritz","tags":[]},"2564":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:24:25 GMT+0100 (CET)"},"2565":{"varMapping":{"__isSmartRef__":true,"id":2566},"source":"function reset() {\n this.scriptPane = this.get('ObjectEditorScriptPane')\n this.scriptList = this.get('ObjectEditorScriptList')\n this.connectionList = this.get('ObjectEditorConnectionList')\n this.morphSelector = this.get('ObjectEditorMorphSelector')\n this.target = null;\n this.scriptPane.reset();\n this.scriptList.setList();\n this.scriptList.selection = null;\n this.connectionList.setList();\n this.connectionList.selection = null;\n this.morphSelector.reset();\n this.tagChooser.reset();\n this.currentTag = null;\n this.stopStepping();\n}","funcProperties":{"__isSmartRef__":true,"id":2567},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2566":{"this":{"__isSmartRef__":true,"id":914}},"2567":{"timestamp":{"__isSmartRef__":true,"id":2568},"user":"conradcalmez","tags":[]},"2568":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:57:50 GMT+0100 (CET)"},"2569":{"varMapping":{"__isSmartRef__":true,"id":2570},"source":"function selectChangedContent(source) {\n\n var addScriptRegex = /this\\.addScript\\s*\\(\\s*function\\s*([^\\(]*)/g;\n var addScriptMatches = [];\n var addScriptMatch = addScriptRegex.exec(source);\n while (addScriptMatch) {\n addScriptMatches.push(addScriptMatch[1]);\n addScriptMatch = addScriptRegex.exec(source);\n }\n \n // if scripts were added, select either a specific one or all\n if (addScriptMatches.length > 0) { \n if (addScriptMatches.length === 1) {\n return this.scriptList.selectAddedScript(addScriptMatches[0]);\n }\n return this.scriptList.selectAt(0);\n }\n\n var connectionRegex = \n /connect\\(\\s*([^,]*)\\s*,\\s*\"([^,]*)\"\\s*,\\s*([^,]*)\\s*,\\s*\"([^,]*)\"/g;\n var connectionMatches = [];\n var connectionMatch = connectionRegex.exec(source);\n while (connectionMatch) {\n connectionMatches.push(connectionMatch);\n connectionMatch = connectionRegex.exec(source);\n }\n\n // if connections were made, select either a specific one or all\n if (connectionMatches.length > 0) {\n if (connectionMatches.length === 1) {\n var match = connectionMatches[0];\n for (var i=0; i -1) {\n 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":3803},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3802":{"this":{"__isSmartRef__":true,"id":2953}},"3803":{},"3804":{"varMapping":{"__isSmartRef__":true,"id":3805},"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":3806},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3805":{"this":{"__isSmartRef__":true,"id":2953}},"3806":{},"3807":{"varMapping":{"__isSmartRef__":true,"id":3808},"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":3809},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3808":{"this":{"__isSmartRef__":true,"id":2953}},"3809":{},"3810":{"varMapping":{"__isSmartRef__":true,"id":3811},"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":3812},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3811":{"this":{"__isSmartRef__":true,"id":2953}},"3812":{},"3813":{"varMapping":{"__isSmartRef__":true,"id":3814},"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":4013},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4012":{"this":{"__isSmartRef__":true,"id":3959}},"4013":{"timestamp":{"__isSmartRef__":true,"id":4014},"user":"lauritz","categories":[]},"4014":{"isSerializedDate":true,"string":"Fri Nov 11 2011 01:46:54 GMT+0100 (CET)"},"4015":{"submorphs":[{"__isSmartRef__":true,"id":4016}],"scripts":[],"id":"FFB26CBE-3306-4159-B0BF-BAEC3968B202","shape":{"__isSmartRef__":true,"id":4031},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4047},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":4034},"lighterFill":{"__isSmartRef__":true,"id":4048},"label":{"__isSmartRef__":true,"id":4016},"attributeConnections":[{"__isSmartRef__":true,"id":4057}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","padding":{"__isSmartRef__":true,"id":4059},"name":"ObjectEditorRemoveScriptButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":4060},"renderContextTable":{"__isSmartRef__":true,"id":4061},"priorExtent":{"__isSmartRef__":true,"id":4062},"owner":{"__isSmartRef__":true,"id":2935},"eventHandler":{"__isSmartRef__":true,"id":4063},"isCopyMorphRef":true,"morphRefId":24,"draggingEnabled":false,"objectEditorPane":{"__isSmartRef__":true,"id":2935},"distanceToDragEvent":{"__isSmartRef__":true,"id":4064},"derivationIds":[217,"FDC10087-12CF-4570-9211-8309CB6A9AA3","E18FC530-4B1F-4F08-8DA6-3866A3519E56","04A2AAC3-6A9E-40BB-9408-EBB2567EE63B","8C1A42CE-840C-4AAE-BD79-C93A445B9EBF","61FC11FA-B87E-4EFE-BD15-564D3178B68B","ED34F9B5-9E00-41B3-8313-D9C3D6B3B231","A7481F4B-D444-4B4F-BDA2-4F9F03AEC24D"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4065},"__LivelyClassName__":"lively.morphic.Button"},"4016":{"submorphs":[],"scripts":[],"id":"376F46DA-6678-4917-818D-619568E63451","shape":{"__isSmartRef__":true,"id":4017},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":25,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4023},"textColor":{"__isSmartRef__":true,"id":4020},"owner":{"__isSmartRef__":true,"id":4015},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":4024}],"padding":{"__isSmartRef__":true,"id":4026},"_Padding":{"__isSmartRef__":true,"id":4027},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":4028},"_FontFamily":"Helvetica, Sans-Serif","renderContextTable":{"__isSmartRef__":true,"id":4029},"_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","_Align":"center","eventHandler":{"__isSmartRef__":true,"id":4030},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":25,"_MinTextHeight":null,"draggingEnabled":false,"derivationIds":[218,"852A7BD9-52EE-4708-A2D5-1BDECF33C958","7B4F173E-9726-472A-9B30-530D4AA92AD9","CBA217F6-2832-4213-9ABE-47753C1A4180","E6B97D1D-95D5-4644-9359-1D08D42A51F4","4391A57E-70C2-4628-9828-DD668CCE546E","F0C6C298-3B8B-42B2-B5E9-E5B82F607B01","DF0CAF75-4247-4797-B1A0-AD7444391E2A"],"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"4017":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":4018},"_Extent":{"__isSmartRef__":true,"id":4019},"_BorderColor":{"__isSmartRef__":true,"id":4020},"renderContextTable":{"__isSmartRef__":true,"id":4021},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4022},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4018":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4019":{"x":25,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4020":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4021":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4022":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4023":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4024":{"style":{"__isSmartRef__":true,"id":4025},"morph":{"__isSmartRef__":true,"id":4016},"__SourceModuleName__":"Global.lively.morphic.TextCore","chunkOwner":{"__isSmartRef__":true,"id":4016},"storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk"},"4025":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4026":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4027":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4028":{"x":25,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4029":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4030":{"morph":{"__isSmartRef__":true,"id":4016},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4031":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":4032},"_Extent":{"__isSmartRef__":true,"id":4033},"_Fill":{"__isSmartRef__":true,"id":4034},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4044},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":4045},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4046},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4032":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4033":{"x":25,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4034":{"stops":[{"__isSmartRef__":true,"id":4035},{"__isSmartRef__":true,"id":4037},{"__isSmartRef__":true,"id":4039},{"__isSmartRef__":true,"id":4041}],"vector":{"__isSmartRef__":true,"id":4043},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"4035":{"offset":0,"color":{"__isSmartRef__":true,"id":4036}},"4036":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4037":{"offset":0.4,"color":{"__isSmartRef__":true,"id":4038}},"4038":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4039":{"offset":0.6,"color":{"__isSmartRef__":true,"id":4040}},"4040":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4041":{"offset":1,"color":{"__isSmartRef__":true,"id":4042}},"4042":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4043":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4044":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4045":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4046":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4047":{"x":160,"y":40,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4048":{"stops":[{"__isSmartRef__":true,"id":4049},{"__isSmartRef__":true,"id":4051},{"__isSmartRef__":true,"id":4053},{"__isSmartRef__":true,"id":4055}],"vector":{"__isSmartRef__":true,"id":4043},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"4049":{"offset":0,"color":{"__isSmartRef__":true,"id":4050}},"4050":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4051":{"offset":0.4,"color":{"__isSmartRef__":true,"id":4052}},"4052":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4053":{"offset":0.6,"color":{"__isSmartRef__":true,"id":4054}},"4054":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4055":{"offset":1,"color":{"__isSmartRef__":true,"id":4056}},"4056":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4057":{"sourceObj":{"__isSmartRef__":true,"id":4015},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":4015},"targetMethodName":"deleteSelectedScript","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":4058},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4058":{"source":{"__isSmartRef__":true,"id":4015},"target":{"__isSmartRef__":true,"id":4015}},"4059":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4060":{"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"},"4061":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4062":{"x":30,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4063":{"morph":{"__isSmartRef__":true,"id":4015},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4064":{"x":33.35839679439101,"y":-21.324811622839547,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4065":{"deleteSelectedScript":{"__isSmartRef__":true,"id":4066}},"4066":{"varMapping":{"__isSmartRef__":true,"id":4067},"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":4068},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4067":{"this":{"__isSmartRef__":true,"id":4015}},"4068":{"timestamp":{"__isSmartRef__":true,"id":4069},"user":"lauritz"},"4069":{"isSerializedDate":true,"string":"Thu Nov 17 2011 18:12:21 GMT+0100 (CET)"},"4070":{"submorphs":[{"__isSmartRef__":true,"id":4071}],"scripts":[],"id":"AFCDBB08-0357-48AA-AE53-D88E4C42F9D0","shape":{"__isSmartRef__":true,"id":4086},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4102},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":4089},"lighterFill":{"__isSmartRef__":true,"id":4103},"label":{"__isSmartRef__":true,"id":4071},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","padding":{"__isSmartRef__":true,"id":4112},"name":"ObjectEditorMorphSelector","partsBinMetaInfo":{"__isSmartRef__":true,"id":4113},"list":[],"renderContextTable":{"__isSmartRef__":true,"id":4114},"eventHandler":{"__isSmartRef__":true,"id":4115},"distanceToDragEvent":{"__isSmartRef__":true,"id":4116},"priorExtent":{"__isSmartRef__":true,"id":4117},"owner":{"__isSmartRef__":true,"id":2935},"textString":"","selection":{"__isSmartRef__":true,"id":4118},"_ClipMode":"visible","prevScroll":[0,0],"listMorph":null,"derivationIds":[221,"4AC64FBA-95AC-42B2-A078-B6DA97889093","E26ED0E6-C4CE-4C82-94D5-175270E8459E","D292F2FC-C2B6-48AE-B779-8CC5868FFA49","53A862EB-032C-4BF0-9B21-58C7E0C0A9B2","CC4D188B-510F-48DE-A0E1-EC8D2CD63F9F","0CD057F2-3517-4849-A69E-1EF79B05ACE8","66EBBB7D-8FA7-4D43-AE78-A18DA3B970BA"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4135},"__LivelyClassName__":"lively.morphic.Button"},"4071":{"submorphs":[],"scripts":[],"id":"C195C81C-215F-4527-9C31-149BFE995823","shape":{"__isSmartRef__":true,"id":4072},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":220,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4078},"textColor":{"__isSmartRef__":true,"id":4075},"owner":{"__isSmartRef__":true,"id":4070},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":4079}],"padding":{"__isSmartRef__":true,"id":4081},"_Padding":{"__isSmartRef__":true,"id":4081},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":4082},"attributeConnections":[{"__isSmartRef__":true,"id":4083}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"renderContextTable":{"__isSmartRef__":true,"id":4084},"eventHandler":{"__isSmartRef__":true,"id":4085},"_HandStyle":"default","_PointerEvents":"none","_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":220,"_MinTextHeight":null,"_Align":"left","_FontFamily":"Arial","_FontSize":11,"derivationIds":[222,"30F054A3-7658-405B-8098-B7D87AA8A9ED","556D6E07-45B7-42EC-A486-DE275EF0B034","06B0B080-467A-46CC-8B0D-9C0A9B9A71F1","5E2D96C9-BB9B-4735-8673-A79847435197","B48AA022-2022-4A2A-9090-4D884FB3DFD3","8B2F743A-98C5-45E1-B03C-5019114EAC47","D09C56C3-A2DC-4BDF-B8A1-6365138ECD01"],"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"4072":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":4073},"_Extent":{"__isSmartRef__":true,"id":4074},"_BorderColor":{"__isSmartRef__":true,"id":4075},"renderContextTable":{"__isSmartRef__":true,"id":4076},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4077},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4073":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4074":{"x":220,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4075":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4076":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4077":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4078":{"x":2,"y":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4079":{"style":{"__isSmartRef__":true,"id":4080},"chunkOwner":{"__isSmartRef__":true,"id":4071},"storedString":"WhiteBoard3","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"4080":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4081":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4082":{"x":220,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4083":{"sourceObj":{"__isSmartRef__":true,"id":4071},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":4070},"targetMethodName":"selection","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4084":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4085":{"morph":{"__isSmartRef__":true,"id":4071},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4086":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":4087},"_Extent":{"__isSmartRef__":true,"id":4088},"_Fill":{"__isSmartRef__":true,"id":4089},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4099},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":4100},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4101},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4087":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4088":{"x":220,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4089":{"stops":[{"__isSmartRef__":true,"id":4090},{"__isSmartRef__":true,"id":4092},{"__isSmartRef__":true,"id":4094},{"__isSmartRef__":true,"id":4096}],"vector":{"__isSmartRef__":true,"id":4098},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"4090":{"offset":0,"color":{"__isSmartRef__":true,"id":4091}},"4091":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4092":{"offset":0.4,"color":{"__isSmartRef__":true,"id":4093}},"4093":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4094":{"offset":0.6,"color":{"__isSmartRef__":true,"id":4095}},"4095":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4096":{"offset":1,"color":{"__isSmartRef__":true,"id":4097}},"4097":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4098":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4099":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4100":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4101":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4102":{"x":240.1308656788165,"y":10,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4103":{"stops":[{"__isSmartRef__":true,"id":4104},{"__isSmartRef__":true,"id":4106},{"__isSmartRef__":true,"id":4108},{"__isSmartRef__":true,"id":4110}],"vector":{"__isSmartRef__":true,"id":4098},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"4104":{"offset":0,"color":{"__isSmartRef__":true,"id":4105}},"4105":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4106":{"offset":0.4,"color":{"__isSmartRef__":true,"id":4107}},"4107":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4108":{"offset":0.6,"color":{"__isSmartRef__":true,"id":4109}},"4109":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4110":{"offset":1,"color":{"__isSmartRef__":true,"id":4111}},"4111":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4112":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4113":{"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"},"4114":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4115":{"morph":{"__isSmartRef__":true,"id":4070},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4116":{"x":122.93118375058827,"y":-11.582832083333244,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4117":{"x":220,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4118":{"submorphs":[],"scripts":[],"id":181,"shape":{"__isSmartRef__":true,"id":4119},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4125},"_MaxTextWidth":580,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":4126},"showsHalos":false,"_FontSize":28,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"Title","partsBinMetaInfo":{"__isSmartRef__":true,"id":4127},"_TextColor":{"__isSmartRef__":true,"id":4128},"renderContextTable":{"__isSmartRef__":true,"id":4129},"textChunks":[{"__isSmartRef__":true,"id":4130}],"eventHandler":{"__isSmartRef__":true,"id":4132},"priorExtent":{"__isSmartRef__":true,"id":4133},"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":4134},"_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","isCopyMorphRef":true,"morphRefId":2,"prevScroll":[0,0],"__LivelyClassName__":"lively.morphic.Text"},"4119":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":4120},"_Extent":{"__isSmartRef__":true,"id":4121},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4122},"renderContextTable":{"__isSmartRef__":true,"id":4123},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4124},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4120":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4121":{"x":580,"y":43,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4122":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4123":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4124":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4125":{"x":37,"y":23,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4126":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4127":{"partsSpaceName":"PartsBin/Worlds/","__SourceModuleName__":"Global.lively.PartsBin","comment":"For example a world title.","partName":"Title","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"4128":{"r":0,"g":0.309,"b":0.595,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4129":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4130":{"style":{"__isSmartRef__":true,"id":4131},"chunkOwner":{"__isSmartRef__":true,"id":4118},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk"},"4131":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4132":{"morph":{"__isSmartRef__":true,"id":4118},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4133":{"x":580,"y":43,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4134":{"x":221,"y":-12,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4135":{"createListMorph":{"__isSmartRef__":true,"id":4136},"getList":{"__isSmartRef__":true,"id":4140},"removeList":{"__isSmartRef__":true,"id":4144},"reset":{"__isSmartRef__":true,"id":4148},"displayTopLevelMorphs":{"__isSmartRef__":true,"id":4152},"onMouseDown":{"__isSmartRef__":true,"id":4156},"setTargetOfPane":{"__isSmartRef__":true,"id":4164},"setTargetToListSelection":{"__isSmartRef__":true,"id":4168},"onBlur":{"__isSmartRef__":true,"id":4172},"setTarget":{"__isSmartRef__":true,"id":4180},"setTargetOnSelection":{"__isSmartRef__":true,"id":4184}},"4136":{"varMapping":{"__isSmartRef__":true,"id":4137},"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":4138},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4137":{"this":{"__isSmartRef__":true,"id":4070}},"4138":{"timestamp":{"__isSmartRef__":true,"id":4139},"user":"lauritz","tags":[]},"4139":{"isSerializedDate":true,"string":"Tue Dec 13 2011 18:55:41 GMT+0100 (CET)"},"4140":{"varMapping":{"__isSmartRef__":true,"id":4141},"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":4142},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4141":{"this":{"__isSmartRef__":true,"id":4070}},"4142":{"timestamp":{"__isSmartRef__":true,"id":4143},"user":"lauritz","tags":[]},"4143":{"isSerializedDate":true,"string":"Mon Nov 21 2011 23:12:23 GMT+0100 (CET)"},"4144":{"varMapping":{"__isSmartRef__":true,"id":4145},"source":"function removeList() {\n this.listMorph && this.listMorph.remove();\n this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":4146},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4145":{"this":{"__isSmartRef__":true,"id":4070}},"4146":{"timestamp":{"__isSmartRef__":true,"id":4147},"user":"lauritz","tags":[]},"4147":{"isSerializedDate":true,"string":"Wed Dec 07 2011 05:51:07 GMT+0100 (CET)"},"4148":{"varMapping":{"__isSmartRef__":true,"id":4149},"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":4150},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4149":{"this":{"__isSmartRef__":true,"id":4070}},"4150":{"timestamp":{"__isSmartRef__":true,"id":4151},"user":"lauritz","tags":[]},"4151":{"isSerializedDate":true,"string":"Wed Dec 07 2011 05:34:06 GMT+0100 (CET)"},"4152":{"varMapping":{"__isSmartRef__":true,"id":4153},"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":4154},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4153":{"this":{"__isSmartRef__":true,"id":4070}},"4154":{"timestamp":{"__isSmartRef__":true,"id":4155},"user":"lauritz","tags":[]},"4155":{"isSerializedDate":true,"string":"Tue Dec 13 2011 18:53:20 GMT+0100 (CET)"},"4156":{"varMapping":{"__isSmartRef__":true,"id":4157},"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":4162},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4157":{"this":{"__isSmartRef__":true,"id":4070},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4158}},"4158":{"$super":{"__isSmartRef__":true,"id":4159}},"4159":{"varMapping":{"__isSmartRef__":true,"id":4160},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4161},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4160":{"obj":{"__isSmartRef__":true,"id":4070},"name":"onMouseDown"},"4161":{},"4162":{"timestamp":{"__isSmartRef__":true,"id":4163},"user":"lauritz","tags":[]},"4163":{"isSerializedDate":true,"string":"Wed Dec 07 2011 05:30:39 GMT+0100 (CET)"},"4164":{"varMapping":{"__isSmartRef__":true,"id":4165},"source":"function setTargetOfPane(selection) {\n this.owner.setTarget(selection);\n this.label.setAlign('left');\n}","funcProperties":{"__isSmartRef__":true,"id":4166},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4165":{"this":{"__isSmartRef__":true,"id":4070}},"4166":{"timestamp":{"__isSmartRef__":true,"id":4167},"user":"lauritz","tags":[]},"4167":{"isSerializedDate":true,"string":"Wed Dec 07 2011 04:30:42 GMT+0100 (CET)"},"4168":{"varMapping":{"__isSmartRef__":true,"id":4169},"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":4170},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4169":{"this":{"__isSmartRef__":true,"id":4070}},"4170":{"timestamp":{"__isSmartRef__":true,"id":4171},"user":"lauritz","tags":[]},"4171":{"isSerializedDate":true,"string":"Wed Dec 07 2011 06:06:48 GMT+0100 (CET)"},"4172":{"varMapping":{"__isSmartRef__":true,"id":4173},"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":4178},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4173":{"this":{"__isSmartRef__":true,"id":4070},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4174}},"4174":{"$super":{"__isSmartRef__":true,"id":4175}},"4175":{"varMapping":{"__isSmartRef__":true,"id":4176},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4177},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4176":{"obj":{"__isSmartRef__":true,"id":4070},"name":"onBlur"},"4177":{},"4178":{"timestamp":{"__isSmartRef__":true,"id":4179},"user":"lauritz","tags":[]},"4179":{"isSerializedDate":true,"string":"Wed Dec 07 2011 05:30:08 GMT+0100 (CET)"},"4180":{"varMapping":{"__isSmartRef__":true,"id":4181},"source":"function setTarget(target) {\n this.label.setTextString(target.getName() || target.toString());\n}","funcProperties":{"__isSmartRef__":true,"id":4182},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4181":{"this":{"__isSmartRef__":true,"id":4070}},"4182":{"timestamp":{"__isSmartRef__":true,"id":4183},"user":"lauritz","tags":[]},"4183":{"isSerializedDate":true,"string":"Wed Dec 07 2011 04:29:39 GMT+0100 (CET)"},"4184":{"varMapping":{"__isSmartRef__":true,"id":4185},"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":4186},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4185":{"this":{"__isSmartRef__":true,"id":4070}},"4186":{"timestamp":{"__isSmartRef__":true,"id":4187},"user":"lauritz","tags":[]},"4187":{"isSerializedDate":true,"string":"Wed Dec 07 2011 06:12:06 GMT+0100 (CET)"},"4188":{"submorphs":[],"scripts":[],"id":"989BF63C-C949-4804-A762-7E9850051606","shape":{"__isSmartRef__":true,"id":4189},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":false,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4195},"_MaxTextWidth":64.8979476392384,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":4192},"showsHalos":false,"_FontSize":9,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"ObjectEditorScriptsText1","partsBinMetaInfo":{"__isSmartRef__":true,"id":4196},"textChunks":[{"__isSmartRef__":true,"id":4197}],"charsReplaced":"Scripts","lastFindLoc":-7,"priorSelectionRange":[0,7],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":4199},"renderContextTable":{"__isSmartRef__":true,"id":4200},"eventHandler":{"__isSmartRef__":true,"id":4201},"_WhiteSpaceHandling":"pre-wrap","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":64.8979476392384,"_MinTextHeight":null,"_ClipMode":"visible","draggingEnabled":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":4202},"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":2935},"isCopyMorphRef":true,"morphRefId":27,"derivationIds":[223,"5E3A69EF-26C1-4D0D-B04C-8C3894017F56","14AB1B91-3ED6-49AE-AA58-47D18B6C569F","991D4A54-1FC4-4BC7-AA82-F814AC52CDE3","DB9B19F7-4390-4CE5-9B1D-62177CB8D605","8F7B2EE9-9538-4044-B75B-6A12F3108B70","4B9F9B4B-C7D3-418D-9AC9-10503A4EBF8E","324EE422-8C94-43CE-B964-A3150830C25F"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"4189":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":4190},"_Extent":{"__isSmartRef__":true,"id":4191},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4192},"renderContextTable":{"__isSmartRef__":true,"id":4193},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4194},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4190":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4191":{"x":64.8979476392384,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4192":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4193":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4194":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4195":{"x":198.16434648623274,"y":12.911539589748486,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4196":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"4197":{"style":{"__isSmartRef__":true,"id":4198},"chunkOwner":{"__isSmartRef__":true,"id":4188},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"Target:","__LivelyClassName__":"lively.morphic.TextChunk"},"4198":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4199":{"x":64.8979476392384,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4200":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4201":{"morph":{"__isSmartRef__":true,"id":4188},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4202":{"x":41.065989525935834,"y":-10.506047005169194,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4203":{"submorphs":[],"scripts":[],"id":"2689C5A8-0D15-432C-A46C-FAE3FAD8DCEC","shape":{"__isSmartRef__":true,"id":4204},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":false,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4210},"_MaxTextWidth":64.8979476392384,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":4207},"showsHalos":false,"_FontSize":9,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"ObjectEditorScriptsText2","partsBinMetaInfo":{"__isSmartRef__":true,"id":4211},"textChunks":[{"__isSmartRef__":true,"id":4212}],"charsReplaced":"Scripts","lastFindLoc":-7,"priorSelectionRange":[0,7],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":4214},"renderContextTable":{"__isSmartRef__":true,"id":4215},"eventHandler":{"__isSmartRef__":true,"id":4216},"_WhiteSpaceHandling":"pre-wrap","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":64.8979476392384,"_MinTextHeight":null,"_ClipMode":"visible","draggingEnabled":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":4217},"eventsAreIgnored":true,"isCopyMorphRef":true,"morphRefId":27,"owner":{"__isSmartRef__":true,"id":2935},"derivationIds":[224,"35EF8FE5-067D-45B6-AF21-77040F11D340","80DC09DD-22D4-4089-B5C3-857B32C9BE9B","EF080074-E6B9-47F3-A87F-26313B40C430","F6977801-C1A7-445C-9BF1-8A1019E202FB","8C9157AE-0343-4CFB-8186-1D5E05D2ECBE","DD3C23F8-6463-4EAE-959B-C486E27D9BDA","1E8D3752-D212-41F8-BC63-B094E0C80707"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"4204":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":4205},"_Extent":{"__isSmartRef__":true,"id":4206},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4207},"renderContextTable":{"__isSmartRef__":true,"id":4208},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4209},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4205":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4206":{"x":64.8979476392384,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4207":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4208":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4209":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4210":{"x":10,"y":12.911539589749026,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4211":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"4212":{"style":{"__isSmartRef__":true,"id":4213},"chunkOwner":{"__isSmartRef__":true,"id":4203},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"Tag:","__LivelyClassName__":"lively.morphic.TextChunk"},"4213":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4214":{"x":64.8979476392384,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"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":{"morph":{"__isSmartRef__":true,"id":4203},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4217":{"x":45.76052154281416,"y":-27.783027415339603,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4218":{"submorphs":[{"__isSmartRef__":true,"id":4219}],"scripts":[],"id":"59B7DC83-8524-4290-A07A-DA6F09ED79C9","shape":{"__isSmartRef__":true,"id":4234},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4250},"value":true,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":4251},"lighterFill":{"__isSmartRef__":true,"id":4237},"label":{"__isSmartRef__":true,"id":4219},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","padding":{"__isSmartRef__":true,"id":4260},"name":"ObjectEditorTagChooser","partsBinMetaInfo":{"__isSmartRef__":true,"id":4261},"listMorph":null,"list":[],"renderContextTable":{"__isSmartRef__":true,"id":4262},"eventHandler":{"__isSmartRef__":true,"id":4263},"distanceToDragEvent":{"__isSmartRef__":true,"id":4264},"priorExtent":{"__isSmartRef__":true,"id":4265},"textString":"PartsBinBrowser","selection":"","_ClipMode":"visible","prevScroll":[0,0],"owner":{"__isSmartRef__":true,"id":2935},"setTargetToListSelection":"all","savedTextString":"all","derivationIds":[225,"7F83847B-D0B1-4A31-8601-43424B97C858","E08FC110-71D7-4FFD-B4A8-08F8147B95BA","5534107D-C5C9-48DD-A1ED-B87E9D9B672C","0B89FA7A-768C-4062-98AE-C455E8DAFF19","799320C6-CFBA-40E7-B03D-64BFE9B78248","9B650AA3-271B-4E72-B230-51C6F64B7462","C95D3672-724C-4C2C-9CDD-EF308062F627"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4266},"__LivelyClassName__":"lively.morphic.Button"},"4219":{"submorphs":[],"scripts":[],"id":"D1BC7A64-2BD0-49ED-99AC-5D077AE34D21","shape":{"__isSmartRef__":true,"id":4220},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":130,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4226},"textColor":{"__isSmartRef__":true,"id":4223},"owner":{"__isSmartRef__":true,"id":4218},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":4227}],"padding":{"__isSmartRef__":true,"id":4229},"_Padding":{"__isSmartRef__":true,"id":4229},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":4230},"attributeConnections":[{"__isSmartRef__":true,"id":4231}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"renderContextTable":{"__isSmartRef__":true,"id":4232},"eventHandler":{"__isSmartRef__":true,"id":4233},"_HandStyle":"default","_PointerEvents":"none","_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":130,"_MinTextHeight":null,"_Align":"left","_FontFamily":"Arial","_FontSize":11,"derivationIds":[226,"03DBF3F8-8EA2-4426-BA64-C4297DDAB015","B8F87302-BEC3-48CD-9BBA-6C7DBB6287E1","4AA6AE51-338B-4E3E-814B-9F99C693A2D5","08F6CE56-AD91-4C27-9429-C3DEA313696C","D39C963C-FD24-4498-A6D8-71E5102CE58A","132C2A9E-3466-4051-AAEA-6E485A91F408","DB8BC4A1-ED41-446B-AB6C-7E73DD857B5D"],"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"4220":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":4221},"_Extent":{"__isSmartRef__":true,"id":4222},"_BorderColor":{"__isSmartRef__":true,"id":4223},"renderContextTable":{"__isSmartRef__":true,"id":4224},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4225},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4221":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4222":{"x":130,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4223":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4224":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4225":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4226":{"x":2,"y":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4227":{"style":{"__isSmartRef__":true,"id":4228},"chunkOwner":{"__isSmartRef__":true,"id":4219},"storedString":"all","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"4228":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4229":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4230":{"x":130,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4231":{"sourceObj":{"__isSmartRef__":true,"id":4219},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":4218},"targetMethodName":"selection","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"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","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4233":{"morph":{"__isSmartRef__":true,"id":4219},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4234":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":4235},"_Extent":{"__isSmartRef__":true,"id":4236},"_Fill":{"__isSmartRef__":true,"id":4237},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4247},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":4248},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4249},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4235":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4236":{"x":130,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4237":{"stops":[{"__isSmartRef__":true,"id":4238},{"__isSmartRef__":true,"id":4240},{"__isSmartRef__":true,"id":4242},{"__isSmartRef__":true,"id":4244}],"vector":{"__isSmartRef__":true,"id":4246},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"4238":{"offset":0,"color":{"__isSmartRef__":true,"id":4239}},"4239":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4240":{"offset":0.4,"color":{"__isSmartRef__":true,"id":4241}},"4241":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4242":{"offset":0.6,"color":{"__isSmartRef__":true,"id":4243}},"4243":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4244":{"offset":1,"color":{"__isSmartRef__":true,"id":4245}},"4245":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4246":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4247":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4248":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4249":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4250":{"x":39.12381412396891,"y":10.000000000000057,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4251":{"stops":[{"__isSmartRef__":true,"id":4252},{"__isSmartRef__":true,"id":4254},{"__isSmartRef__":true,"id":4256},{"__isSmartRef__":true,"id":4258}],"vector":{"__isSmartRef__":true,"id":4246},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"4252":{"offset":0,"color":{"__isSmartRef__":true,"id":4253}},"4253":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4254":{"offset":0.4,"color":{"__isSmartRef__":true,"id":4255}},"4255":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4256":{"offset":0.6,"color":{"__isSmartRef__":true,"id":4257}},"4257":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4258":{"offset":1,"color":{"__isSmartRef__":true,"id":4259}},"4259":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4260":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4261":{"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"},"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":4218},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4264":{"x":85.7442776093583,"y":-11.582832083333244,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4265":{"x":130,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4266":{"createListMorph":{"__isSmartRef__":true,"id":4267},"getList":{"__isSmartRef__":true,"id":4271},"removeList":{"__isSmartRef__":true,"id":4275},"reset":{"__isSmartRef__":true,"id":4279},"onMouseUp":{"__isSmartRef__":true,"id":4283},"onBlur":{"__isSmartRef__":true,"id":4291},"setTag":{"__isSmartRef__":true,"id":4299}},"4267":{"varMapping":{"__isSmartRef__":true,"id":4268},"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":4269},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4268":{"this":{"__isSmartRef__":true,"id":4218}},"4269":{"timestamp":{"__isSmartRef__":true,"id":4270},"user":"lauritz","categories":[]},"4270":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:35:59 GMT+0100 (CET)"},"4271":{"varMapping":{"__isSmartRef__":true,"id":4272},"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":4273},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4272":{"this":{"__isSmartRef__":true,"id":4218}},"4273":{"timestamp":{"__isSmartRef__":true,"id":4274},"user":"lauritz","tags":[]},"4274":{"isSerializedDate":true,"string":"Fri Dec 16 2011 20:27:25 GMT+0100 (CET)"},"4275":{"varMapping":{"__isSmartRef__":true,"id":4276},"source":"function removeList() {\n this.listMorph && this.listMorph.remove()\n this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":4277},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4276":{"this":{"__isSmartRef__":true,"id":4218}},"4277":{"timestamp":{"__isSmartRef__":true,"id":4278},"user":"lauritz","categories":[]},"4278":{"isSerializedDate":true,"string":"Thu Nov 17 2011 19:06:51 GMT+0100 (CET)"},"4279":{"varMapping":{"__isSmartRef__":true,"id":4280},"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":4281},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4280":{"this":{"__isSmartRef__":true,"id":4218}},"4281":{"timestamp":{"__isSmartRef__":true,"id":4282},"user":"lauritz","tags":[]},"4282":{"isSerializedDate":true,"string":"Fri Dec 16 2011 20:27:53 GMT+0100 (CET)"},"4283":{"varMapping":{"__isSmartRef__":true,"id":4284},"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":4289},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4284":{"this":{"__isSmartRef__":true,"id":4218},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4285}},"4285":{"$super":{"__isSmartRef__":true,"id":4286}},"4286":{"varMapping":{"__isSmartRef__":true,"id":4287},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4288},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4287":{"obj":{"__isSmartRef__":true,"id":4218},"name":"onMouseUp"},"4288":{},"4289":{"timestamp":{"__isSmartRef__":true,"id":4290},"user":"lauritz","categories":[]},"4290":{"isSerializedDate":true,"string":"Thu Nov 17 2011 18:59:16 GMT+0100 (CET)"},"4291":{"varMapping":{"__isSmartRef__":true,"id":4292},"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":4297},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4292":{"this":{"__isSmartRef__":true,"id":4218},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4293}},"4293":{"$super":{"__isSmartRef__":true,"id":4294}},"4294":{"varMapping":{"__isSmartRef__":true,"id":4295},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4296},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4295":{"obj":{"__isSmartRef__":true,"id":4218},"name":"onBlur"},"4296":{},"4297":{"timestamp":{"__isSmartRef__":true,"id":4298},"user":"lauritz","categories":[]},"4298":{"isSerializedDate":true,"string":"Mon Nov 21 2011 23:10:03 GMT+0100 (CET)"},"4299":{"varMapping":{"__isSmartRef__":true,"id":4300},"source":"function setTag(tag) {\n this.setLabel(tag || '');\n this.label.setAlign('left');\n this.owner.setTag(tag);\n}","funcProperties":{"__isSmartRef__":true,"id":4301},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4300":{"this":{"__isSmartRef__":true,"id":4218}},"4301":{"timestamp":{"__isSmartRef__":true,"id":4302},"user":"lauritz","categories":[]},"4302":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:36:12 GMT+0100 (CET)"},"4303":{"submorphs":[{"__isSmartRef__":true,"id":4304}],"scripts":[],"id":"66DB6560-7EC4-4C29-83FC-DA0B90A5C882","shape":{"__isSmartRef__":true,"id":4319},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":4323},"lighterFill":{"__isSmartRef__":true,"id":4335},"label":{"__isSmartRef__":true,"id":4304},"name":"Button","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":4344},"attributeConnections":[{"__isSmartRef__":true,"id":4345}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","priorExtent":{"__isSmartRef__":true,"id":4381},"renderContextTable":{"__isSmartRef__":true,"id":4382},"eventHandler":{"__isSmartRef__":true,"id":4383},"distanceToDragEvent":{"__isSmartRef__":true,"id":4384},"derivationIds":[7251,"BE69DA70-C9C3-4495-A6B5-413BD2FFA0D1","79FE3D3F-77C4-4B39-8243-D672185B416D","A4D2FEDF-2654-4381-AB43-8F89B9CA2E86","87E42FF6-3862-481D-97D6-643676E15F32","4F370A81-5A80-4821-8ECC-D52B56F31E15"],"_Position":{"__isSmartRef__":true,"id":4385},"owner":{"__isSmartRef__":true,"id":2935},"layout":{"__isSmartRef__":true,"id":4386},"_Rotation":0,"_Scale":0.994014980014994,"prevScroll":[0,0],"__LivelyClassName__":"lively.morphic.Button"},"4304":{"submorphs":[],"scripts":[],"id":"ADB7119E-0B36-47F0-ABB1-FE7669994C25","shape":{"__isSmartRef__":true,"id":4305},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4311},"_MaxTextWidth":101,"_MaxTextHeight":null,"textStyle":null,"padding":{"__isSmartRef__":true,"id":4312},"_Padding":{"__isSmartRef__":true,"id":4313},"owner":{"__isSmartRef__":true,"id":4303},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":4314},"textChunks":[{"__isSmartRef__":true,"id":4315}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":4317},"eventHandler":{"__isSmartRef__":true,"id":4318},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[7252,"E0EF3EFE-3ADF-4E46-8705-7BF444E4BCED","307A3596-1175-4EA6-AA27-5BA4C9D95AB7","0EF99131-C569-4C2C-B613-E0D8423C1334","BA4EC8D2-AB29-4F9F-B5A0-715A4746A4C4","56735895-BA99-4D98-9866-AA5DBD86237E"],"_MinTextWidth":101,"_MinTextHeight":null,"__LivelyClassName__":"lively.morphic.Text"},"4305":{"position":{"__isSmartRef__":true,"id":4306},"_Extent":{"__isSmartRef__":true,"id":4307},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4308},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":4309},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4310},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4306":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4307":{"x":101,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4308":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4309":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4310":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4311":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4312":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4313":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4314":{"x":101,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4315":{"style":{"__isSmartRef__":true,"id":4316},"chunkOwner":{"__isSmartRef__":true,"id":4304},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"run","__LivelyClassName__":"lively.morphic.TextChunk"},"4316":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4317":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4318":{"morph":{"__isSmartRef__":true,"id":4304},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4319":{"position":{"__isSmartRef__":true,"id":4320},"_Extent":{"__isSmartRef__":true,"id":4321},"_BorderWidth":1.1840000000000002,"_BorderColor":{"__isSmartRef__":true,"id":4322},"_Fill":{"__isSmartRef__":true,"id":4323},"_BorderRadius":5.2,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":4333},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4334},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4320":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4321":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4322":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4323":{"stops":[{"__isSmartRef__":true,"id":4324},{"__isSmartRef__":true,"id":4326},{"__isSmartRef__":true,"id":4328},{"__isSmartRef__":true,"id":4330}],"vector":{"__isSmartRef__":true,"id":4332},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"4324":{"offset":0,"color":{"__isSmartRef__":true,"id":4325}},"4325":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4326":{"offset":0.4,"color":{"__isSmartRef__":true,"id":4327}},"4327":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4328":{"offset":0.6,"color":{"__isSmartRef__":true,"id":4329}},"4329":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4330":{"offset":1,"color":{"__isSmartRef__":true,"id":4331}},"4331":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4332":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4333":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4334":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4335":{"stops":[{"__isSmartRef__":true,"id":4336},{"__isSmartRef__":true,"id":4338},{"__isSmartRef__":true,"id":4340},{"__isSmartRef__":true,"id":4342}],"vector":{"__isSmartRef__":true,"id":4332},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"4336":{"offset":0,"color":{"__isSmartRef__":true,"id":4337}},"4337":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4338":{"offset":0.4,"color":{"__isSmartRef__":true,"id":4339}},"4339":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4340":{"offset":0.6,"color":{"__isSmartRef__":true,"id":4341}},"4341":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4342":{"offset":1,"color":{"__isSmartRef__":true,"id":4343}},"4343":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4344":{"partsSpaceName":"PartsBin/Inputs","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"4345":{"sourceObj":{"__isSmartRef__":true,"id":4303},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":2935},"targetMethodName":"runScript","visualConnector":{"__isSmartRef__":true,"id":4346},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4346":{"submorphs":[{"__isSmartRef__":true,"id":4347}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4362},"derivationIds":[null],"id":"C89B50A0-17E7-4D22-AE1D-5112520DAEE7","renderContextTable":{"__isSmartRef__":true,"id":4369},"eventHandler":{"__isSmartRef__":true,"id":4370},"droppingEnabled":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":4371},{"__isSmartRef__":true,"id":4372}],"con":{"__isSmartRef__":true,"id":4345},"showsMorphMenu":true,"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4373},"__LivelyClassName__":"lively.morphic.Path"},"4347":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4348},"derivationIds":[null],"id":"2A71BE9E-6820-46AF-ACED-3C9BDCC918AF","renderContextTable":{"__isSmartRef__":true,"id":4359},"eventHandler":{"__isSmartRef__":true,"id":4360},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":4361},"owner":{"__isSmartRef__":true,"id":4346},"_Rotation":-3.130064002485303,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.Path"},"4348":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4349},{"__isSmartRef__":true,"id":4350},{"__isSmartRef__":true,"id":4351},{"__isSmartRef__":true,"id":4352}],"renderContextTable":{"__isSmartRef__":true,"id":4353},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":4354},"_Extent":{"__isSmartRef__":true,"id":4355},"_Padding":{"__isSmartRef__":true,"id":4356},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4357},"_Fill":{"__isSmartRef__":true,"id":4358},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"4349":{"isAbsolute":true,"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"4350":{"isAbsolute":true,"x":-12,"y":6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"4351":{"isAbsolute":true,"x":4,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"4352":{"isAbsolute":true,"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"4353":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4354":{"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4355":{"x":16,"y":12,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4356":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4357":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4358":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4359":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4360":{"morph":{"__isSmartRef__":true,"id":4347},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4361":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4362":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4363},{"__isSmartRef__":true,"id":4364}],"renderContextTable":{"__isSmartRef__":true,"id":4365},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":4366},"_Extent":{"__isSmartRef__":true,"id":4367},"_Padding":{"__isSmartRef__":true,"id":4368},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4357},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"4363":{"isAbsolute":true,"x":829.7085000406639,"y":9.565843617262885,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"4364":{"isAbsolute":true,"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"4365":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4366":{"x":-1,"y":-1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4367":{"x":831,"y":11,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4368":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4369":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4370":{"morph":{"__isSmartRef__":true,"id":4346},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4371":{"morph":{"__isSmartRef__":true,"id":4346},"index":0,"connectedMagnet":null,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"4372":{"morph":{"__isSmartRef__":true,"id":4346},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":4347},"markerDirection":"prev","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"4373":{"morphMenuItems":{"__isSmartRef__":true,"id":4374}},"4374":{"varMapping":{"__isSmartRef__":true,"id":4375},"source":"function morphMenuItems() {\n var visualConnector = this, con = this.con, world = this.world();\n var items = [\n ['edit converter', function() {\n var source = con.converterString ||\n 'function converter(value) {\\n return value\\n}',\n editor = new lively.morphic.Text(new Rectangle(0,0, 400, 200), source);\n editor.doitContext = con;\n connect(editor, 'savedTextString', con, 'converterString', {updater:\n function($upd, source) { this.targetObj.converter = null; $upd(source) }});\n connect(editor, 'savedTextString', world, 'alertOK', {converter:\n function() { return 'setting new converter' }})\n editor.applyStyle({syntaxHighlighting: true,\n fontFamily: 'Courier', resizeWidth: true, resizeHeight: true});\n var title = con.targetObj.name && con.sourceObj.name ?\n 'Editor for ' + con.targetObj.name + ' -> ' + con.sourceObj.name :\n 'Editor for converter function';\n var window = world.addFramedMorph(editor, title)\n window.align(window.bounds().topCenter(),\n visualConnector.bounds().bottomCenter())\n }],\n ['hide', function() {\n visualConnector.disconnectFromMagnets();\n visualConnector.remove();\n }],\n ['disconnect', function() {\n alertOK('Disconnected ' + visualConnector.con);\n visualConnector.con.visualDisconnect();\n }],\n ['cancel', function() {}],\n ];\n return items;\n }","funcProperties":{"__isSmartRef__":true,"id":4380},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4375":{"this":{"__isSmartRef__":true,"id":4346},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4376}},"4376":{"$super":{"__isSmartRef__":true,"id":4377}},"4377":{"varMapping":{"__isSmartRef__":true,"id":4378},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4379},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4378":{"obj":{"__isSmartRef__":true,"id":4346},"name":"morphMenuItems"},"4379":{},"4380":{},"4381":{"x":101,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4382":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4383":{"morph":{"__isSmartRef__":true,"id":4303},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4384":{"x":71.99397894387357,"y":-13.030105280631261,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4385":{"x":788.7426780861911,"y":9.508591852040126,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4386":{"centeredHorizontal":false,"moveHorizontal":true},"4387":{"submorphs":[{"__isSmartRef__":true,"id":4388}],"scripts":[],"id":"79EA8BEC-765E-403A-9D71-4E8D0F92DBE5","shape":{"__isSmartRef__":true,"id":4403},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":4407},"lighterFill":{"__isSmartRef__":true,"id":4419},"label":{"__isSmartRef__":true,"id":4388},"name":"saveButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":4428},"attributeConnections":[{"__isSmartRef__":true,"id":4429}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","priorExtent":{"__isSmartRef__":true,"id":4465},"renderContextTable":{"__isSmartRef__":true,"id":4466},"eventHandler":{"__isSmartRef__":true,"id":4467},"distanceToDragEvent":{"__isSmartRef__":true,"id":4468},"derivationIds":[7251,"BE69DA70-C9C3-4495-A6B5-413BD2FFA0D1","79FE3D3F-77C4-4B39-8243-D672185B416D","A4D2FEDF-2654-4381-AB43-8F89B9CA2E86","D686F0CB-027B-4CA9-8B8D-9306389B219D","F51327CB-803E-4234-BFB3-6F5252D1C936","A79280E8-6AE3-4016-AF47-CE78F71924C6"],"layout":{"__isSmartRef__":true,"id":4469},"_Position":{"__isSmartRef__":true,"id":4470},"owner":{"__isSmartRef__":true,"id":2935},"_Rotation":0,"_Scale":0.9880657804942089,"prevScroll":[0,0],"__LivelyClassName__":"lively.morphic.Button"},"4388":{"submorphs":[],"scripts":[],"id":"1DFC4BE2-0021-4F4E-A27E-AF1876498C7B","shape":{"__isSmartRef__":true,"id":4389},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4395},"_MaxTextWidth":101,"_MaxTextHeight":null,"textStyle":null,"padding":{"__isSmartRef__":true,"id":4396},"_Padding":{"__isSmartRef__":true,"id":4397},"owner":{"__isSmartRef__":true,"id":4387},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":4398},"textChunks":[{"__isSmartRef__":true,"id":4399}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":4401},"eventHandler":{"__isSmartRef__":true,"id":4402},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[7252,"E0EF3EFE-3ADF-4E46-8705-7BF444E4BCED","307A3596-1175-4EA6-AA27-5BA4C9D95AB7","0EF99131-C569-4C2C-B613-E0D8423C1334","9AECBFB8-25A5-483F-86AD-D7CF9ABC9A25","918C6CC4-3540-4341-BAFD-B195F7807FEE","5AABB138-5EE8-40A5-AB3C-5A9625D0A353"],"_MinTextWidth":101,"_MinTextHeight":null,"__LivelyClassName__":"lively.morphic.Text"},"4389":{"position":{"__isSmartRef__":true,"id":4390},"_Extent":{"__isSmartRef__":true,"id":4391},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4392},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":4393},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4394},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4390":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4391":{"x":101,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4392":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4393":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4394":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4395":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4396":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4397":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4398":{"x":101,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4399":{"style":{"__isSmartRef__":true,"id":4400},"chunkOwner":{"__isSmartRef__":true,"id":4388},"storedString":"save","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"4400":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4401":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4402":{"morph":{"__isSmartRef__":true,"id":4388},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4403":{"position":{"__isSmartRef__":true,"id":4404},"_Extent":{"__isSmartRef__":true,"id":4405},"_BorderWidth":1.1840000000000002,"_BorderColor":{"__isSmartRef__":true,"id":4406},"_Fill":{"__isSmartRef__":true,"id":4407},"_BorderRadius":5.2,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":4417},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4418},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4404":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4405":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4406":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4407":{"stops":[{"__isSmartRef__":true,"id":4408},{"__isSmartRef__":true,"id":4410},{"__isSmartRef__":true,"id":4412},{"__isSmartRef__":true,"id":4414}],"vector":{"__isSmartRef__":true,"id":4416},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"4408":{"offset":0,"color":{"__isSmartRef__":true,"id":4409}},"4409":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4410":{"offset":0.4,"color":{"__isSmartRef__":true,"id":4411}},"4411":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4412":{"offset":0.6,"color":{"__isSmartRef__":true,"id":4413}},"4413":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4414":{"offset":1,"color":{"__isSmartRef__":true,"id":4415}},"4415":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4416":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4417":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4418":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4419":{"stops":[{"__isSmartRef__":true,"id":4420},{"__isSmartRef__":true,"id":4422},{"__isSmartRef__":true,"id":4424},{"__isSmartRef__":true,"id":4426}],"vector":{"__isSmartRef__":true,"id":4416},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"4420":{"offset":0,"color":{"__isSmartRef__":true,"id":4421}},"4421":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4422":{"offset":0.4,"color":{"__isSmartRef__":true,"id":4423}},"4423":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4424":{"offset":0.6,"color":{"__isSmartRef__":true,"id":4425}},"4425":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4426":{"offset":1,"color":{"__isSmartRef__":true,"id":4427}},"4427":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4428":{"partsSpaceName":"PartsBin/Inputs","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"4429":{"sourceObj":{"__isSmartRef__":true,"id":4387},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":3431},"targetMethodName":"doSave","visualConnector":{"__isSmartRef__":true,"id":4430},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4430":{"submorphs":[{"__isSmartRef__":true,"id":4431}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4446},"derivationIds":[null],"id":"F46012D5-C8BE-4E52-BF98-D052FDAAE17A","renderContextTable":{"__isSmartRef__":true,"id":4453},"eventHandler":{"__isSmartRef__":true,"id":4454},"droppingEnabled":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":4455},{"__isSmartRef__":true,"id":4456}],"con":{"__isSmartRef__":true,"id":4429},"showsMorphMenu":true,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4457},"__LivelyClassName__":"lively.morphic.Path"},"4431":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4432},"derivationIds":[null],"id":"A2A83C78-09B8-473C-829B-198206D7A9E4","renderContextTable":{"__isSmartRef__":true,"id":4443},"eventHandler":{"__isSmartRef__":true,"id":4444},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":4445},"owner":{"__isSmartRef__":true,"id":4430},"_Rotation":3.077607197692381,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.Path"},"4432":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4433},{"__isSmartRef__":true,"id":4434},{"__isSmartRef__":true,"id":4435},{"__isSmartRef__":true,"id":4436}],"renderContextTable":{"__isSmartRef__":true,"id":4437},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":4438},"_Extent":{"__isSmartRef__":true,"id":4439},"_Padding":{"__isSmartRef__":true,"id":4440},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4441},"_Fill":{"__isSmartRef__":true,"id":4442},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"4433":{"isAbsolute":true,"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"4434":{"isAbsolute":true,"x":-12,"y":6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"4435":{"isAbsolute":true,"x":4,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"4436":{"isAbsolute":true,"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"4437":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4438":{"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4439":{"x":16,"y":12,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4440":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4441":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4442":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4443":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4444":{"morph":{"__isSmartRef__":true,"id":4431},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4445":{"x":201.20421122525056,"y":40.24084224505009,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4446":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4447},{"__isSmartRef__":true,"id":4448}],"renderContextTable":{"__isSmartRef__":true,"id":4449},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":4450},"_Extent":{"__isSmartRef__":true,"id":4451},"_Padding":{"__isSmartRef__":true,"id":4452},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4441},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"4447":{"isAbsolute":true,"x":679.4857209639925,"y":9.595948897894004,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"4448":{"isAbsolute":true,"x":201.20421122525056,"y":40.24084224505009,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"4449":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4450":{"x":200,"y":9,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4451":{"x":480,"y":32,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4452":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4453":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4454":{"morph":{"__isSmartRef__":true,"id":4430},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4455":{"morph":{"__isSmartRef__":true,"id":4430},"index":0,"connectedMagnet":null,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"4456":{"morph":{"__isSmartRef__":true,"id":4430},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":4431},"markerDirection":"prev","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"4457":{"morphMenuItems":{"__isSmartRef__":true,"id":4458}},"4458":{"varMapping":{"__isSmartRef__":true,"id":4459},"source":"function morphMenuItems() {\n var visualConnector = this, con = this.con, world = this.world();\n var items = [\n ['edit converter', function() {\n var source = con.converterString ||\n 'function converter(value) {\\n return value\\n}',\n editor = new lively.morphic.Text(new Rectangle(0,0, 400, 200), source);\n editor.doitContext = con;\n connect(editor, 'savedTextString', con, 'converterString', {updater:\n function($upd, source) { this.targetObj.converter = null; $upd(source) }});\n connect(editor, 'savedTextString', world, 'alertOK', {converter:\n function() { return 'setting new converter' }})\n editor.applyStyle({syntaxHighlighting: true,\n fontFamily: 'Courier', resizeWidth: true, resizeHeight: true});\n var title = con.targetObj.name && con.sourceObj.name ?\n 'Editor for ' + con.targetObj.name + ' -> ' + con.sourceObj.name :\n 'Editor for converter function';\n var window = world.addFramedMorph(editor, title)\n window.align(window.bounds().topCenter(),\n visualConnector.bounds().bottomCenter())\n }],\n ['hide', function() {\n visualConnector.disconnectFromMagnets();\n visualConnector.remove();\n }],\n ['disconnect', function() {\n alertOK('Disconnected ' + visualConnector.con);\n visualConnector.con.visualDisconnect();\n }],\n ['cancel', function() {}],\n ];\n return items;\n }","funcProperties":{"__isSmartRef__":true,"id":4464},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4459":{"this":{"__isSmartRef__":true,"id":4430},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4460}},"4460":{"$super":{"__isSmartRef__":true,"id":4461}},"4461":{"varMapping":{"__isSmartRef__":true,"id":4462},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4463},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4462":{"obj":{"__isSmartRef__":true,"id":4430},"name":"morphMenuItems"},"4463":{},"4464":{},"4465":{"x":101,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4466":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4467":{"morph":{"__isSmartRef__":true,"id":4387},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4468":{"x":68.77671624028653,"y":-14.497241813457947,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4469":{"centeredHorizontal":false,"moveHorizontal":true},"4470":{"x":675.4189853444968,"y":9.53851695196505,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4471":{"submorphs":[{"__isSmartRef__":true,"id":4472}],"scripts":[],"id":"E0A63E7B-1AFF-4F03-A06C-D8E7C50F5450","shape":{"__isSmartRef__":true,"id":4487},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4503},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":4491},"lighterFill":{"__isSmartRef__":true,"id":4504},"label":{"__isSmartRef__":true,"id":4472},"name":"openTestsButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":4513},"attributeConnections":[{"__isSmartRef__":true,"id":4514}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","priorExtent":{"__isSmartRef__":true,"id":4515},"renderContextTable":{"__isSmartRef__":true,"id":4516},"eventHandler":{"__isSmartRef__":true,"id":4517},"distanceToDragEvent":{"__isSmartRef__":true,"id":4518},"derivationIds":[7251,"84054D2E-8176-440D-B413-279956A34FC2","79434046-F834-490E-B705-0CE871D9E8B3"],"owner":{"__isSmartRef__":true,"id":2935},"_Rotation":0,"_Scale":0.9940149800149939,"prevScroll":[0,0],"__LivelyClassName__":"lively.morphic.Button"},"4472":{"submorphs":[],"scripts":[],"id":"864AE4F2-0F5B-423F-B105-AECA61373EC0","shape":{"__isSmartRef__":true,"id":4473},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4479},"_MaxTextWidth":101,"_MaxTextHeight":null,"textStyle":null,"padding":{"__isSmartRef__":true,"id":4480},"_Padding":{"__isSmartRef__":true,"id":4481},"owner":{"__isSmartRef__":true,"id":4471},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":4482},"textChunks":[{"__isSmartRef__":true,"id":4483}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":4485},"eventHandler":{"__isSmartRef__":true,"id":4486},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[7252,"0A0A6CB1-BD92-4F39-A425-2EB3D2D4CBA2","CB475566-05CE-43E2-B04D-EE32BC4CB718"],"_MinTextWidth":101,"_MinTextHeight":null,"__LivelyClassName__":"lively.morphic.Text"},"4473":{"position":{"__isSmartRef__":true,"id":4474},"_Extent":{"__isSmartRef__":true,"id":4475},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4476},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":4477},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":4478},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4474":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4475":{"x":101,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4476":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4477":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4478":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4479":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4480":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4481":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4482":{"x":101,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4483":{"style":{"__isSmartRef__":true,"id":4484},"chunkOwner":{"__isSmartRef__":true,"id":4472},"storedString":"Tests","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"4484":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"4485":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"4486":{"morph":{"__isSmartRef__":true,"id":4472},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4487":{"position":{"__isSmartRef__":true,"id":4488},"_Extent":{"__isSmartRef__":true,"id":4489},"_BorderWidth":1.1840000000000002,"_BorderColor":{"__isSmartRef__":true,"id":4490},"_Fill":{"__isSmartRef__":true,"id":4491},"_BorderRadius":5.2,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":4501},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4502},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4488":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4489":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4490":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4491":{"stops":[{"__isSmartRef__":true,"id":4492},{"__isSmartRef__":true,"id":4494},{"__isSmartRef__":true,"id":4496},{"__isSmartRef__":true,"id":4498}],"vector":{"__isSmartRef__":true,"id":4500},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"4492":{"offset":0,"color":{"__isSmartRef__":true,"id":4493}},"4493":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4494":{"offset":0.4,"color":{"__isSmartRef__":true,"id":4495}},"4495":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4496":{"offset":0.6,"color":{"__isSmartRef__":true,"id":4497}},"4497":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4498":{"offset":1,"color":{"__isSmartRef__":true,"id":4499}},"4499":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4500":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4501":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"4502":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4503":{"x":510,"y":10,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4504":{"stops":[{"__isSmartRef__":true,"id":4505},{"__isSmartRef__":true,"id":4507},{"__isSmartRef__":true,"id":4509},{"__isSmartRef__":true,"id":4511}],"vector":{"__isSmartRef__":true,"id":4500},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"4505":{"offset":0,"color":{"__isSmartRef__":true,"id":4506}},"4506":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4507":{"offset":0.4,"color":{"__isSmartRef__":true,"id":4508}},"4508":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4509":{"offset":0.6,"color":{"__isSmartRef__":true,"id":4510}},"4510":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4511":{"offset":1,"color":{"__isSmartRef__":true,"id":4512}},"4512":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4513":{"partsSpaceName":"PartsBin/Inputs","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"4514":{"sourceObj":{"__isSmartRef__":true,"id":4471},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":2935},"targetMethodName":"openPartTestRunner","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4515":{"x":101,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4516":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4517":{"morph":{"__isSmartRef__":true,"id":4471},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4518":{"x":65.95178327801523,"y":-8.024108360992386,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4519":{"target":{"__isSmartRef__":true,"id":2935},"selector":"update","args":[],"stopped":false,"tickTime":500,"currentTimeout":192550,"suspended":false,"__SourceModuleName__":"Global.lively.morphic.Core","__LivelyClassName__":"lively.morphic.TargetScript"},"4520":{"position":{"__isSmartRef__":true,"id":4521},"_Extent":{"__isSmartRef__":true,"id":4522},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4523},"_Fill":{"__isSmartRef__":true,"id":4524},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":4525},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4526},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4521":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4522":{"x":909.0285365288845,"y":526.612532614436,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4523":{"r":0.372,"g":0.369,"b":0.372,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4524":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"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":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4527":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","comment":"Edit scripts and connections of a specific morph.","migrationLevel":4,"partName":"ObjectEditorPane","changes":[{"__isSmartRef__":true,"id":4528}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"4528":{"date":{"__isSmartRef__":true,"id":4529},"author":"lauritz","message":"Adapted the update behavior on ticks. Reduces the impact of HTML's autoscroll to selected list items."},"4529":{"isSerializedDate":true,"string":"Fri Oct 21 2011 00:39:30 GMT+0200 (CEST)"},"4530":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4531":{"morph":{"__isSmartRef__":true,"id":2935},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4532":{"x":909.0285365288845,"y":526.612532614436,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4533":{"resizeWidth":true,"resizeHeight":true,"adjustForNewBounds":true},"4534":{"x":350.2386236582805,"y":-3.2455173507596555,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4535":{"x":0.971126750461849,"y":21.45669012569269,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4536":{},"4537":{"displayInitialScript":{"__isSmartRef__":true,"id":4538},"displayJavaScriptSource":{"__isSmartRef__":true,"id":4542},"displaySourceForConnection":{"__isSmartRef__":true,"id":4546},"displaySourceForScript":{"__isSmartRef__":true,"id":4550},"generateSourceForConnection":{"__isSmartRef__":true,"id":4554},"generateSourceForScript":{"__isSmartRef__":true,"id":4558},"generateTargetCode":{"__isSmartRef__":true,"id":4562},"newConnection":{"__isSmartRef__":true,"id":4566},"newScript":{"__isSmartRef__":true,"id":4570},"reset":{"__isSmartRef__":true,"id":4574},"selectChangedContent":{"__isSmartRef__":true,"id":4578},"setTarget":{"__isSmartRef__":true,"id":4582},"sortedConnectionNamesOfObj":{"__isSmartRef__":true,"id":4586},"sortedScriptNamesOfObj":{"__isSmartRef__":true,"id":4590},"updateLists":{"__isSmartRef__":true,"id":4594},"onShutdown":{"__isSmartRef__":true,"id":4598},"confirmUnsavedChanges":{"__isSmartRef__":true,"id":4602},"update":{"__isSmartRef__":true,"id":4606},"ensureAnnotationLayer":{"__isSmartRef__":true,"id":4610},"migrateOldScriptAnnotations":{"__isSmartRef__":true,"id":4614},"copyToPartsBinWithUserRequest":{"__isSmartRef__":true,"id":4618},"printTags":{"__isSmartRef__":true,"id":4626},"setTag":{"__isSmartRef__":true,"id":4630},"runScript":{"__isSmartRef__":true,"id":4634},"openPartTestRunner":{"__isSmartRef__":true,"id":4638}},"4538":{"varMapping":{"__isSmartRef__":true,"id":4539},"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":4540},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4539":{"this":{"__isSmartRef__":true,"id":2935}},"4540":{"timestamp":{"__isSmartRef__":true,"id":4541},"user":"lauritz","tags":[]},"4541":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:13:43 GMT+0100 (CET)"},"4542":{"varMapping":{"__isSmartRef__":true,"id":4543},"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":4544},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4543":{"this":{"__isSmartRef__":true,"id":2935}},"4544":{"timestamp":{"__isSmartRef__":true,"id":4545},"user":"lauritz","tags":[]},"4545":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (CET)"},"4546":{"varMapping":{"__isSmartRef__":true,"id":4547},"source":"function displaySourceForConnection(connection) {\n var code = \"\", that = this;\n if (connection === undefined) return;\n if (connection === null) {\n this.sortedConnectionNamesOfObj(this.target).forEach(function(each) {\n code = code.concat(that.generateSourceForConnection(each[1])).concat(\"\\n\\n\");\n });\n code = code.substring(0, code.length - \"\\n\\n\".length - 1);\n } else {\n code = this.generateSourceForConnection(connection);\n }\n this.displayJavaScriptSource(code);\n}","funcProperties":{"__isSmartRef__":true,"id":4548},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4547":{"this":{"__isSmartRef__":true,"id":2935}},"4548":{"timestamp":{"__isSmartRef__":true,"id":4549},"user":"conradcalmez","tags":[]},"4549":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:59:30 GMT+0100 (CET)"},"4550":{"varMapping":{"__isSmartRef__":true,"id":4551},"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":4552},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4551":{"this":{"__isSmartRef__":true,"id":2935}},"4552":{"timestamp":{"__isSmartRef__":true,"id":4553},"user":"lauritz","tags":[]},"4553":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:51:37 GMT+0100 (CET)"},"4554":{"varMapping":{"__isSmartRef__":true,"id":4555},"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":4556},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4555":{"this":{"__isSmartRef__":true,"id":2935}},"4556":{"timestamp":{"__isSmartRef__":true,"id":4557},"user":"lauritz","tags":[]},"4557":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (CET)"},"4558":{"varMapping":{"__isSmartRef__":true,"id":4559},"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":4560},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4559":{"this":{"__isSmartRef__":true,"id":2935}},"4560":{"timestamp":{"__isSmartRef__":true,"id":4561},"user":"lauritz","tags":[]},"4561":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:32:42 GMT+0100 (CET)"},"4562":{"varMapping":{"__isSmartRef__":true,"id":4563},"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":4564},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4563":{"this":{"__isSmartRef__":true,"id":2935}},"4564":{"timestamp":{"__isSmartRef__":true,"id":4565},"user":"lauritz","tags":[]},"4565":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (CET)"},"4566":{"varMapping":{"__isSmartRef__":true,"id":4567},"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":4568},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4567":{"this":{"__isSmartRef__":true,"id":2935}},"4568":{"timestamp":{"__isSmartRef__":true,"id":4569},"user":"lauritz","tags":[]},"4569":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (CET)"},"4570":{"varMapping":{"__isSmartRef__":true,"id":4571},"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":4572},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4571":{"this":{"__isSmartRef__":true,"id":2935}},"4572":{"timestamp":{"__isSmartRef__":true,"id":4573},"user":"lauritz","tags":[]},"4573":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:24:25 GMT+0100 (CET)"},"4574":{"varMapping":{"__isSmartRef__":true,"id":4575},"source":"function reset() {\n this.scriptPane = this.get('ObjectEditorScriptPane')\n this.scriptList = this.get('ObjectEditorScriptList')\n this.connectionList = this.get('ObjectEditorConnectionList')\n this.morphSelector = this.get('ObjectEditorMorphSelector')\n this.target = null;\n this.scriptPane.reset();\n this.scriptList.setList();\n this.scriptList.selection = null;\n this.connectionList.setList();\n this.connectionList.selection = null;\n this.morphSelector.reset();\n this.tagChooser.reset();\n this.currentTag = null;\n this.stopStepping();\n}","funcProperties":{"__isSmartRef__":true,"id":4576},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4575":{"this":{"__isSmartRef__":true,"id":2935}},"4576":{"timestamp":{"__isSmartRef__":true,"id":4577},"user":"conradcalmez","tags":[]},"4577":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:57:50 GMT+0100 (CET)"},"4578":{"varMapping":{"__isSmartRef__":true,"id":4579},"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","extent":{"__isSmartRef__":true,"id":4941},"__SourceModuleName__":"Global.lively.morphic.Shapes","_Extent":{"__isSmartRef__":true,"id":4942},"__LivelyClassName__":"lively.morphic.Shapes.External"},"4939":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getExtent":"getExtentHTML","initFromStringifiedShapeNode":"initFromStringifiedShapeNodeHTML"},"4940":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4941":{"x":300,"y":150,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4942":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"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":4937},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4945":{"x":995,"y":2142,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4946":{"partName":"WhiteBoard","requiredModules":[],"partsSpaceName":"PartsBin/BP2012","comment":"A morph that has a canvas as its shape.","changes":[{"__isSmartRef__":true,"id":4947},{"__isSmartRef__":true,"id":4949},{"__isSmartRef__":true,"id":4951},{"__isSmartRef__":true,"id":4953},{"__isSmartRef__":true,"id":4955},{"__isSmartRef__":true,"id":4957},{"__isSmartRef__":true,"id":4959},{"__isSmartRef__":true,"id":4961},{"__isSmartRef__":true,"id":4963}],"migrationLevel":4,"revisionOnLoad":152831,"__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"4947":{"date":{"__isSmartRef__":true,"id":4948},"author":"conradcalmez","message":"initial commit","id":"D262F8FB-F5EB-498A-A5DF-31BC7F58613B"},"4948":{"isSerializedDate":true,"string":"Thu Apr 12 2012 19:59:04 GMT+0200 (CEST)"},"4949":{"date":{"__isSmartRef__":true,"id":4950},"author":"conradcalmez","message":"now with broken sync features","id":"102D4E0F-9485-446E-97C2-C5424D0B5E3A"},"4950":{"isSerializedDate":true,"string":"Tue Apr 17 2012 12:02:14 GMT+0200 (CEST)"},"4951":{"date":{"__isSmartRef__":true,"id":4952},"author":"conradcalmez","message":"now with broken sync features","id":"2E3F8836-6EE4-4977-A531-59319E60E001"},"4952":{"isSerializedDate":true,"string":"Tue Apr 17 2012 12:04:08 GMT+0200 (CEST)"},"4953":{"date":{"__isSmartRef__":true,"id":4954},"author":"conradcalmez","message":"testeditest","id":"30D494A6-CB75-4429-AAEB-BF3F89183131"},"4954":{"isSerializedDate":true,"string":"Tue Apr 17 2012 12:12:38 GMT+0200 (CEST)"},"4955":{"date":{"__isSmartRef__":true,"id":4956},"author":"conradcalmez","message":"now with initial sync","id":"6D19AA73-DD7B-4DF9-8482-2F7E4D5CB6CE"},"4956":{"isSerializedDate":true,"string":"Tue Apr 17 2012 14:29:51 GMT+0200 (CEST)"},"4957":{"date":{"__isSmartRef__":true,"id":4958},"author":"conradcalmez","message":"initial sync now syncs own offline drawn content to db","id":"4A09CB70-7DAB-40A6-BF27-625233BB1B1A"},"4958":{"isSerializedDate":true,"string":"Tue Apr 17 2012 14:39:31 GMT+0200 (CEST)"},"4959":{"date":{"__isSmartRef__":true,"id":4960},"author":"conradcalmez","message":"no more data leaks","id":"A2A34766-50FD-4EAF-85B5-CEB78CB39DDB"},"4960":{"isSerializedDate":true,"string":"Tue Apr 17 2012 14:59:37 GMT+0200 (CEST)"},"4961":{"date":{"__isSmartRef__":true,"id":4962},"author":"conradcalmez","message":"clear please the whiteboard not the couch","id":"E391F433-E613-4852-8011-10C2DAF18120"},"4962":{"isSerializedDate":true,"string":"Tue Apr 17 2012 15:06:12 GMT+0200 (CEST)"},"4963":{"date":{"__isSmartRef__":true,"id":4964},"author":"conradcalmez","message":"right mouse click does not draw","id":"1C1B5B38-BF89-448D-9264-FB9068ACA9E5"},"4964":{"isSerializedDate":true,"string":"Tue Apr 17 2012 15:12:42 GMT+0200 (CEST)"},"4965":{"x":199,"y":-15,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4966":{"onrestore":{"__isSmartRef__":true,"id":4967},"reset":{"__isSmartRef__":true,"id":4975},"deactivate":{"__isSmartRef__":true,"id":4979},"getDB":{"__isSmartRef__":true,"id":4983},"setDBName":{"__isSmartRef__":true,"id":4987},"clear":{"__isSmartRef__":true,"id":4991},"getCanvas":{"__isSmartRef__":true,"id":4995},"activate":{"__isSmartRef__":true,"id":4999},"initialSync":{"__isSmartRef__":true,"id":5003},"getDrawingContext":{"__isSmartRef__":true,"id":5007},"onTouchStart":{"__isSmartRef__":true,"id":5011},"onTouchMove":{"__isSmartRef__":true,"id":5019},"onTouchEnd":{"__isSmartRef__":true,"id":5023},"onMouseUp":{"__isSmartRef__":true,"id":5031},"transformPoint":{"__isSmartRef__":true,"id":5039},"onMouseDown":{"__isSmartRef__":true,"id":5043},"onMouseMove":{"__isSmartRef__":true,"id":5051},"moveTo":{"__isSmartRef__":true,"id":5059},"lineTo":{"__isSmartRef__":true,"id":5063},"onMouseOut":{"__isSmartRef__":true,"id":5067},"startDrawing":{"__isSmartRef__":true,"id":5075},"stopDrawing":{"__isSmartRef__":true,"id":5079},"remove":{"__isSmartRef__":true,"id":5083},"defaultDBName":{"__isSmartRef__":true,"id":5091},"getDBName":{"__isSmartRef__":true,"id":5095},"resetPointQueue":{"__isSmartRef__":true,"id":5099},"getPointQueue":{"__isSmartRef__":true,"id":5103},"setPointQueue":{"__isSmartRef__":true,"id":5107},"syncPointQueueToDatabase":{"__isSmartRef__":true,"id":5111},"morphMenuItems":{"__isSmartRef__":true,"id":5115},"clearDatabase":{"__isSmartRef__":true,"id":5123},"toggleActivation":{"__isSmartRef__":true,"id":5127},"getDrawerID":{"__isSmartRef__":true,"id":5131},"drawLineFrom":{"__isSmartRef__":true,"id":5135},"setExtent":{"__isSmartRef__":true,"id":5139}},"4967":{"varMapping":{"__isSmartRef__":true,"id":4968},"source":"function onrestore() {\n this.reset();\n // XXX start longpolling ???\n}","funcProperties":{"__isSmartRef__":true,"id":4973},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4968":{"this":{"__isSmartRef__":true,"id":4937},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4969}},"4969":{"$super":{"__isSmartRef__":true,"id":4970}},"4970":{"varMapping":{"__isSmartRef__":true,"id":4971},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":4972},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4971":{"obj":{"__isSmartRef__":true,"id":4937},"name":"onrestore"},"4972":{},"4973":{"timestamp":{"__isSmartRef__":true,"id":4974},"user":"conradcalmez","tags":["initialization"]},"4974":{"isSerializedDate":true,"string":"Tue Apr 17 2012 14:37:06 GMT+0200 (CEST)"},"4975":{"varMapping":{"__isSmartRef__":true,"id":4976},"source":"function reset() {\n this.deactivate();\n this.disableGrabbing();\n this.db = undefined;\n this.setDBName(\"\");\n this.isDrawing = false;\n this.clear();\n}","funcProperties":{"__isSmartRef__":true,"id":4977},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4976":{"this":{"__isSmartRef__":true,"id":4937}},"4977":{"timestamp":{"__isSmartRef__":true,"id":4978},"user":"conradcalmez","tags":["initialization"]},"4978":{"isSerializedDate":true,"string":"Tue Apr 17 2012 14:37:53 GMT+0200 (CEST)"},"4979":{"varMapping":{"__isSmartRef__":true,"id":4980},"source":"function deactivate() {\n this.active = false;\n this.applyStyle({borderColor: Color.black});\n this.getDB().stopPollingChanges();\n}","funcProperties":{"__isSmartRef__":true,"id":4981},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4980":{"this":{"__isSmartRef__":true,"id":4937}},"4981":{"timestamp":{"__isSmartRef__":true,"id":4982},"user":"conradcalmez","tags":["synchonization"]},"4982":{"isSerializedDate":true,"string":"Tue Apr 17 2012 11:42:53 GMT+0200 (CEST)"},"4983":{"varMapping":{"__isSmartRef__":true,"id":4984},"source":"function getDB() {\n module('apps.CouchDB').load(true);\n if(!this.db){\n this.db = new CouchDB(this.getDBName());\n }\n return this.db;\n}","funcProperties":{"__isSmartRef__":true,"id":4985},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4984":{"this":{"__isSmartRef__":true,"id":4937}},"4985":{"timestamp":{"__isSmartRef__":true,"id":4986},"user":"conradcalmez","tags":[]},"4986":{"isSerializedDate":true,"string":"Mon Apr 16 2012 13:29:07 GMT+0200 (CEST)"},"4987":{"varMapping":{"__isSmartRef__":true,"id":4988},"source":"function setDBName(name) {\n this.dbName = name\n}","funcProperties":{"__isSmartRef__":true,"id":4989},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4988":{"this":{"__isSmartRef__":true,"id":4937}},"4989":{"timestamp":{"__isSmartRef__":true,"id":4990},"user":"conradcalmez","tags":[]},"4990":{"isSerializedDate":true,"string":"Tue Apr 17 2012 14:38:40 GMT+0200 (CEST)"},"4991":{"varMapping":{"__isSmartRef__":true,"id":4992},"source":"function clear(leaveOutSync) {\n var canvas = this.getCanvas();\n var ctx = this.getDrawingContext();\n ctx.clearRect(0, 0, canvas.width, canvas.height);\n if (!leaveOutSync) {\n this.clearDatabase();\n } \n}","funcProperties":{"__isSmartRef__":true,"id":4993},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4992":{"this":{"__isSmartRef__":true,"id":4937}},"4993":{"timestamp":{"__isSmartRef__":true,"id":4994},"user":"conradcalmez","tags":["drawing"]},"4994":{"isSerializedDate":true,"string":"Mon Apr 16 2012 14:50:00 GMT+0200 (CEST)"},"4995":{"varMapping":{"__isSmartRef__":true,"id":4996},"source":"function getCanvas() {\n return this._renderContext.shapeNode;\n}","funcProperties":{"__isSmartRef__":true,"id":4997},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4996":{"this":{"__isSmartRef__":true,"id":4937}},"4997":{"timestamp":{"__isSmartRef__":true,"id":4998},"user":"conradcalmez","tags":["accessing"]},"4998":{"isSerializedDate":true,"string":"Fri Apr 13 2012 10:50:08 GMT+0200 (CEST)"},"4999":{"varMapping":{"__isSmartRef__":true,"id":5000},"source":"function activate() {\n this.active = true;\n this.applyStyle({borderColor: Color.green});\n this.initialSync();\n var that = this;\n this.getDB().startPollingChanges(function (change) {\n if(typeof change === \"object\"){\n if (change.deleted) {\n // only whole deletion of whiteboard possible right now\n that.clear(true);\n } else {\n // XXX no support for multiple parallel boards\n var document = that.getDB().open(change.id);\n if (document.drawer != that.getDrawerID()) {\n that.drawLineFrom(document);\n }\n }\n } else {\n alert(\"change is no object\");\n }\n },\n function(e){\n alert(e);\n throw(e);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":5001},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5000":{"this":{"__isSmartRef__":true,"id":4937}},"5001":{"timestamp":{"__isSmartRef__":true,"id":5002},"user":"conradcalmez","tags":["synchonization"]},"5002":{"isSerializedDate":true,"string":"Tue Apr 17 2012 15:03:45 GMT+0200 (CEST)"},"5003":{"varMapping":{"__isSmartRef__":true,"id":5004},"source":"function initialSync() {\n // XXX TODO implement\n var that = this;\n var docs = this.getDB().allDocs();\n docs.rows.each(function (ea) {\n var doc = that.getDB().open(ea.id);\n that.drawLineFrom(doc);\n });\n // following code can be at beginning\n // tradeoff: (1) data reduction because one gets everything that not has been drawn offline\n // (2) updates to other clients will come a little later (after update of this client)\n this.syncPointQueueToDatabase();\n}","funcProperties":{"__isSmartRef__":true,"id":5005},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5004":{"this":{"__isSmartRef__":true,"id":4937}},"5005":{"timestamp":{"__isSmartRef__":true,"id":5006},"user":"conradcalmez","tags":["synchonization"]},"5006":{"isSerializedDate":true,"string":"Tue Apr 17 2012 14:35:37 GMT+0200 (CEST)"},"5007":{"varMapping":{"__isSmartRef__":true,"id":5008},"source":"function getDrawingContext() {\n return this.getCanvas().getContext(\"2d\");\n}","funcProperties":{"__isSmartRef__":true,"id":5009},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5008":{"this":{"__isSmartRef__":true,"id":4937}},"5009":{"timestamp":{"__isSmartRef__":true,"id":5010},"user":"conradcalmez","tags":["accessing"]},"5010":{"isSerializedDate":true,"string":"Fri Apr 13 2012 10:50:19 GMT+0200 (CEST)"},"5011":{"varMapping":{"__isSmartRef__":true,"id":5012},"source":"function onTouchStart(evt) {\n this.startDrawing(evt);\n evt.stop();\n}","funcProperties":{"__isSmartRef__":true,"id":5017},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5012":{"this":{"__isSmartRef__":true,"id":4937},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5013}},"5013":{"$super":{"__isSmartRef__":true,"id":5014}},"5014":{"varMapping":{"__isSmartRef__":true,"id":5015},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5016},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5015":{"obj":{"__isSmartRef__":true,"id":4937},"name":"onTouchStart"},"5016":{},"5017":{"timestamp":{"__isSmartRef__":true,"id":5018},"user":"conradcalmez","tags":["touch actions"]},"5018":{"isSerializedDate":true,"string":"Fri Apr 13 2012 12:27:35 GMT+0200 (CEST)"},"5019":{"varMapping":{"__isSmartRef__":true,"id":5020},"source":"function onTouchMove(evt) {\n if (this.isDrawing) {\n this.lineTo(pt(evt.pageX, evt.pageY), true, true);\n }\n evt.stop();\n}","funcProperties":{"__isSmartRef__":true,"id":5021},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5020":{"this":{"__isSmartRef__":true,"id":4937}},"5021":{"timestamp":{"__isSmartRef__":true,"id":5022},"user":"conradcalmez","tags":["touch actions"]},"5022":{"isSerializedDate":true,"string":"Tue Apr 17 2012 14:58:14 GMT+0200 (CEST)"},"5023":{"varMapping":{"__isSmartRef__":true,"id":5024},"source":"function onTouchEnd(evt) {\n this.stopDrawing(evt, true);\n evt.stop();\n}","funcProperties":{"__isSmartRef__":true,"id":5029},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5024":{"this":{"__isSmartRef__":true,"id":4937},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5025}},"5025":{"$super":{"__isSmartRef__":true,"id":5026}},"5026":{"varMapping":{"__isSmartRef__":true,"id":5027},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5028},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5027":{"obj":{"__isSmartRef__":true,"id":4937},"name":"onTouchEnd"},"5028":{},"5029":{"timestamp":{"__isSmartRef__":true,"id":5030},"user":"conradcalmez","tags":["touch actions"]},"5030":{"isSerializedDate":true,"string":"Fri Apr 13 2012 13:17:41 GMT+0200 (CEST)"},"5031":{"varMapping":{"__isSmartRef__":true,"id":5032},"source":"function onMouseUp(evt) {\n this.stopDrawing(evt);\n evt.stop();\n}","funcProperties":{"__isSmartRef__":true,"id":5037},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5032":{"this":{"__isSmartRef__":true,"id":4937},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5033}},"5033":{"$super":{"__isSmartRef__":true,"id":5034}},"5034":{"varMapping":{"__isSmartRef__":true,"id":5035},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5036},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5035":{"obj":{"__isSmartRef__":true,"id":4937},"name":"onMouseUp"},"5036":{},"5037":{"timestamp":{"__isSmartRef__":true,"id":5038},"user":"conradcalmez","tags":["mouse actions"]},"5038":{"isSerializedDate":true,"string":"Fri Apr 13 2012 13:20:09 GMT+0200 (CEST)"},"5039":{"varMapping":{"__isSmartRef__":true,"id":5040},"source":"function transformPoint(pagePoint) {\n var canvasPosition = this.getPosition();\n return pagePoint.subPt(canvasPosition);\n}","funcProperties":{"__isSmartRef__":true,"id":5041},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5040":{"this":{"__isSmartRef__":true,"id":4937}},"5041":{"timestamp":{"__isSmartRef__":true,"id":5042},"user":"conradcalmez","tags":["drawing"]},"5042":{"isSerializedDate":true,"string":"Fri Apr 13 2012 10:58:01 GMT+0200 (CEST)"},"5043":{"varMapping":{"__isSmartRef__":true,"id":5044},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown()) {\n this.startDrawing(evt);\n evt.stop();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5049},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5044":{"this":{"__isSmartRef__":true,"id":4937},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5045}},"5045":{"$super":{"__isSmartRef__":true,"id":5046}},"5046":{"varMapping":{"__isSmartRef__":true,"id":5047},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5048},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5047":{"obj":{"__isSmartRef__":true,"id":4937},"name":"onMouseDown"},"5048":{},"5049":{"timestamp":{"__isSmartRef__":true,"id":5050},"user":"conradcalmez","tags":["mouse actions"]},"5050":{"isSerializedDate":true,"string":"Tue Apr 17 2012 15:11:58 GMT+0200 (CEST)"},"5051":{"varMapping":{"__isSmartRef__":true,"id":5052},"source":"function onMouseMove(evt) {\n if (this.isDrawing) {\n this.lineTo(pt(evt.pageX, evt.pageY), true, true);\n }\n evt.stop();\n}","funcProperties":{"__isSmartRef__":true,"id":5057},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5052":{"this":{"__isSmartRef__":true,"id":4937},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5053}},"5053":{"$super":{"__isSmartRef__":true,"id":5054}},"5054":{"varMapping":{"__isSmartRef__":true,"id":5055},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5056},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5055":{"obj":{"__isSmartRef__":true,"id":4937},"name":"onMouseMove"},"5056":{},"5057":{"timestamp":{"__isSmartRef__":true,"id":5058},"user":"conradcalmez","tags":["mouse actions"]},"5058":{"isSerializedDate":true,"string":"Tue Apr 17 2012 14:58:06 GMT+0200 (CEST)"},"5059":{"varMapping":{"__isSmartRef__":true,"id":5060},"source":"function moveTo(point, sync, optTransform) {\n var pos = point;\n if (optTransform) {\n pos = this.transformPoint(pos);\n }\n if (sync) {\n if (this.getPointQueue().length > 0) {\n this.getPointQueue().push([-1, -1]);\n }\n this.getPointQueue().push([pos.x, pos.y]);\n }\n var ctx = this.getDrawingContext();\n ctx.beginPath();\n ctx.moveTo(pos.x, pos.y);\n}","funcProperties":{"__isSmartRef__":true,"id":5061},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5060":{"this":{"__isSmartRef__":true,"id":4937}},"5061":{"timestamp":{"__isSmartRef__":true,"id":5062},"user":"conradcalmez","tags":["drawing"]},"5062":{"isSerializedDate":true,"string":"Tue Apr 17 2012 14:57:07 GMT+0200 (CEST)"},"5063":{"varMapping":{"__isSmartRef__":true,"id":5064},"source":"function lineTo(point, sync, optTransform, color) {\n var pos = point;\n if (optTransform) {\n pos = this.transformPoint(pos);\n }\n if (sync) {\n this.getPointQueue().push([pos.x, pos.y]);\n }\n var ctx = this.getDrawingContext();\n if (color) {\n ctx.strokeStyle = color.toString();\n } else {\n ctx.strokeStyle = \"rgb(0,0,0)\";\n }\n ctx.lineTo(pos.x, pos.y);\n ctx.stroke();\n}","funcProperties":{"__isSmartRef__":true,"id":5065},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5064":{"this":{"__isSmartRef__":true,"id":4937}},"5065":{"timestamp":{"__isSmartRef__":true,"id":5066},"user":"conradcalmez","tags":["drawing"]},"5066":{"isSerializedDate":true,"string":"Tue Apr 17 2012 14:56:57 GMT+0200 (CEST)"},"5067":{"varMapping":{"__isSmartRef__":true,"id":5068},"source":"function onMouseOut(evt) {\n // XXX cancelation better than strange drawing behavior?\n this.onMouseUp(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":5073},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5068":{"this":{"__isSmartRef__":true,"id":4937},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5069}},"5069":{"$super":{"__isSmartRef__":true,"id":5070}},"5070":{"varMapping":{"__isSmartRef__":true,"id":5071},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5072},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5071":{"obj":{"__isSmartRef__":true,"id":4937},"name":"onMouseOut"},"5072":{},"5073":{"timestamp":{"__isSmartRef__":true,"id":5074},"user":"conradcalmez","tags":["mouse actions"]},"5074":{"isSerializedDate":true,"string":"Mon Apr 16 2012 14:52:16 GMT+0200 (CEST)"},"5075":{"varMapping":{"__isSmartRef__":true,"id":5076},"source":"function startDrawing(evt) {\n this.resetPointQueue();\n this.moveTo(pt(evt.pageX, evt.pageY), true, true);\n this.isDrawing = true;\n}","funcProperties":{"__isSmartRef__":true,"id":5077},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5076":{"this":{"__isSmartRef__":true,"id":4937}},"5077":{"timestamp":{"__isSmartRef__":true,"id":5078},"user":"conradcalmez","tags":["drawing"]},"5078":{"isSerializedDate":true,"string":"Tue Apr 17 2012 14:58:42 GMT+0200 (CEST)"},"5079":{"varMapping":{"__isSmartRef__":true,"id":5080},"source":"function stopDrawing(evt, touch) {\n //var ctx = this.getDrawingContext();\n //ctx.closePath();\n if (this.isDrawing) {\n if (!touch) {\n this.onMouseMove(evt);\n } else {\n this.onTouchMove(evt);\n }\n this.isDrawing = false;\n this.syncPointQueueToDatabase();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5081},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5080":{"this":{"__isSmartRef__":true,"id":4937}},"5081":{"timestamp":{"__isSmartRef__":true,"id":5082},"user":"conradcalmez","tags":["drawing"]},"5082":{"isSerializedDate":true,"string":"Mon Apr 16 2012 16:33:36 GMT+0200 (CEST)"},"5083":{"varMapping":{"__isSmartRef__":true,"id":5084},"source":"function remove() {\n // XXX stop longpolling\n this.suspendSteppingAll();\n if (this.showsHalos) this.removeHalos();\n this.renderContextDispatch('remove');\n}","funcProperties":{"__isSmartRef__":true,"id":5089},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5084":{"this":{"__isSmartRef__":true,"id":4937},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5085}},"5085":{"$super":{"__isSmartRef__":true,"id":5086}},"5086":{"varMapping":{"__isSmartRef__":true,"id":5087},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5088},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5087":{"obj":{"__isSmartRef__":true,"id":4937},"name":"remove"},"5088":{},"5089":{"timestamp":{"__isSmartRef__":true,"id":5090},"user":"conradcalmez","tags":["initialization"]},"5090":{"isSerializedDate":true,"string":"Fri Apr 13 2012 13:47:29 GMT+0200 (CEST)"},"5091":{"varMapping":{"__isSmartRef__":true,"id":5092},"source":"function defaultDBName() {\n return \"whiteboard\"\n}","funcProperties":{"__isSmartRef__":true,"id":5093},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5092":{"this":{"__isSmartRef__":true,"id":4937}},"5093":{"timestamp":{"__isSmartRef__":true,"id":5094},"user":"conradcalmez","tags":[]},"5094":{"isSerializedDate":true,"string":"Mon Apr 16 2012 13:27:22 GMT+0200 (CEST)"},"5095":{"varMapping":{"__isSmartRef__":true,"id":5096},"source":"function getDBName() {\n return this.dbName || this.defaultDBName()\n}","funcProperties":{"__isSmartRef__":true,"id":5097},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5096":{"this":{"__isSmartRef__":true,"id":4937}},"5097":{"timestamp":{"__isSmartRef__":true,"id":5098},"user":"conradcalmez","tags":[]},"5098":{"isSerializedDate":true,"string":"Mon Apr 16 2012 13:27:37 GMT+0200 (CEST)"},"5099":{"varMapping":{"__isSmartRef__":true,"id":5100},"source":"function resetPointQueue() {\n this.setPointQueue([]);\n}","funcProperties":{"__isSmartRef__":true,"id":5101},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5100":{"this":{"__isSmartRef__":true,"id":4937}},"5101":{"timestamp":{"__isSmartRef__":true,"id":5102},"user":"conradcalmez","tags":["synchonization"]},"5102":{"isSerializedDate":true,"string":"Mon Apr 16 2012 13:41:59 GMT+0200 (CEST)"},"5103":{"varMapping":{"__isSmartRef__":true,"id":5104},"source":"function getPointQueue() {\n return this.pointQueue || [];\n}","funcProperties":{"__isSmartRef__":true,"id":5105},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5104":{"this":{"__isSmartRef__":true,"id":4937}},"5105":{"timestamp":{"__isSmartRef__":true,"id":5106},"user":"conradcalmez","tags":["synchonization"]},"5106":{"isSerializedDate":true,"string":"Mon Apr 16 2012 13:40:50 GMT+0200 (CEST)"},"5107":{"varMapping":{"__isSmartRef__":true,"id":5108},"source":"function setPointQueue(queue) {\n this.pointQueue = queue;\n}","funcProperties":{"__isSmartRef__":true,"id":5109},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5108":{"this":{"__isSmartRef__":true,"id":4937}},"5109":{"timestamp":{"__isSmartRef__":true,"id":5110},"user":"conradcalmez","tags":["synchonization"]},"5110":{"isSerializedDate":true,"string":"Mon Apr 16 2012 13:41:41 GMT+0200 (CEST)"},"5111":{"varMapping":{"__isSmartRef__":true,"id":5112},"source":"function syncPointQueueToDatabase() {\n if (this.active) {\n var queue = this.getPointQueue();\n for (var i=0; i < queue.length-1; i++) {\n var start = queue[i],\n end = queue[i+1];\n if (end == [-1, -1]) {\n continue;\n }\n var document = {\n board: \"example\",\n time: Date.now(),\n drawer: this.getDrawerID(),\n startPoint: start,\n endPoint: end\n };\n var result = this.getDB().save(document);\n if (result.error == \"conflict\") {\n console.log(\"an error occured while synching the whiteboard\");\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5113},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5112":{"this":{"__isSmartRef__":true,"id":4937}},"5113":{"timestamp":{"__isSmartRef__":true,"id":5114},"user":"conradcalmez","tags":["synchonization"]},"5114":{"isSerializedDate":true,"string":"Tue Apr 17 2012 11:11:01 GMT+0200 (CEST)"},"5115":{"varMapping":{"__isSmartRef__":true,"id":5116},"source":"function morphMenuItems() {\n items = $super();\n var itemString = \"activate sync\";\n if (this.active) itemString = \"de\" + itemString;\n items.push([itemString, (function () {this.toggleActivation()}).bind(this)]);\n items.push([\"clear whiteboard\", (function () {this.clear()}).bind(this)])\n return items;\n}","funcProperties":{"__isSmartRef__":true,"id":5121},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5116":{"this":{"__isSmartRef__":true,"id":4937},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5117}},"5117":{"$super":{"__isSmartRef__":true,"id":5118}},"5118":{"varMapping":{"__isSmartRef__":true,"id":5119},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5120},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5119":{"obj":{"__isSmartRef__":true,"id":4937},"name":"morphMenuItems"},"5120":{},"5121":{"timestamp":{"__isSmartRef__":true,"id":5122},"user":"conradcalmez","tags":[]},"5122":{"isSerializedDate":true,"string":"Mon Apr 16 2012 15:06:24 GMT+0200 (CEST)"},"5123":{"varMapping":{"__isSmartRef__":true,"id":5124},"source":"function clearDatabase() {\n if (this.active) {\n var docs = this.getDB().allDocs();\n var that = this;\n docs.rows.each(function (ea) {\n var doc = that.getDB().open(ea.id);\n that.getDB().deleteDoc(doc);\n });\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5125},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5124":{"this":{"__isSmartRef__":true,"id":4937}},"5125":{"timestamp":{"__isSmartRef__":true,"id":5126},"user":"conradcalmez","tags":["synchonization"]},"5126":{"isSerializedDate":true,"string":"Mon Apr 16 2012 14:33:34 GMT+0200 (CEST)"},"5127":{"varMapping":{"__isSmartRef__":true,"id":5128},"source":"function toggleActivation() {\n if (!this.active) {\n this.activate();\n } else {\n this.deactivate();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5129},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5128":{"this":{"__isSmartRef__":true,"id":4937}},"5129":{"timestamp":{"__isSmartRef__":true,"id":5130},"user":"conradcalmez","tags":[]},"5130":{"isSerializedDate":true,"string":"Mon Apr 16 2012 15:03:54 GMT+0200 (CEST)"},"5131":{"varMapping":{"__isSmartRef__":true,"id":5132},"source":"function getDrawerID() {\n return $world.getUserName() + \"_ON_\" + this.id;\n}","funcProperties":{"__isSmartRef__":true,"id":5133},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5132":{"this":{"__isSmartRef__":true,"id":4937}},"5133":{"timestamp":{"__isSmartRef__":true,"id":5134},"user":"conradcalmez","tags":[]},"5134":{"isSerializedDate":true,"string":"Tue Apr 17 2012 11:09:14 GMT+0200 (CEST)"},"5135":{"varMapping":{"__isSmartRef__":true,"id":5136},"source":"function drawLineFrom(document) {\n var startPoint = pt(document.startPoint[0], document.startPoint[1]);\n var endPoint = pt(document.endPoint[0], document.endPoint[1]);\n this.moveTo(startPoint);\n this.lineTo(endPoint);\n}","funcProperties":{"__isSmartRef__":true,"id":5137},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5136":{"this":{"__isSmartRef__":true,"id":4937}},"5137":{"timestamp":{"__isSmartRef__":true,"id":5138},"user":"conradcalmez","tags":[]},"5138":{"isSerializedDate":true,"string":"Tue Apr 17 2012 14:28:05 GMT+0200 (CEST)"},"5139":{"varMapping":{"__isSmartRef__":true,"id":5140},"source":"function setExtent(value) {\n $super(value);\n this.getCanvas().width = value.x\n this.getCanvas().height = value.y\n}","funcProperties":{"__isSmartRef__":true,"id":5145},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5140":{"this":{"__isSmartRef__":true,"id":4937},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5141}},"5141":{"$super":{"__isSmartRef__":true,"id":5142}},"5142":{"varMapping":{"__isSmartRef__":true,"id":5143},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5144},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5143":{"obj":{"__isSmartRef__":true,"id":4937},"name":"setExtent"},"5144":{},"5145":{"timestamp":{"__isSmartRef__":true,"id":5146},"user":"conradcalmez","tags":[]},"5146":{"isSerializedDate":true,"string":"Tue Apr 17 2012 16:20:14 GMT+0200 (CEST)"},"5147":{"submorphs":[],"scripts":[],"id":"D020FF8C-26AC-43EB-900D-7D938EC1FD86","shape":{"__isSmartRef__":true,"id":5148},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":5154},"_MaxTextWidth":971.9905049999994,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":5151},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"Text9","partsBinMetaInfo":{"__isSmartRef__":true,"id":5155},"textChunks":[{"__isSmartRef__":true,"id":5158}],"charsReplaced":"some text ","lastFindLoc":10,"priorSelectionRange":[129,129],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":5160},"renderContextTable":{"__isSmartRef__":true,"id":5161},"eventHandler":{"__isSmartRef__":true,"id":5162},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Padding":{"__isSmartRef__":true,"id":5163},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":971.9905049999994,"_MinTextHeight":null,"previousSelection":[44,44],"owner":{"__isSmartRef__":true,"id":0},"_Rotation":0,"_Scale":1.002003004005006,"__LivelyClassName__":"lively.morphic.Text"},"5148":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":5149},"_Extent":{"__isSmartRef__":true,"id":5150},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":5151},"renderContextTable":{"__isSmartRef__":true,"id":5152},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5153},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5149":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5150":{"x":979.9905049999994,"y":48,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5151":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5152":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5153":{"x":4,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5154":{"x":11,"y":2005,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5155":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":5156}],"revisionOnLoad":148789,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"5156":{"date":{"__isSmartRef__":true,"id":5157},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"5157":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"5158":{"style":{"__isSmartRef__":true,"id":5159},"morph":{"__isSmartRef__":true,"id":5147},"__SourceModuleName__":"Global.lively.morphic.TextCore","chunkOwner":{"__isSmartRef__":true,"id":5147},"storedString":"Theres a problem with resizing the canvas. When on resizes it with the appropriate halo the convas' contents get scaled as well. The behaviour should be that the whiteboard extents itself by the distance of the resize drag.","__LivelyClassName__":"lively.morphic.TextChunk"},"5159":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"5160":{"x":979.9905049999994,"y":48,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5161":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"5162":{"morph":{"__isSmartRef__":true,"id":5147},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5163":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5164":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5165},"derivationIds":[null,"99868D5B-4AFB-4D0F-B333-75FDADC8EBAA","1724C6E9-0FFC-430F-8EA9-0CB466CF3B46","83CF2C89-334F-431A-8847-02801E94371E","212990CB-79C6-4709-8B98-9C12457BFB28"],"id":"1B6A4D7A-CC28-4FFC-B9C3-31C68F07CFD6","renderContextTable":{"__isSmartRef__":true,"id":5170},"eventHandler":{"__isSmartRef__":true,"id":5171},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5172},"isBeingDragged":false,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":5173},"name":"WhiteBoard3","prevScroll":[0,0],"distanceToDragEvent":{"__isSmartRef__":true,"id":5192},"__SourceModuleName__":"Global.lively.morphic.Core","fillStyle":"rgb(0, 0, 200)","isDrawing":false,"grabbingEnabled":false,"pointQueue":[[444,198],[444,197],[444,195],[444,194],[444,193],[443,191],[440,189],[437,186],[433,184],[428,182],[423,182],[417,182],[411,182],[406,182],[400,184],[400,189],[400,194],[400,201],[404,209],[409,216],[414,223],[420,228],[427,232],[433,235],[439,236],[446,236],[453,235],[459,231],[464,224],[469,215],[473,203],[478,181],[479,159],[479,134],[475,119],[471,109],[469,100],[467,95],[466,91],[465,88],[464,84],[463,79],[462,76],[461,72],[461,71],[460,70],[459,70],[459,75],[459,82],[459,91],[459,102],[459,114],[459,127],[461,141],[465,154],[469,166],[473,179],[477,190],[480,200],[483,208],[486,213],[489,218],[493,222],[496,224],[501,228],[504,231],[507,232],[508,233],[509,233],[509,233]],"active":false,"dbName":"","owner":{"__isSmartRef__":true,"id":0},"_Rotation":0,"_Scale":1,"priorExtent":{"__isSmartRef__":true,"id":5193},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5194},"__LivelyClassName__":"lively.morphic.Morph"},"5165":{"renderContextTable":{"__isSmartRef__":true,"id":5166},"_ClipMode":"visible","_BorderWidth":1,"_Padding":{"__isSmartRef__":true,"id":5167},"_BorderColor":{"__isSmartRef__":true,"id":632},"stringifiedShapeNode":"","extent":{"__isSmartRef__":true,"id":5168},"__SourceModuleName__":"Global.lively.morphic.Shapes","_Extent":{"__isSmartRef__":true,"id":5169},"__LivelyClassName__":"lively.morphic.Shapes.External"},"5166":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getExtent":"getExtentHTML","initFromStringifiedShapeNode":"initFromStringifiedShapeNodeHTML"},"5167":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5168":{"x":198,"y":198,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5169":{"x":200,"y":200,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"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":5164},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5172":{"x":844,"y":2406,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5173":{"partName":"WhiteBoard","requiredModules":[],"partsSpaceName":"PartsBin/BP2012","comment":"A morph that has a canvas as its shape.","changes":[{"__isSmartRef__":true,"id":5174},{"__isSmartRef__":true,"id":5176},{"__isSmartRef__":true,"id":5178},{"__isSmartRef__":true,"id":5180},{"__isSmartRef__":true,"id":5182},{"__isSmartRef__":true,"id":5184},{"__isSmartRef__":true,"id":5186},{"__isSmartRef__":true,"id":5188},{"__isSmartRef__":true,"id":5190}],"migrationLevel":4,"revisionOnLoad":152831,"__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"5174":{"date":{"__isSmartRef__":true,"id":5175},"author":"conradcalmez","message":"initial commit","id":"D262F8FB-F5EB-498A-A5DF-31BC7F58613B"},"5175":{"isSerializedDate":true,"string":"Thu Apr 12 2012 19:59:04 GMT+0200 (CEST)"},"5176":{"date":{"__isSmartRef__":true,"id":5177},"author":"conradcalmez","message":"now with broken sync features","id":"102D4E0F-9485-446E-97C2-C5424D0B5E3A"},"5177":{"isSerializedDate":true,"string":"Tue Apr 17 2012 12:02:14 GMT+0200 (CEST)"},"5178":{"date":{"__isSmartRef__":true,"id":5179},"author":"conradcalmez","message":"now with broken sync features","id":"2E3F8836-6EE4-4977-A531-59319E60E001"},"5179":{"isSerializedDate":true,"string":"Tue Apr 17 2012 12:04:08 GMT+0200 (CEST)"},"5180":{"date":{"__isSmartRef__":true,"id":5181},"author":"conradcalmez","message":"testeditest","id":"30D494A6-CB75-4429-AAEB-BF3F89183131"},"5181":{"isSerializedDate":true,"string":"Tue Apr 17 2012 12:12:38 GMT+0200 (CEST)"},"5182":{"date":{"__isSmartRef__":true,"id":5183},"author":"conradcalmez","message":"now with initial sync","id":"6D19AA73-DD7B-4DF9-8482-2F7E4D5CB6CE"},"5183":{"isSerializedDate":true,"string":"Tue Apr 17 2012 14:29:51 GMT+0200 (CEST)"},"5184":{"date":{"__isSmartRef__":true,"id":5185},"author":"conradcalmez","message":"initial sync now syncs own offline drawn content to db","id":"4A09CB70-7DAB-40A6-BF27-625233BB1B1A"},"5185":{"isSerializedDate":true,"string":"Tue Apr 17 2012 14:39:31 GMT+0200 (CEST)"},"5186":{"date":{"__isSmartRef__":true,"id":5187},"author":"conradcalmez","message":"no more data leaks","id":"A2A34766-50FD-4EAF-85B5-CEB78CB39DDB"},"5187":{"isSerializedDate":true,"string":"Tue Apr 17 2012 14:59:37 GMT+0200 (CEST)"},"5188":{"date":{"__isSmartRef__":true,"id":5189},"author":"conradcalmez","message":"clear please the whiteboard not the couch","id":"E391F433-E613-4852-8011-10C2DAF18120"},"5189":{"isSerializedDate":true,"string":"Tue Apr 17 2012 15:06:12 GMT+0200 (CEST)"},"5190":{"date":{"__isSmartRef__":true,"id":5191},"author":"conradcalmez","message":"right mouse click does not draw","id":"1C1B5B38-BF89-448D-9264-FB9068ACA9E5"},"5191":{"isSerializedDate":true,"string":"Tue Apr 17 2012 15:12:42 GMT+0200 (CEST)"},"5192":{"x":199,"y":-15,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5193":{"x":661,"y":404,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5194":{"onrestore":{"__isSmartRef__":true,"id":5195},"reset":{"__isSmartRef__":true,"id":5203},"deactivate":{"__isSmartRef__":true,"id":5207},"getDB":{"__isSmartRef__":true,"id":5211},"getDBName":{"__isSmartRef__":true,"id":5215},"defaultDBName":{"__isSmartRef__":true,"id":5219},"setDBName":{"__isSmartRef__":true,"id":5223},"clear":{"__isSmartRef__":true,"id":5227},"getCanvas":{"__isSmartRef__":true,"id":5231},"activate":{"__isSmartRef__":true,"id":5235},"initialSync":{"__isSmartRef__":true,"id":5239},"getDrawingContext":{"__isSmartRef__":true,"id":5243},"onTouchStart":{"__isSmartRef__":true,"id":5247},"onTouchMove":{"__isSmartRef__":true,"id":5255},"onTouchEnd":{"__isSmartRef__":true,"id":5259},"onMouseUp":{"__isSmartRef__":true,"id":5267},"transformPoint":{"__isSmartRef__":true,"id":5275},"onMouseDown":{"__isSmartRef__":true,"id":5279},"onMouseMove":{"__isSmartRef__":true,"id":5287},"moveTo":{"__isSmartRef__":true,"id":5295},"lineTo":{"__isSmartRef__":true,"id":5299},"onMouseOut":{"__isSmartRef__":true,"id":5303},"startDrawing":{"__isSmartRef__":true,"id":5311},"stopDrawing":{"__isSmartRef__":true,"id":5315},"remove":{"__isSmartRef__":true,"id":5319},"resetPointQueue":{"__isSmartRef__":true,"id":5327},"getPointQueue":{"__isSmartRef__":true,"id":5331},"setPointQueue":{"__isSmartRef__":true,"id":5335},"syncPointQueueToDatabase":{"__isSmartRef__":true,"id":5339},"morphMenuItems":{"__isSmartRef__":true,"id":5343},"clearDatabase":{"__isSmartRef__":true,"id":5351},"toggleActivation":{"__isSmartRef__":true,"id":5355},"getDrawerID":{"__isSmartRef__":true,"id":5359},"drawLineFrom":{"__isSmartRef__":true,"id":5363},"setExtent":{"__isSmartRef__":true,"id":5367}},"5195":{"varMapping":{"__isSmartRef__":true,"id":5196},"source":"function onrestore() {\n this.reset();\n // XXX start longpolling ???\n}","funcProperties":{"__isSmartRef__":true,"id":5201},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5196":{"this":{"__isSmartRef__":true,"id":5164},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5197}},"5197":{"$super":{"__isSmartRef__":true,"id":5198}},"5198":{"varMapping":{"__isSmartRef__":true,"id":5199},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5200},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5199":{"obj":{"__isSmartRef__":true,"id":5164},"name":"onrestore"},"5200":{},"5201":{"timestamp":{"__isSmartRef__":true,"id":5202},"user":"conradcalmez","tags":["initialization"]},"5202":{"isSerializedDate":true,"string":"Tue Apr 17 2012 14:37:06 GMT+0200 (CEST)"},"5203":{"varMapping":{"__isSmartRef__":true,"id":5204},"source":"function reset() {\n this.deactivate();\n this.disableGrabbing();\n this.db = undefined;\n this.setDBName(\"\");\n this.isDrawing = false;\n this.clear();\n}","funcProperties":{"__isSmartRef__":true,"id":5205},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5204":{"this":{"__isSmartRef__":true,"id":5164}},"5205":{"timestamp":{"__isSmartRef__":true,"id":5206},"user":"conradcalmez","tags":["initialization"]},"5206":{"isSerializedDate":true,"string":"Tue Apr 17 2012 14:37:53 GMT+0200 (CEST)"},"5207":{"varMapping":{"__isSmartRef__":true,"id":5208},"source":"function deactivate() {\n this.active = false;\n this.applyStyle({borderColor: Color.black});\n this.getDB().stopPollingChanges();\n}","funcProperties":{"__isSmartRef__":true,"id":5209},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5208":{"this":{"__isSmartRef__":true,"id":5164}},"5209":{"timestamp":{"__isSmartRef__":true,"id":5210},"user":"conradcalmez","tags":["synchonization"]},"5210":{"isSerializedDate":true,"string":"Tue Apr 17 2012 11:42:53 GMT+0200 (CEST)"},"5211":{"varMapping":{"__isSmartRef__":true,"id":5212},"source":"function getDB() {\n module('apps.CouchDB').load(true);\n if(!this.db){\n this.db = new CouchDB(this.getDBName());\n }\n return this.db;\n}","funcProperties":{"__isSmartRef__":true,"id":5213},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5212":{"this":{"__isSmartRef__":true,"id":5164}},"5213":{"timestamp":{"__isSmartRef__":true,"id":5214},"user":"conradcalmez","tags":[]},"5214":{"isSerializedDate":true,"string":"Mon Apr 16 2012 13:29:07 GMT+0200 (CEST)"},"5215":{"varMapping":{"__isSmartRef__":true,"id":5216},"source":"function getDBName() {\n return this.dbName || this.defaultDBName()\n}","funcProperties":{"__isSmartRef__":true,"id":5217},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5216":{"this":{"__isSmartRef__":true,"id":5164}},"5217":{"timestamp":{"__isSmartRef__":true,"id":5218},"user":"conradcalmez","tags":[]},"5218":{"isSerializedDate":true,"string":"Mon Apr 16 2012 13:27:37 GMT+0200 (CEST)"},"5219":{"varMapping":{"__isSmartRef__":true,"id":5220},"source":"function defaultDBName() {\n return \"whiteboard\"\n}","funcProperties":{"__isSmartRef__":true,"id":5221},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5220":{"this":{"__isSmartRef__":true,"id":5164}},"5221":{"timestamp":{"__isSmartRef__":true,"id":5222},"user":"conradcalmez","tags":[]},"5222":{"isSerializedDate":true,"string":"Mon Apr 16 2012 13:27:22 GMT+0200 (CEST)"},"5223":{"varMapping":{"__isSmartRef__":true,"id":5224},"source":"function setDBName(name) {\n this.dbName = name\n}","funcProperties":{"__isSmartRef__":true,"id":5225},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5224":{"this":{"__isSmartRef__":true,"id":5164}},"5225":{"timestamp":{"__isSmartRef__":true,"id":5226},"user":"conradcalmez","tags":[]},"5226":{"isSerializedDate":true,"string":"Tue Apr 17 2012 14:38:40 GMT+0200 (CEST)"},"5227":{"varMapping":{"__isSmartRef__":true,"id":5228},"source":"function clear(leaveOutSync) {\n var canvas = this.getCanvas();\n var ctx = this.getDrawingContext();\n ctx.clearRect(0, 0, canvas.width, canvas.height);\n if (!leaveOutSync) {\n this.clearDatabase();\n } \n}","funcProperties":{"__isSmartRef__":true,"id":5229},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5228":{"this":{"__isSmartRef__":true,"id":5164}},"5229":{"timestamp":{"__isSmartRef__":true,"id":5230},"user":"conradcalmez","tags":["drawing"]},"5230":{"isSerializedDate":true,"string":"Mon Apr 16 2012 14:50:00 GMT+0200 (CEST)"},"5231":{"varMapping":{"__isSmartRef__":true,"id":5232},"source":"function getCanvas() {\n return this._renderContext.shapeNode;\n}","funcProperties":{"__isSmartRef__":true,"id":5233},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5232":{"this":{"__isSmartRef__":true,"id":5164}},"5233":{"timestamp":{"__isSmartRef__":true,"id":5234},"user":"conradcalmez","tags":["accessing"]},"5234":{"isSerializedDate":true,"string":"Fri Apr 13 2012 10:50:08 GMT+0200 (CEST)"},"5235":{"varMapping":{"__isSmartRef__":true,"id":5236},"source":"function activate() {\n this.active = true;\n this.applyStyle({borderColor: Color.green});\n this.initialSync();\n var that = this;\n this.getDB().startPollingChanges(function (change) {\n if(typeof change === \"object\"){\n if (change.deleted) {\n // only whole deletion of whiteboard possible right now\n that.clear(true);\n } else {\n // XXX no support for multiple parallel boards\n var document = that.getDB().open(change.id);\n if (document.drawer != that.getDrawerID()) {\n that.drawLineFrom(document);\n }\n }\n } else {\n alert(\"change is no object\");\n }\n },\n function(e){\n alert(e);\n throw(e);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":5237},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5236":{"this":{"__isSmartRef__":true,"id":5164}},"5237":{"timestamp":{"__isSmartRef__":true,"id":5238},"user":"conradcalmez","tags":["synchonization"]},"5238":{"isSerializedDate":true,"string":"Tue Apr 17 2012 15:03:45 GMT+0200 (CEST)"},"5239":{"varMapping":{"__isSmartRef__":true,"id":5240},"source":"function initialSync() {\n // XXX TODO implement\n var that = this;\n var docs = this.getDB().allDocs();\n docs.rows.each(function (ea) {\n var doc = that.getDB().open(ea.id);\n that.drawLineFrom(doc);\n });\n // following code can be at beginning\n // tradeoff: (1) data reduction because one gets everything that not has been drawn offline\n // (2) updates to other clients will come a little later (after update of this client)\n this.syncPointQueueToDatabase();\n}","funcProperties":{"__isSmartRef__":true,"id":5241},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5240":{"this":{"__isSmartRef__":true,"id":5164}},"5241":{"timestamp":{"__isSmartRef__":true,"id":5242},"user":"conradcalmez","tags":["synchonization"]},"5242":{"isSerializedDate":true,"string":"Tue Apr 17 2012 14:35:37 GMT+0200 (CEST)"},"5243":{"varMapping":{"__isSmartRef__":true,"id":5244},"source":"function getDrawingContext() {\n return this.getCanvas().getContext(\"2d\");\n}","funcProperties":{"__isSmartRef__":true,"id":5245},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5244":{"this":{"__isSmartRef__":true,"id":5164}},"5245":{"timestamp":{"__isSmartRef__":true,"id":5246},"user":"conradcalmez","tags":["accessing"]},"5246":{"isSerializedDate":true,"string":"Fri Apr 13 2012 10:50:19 GMT+0200 (CEST)"},"5247":{"varMapping":{"__isSmartRef__":true,"id":5248},"source":"function onTouchStart(evt) {\n this.startDrawing(evt);\n evt.stop();\n}","funcProperties":{"__isSmartRef__":true,"id":5253},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5248":{"this":{"__isSmartRef__":true,"id":5164},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5249}},"5249":{"$super":{"__isSmartRef__":true,"id":5250}},"5250":{"varMapping":{"__isSmartRef__":true,"id":5251},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5252},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5251":{"obj":{"__isSmartRef__":true,"id":5164},"name":"onTouchStart"},"5252":{},"5253":{"timestamp":{"__isSmartRef__":true,"id":5254},"user":"conradcalmez","tags":["touch actions"]},"5254":{"isSerializedDate":true,"string":"Fri Apr 13 2012 12:27:35 GMT+0200 (CEST)"},"5255":{"varMapping":{"__isSmartRef__":true,"id":5256},"source":"function onTouchMove(evt) {\n if (this.isDrawing) {\n this.lineTo(pt(evt.pageX, evt.pageY), true, true);\n }\n evt.stop();\n}","funcProperties":{"__isSmartRef__":true,"id":5257},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5256":{"this":{"__isSmartRef__":true,"id":5164}},"5257":{"timestamp":{"__isSmartRef__":true,"id":5258},"user":"conradcalmez","tags":["touch actions"]},"5258":{"isSerializedDate":true,"string":"Tue Apr 17 2012 14:58:14 GMT+0200 (CEST)"},"5259":{"varMapping":{"__isSmartRef__":true,"id":5260},"source":"function onTouchEnd(evt) {\n this.stopDrawing(evt, true);\n evt.stop();\n}","funcProperties":{"__isSmartRef__":true,"id":5265},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5260":{"this":{"__isSmartRef__":true,"id":5164},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5261}},"5261":{"$super":{"__isSmartRef__":true,"id":5262}},"5262":{"varMapping":{"__isSmartRef__":true,"id":5263},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5264},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5263":{"obj":{"__isSmartRef__":true,"id":5164},"name":"onTouchEnd"},"5264":{},"5265":{"timestamp":{"__isSmartRef__":true,"id":5266},"user":"conradcalmez","tags":["touch actions"]},"5266":{"isSerializedDate":true,"string":"Fri Apr 13 2012 13:17:41 GMT+0200 (CEST)"},"5267":{"varMapping":{"__isSmartRef__":true,"id":5268},"source":"function onMouseUp(evt) {\n this.stopDrawing(evt);\n evt.stop();\n}","funcProperties":{"__isSmartRef__":true,"id":5273},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5268":{"this":{"__isSmartRef__":true,"id":5164},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5269}},"5269":{"$super":{"__isSmartRef__":true,"id":5270}},"5270":{"varMapping":{"__isSmartRef__":true,"id":5271},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5272},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5271":{"obj":{"__isSmartRef__":true,"id":5164},"name":"onMouseUp"},"5272":{},"5273":{"timestamp":{"__isSmartRef__":true,"id":5274},"user":"conradcalmez","tags":["mouse actions"]},"5274":{"isSerializedDate":true,"string":"Fri Apr 13 2012 13:20:09 GMT+0200 (CEST)"},"5275":{"varMapping":{"__isSmartRef__":true,"id":5276},"source":"function transformPoint(pagePoint) {\n var canvasPosition = this.getPosition();\n return pagePoint.subPt(canvasPosition);\n}","funcProperties":{"__isSmartRef__":true,"id":5277},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5276":{"this":{"__isSmartRef__":true,"id":5164}},"5277":{"timestamp":{"__isSmartRef__":true,"id":5278},"user":"conradcalmez","tags":["drawing"]},"5278":{"isSerializedDate":true,"string":"Fri Apr 13 2012 10:58:01 GMT+0200 (CEST)"},"5279":{"varMapping":{"__isSmartRef__":true,"id":5280},"source":"function onMouseDown(evt) {\n if (evt.isLeftMouseButtonDown()) {\n this.startDrawing(evt);\n evt.stop();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5285},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5280":{"this":{"__isSmartRef__":true,"id":5164},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5281}},"5281":{"$super":{"__isSmartRef__":true,"id":5282}},"5282":{"varMapping":{"__isSmartRef__":true,"id":5283},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5284},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5283":{"obj":{"__isSmartRef__":true,"id":5164},"name":"onMouseDown"},"5284":{},"5285":{"timestamp":{"__isSmartRef__":true,"id":5286},"user":"conradcalmez","tags":["mouse actions"]},"5286":{"isSerializedDate":true,"string":"Tue Apr 17 2012 15:11:58 GMT+0200 (CEST)"},"5287":{"varMapping":{"__isSmartRef__":true,"id":5288},"source":"function onMouseMove(evt) {\n if (this.isDrawing) {\n this.lineTo(pt(evt.pageX, evt.pageY), true, true);\n }\n evt.stop();\n}","funcProperties":{"__isSmartRef__":true,"id":5293},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5288":{"this":{"__isSmartRef__":true,"id":5164},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5289}},"5289":{"$super":{"__isSmartRef__":true,"id":5290}},"5290":{"varMapping":{"__isSmartRef__":true,"id":5291},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5292},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5291":{"obj":{"__isSmartRef__":true,"id":5164},"name":"onMouseMove"},"5292":{},"5293":{"timestamp":{"__isSmartRef__":true,"id":5294},"user":"conradcalmez","tags":["mouse actions"]},"5294":{"isSerializedDate":true,"string":"Tue Apr 17 2012 14:58:06 GMT+0200 (CEST)"},"5295":{"varMapping":{"__isSmartRef__":true,"id":5296},"source":"function moveTo(point, sync, optTransform) {\n var pos = point;\n if (optTransform) {\n pos = this.transformPoint(pos);\n }\n if (sync) {\n if (this.getPointQueue().length > 0) {\n this.getPointQueue().push([-1, -1]);\n }\n this.getPointQueue().push([pos.x, pos.y]);\n }\n var ctx = this.getDrawingContext();\n ctx.beginPath();\n ctx.moveTo(pos.x, pos.y);\n}","funcProperties":{"__isSmartRef__":true,"id":5297},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5296":{"this":{"__isSmartRef__":true,"id":5164}},"5297":{"timestamp":{"__isSmartRef__":true,"id":5298},"user":"conradcalmez","tags":["drawing"]},"5298":{"isSerializedDate":true,"string":"Tue Apr 17 2012 14:57:07 GMT+0200 (CEST)"},"5299":{"varMapping":{"__isSmartRef__":true,"id":5300},"source":"function lineTo(point, sync, optTransform, color) {\n var pos = point;\n if (optTransform) {\n pos = this.transformPoint(pos);\n }\n if (sync) {\n this.getPointQueue().push([pos.x, pos.y]);\n }\n var ctx = this.getDrawingContext();\n if (color) {\n ctx.strokeStyle = color.toString();\n } else {\n ctx.strokeStyle = \"rgb(0,0,0)\";\n }\n ctx.lineTo(pos.x, pos.y);\n ctx.stroke();\n}","funcProperties":{"__isSmartRef__":true,"id":5301},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5300":{"this":{"__isSmartRef__":true,"id":5164}},"5301":{"timestamp":{"__isSmartRef__":true,"id":5302},"user":"conradcalmez","tags":["drawing"]},"5302":{"isSerializedDate":true,"string":"Tue Apr 17 2012 14:56:57 GMT+0200 (CEST)"},"5303":{"varMapping":{"__isSmartRef__":true,"id":5304},"source":"function onMouseOut(evt) {\n // XXX cancelation better than strange drawing behavior?\n this.onMouseUp(evt);\n}","funcProperties":{"__isSmartRef__":true,"id":5309},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5304":{"this":{"__isSmartRef__":true,"id":5164},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5305}},"5305":{"$super":{"__isSmartRef__":true,"id":5306}},"5306":{"varMapping":{"__isSmartRef__":true,"id":5307},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5308},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5307":{"obj":{"__isSmartRef__":true,"id":5164},"name":"onMouseOut"},"5308":{},"5309":{"timestamp":{"__isSmartRef__":true,"id":5310},"user":"conradcalmez","tags":["mouse actions"]},"5310":{"isSerializedDate":true,"string":"Mon Apr 16 2012 14:52:16 GMT+0200 (CEST)"},"5311":{"varMapping":{"__isSmartRef__":true,"id":5312},"source":"function startDrawing(evt) {\n this.resetPointQueue();\n this.moveTo(pt(evt.pageX, evt.pageY), true, true);\n this.isDrawing = true;\n}","funcProperties":{"__isSmartRef__":true,"id":5313},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5312":{"this":{"__isSmartRef__":true,"id":5164}},"5313":{"timestamp":{"__isSmartRef__":true,"id":5314},"user":"conradcalmez","tags":["drawing"]},"5314":{"isSerializedDate":true,"string":"Tue Apr 17 2012 14:58:42 GMT+0200 (CEST)"},"5315":{"varMapping":{"__isSmartRef__":true,"id":5316},"source":"function stopDrawing(evt, touch) {\n //var ctx = this.getDrawingContext();\n //ctx.closePath();\n if (this.isDrawing) {\n if (!touch) {\n this.onMouseMove(evt);\n } else {\n this.onTouchMove(evt);\n }\n this.isDrawing = false;\n this.syncPointQueueToDatabase();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5317},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5316":{"this":{"__isSmartRef__":true,"id":5164}},"5317":{"timestamp":{"__isSmartRef__":true,"id":5318},"user":"conradcalmez","tags":["drawing"]},"5318":{"isSerializedDate":true,"string":"Mon Apr 16 2012 16:33:36 GMT+0200 (CEST)"},"5319":{"varMapping":{"__isSmartRef__":true,"id":5320},"source":"function remove() {\n // XXX stop longpolling\n this.suspendSteppingAll();\n if (this.showsHalos) this.removeHalos();\n this.renderContextDispatch('remove');\n}","funcProperties":{"__isSmartRef__":true,"id":5325},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5320":{"this":{"__isSmartRef__":true,"id":5164},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5321}},"5321":{"$super":{"__isSmartRef__":true,"id":5322}},"5322":{"varMapping":{"__isSmartRef__":true,"id":5323},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5324},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5323":{"obj":{"__isSmartRef__":true,"id":5164},"name":"remove"},"5324":{},"5325":{"timestamp":{"__isSmartRef__":true,"id":5326},"user":"conradcalmez","tags":["initialization"]},"5326":{"isSerializedDate":true,"string":"Fri Apr 13 2012 13:47:29 GMT+0200 (CEST)"},"5327":{"varMapping":{"__isSmartRef__":true,"id":5328},"source":"function resetPointQueue() {\n this.setPointQueue([]);\n}","funcProperties":{"__isSmartRef__":true,"id":5329},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5328":{"this":{"__isSmartRef__":true,"id":5164}},"5329":{"timestamp":{"__isSmartRef__":true,"id":5330},"user":"conradcalmez","tags":["synchonization"]},"5330":{"isSerializedDate":true,"string":"Mon Apr 16 2012 13:41:59 GMT+0200 (CEST)"},"5331":{"varMapping":{"__isSmartRef__":true,"id":5332},"source":"function getPointQueue() {\n return this.pointQueue || [];\n}","funcProperties":{"__isSmartRef__":true,"id":5333},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5332":{"this":{"__isSmartRef__":true,"id":5164}},"5333":{"timestamp":{"__isSmartRef__":true,"id":5334},"user":"conradcalmez","tags":["synchonization"]},"5334":{"isSerializedDate":true,"string":"Mon Apr 16 2012 13:40:50 GMT+0200 (CEST)"},"5335":{"varMapping":{"__isSmartRef__":true,"id":5336},"source":"function setPointQueue(queue) {\n this.pointQueue = queue;\n}","funcProperties":{"__isSmartRef__":true,"id":5337},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5336":{"this":{"__isSmartRef__":true,"id":5164}},"5337":{"timestamp":{"__isSmartRef__":true,"id":5338},"user":"conradcalmez","tags":["synchonization"]},"5338":{"isSerializedDate":true,"string":"Mon Apr 16 2012 13:41:41 GMT+0200 (CEST)"},"5339":{"varMapping":{"__isSmartRef__":true,"id":5340},"source":"function syncPointQueueToDatabase() {\n if (this.active) {\n var queue = this.getPointQueue();\n for (var i=0; i < queue.length-1; i++) {\n var start = queue[i],\n end = queue[i+1];\n if (end == [-1, -1]) {\n continue;\n }\n var document = {\n board: \"example\",\n time: Date.now(),\n drawer: this.getDrawerID(),\n startPoint: start,\n endPoint: end\n };\n var result = this.getDB().save(document);\n if (result.error == \"conflict\") {\n console.log(\"an error occured while synching the whiteboard\");\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5341},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5340":{"this":{"__isSmartRef__":true,"id":5164}},"5341":{"timestamp":{"__isSmartRef__":true,"id":5342},"user":"conradcalmez","tags":["synchonization"]},"5342":{"isSerializedDate":true,"string":"Tue Apr 17 2012 11:11:01 GMT+0200 (CEST)"},"5343":{"varMapping":{"__isSmartRef__":true,"id":5344},"source":"function morphMenuItems() {\n items = $super();\n var itemString = \"activate sync\";\n if (this.active) itemString = \"de\" + itemString;\n items.push([itemString, (function () {this.toggleActivation()}).bind(this)]);\n items.push([\"clear whiteboard\", (function () {this.clear()}).bind(this)])\n return items;\n}","funcProperties":{"__isSmartRef__":true,"id":5349},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5344":{"this":{"__isSmartRef__":true,"id":5164},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5345}},"5345":{"$super":{"__isSmartRef__":true,"id":5346}},"5346":{"varMapping":{"__isSmartRef__":true,"id":5347},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5348},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5347":{"obj":{"__isSmartRef__":true,"id":5164},"name":"morphMenuItems"},"5348":{},"5349":{"timestamp":{"__isSmartRef__":true,"id":5350},"user":"conradcalmez","tags":[]},"5350":{"isSerializedDate":true,"string":"Mon Apr 16 2012 15:06:24 GMT+0200 (CEST)"},"5351":{"varMapping":{"__isSmartRef__":true,"id":5352},"source":"function clearDatabase() {\n if (this.active) {\n var docs = this.getDB().allDocs();\n var that = this;\n docs.rows.each(function (ea) {\n var doc = that.getDB().open(ea.id);\n that.getDB().deleteDoc(doc);\n });\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5353},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5352":{"this":{"__isSmartRef__":true,"id":5164}},"5353":{"timestamp":{"__isSmartRef__":true,"id":5354},"user":"conradcalmez","tags":["synchonization"]},"5354":{"isSerializedDate":true,"string":"Mon Apr 16 2012 14:33:34 GMT+0200 (CEST)"},"5355":{"varMapping":{"__isSmartRef__":true,"id":5356},"source":"function toggleActivation() {\n if (!this.active) {\n this.activate();\n } else {\n this.deactivate();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":5357},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5356":{"this":{"__isSmartRef__":true,"id":5164}},"5357":{"timestamp":{"__isSmartRef__":true,"id":5358},"user":"conradcalmez","tags":[]},"5358":{"isSerializedDate":true,"string":"Mon Apr 16 2012 15:03:54 GMT+0200 (CEST)"},"5359":{"varMapping":{"__isSmartRef__":true,"id":5360},"source":"function getDrawerID() {\n return $world.getUserName() + \"_ON_\" + this.id;\n}","funcProperties":{"__isSmartRef__":true,"id":5361},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5360":{"this":{"__isSmartRef__":true,"id":5164}},"5361":{"timestamp":{"__isSmartRef__":true,"id":5362},"user":"conradcalmez","tags":[]},"5362":{"isSerializedDate":true,"string":"Tue Apr 17 2012 11:09:14 GMT+0200 (CEST)"},"5363":{"varMapping":{"__isSmartRef__":true,"id":5364},"source":"function drawLineFrom(document) {\n var startPoint = pt(document.startPoint[0], document.startPoint[1]);\n var endPoint = pt(document.endPoint[0], document.endPoint[1]);\n this.moveTo(startPoint);\n this.lineTo(endPoint);\n}","funcProperties":{"__isSmartRef__":true,"id":5365},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5364":{"this":{"__isSmartRef__":true,"id":5164}},"5365":{"timestamp":{"__isSmartRef__":true,"id":5366},"user":"conradcalmez","tags":[]},"5366":{"isSerializedDate":true,"string":"Tue Apr 17 2012 14:28:05 GMT+0200 (CEST)"},"5367":{"varMapping":{"__isSmartRef__":true,"id":5368},"source":"function setExtent(value) {\n $super(value);\n this.getCanvas().width = value.x\n this.getCanvas().height = value.y\n}","funcProperties":{"__isSmartRef__":true,"id":5373},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5368":{"this":{"__isSmartRef__":true,"id":5164},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5369}},"5369":{"$super":{"__isSmartRef__":true,"id":5370}},"5370":{"varMapping":{"__isSmartRef__":true,"id":5371},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5372},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5371":{"obj":{"__isSmartRef__":true,"id":5164},"name":"setExtent"},"5372":{},"5373":{"timestamp":{"__isSmartRef__":true,"id":5374},"user":"conradcalmez","tags":[]},"5374":{"isSerializedDate":true,"string":"Tue Apr 17 2012 16:20:14 GMT+0200 (CEST)"},"5375":{"submorphs":[{"__isSmartRef__":true,"id":5376},{"__isSmartRef__":true,"id":8417},{"__isSmartRef__":true,"id":8454}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8598},"id":"2302FFE6-1A32-42E3-9E08-B7B4733C4561","renderContextTable":{"__isSmartRef__":true,"id":8602},"eventHandler":{"__isSmartRef__":true,"id":8603},"droppingEnabled":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":8604},"LK2":true,"_Position":{"__isSmartRef__":true,"id":8605},"priorExtent":{"__isSmartRef__":true,"id":8606},"targetMorph":{"__isSmartRef__":true,"id":5376},"titleBar":{"__isSmartRef__":true,"id":8454},"contentOffset":{"__isSmartRef__":true,"id":8607},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":null,"expandedExtent":null,"ignoreEventsOnExpand":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":8608},"name":"Explorer","prevDragPos":{"__isSmartRef__":true,"id":8653},"isBeingDragged":false,"highlighted":false,"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","explorer":{"__isSmartRef__":true,"id":5376},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isCopyMorphRef":true,"morphRefId":1,"prevScroll":[0,0],"minExtent":{"__isSmartRef__":true,"id":8654},"derivationIds":[369,"5976C77B-5C20-4DC4-BDA1-A2269E9FEC17","8A4661CC-271E-4CA9-9B42-C428E5DCCB01","B002D7D6-4167-4D6A-8981-E569CE5EE4CC","21A298C5-87D3-4C5F-8FB6-34DB19723B44","A077835E-1096-40C4-92FB-6830D29FC989","32525E7F-A548-4001-86AE-BBDE7D2BAD17"],"_Rotation":0,"_Scale":1.0141055623885957,"owner":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8655},"__LivelyClassName__":"lively.morphic.Window","withoutLayers":["Global.lively.morphic.GrabbingLayer"]},"5376":{"submorphs":[{"__isSmartRef__":true,"id":5377},{"__isSmartRef__":true,"id":8360}],"scripts":[],"id":"188301F6-63D8-44DB-A438-12268A0C2CA5","shape":{"__isSmartRef__":true,"id":8383},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":8390},"showsHalos":false,"name":"ExplorerPane","partsBinMetaInfo":{"__isSmartRef__":true,"id":8391},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":8394},"eventHandler":{"__isSmartRef__":true,"id":8395},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"owner":{"__isSmartRef__":true,"id":5375},"priorExtent":{"__isSmartRef__":true,"id":8396},"distanceToDragEvent":{"__isSmartRef__":true,"id":8397},"layout":{"__isSmartRef__":true,"id":8398},"workspace":{"__isSmartRef__":true,"id":8360},"treeView":{"__isSmartRef__":true,"id":5377},"focusedNode":{"__isSmartRef__":true,"id":5380},"isInLayoutCycle":false,"prevScroll":[0,0],"derivationIds":[370,"19EB328E-FFB1-41CD-B181-A60FCF27908C","D1C1A399-6222-405C-A922-2ADD2DFBFB56","F7B66347-DB63-470F-8ABC-5C342E31BC5E","7A83A60F-0956-4BD5-AFDB-B7CFECEF9E30","D14B60A2-D449-4E15-8A1B-EADF6D8A988B","9AA7774E-2D58-467B-986D-947454B915CA"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8400},"__LivelyClassName__":"lively.morphic.Box"},"5377":{"submorphs":[{"__isSmartRef__":true,"id":5378}],"scripts":[{"__isSmartRef__":true,"id":8279}],"id":"E9A948EF-76ED-4936-AA4C-F7BC8FDC9769","shape":{"__isSmartRef__":true,"id":8280},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":8286},"showsHalos":false,"name":"TreeView","partsBinMetaInfo":{"__isSmartRef__":true,"id":8287},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":8288},"eventHandler":{"__isSmartRef__":true,"id":8289},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"priorExtent":{"__isSmartRef__":true,"id":8290},"layout":{"__isSmartRef__":true,"id":8291},"isInLayoutCycle":false,"isCopyMorphRef":true,"morphRefId":1,"isBeingDragged":false,"owner":{"__isSmartRef__":true,"id":5376},"distanceToDragEvent":{"__isSmartRef__":true,"id":8293},"colors":{"__isSmartRef__":true,"id":8294},"fonts":{"__isSmartRef__":true,"id":8295},"sizes":{"__isSmartRef__":true,"id":8296},"rootNode":{"__isSmartRef__":true,"id":5380},"prevScroll":[0,0],"derivationIds":[371,"5F72E9BF-51FA-45DD-9F01-ADDC32FBF64C","4B46569F-B458-41CF-846F-31DB325C55FE","BC2E4190-4592-4E2C-8644-51CA0FC16963","DBB73829-F82D-45F0-8499-2332C8C0487E","78E2B139-F388-4299-A7CC-0964C21003A4","F124DD76-61DA-471A-A1DA-D01C9F74D5C3"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8301},"__LivelyClassName__":"lively.morphic.Box"},"5378":{"submorphs":[{"__isSmartRef__":true,"id":5379}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8261},"derivationIds":[null],"id":"140DEED8-F74E-462B-82E3-D4AEEA039876","renderContextTable":{"__isSmartRef__":true,"id":8266},"eventHandler":{"__isSmartRef__":true,"id":8267},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":8268},"_ClipMode":"scroll","layout":{"__isSmartRef__":true,"id":8269},"grabbingEnabled":false,"draggingEnabled":false,"name":"TreeViewScrollPane","owner":{"__isSmartRef__":true,"id":5377},"priorExtent":{"__isSmartRef__":true,"id":8270},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8271},"__LivelyClassName__":"lively.morphic.Clip","__SourceModuleName__":"Global.lively.morphic.Core"},"5379":{"submorphs":[{"__isSmartRef__":true,"id":5380},{"__isSmartRef__":true,"id":5478}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8243},"derivationIds":[null],"id":"80912333-68DD-4FDC-8593-2D20AD29D953","renderContextTable":{"__isSmartRef__":true,"id":8248},"eventHandler":{"__isSmartRef__":true,"id":8249},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8250},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":8252},"owner":{"__isSmartRef__":true,"id":5378},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8253},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5380":{"submorphs":[{"__isSmartRef__":true,"id":5381},{"__isSmartRef__":true,"id":5398}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5417},"derivationIds":[null],"id":"C1D003A3-544A-4DB6-BF55-94D262F6C2C1","renderContextTable":{"__isSmartRef__":true,"id":5422},"eventHandler":{"__isSmartRef__":true,"id":5423},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5424},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":5164},"propertyList":["submorphs","scripts","shape","derivationIds","id","renderContextTable","eventHandler","droppingEnabled","halosEnabled","_Position","isBeingDragged","attributeConnections","doNotSerialize","doNotCopyProperties","showsHalos","partsBinMetaInfo","name","prevScroll","distanceToDragEvent","__SourceModuleName__","fillStyle","isDrawing","grabbingEnabled","pointQueue","active","db","dbName","_renderContext","owner","halos","_Rotation","_Scale","priorExtent"],"level":0,"treeView":{"__isSmartRef__":true,"id":5377},"label":"Properties","children":[{"__isSmartRef__":true,"id":5425},{"__isSmartRef__":true,"id":5480},{"__isSmartRef__":true,"id":5564},{"__isSmartRef__":true,"id":5648},{"__isSmartRef__":true,"id":5732},{"__isSmartRef__":true,"id":5817},{"__isSmartRef__":true,"id":5901},{"__isSmartRef__":true,"id":5985},{"__isSmartRef__":true,"id":6069},{"__isSmartRef__":true,"id":6153},{"__isSmartRef__":true,"id":6237},{"__isSmartRef__":true,"id":6321},{"__isSmartRef__":true,"id":6405},{"__isSmartRef__":true,"id":6489},{"__isSmartRef__":true,"id":6573},{"__isSmartRef__":true,"id":6657},{"__isSmartRef__":true,"id":6741},{"__isSmartRef__":true,"id":6825},{"__isSmartRef__":true,"id":6909},{"__isSmartRef__":true,"id":6993},{"__isSmartRef__":true,"id":7077},{"__isSmartRef__":true,"id":7161},{"__isSmartRef__":true,"id":7245},{"__isSmartRef__":true,"id":7329},{"__isSmartRef__":true,"id":7413},{"__isSmartRef__":true,"id":7497},{"__isSmartRef__":true,"id":7581},{"__isSmartRef__":true,"id":7665},{"__isSmartRef__":true,"id":7749},{"__isSmartRef__":true,"id":7833},{"__isSmartRef__":true,"id":7917},{"__isSmartRef__":true,"id":8001},{"__isSmartRef__":true,"id":8085}],"parent":null,"expander":{"__isSmartRef__":true,"id":5381},"text":{"__isSmartRef__":true,"id":5398},"owner":{"__isSmartRef__":true,"id":5379},"_Position":{"__isSmartRef__":true,"id":8221},"priorExtent":{"__isSmartRef__":true,"id":8222},"_Rotation":0,"_Scale":1.0141055623885957,"childrenWrapper":{"__isSmartRef__":true,"id":5478},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8223},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5381":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5382},"derivationIds":[null],"id":"23A51F5F-4C95-480C-A9E7-C1015045810F","renderContextTable":{"__isSmartRef__":true,"id":5388},"eventHandler":{"__isSmartRef__":true,"id":5389},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5390},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":true,"owner":{"__isSmartRef__":true,"id":5380},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5391},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"5382":{"_Position":{"__isSmartRef__":true,"id":5383},"renderContextTable":{"__isSmartRef__":true,"id":5384},"_Extent":{"__isSmartRef__":true,"id":5385},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5386},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5387},"_Fill":{"__isSmartRef__":true,"id":2812},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5383":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5384":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5385":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5386":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5387":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5388":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5389":{"morph":{"__isSmartRef__":true,"id":5381},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5390":{"x":8,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5391":{"toggle":{"__isSmartRef__":true,"id":5392},"toggleExpansion":{"__isSmartRef__":true,"id":5395}},"5392":{"varMapping":{"__isSmartRef__":true,"id":5393},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":5394},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5393":{"this":{"__isSmartRef__":true,"id":5381}},"5394":{},"5395":{"varMapping":{"__isSmartRef__":true,"id":5396},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":5397},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5396":{"this":{"__isSmartRef__":true,"id":5381}},"5397":{},"5398":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5399},"derivationIds":[null],"id":"26B3D6B8-D273-4FA2-9536-8716E3DAA204","renderContextTable":{"__isSmartRef__":true,"id":5405},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":5406},{"__isSmartRef__":true,"id":5408}],"eventHandler":{"__isSmartRef__":true,"id":5411},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":5412},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":5380},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5413},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5399":{"_Position":{"__isSmartRef__":true,"id":5400},"renderContextTable":{"__isSmartRef__":true,"id":5401},"_Extent":{"__isSmartRef__":true,"id":5402},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":5403},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":632},"_Fill":{"__isSmartRef__":true,"id":5404},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5400":{"x":18,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5401":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5402":{"x":180.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5403":{"x":4,"y":2,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5404":{"r":0.9529411764705882,"g":0.9529411764705882,"b":0.9529411764705882,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5405":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"5406":{"style":{"__isSmartRef__":true,"id":5407},"chunkOwner":{"__isSmartRef__":true,"id":5398},"storedString":"Properties","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5407":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5408":{"style":{"__isSmartRef__":true,"id":5409},"chunkOwner":{"__isSmartRef__":true,"id":5398},"storedString":": WhiteBoard3","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5409":{"color":{"__isSmartRef__":true,"id":5410},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5410":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5411":{"morph":{"__isSmartRef__":true,"id":5398},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5412":{"x":172.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5413":{"layoutText":{"__isSmartRef__":true,"id":5414}},"5414":{"varMapping":{"__isSmartRef__":true,"id":5415},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":5416},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5415":{"this":{"__isSmartRef__":true,"id":5398}},"5416":{},"5417":{"_Position":{"__isSmartRef__":true,"id":5418},"renderContextTable":{"__isSmartRef__":true,"id":5419},"_Extent":{"__isSmartRef__":true,"id":5420},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5421},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5418":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5419":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5420":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5421":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5422":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5423":{"morph":{"__isSmartRef__":true,"id":5380},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5424":{"resizeWidth":true},"5425":{"submorphs":[{"__isSmartRef__":true,"id":5426},{"__isSmartRef__":true,"id":5443}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5459},"derivationIds":[null],"id":"AD68D50A-162D-4DFC-A808-159FFFD10D7F","renderContextTable":{"__isSmartRef__":true,"id":5464},"eventHandler":{"__isSmartRef__":true,"id":5465},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5466},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":5172},"propertyList":["x","y"],"level":1,"treeView":{"__isSmartRef__":true,"id":5377},"label":"_Position","children":[],"parent":{"__isSmartRef__":true,"id":5380},"expander":{"__isSmartRef__":true,"id":5426},"text":{"__isSmartRef__":true,"id":5443},"owner":{"__isSmartRef__":true,"id":5467},"_Position":{"__isSmartRef__":true,"id":8199},"priorExtent":{"__isSmartRef__":true,"id":8200},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8201},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5426":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5427},"derivationIds":[null],"id":"81D1FB9B-F1A7-4C3B-970F-4938E7EABDAC","renderContextTable":{"__isSmartRef__":true,"id":5433},"eventHandler":{"__isSmartRef__":true,"id":5434},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5435},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":5425},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5436},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"5427":{"_Position":{"__isSmartRef__":true,"id":5428},"renderContextTable":{"__isSmartRef__":true,"id":5429},"_Extent":{"__isSmartRef__":true,"id":5430},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5431},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5387},"_Fill":{"__isSmartRef__":true,"id":5432},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5428":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5429":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5430":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5431":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5432":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5433":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5434":{"morph":{"__isSmartRef__":true,"id":5426},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5435":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5436":{"toggle":{"__isSmartRef__":true,"id":5437},"toggleExpansion":{"__isSmartRef__":true,"id":5440}},"5437":{"varMapping":{"__isSmartRef__":true,"id":5438},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":5439},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5438":{"this":{"__isSmartRef__":true,"id":5426}},"5439":{},"5440":{"varMapping":{"__isSmartRef__":true,"id":5441},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":5442},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5441":{"this":{"__isSmartRef__":true,"id":5426}},"5442":{},"5443":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5444},"derivationIds":[null],"id":"6B19BDB6-510C-481A-9100-A7181D6E5C18","renderContextTable":{"__isSmartRef__":true,"id":5448},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":5449},{"__isSmartRef__":true,"id":5451}],"eventHandler":{"__isSmartRef__":true,"id":5453},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":5454},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":5425},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5455},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5444":{"_Position":{"__isSmartRef__":true,"id":5445},"renderContextTable":{"__isSmartRef__":true,"id":5446},"_Extent":{"__isSmartRef__":true,"id":5447},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":5403},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":632},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5445":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"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":128,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5448":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"5449":{"style":{"__isSmartRef__":true,"id":5450},"chunkOwner":{"__isSmartRef__":true,"id":5443},"storedString":"_Position","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5450":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5451":{"style":{"__isSmartRef__":true,"id":5452},"chunkOwner":{"__isSmartRef__":true,"id":5443},"storedString":": Point","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5452":{"color":{"__isSmartRef__":true,"id":5410},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5453":{"morph":{"__isSmartRef__":true,"id":5443},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5454":{"x":120,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5455":{"layoutText":{"__isSmartRef__":true,"id":5456}},"5456":{"varMapping":{"__isSmartRef__":true,"id":5457},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":5458},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5457":{"this":{"__isSmartRef__":true,"id":5443}},"5458":{},"5459":{"_Position":{"__isSmartRef__":true,"id":5460},"renderContextTable":{"__isSmartRef__":true,"id":5461},"_Extent":{"__isSmartRef__":true,"id":5462},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5463},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5460":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5461":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5462":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5463":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5464":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5465":{"morph":{"__isSmartRef__":true,"id":5425},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5466":{"resizeWidth":true},"5467":{"submorphs":[{"__isSmartRef__":true,"id":5425}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5468},"derivationIds":[null],"id":"B6F19E2B-D439-4777-AA86-CFEA7CA9B31E","renderContextTable":{"__isSmartRef__":true,"id":5473},"eventHandler":{"__isSmartRef__":true,"id":5474},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5475},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":5477},"owner":{"__isSmartRef__":true,"id":5478},"_Position":{"__isSmartRef__":true,"id":8190},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8191},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5468":{"_Position":{"__isSmartRef__":true,"id":5469},"renderContextTable":{"__isSmartRef__":true,"id":5470},"_Extent":{"__isSmartRef__":true,"id":5471},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5472},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5469":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5470":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5471":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5472":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5473":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5474":{"morph":{"__isSmartRef__":true,"id":5467},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5475":{"layouter":{"__isSmartRef__":true,"id":5476},"resizeWidth":true},"5476":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":5467},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"5477":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5478":{"submorphs":[{"__isSmartRef__":true,"id":5467},{"__isSmartRef__":true,"id":5479},{"__isSmartRef__":true,"id":5563},{"__isSmartRef__":true,"id":5647},{"__isSmartRef__":true,"id":5731},{"__isSmartRef__":true,"id":5816},{"__isSmartRef__":true,"id":5900},{"__isSmartRef__":true,"id":5984},{"__isSmartRef__":true,"id":6068},{"__isSmartRef__":true,"id":6152},{"__isSmartRef__":true,"id":6236},{"__isSmartRef__":true,"id":6320},{"__isSmartRef__":true,"id":6404},{"__isSmartRef__":true,"id":6488},{"__isSmartRef__":true,"id":6572},{"__isSmartRef__":true,"id":6656},{"__isSmartRef__":true,"id":6740},{"__isSmartRef__":true,"id":6824},{"__isSmartRef__":true,"id":6908},{"__isSmartRef__":true,"id":6992},{"__isSmartRef__":true,"id":7076},{"__isSmartRef__":true,"id":7160},{"__isSmartRef__":true,"id":7244},{"__isSmartRef__":true,"id":7328},{"__isSmartRef__":true,"id":7412},{"__isSmartRef__":true,"id":7496},{"__isSmartRef__":true,"id":7580},{"__isSmartRef__":true,"id":7664},{"__isSmartRef__":true,"id":7748},{"__isSmartRef__":true,"id":7832},{"__isSmartRef__":true,"id":7916},{"__isSmartRef__":true,"id":8000},{"__isSmartRef__":true,"id":8084}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8168},"derivationIds":[null],"id":"DAE447D0-6BEA-4AC0-8261-3F1D0FC53120","renderContextTable":{"__isSmartRef__":true,"id":8173},"eventHandler":{"__isSmartRef__":true,"id":8174},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8175},"owner":{"__isSmartRef__":true,"id":5379},"_Position":{"__isSmartRef__":true,"id":8177},"priorExtent":{"__isSmartRef__":true,"id":8178},"isInLayoutCycle":false,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8179},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5479":{"submorphs":[{"__isSmartRef__":true,"id":5480}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5544},"derivationIds":[null],"id":"F11BD0EA-CF4A-462A-AD94-D808926F74DA","renderContextTable":{"__isSmartRef__":true,"id":5549},"eventHandler":{"__isSmartRef__":true,"id":5550},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5551},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":5553},"owner":{"__isSmartRef__":true,"id":5478},"_Position":{"__isSmartRef__":true,"id":5554},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5555},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5480":{"submorphs":[{"__isSmartRef__":true,"id":5481},{"__isSmartRef__":true,"id":5498}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5514},"derivationIds":[null],"id":"184D94FD-C857-461E-AB1D-C331689D7E92","renderContextTable":{"__isSmartRef__":true,"id":5519},"eventHandler":{"__isSmartRef__":true,"id":5520},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5521},"grabbingEnabled":false,"draggingEnabled":false,"data":0,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":5377},"label":"_Rotation","children":[],"parent":{"__isSmartRef__":true,"id":5380},"expander":{"__isSmartRef__":true,"id":5481},"text":{"__isSmartRef__":true,"id":5498},"owner":{"__isSmartRef__":true,"id":5479},"_Position":{"__isSmartRef__":true,"id":5522},"priorExtent":{"__isSmartRef__":true,"id":5523},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5524},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5481":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5482},"derivationIds":[null],"id":"FAFD4325-184B-46BB-B08C-74A736D589E8","renderContextTable":{"__isSmartRef__":true,"id":5488},"eventHandler":{"__isSmartRef__":true,"id":5489},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5490},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":5480},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5491},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"5482":{"_Position":{"__isSmartRef__":true,"id":5483},"renderContextTable":{"__isSmartRef__":true,"id":5484},"_Extent":{"__isSmartRef__":true,"id":5485},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5486},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5387},"_Fill":{"__isSmartRef__":true,"id":5487},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5483":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5484":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5485":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5486":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5487":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5488":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5489":{"morph":{"__isSmartRef__":true,"id":5481},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5490":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5491":{"toggle":{"__isSmartRef__":true,"id":5492},"toggleExpansion":{"__isSmartRef__":true,"id":5495}},"5492":{"varMapping":{"__isSmartRef__":true,"id":5493},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":5494},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5493":{"this":{"__isSmartRef__":true,"id":5481}},"5494":{},"5495":{"varMapping":{"__isSmartRef__":true,"id":5496},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":5497},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5496":{"this":{"__isSmartRef__":true,"id":5481}},"5497":{},"5498":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5499},"derivationIds":[null],"id":"1EF5287D-424C-4546-94CC-49B74FC69F1C","renderContextTable":{"__isSmartRef__":true,"id":5503},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":5504},{"__isSmartRef__":true,"id":5506}],"eventHandler":{"__isSmartRef__":true,"id":5508},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":5509},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":5480},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5510},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5499":{"_Position":{"__isSmartRef__":true,"id":5500},"renderContextTable":{"__isSmartRef__":true,"id":5501},"_Extent":{"__isSmartRef__":true,"id":5502},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":5403},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":632},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5500":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5501":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5502":{"x":98,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5503":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"5504":{"style":{"__isSmartRef__":true,"id":5505},"chunkOwner":{"__isSmartRef__":true,"id":5498},"storedString":"_Rotation","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5505":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5506":{"style":{"__isSmartRef__":true,"id":5507},"chunkOwner":{"__isSmartRef__":true,"id":5498},"storedString":": 0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5507":{"color":{"__isSmartRef__":true,"id":5410},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5508":{"morph":{"__isSmartRef__":true,"id":5498},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5509":{"x":90,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5510":{"layoutText":{"__isSmartRef__":true,"id":5511}},"5511":{"varMapping":{"__isSmartRef__":true,"id":5512},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":5513},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5512":{"this":{"__isSmartRef__":true,"id":5498}},"5513":{},"5514":{"_Position":{"__isSmartRef__":true,"id":5515},"renderContextTable":{"__isSmartRef__":true,"id":5516},"_Extent":{"__isSmartRef__":true,"id":5517},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5518},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5515":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5516":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5517":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5518":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5519":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5520":{"morph":{"__isSmartRef__":true,"id":5480},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5521":{"resizeWidth":true},"5522":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5523":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5524":{"updateExpanderColor":{"__isSmartRef__":true,"id":5525},"onMouseDown":{"__isSmartRef__":true,"id":5528},"isRoot":{"__isSmartRef__":true,"id":5535},"displayValue":{"__isSmartRef__":true,"id":5538},"update":{"__isSmartRef__":true,"id":5541}},"5525":{"varMapping":{"__isSmartRef__":true,"id":5526},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":5527},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5526":{"this":{"__isSmartRef__":true,"id":5480}},"5527":{},"5528":{"varMapping":{"__isSmartRef__":true,"id":5529},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":5534},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5529":{"this":{"__isSmartRef__":true,"id":5480},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5530}},"5530":{"$super":{"__isSmartRef__":true,"id":5531}},"5531":{"varMapping":{"__isSmartRef__":true,"id":5532},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5533},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5532":{"obj":{"__isSmartRef__":true,"id":5480},"name":"onMouseDown"},"5533":{},"5534":{},"5535":{"varMapping":{"__isSmartRef__":true,"id":5536},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":5537},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5536":{"this":{"__isSmartRef__":true,"id":5480}},"5537":{},"5538":{"varMapping":{"__isSmartRef__":true,"id":5539},"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":5540},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5539":{"this":{"__isSmartRef__":true,"id":5480}},"5540":{},"5541":{"varMapping":{"__isSmartRef__":true,"id":5542},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5543},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5542":{"this":{"__isSmartRef__":true,"id":5480}},"5543":{},"5544":{"_Position":{"__isSmartRef__":true,"id":5545},"renderContextTable":{"__isSmartRef__":true,"id":5546},"_Extent":{"__isSmartRef__":true,"id":5547},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5548},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5545":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5546":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5547":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5548":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5549":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5550":{"morph":{"__isSmartRef__":true,"id":5479},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5551":{"layouter":{"__isSmartRef__":true,"id":5552},"resizeWidth":true},"5552":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":5479},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"5553":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5554":{"x":0,"y":640,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5555":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":5556}},"5556":{"varMapping":{"__isSmartRef__":true,"id":5557},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":5562},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5557":{"this":{"__isSmartRef__":true,"id":5479},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5558}},"5558":{"$super":{"__isSmartRef__":true,"id":5559}},"5559":{"varMapping":{"__isSmartRef__":true,"id":5560},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5561},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5560":{"obj":{"__isSmartRef__":true,"id":5479},"name":"getLayoutableSubmorphs"},"5561":{},"5562":{},"5563":{"submorphs":[{"__isSmartRef__":true,"id":5564}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5628},"derivationIds":[null],"id":"0842DF42-761E-4710-8C4D-D9E826DB7D84","renderContextTable":{"__isSmartRef__":true,"id":5633},"eventHandler":{"__isSmartRef__":true,"id":5634},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5635},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":5637},"owner":{"__isSmartRef__":true,"id":5478},"_Position":{"__isSmartRef__":true,"id":5638},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5639},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5564":{"submorphs":[{"__isSmartRef__":true,"id":5565},{"__isSmartRef__":true,"id":5582}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5598},"derivationIds":[null],"id":"C620F9CC-C93A-4CA4-8142-FE8381371D2C","renderContextTable":{"__isSmartRef__":true,"id":5603},"eventHandler":{"__isSmartRef__":true,"id":5604},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5605},"grabbingEnabled":false,"draggingEnabled":false,"data":1,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":5377},"label":"_Scale","children":[],"parent":{"__isSmartRef__":true,"id":5380},"expander":{"__isSmartRef__":true,"id":5565},"text":{"__isSmartRef__":true,"id":5582},"owner":{"__isSmartRef__":true,"id":5563},"_Position":{"__isSmartRef__":true,"id":5606},"priorExtent":{"__isSmartRef__":true,"id":5607},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5608},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5565":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5566},"derivationIds":[null],"id":"578346AE-D2B9-4182-A7EA-A45AE9E4BFE7","renderContextTable":{"__isSmartRef__":true,"id":5572},"eventHandler":{"__isSmartRef__":true,"id":5573},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5574},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":5564},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5575},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"5566":{"_Position":{"__isSmartRef__":true,"id":5567},"renderContextTable":{"__isSmartRef__":true,"id":5568},"_Extent":{"__isSmartRef__":true,"id":5569},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5570},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5387},"_Fill":{"__isSmartRef__":true,"id":5571},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5567":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5568":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5569":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5570":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5571":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5572":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5573":{"morph":{"__isSmartRef__":true,"id":5565},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5574":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5575":{"toggle":{"__isSmartRef__":true,"id":5576},"toggleExpansion":{"__isSmartRef__":true,"id":5579}},"5576":{"varMapping":{"__isSmartRef__":true,"id":5577},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":5578},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5577":{"this":{"__isSmartRef__":true,"id":5565}},"5578":{},"5579":{"varMapping":{"__isSmartRef__":true,"id":5580},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":5581},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5580":{"this":{"__isSmartRef__":true,"id":5565}},"5581":{},"5582":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5583},"derivationIds":[null],"id":"9AA5B904-A1F2-4AEC-B4E4-79D401BFE796","renderContextTable":{"__isSmartRef__":true,"id":5587},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":5588},{"__isSmartRef__":true,"id":5590}],"eventHandler":{"__isSmartRef__":true,"id":5592},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":5593},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":5564},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5594},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5583":{"_Position":{"__isSmartRef__":true,"id":5584},"renderContextTable":{"__isSmartRef__":true,"id":5585},"_Extent":{"__isSmartRef__":true,"id":5586},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":5403},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":632},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5584":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5585":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5586":{"x":75.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5587":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"5588":{"style":{"__isSmartRef__":true,"id":5589},"chunkOwner":{"__isSmartRef__":true,"id":5582},"storedString":"_Scale","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5589":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5590":{"style":{"__isSmartRef__":true,"id":5591},"chunkOwner":{"__isSmartRef__":true,"id":5582},"storedString":": 1","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5591":{"color":{"__isSmartRef__":true,"id":5410},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5592":{"morph":{"__isSmartRef__":true,"id":5582},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5593":{"x":67.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5594":{"layoutText":{"__isSmartRef__":true,"id":5595}},"5595":{"varMapping":{"__isSmartRef__":true,"id":5596},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":5597},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5596":{"this":{"__isSmartRef__":true,"id":5582}},"5597":{},"5598":{"_Position":{"__isSmartRef__":true,"id":5599},"renderContextTable":{"__isSmartRef__":true,"id":5600},"_Extent":{"__isSmartRef__":true,"id":5601},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5602},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5599":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5600":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5601":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5602":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5603":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5604":{"morph":{"__isSmartRef__":true,"id":5564},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5605":{"resizeWidth":true},"5606":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5607":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5608":{"updateExpanderColor":{"__isSmartRef__":true,"id":5609},"onMouseDown":{"__isSmartRef__":true,"id":5612},"isRoot":{"__isSmartRef__":true,"id":5619},"displayValue":{"__isSmartRef__":true,"id":5622},"update":{"__isSmartRef__":true,"id":5625}},"5609":{"varMapping":{"__isSmartRef__":true,"id":5610},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":5611},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5610":{"this":{"__isSmartRef__":true,"id":5564}},"5611":{},"5612":{"varMapping":{"__isSmartRef__":true,"id":5613},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":5618},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5613":{"this":{"__isSmartRef__":true,"id":5564},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5614}},"5614":{"$super":{"__isSmartRef__":true,"id":5615}},"5615":{"varMapping":{"__isSmartRef__":true,"id":5616},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5617},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5616":{"obj":{"__isSmartRef__":true,"id":5564},"name":"onMouseDown"},"5617":{},"5618":{},"5619":{"varMapping":{"__isSmartRef__":true,"id":5620},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":5621},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5620":{"this":{"__isSmartRef__":true,"id":5564}},"5621":{},"5622":{"varMapping":{"__isSmartRef__":true,"id":5623},"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":5624},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5623":{"this":{"__isSmartRef__":true,"id":5564}},"5624":{},"5625":{"varMapping":{"__isSmartRef__":true,"id":5626},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5627},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5626":{"this":{"__isSmartRef__":true,"id":5564}},"5627":{},"5628":{"_Position":{"__isSmartRef__":true,"id":5629},"renderContextTable":{"__isSmartRef__":true,"id":5630},"_Extent":{"__isSmartRef__":true,"id":5631},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5632},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5629":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5630":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5631":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5632":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5633":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5634":{"morph":{"__isSmartRef__":true,"id":5563},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5635":{"layouter":{"__isSmartRef__":true,"id":5636},"resizeWidth":true},"5636":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":5563},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"5637":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5638":{"x":0,"y":620,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5639":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":5640}},"5640":{"varMapping":{"__isSmartRef__":true,"id":5641},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":5646},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5641":{"this":{"__isSmartRef__":true,"id":5563},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5642}},"5642":{"$super":{"__isSmartRef__":true,"id":5643}},"5643":{"varMapping":{"__isSmartRef__":true,"id":5644},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5645},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5644":{"obj":{"__isSmartRef__":true,"id":5563},"name":"getLayoutableSubmorphs"},"5645":{},"5646":{},"5647":{"submorphs":[{"__isSmartRef__":true,"id":5648}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5712},"derivationIds":[null],"id":"AF5F9C77-ECCE-468B-AC67-3D8993170A10","renderContextTable":{"__isSmartRef__":true,"id":5717},"eventHandler":{"__isSmartRef__":true,"id":5718},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5719},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":5721},"owner":{"__isSmartRef__":true,"id":5478},"_Position":{"__isSmartRef__":true,"id":5722},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5723},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5648":{"submorphs":[{"__isSmartRef__":true,"id":5649},{"__isSmartRef__":true,"id":5666}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5682},"derivationIds":[null],"id":"11B990C6-A878-42C2-9CF2-7E3F71858198","renderContextTable":{"__isSmartRef__":true,"id":5687},"eventHandler":{"__isSmartRef__":true,"id":5688},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5689},"grabbingEnabled":false,"draggingEnabled":false,"data":"Global.lively.morphic.Core","propertyList":["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25"],"level":1,"treeView":{"__isSmartRef__":true,"id":5377},"label":"__SourceModuleName__","children":[],"parent":{"__isSmartRef__":true,"id":5380},"expander":{"__isSmartRef__":true,"id":5649},"text":{"__isSmartRef__":true,"id":5666},"owner":{"__isSmartRef__":true,"id":5647},"_Position":{"__isSmartRef__":true,"id":5690},"priorExtent":{"__isSmartRef__":true,"id":5691},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5692},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5649":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5650},"derivationIds":[null],"id":"79042FA8-1C11-43B8-89F8-84195305D67A","renderContextTable":{"__isSmartRef__":true,"id":5656},"eventHandler":{"__isSmartRef__":true,"id":5657},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5658},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":5648},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5659},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"5650":{"_Position":{"__isSmartRef__":true,"id":5651},"renderContextTable":{"__isSmartRef__":true,"id":5652},"_Extent":{"__isSmartRef__":true,"id":5653},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5654},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5387},"_Fill":{"__isSmartRef__":true,"id":5655},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5651":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5652":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5653":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5654":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5655":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5656":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5657":{"morph":{"__isSmartRef__":true,"id":5649},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5658":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5659":{"toggle":{"__isSmartRef__":true,"id":5660},"toggleExpansion":{"__isSmartRef__":true,"id":5663}},"5660":{"varMapping":{"__isSmartRef__":true,"id":5661},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":5662},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5661":{"this":{"__isSmartRef__":true,"id":5649}},"5662":{},"5663":{"varMapping":{"__isSmartRef__":true,"id":5664},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":5665},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5664":{"this":{"__isSmartRef__":true,"id":5649}},"5665":{},"5666":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5667},"derivationIds":[null],"id":"A39F9C2A-A0F6-4EF0-9D60-8D32376CBD70","renderContextTable":{"__isSmartRef__":true,"id":5671},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":5672},{"__isSmartRef__":true,"id":5674}],"eventHandler":{"__isSmartRef__":true,"id":5676},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":5677},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":5648},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5678},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5667":{"_Position":{"__isSmartRef__":true,"id":5668},"renderContextTable":{"__isSmartRef__":true,"id":5669},"_Extent":{"__isSmartRef__":true,"id":5670},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":5403},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":632},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5668":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5669":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5670":{"x":368,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5671":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"5672":{"style":{"__isSmartRef__":true,"id":5673},"chunkOwner":{"__isSmartRef__":true,"id":5666},"storedString":"__SourceModuleName__","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5673":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5674":{"style":{"__isSmartRef__":true,"id":5675},"chunkOwner":{"__isSmartRef__":true,"id":5666},"storedString":": Global.lively.morphic.Core","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5675":{"color":{"__isSmartRef__":true,"id":5410},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5676":{"morph":{"__isSmartRef__":true,"id":5666},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5677":{"x":360,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5678":{"layoutText":{"__isSmartRef__":true,"id":5679}},"5679":{"varMapping":{"__isSmartRef__":true,"id":5680},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":5681},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5680":{"this":{"__isSmartRef__":true,"id":5666}},"5681":{},"5682":{"_Position":{"__isSmartRef__":true,"id":5683},"renderContextTable":{"__isSmartRef__":true,"id":5684},"_Extent":{"__isSmartRef__":true,"id":5685},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5686},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5683":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5684":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5685":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5686":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5687":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5688":{"morph":{"__isSmartRef__":true,"id":5648},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5689":{"resizeWidth":true},"5690":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5691":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5692":{"updateExpanderColor":{"__isSmartRef__":true,"id":5693},"onMouseDown":{"__isSmartRef__":true,"id":5696},"isRoot":{"__isSmartRef__":true,"id":5703},"displayValue":{"__isSmartRef__":true,"id":5706},"update":{"__isSmartRef__":true,"id":5709}},"5693":{"varMapping":{"__isSmartRef__":true,"id":5694},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":5695},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5694":{"this":{"__isSmartRef__":true,"id":5648}},"5695":{},"5696":{"varMapping":{"__isSmartRef__":true,"id":5697},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":5702},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5697":{"this":{"__isSmartRef__":true,"id":5648},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5698}},"5698":{"$super":{"__isSmartRef__":true,"id":5699}},"5699":{"varMapping":{"__isSmartRef__":true,"id":5700},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5701},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5700":{"obj":{"__isSmartRef__":true,"id":5648},"name":"onMouseDown"},"5701":{},"5702":{},"5703":{"varMapping":{"__isSmartRef__":true,"id":5704},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":5705},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5704":{"this":{"__isSmartRef__":true,"id":5648}},"5705":{},"5706":{"varMapping":{"__isSmartRef__":true,"id":5707},"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":5708},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5707":{"this":{"__isSmartRef__":true,"id":5648}},"5708":{},"5709":{"varMapping":{"__isSmartRef__":true,"id":5710},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5711},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5710":{"this":{"__isSmartRef__":true,"id":5648}},"5711":{},"5712":{"_Position":{"__isSmartRef__":true,"id":5713},"renderContextTable":{"__isSmartRef__":true,"id":5714},"_Extent":{"__isSmartRef__":true,"id":5715},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5716},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5713":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5714":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5715":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5716":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5717":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5718":{"morph":{"__isSmartRef__":true,"id":5647},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5719":{"layouter":{"__isSmartRef__":true,"id":5720},"resizeWidth":true},"5720":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":5647},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"5721":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5722":{"x":0,"y":600,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5723":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":5724}},"5724":{"varMapping":{"__isSmartRef__":true,"id":5725},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":5730},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5725":{"this":{"__isSmartRef__":true,"id":5647},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5726}},"5726":{"$super":{"__isSmartRef__":true,"id":5727}},"5727":{"varMapping":{"__isSmartRef__":true,"id":5728},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5729},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5728":{"obj":{"__isSmartRef__":true,"id":5647},"name":"getLayoutableSubmorphs"},"5729":{},"5730":{},"5731":{"submorphs":[{"__isSmartRef__":true,"id":5732}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5797},"derivationIds":[null],"id":"5C5A1D7B-5221-4DB6-8984-24CD4D04576C","renderContextTable":{"__isSmartRef__":true,"id":5802},"eventHandler":{"__isSmartRef__":true,"id":5803},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5804},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":5806},"owner":{"__isSmartRef__":true,"id":5478},"_Position":{"__isSmartRef__":true,"id":5807},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5808},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5732":{"submorphs":[{"__isSmartRef__":true,"id":5733},{"__isSmartRef__":true,"id":5750}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5766},"derivationIds":[null],"id":"35006DDD-40CD-4240-8F5E-3F6153DAF2FF","renderContextTable":{"__isSmartRef__":true,"id":5771},"eventHandler":{"__isSmartRef__":true,"id":5772},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5773},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":5774},"propertyList":["morphNode","shapeNode"],"level":1,"treeView":{"__isSmartRef__":true,"id":5377},"label":"_renderContext","children":[],"parent":{"__isSmartRef__":true,"id":5380},"expander":{"__isSmartRef__":true,"id":5733},"text":{"__isSmartRef__":true,"id":5750},"owner":{"__isSmartRef__":true,"id":5731},"_Position":{"__isSmartRef__":true,"id":5775},"priorExtent":{"__isSmartRef__":true,"id":5776},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5777},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5733":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5734},"derivationIds":[null],"id":"743941F9-D21E-4933-942D-FEA78440C804","renderContextTable":{"__isSmartRef__":true,"id":5740},"eventHandler":{"__isSmartRef__":true,"id":5741},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5742},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":5732},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5743},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"5734":{"_Position":{"__isSmartRef__":true,"id":5735},"renderContextTable":{"__isSmartRef__":true,"id":5736},"_Extent":{"__isSmartRef__":true,"id":5737},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5738},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5387},"_Fill":{"__isSmartRef__":true,"id":5739},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5735":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5736":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5737":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5738":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5739":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5740":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5741":{"morph":{"__isSmartRef__":true,"id":5733},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5742":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5743":{"toggle":{"__isSmartRef__":true,"id":5744},"toggleExpansion":{"__isSmartRef__":true,"id":5747}},"5744":{"varMapping":{"__isSmartRef__":true,"id":5745},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":5746},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5745":{"this":{"__isSmartRef__":true,"id":5733}},"5746":{},"5747":{"varMapping":{"__isSmartRef__":true,"id":5748},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":5749},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5748":{"this":{"__isSmartRef__":true,"id":5733}},"5749":{},"5750":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5751},"derivationIds":[null],"id":"4DBDC809-C8ED-414C-8FC6-C6938F5ED8F4","renderContextTable":{"__isSmartRef__":true,"id":5755},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":5756},{"__isSmartRef__":true,"id":5758}],"eventHandler":{"__isSmartRef__":true,"id":5760},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":5761},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":5732},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5762},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5751":{"_Position":{"__isSmartRef__":true,"id":5752},"renderContextTable":{"__isSmartRef__":true,"id":5753},"_Extent":{"__isSmartRef__":true,"id":5754},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":5403},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":632},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5752":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5753":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5754":{"x":225.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"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","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"5756":{"style":{"__isSmartRef__":true,"id":5757},"chunkOwner":{"__isSmartRef__":true,"id":5750},"storedString":"_renderContext","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5757":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5758":{"style":{"__isSmartRef__":true,"id":5759},"chunkOwner":{"__isSmartRef__":true,"id":5750},"storedString":": RenderContext","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5759":{"color":{"__isSmartRef__":true,"id":5410},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5760":{"morph":{"__isSmartRef__":true,"id":5750},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5761":{"x":217.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5762":{"layoutText":{"__isSmartRef__":true,"id":5763}},"5763":{"varMapping":{"__isSmartRef__":true,"id":5764},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":5765},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5764":{"this":{"__isSmartRef__":true,"id":5750}},"5765":{},"5766":{"_Position":{"__isSmartRef__":true,"id":5767},"renderContextTable":{"__isSmartRef__":true,"id":5768},"_Extent":{"__isSmartRef__":true,"id":5769},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5770},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5767":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5768":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5769":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5770":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5771":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5772":{"morph":{"__isSmartRef__":true,"id":5732},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5773":{"resizeWidth":true},"5774":{"__LivelyClassName__":"lively.morphic.HTML.RenderContext","__SourceModuleName__":"Global.lively.morphic.HTML"},"5775":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5776":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5777":{"updateExpanderColor":{"__isSmartRef__":true,"id":5778},"onMouseDown":{"__isSmartRef__":true,"id":5781},"isRoot":{"__isSmartRef__":true,"id":5788},"displayValue":{"__isSmartRef__":true,"id":5791},"update":{"__isSmartRef__":true,"id":5794}},"5778":{"varMapping":{"__isSmartRef__":true,"id":5779},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":5780},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5779":{"this":{"__isSmartRef__":true,"id":5732}},"5780":{},"5781":{"varMapping":{"__isSmartRef__":true,"id":5782},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":5787},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5782":{"this":{"__isSmartRef__":true,"id":5732},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5783}},"5783":{"$super":{"__isSmartRef__":true,"id":5784}},"5784":{"varMapping":{"__isSmartRef__":true,"id":5785},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5786},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5785":{"obj":{"__isSmartRef__":true,"id":5732},"name":"onMouseDown"},"5786":{},"5787":{},"5788":{"varMapping":{"__isSmartRef__":true,"id":5789},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":5790},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5789":{"this":{"__isSmartRef__":true,"id":5732}},"5790":{},"5791":{"varMapping":{"__isSmartRef__":true,"id":5792},"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":5793},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5792":{"this":{"__isSmartRef__":true,"id":5732}},"5793":{},"5794":{"varMapping":{"__isSmartRef__":true,"id":5795},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5796},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5795":{"this":{"__isSmartRef__":true,"id":5732}},"5796":{},"5797":{"_Position":{"__isSmartRef__":true,"id":5798},"renderContextTable":{"__isSmartRef__":true,"id":5799},"_Extent":{"__isSmartRef__":true,"id":5800},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5801},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5798":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5799":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5800":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5801":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5802":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5803":{"morph":{"__isSmartRef__":true,"id":5731},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5804":{"layouter":{"__isSmartRef__":true,"id":5805},"resizeWidth":true},"5805":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":5731},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"5806":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5807":{"x":0,"y":580,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5808":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":5809}},"5809":{"varMapping":{"__isSmartRef__":true,"id":5810},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":5815},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5810":{"this":{"__isSmartRef__":true,"id":5731},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5811}},"5811":{"$super":{"__isSmartRef__":true,"id":5812}},"5812":{"varMapping":{"__isSmartRef__":true,"id":5813},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5814},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5813":{"obj":{"__isSmartRef__":true,"id":5731},"name":"getLayoutableSubmorphs"},"5814":{},"5815":{},"5816":{"submorphs":[{"__isSmartRef__":true,"id":5817}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5881},"derivationIds":[null],"id":"A64537C3-44D4-4769-9035-C7647CFC663A","renderContextTable":{"__isSmartRef__":true,"id":5886},"eventHandler":{"__isSmartRef__":true,"id":5887},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5888},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":5890},"owner":{"__isSmartRef__":true,"id":5478},"_Position":{"__isSmartRef__":true,"id":5891},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5892},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5817":{"submorphs":[{"__isSmartRef__":true,"id":5818},{"__isSmartRef__":true,"id":5835}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5851},"derivationIds":[null],"id":"D3377479-0035-4F6A-B580-E43401FB459A","renderContextTable":{"__isSmartRef__":true,"id":5856},"eventHandler":{"__isSmartRef__":true,"id":5857},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5858},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":5377},"label":"active","children":[],"parent":{"__isSmartRef__":true,"id":5380},"expander":{"__isSmartRef__":true,"id":5818},"text":{"__isSmartRef__":true,"id":5835},"owner":{"__isSmartRef__":true,"id":5816},"_Position":{"__isSmartRef__":true,"id":5859},"priorExtent":{"__isSmartRef__":true,"id":5860},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5861},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5818":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5819},"derivationIds":[null],"id":"BBD5BE92-58E6-419E-9F94-596966AC70CC","renderContextTable":{"__isSmartRef__":true,"id":5825},"eventHandler":{"__isSmartRef__":true,"id":5826},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5827},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":5817},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5828},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"5819":{"_Position":{"__isSmartRef__":true,"id":5820},"renderContextTable":{"__isSmartRef__":true,"id":5821},"_Extent":{"__isSmartRef__":true,"id":5822},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5823},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5387},"_Fill":{"__isSmartRef__":true,"id":5824},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5820":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5821":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5822":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5823":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5824":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5825":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5826":{"morph":{"__isSmartRef__":true,"id":5818},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5827":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5828":{"toggle":{"__isSmartRef__":true,"id":5829},"toggleExpansion":{"__isSmartRef__":true,"id":5832}},"5829":{"varMapping":{"__isSmartRef__":true,"id":5830},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":5831},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5830":{"this":{"__isSmartRef__":true,"id":5818}},"5831":{},"5832":{"varMapping":{"__isSmartRef__":true,"id":5833},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":5834},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5833":{"this":{"__isSmartRef__":true,"id":5818}},"5834":{},"5835":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5836},"derivationIds":[null],"id":"6E25027E-1518-440D-8134-0AFC22E70025","renderContextTable":{"__isSmartRef__":true,"id":5840},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":5841},{"__isSmartRef__":true,"id":5843}],"eventHandler":{"__isSmartRef__":true,"id":5845},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":5846},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":5817},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5847},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5836":{"_Position":{"__isSmartRef__":true,"id":5837},"renderContextTable":{"__isSmartRef__":true,"id":5838},"_Extent":{"__isSmartRef__":true,"id":5839},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":5403},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":632},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5837":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5838":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5839":{"x":105.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5840":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"5841":{"style":{"__isSmartRef__":true,"id":5842},"chunkOwner":{"__isSmartRef__":true,"id":5835},"storedString":"active","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5842":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5843":{"style":{"__isSmartRef__":true,"id":5844},"chunkOwner":{"__isSmartRef__":true,"id":5835},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5844":{"color":{"__isSmartRef__":true,"id":5410},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5845":{"morph":{"__isSmartRef__":true,"id":5835},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5846":{"x":97.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5847":{"layoutText":{"__isSmartRef__":true,"id":5848}},"5848":{"varMapping":{"__isSmartRef__":true,"id":5849},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":5850},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5849":{"this":{"__isSmartRef__":true,"id":5835}},"5850":{},"5851":{"_Position":{"__isSmartRef__":true,"id":5852},"renderContextTable":{"__isSmartRef__":true,"id":5853},"_Extent":{"__isSmartRef__":true,"id":5854},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5855},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5852":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5853":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5854":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5855":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5856":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5857":{"morph":{"__isSmartRef__":true,"id":5817},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5858":{"resizeWidth":true},"5859":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5860":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5861":{"updateExpanderColor":{"__isSmartRef__":true,"id":5862},"onMouseDown":{"__isSmartRef__":true,"id":5865},"isRoot":{"__isSmartRef__":true,"id":5872},"displayValue":{"__isSmartRef__":true,"id":5875},"update":{"__isSmartRef__":true,"id":5878}},"5862":{"varMapping":{"__isSmartRef__":true,"id":5863},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":5864},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5863":{"this":{"__isSmartRef__":true,"id":5817}},"5864":{},"5865":{"varMapping":{"__isSmartRef__":true,"id":5866},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":5871},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5866":{"this":{"__isSmartRef__":true,"id":5817},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5867}},"5867":{"$super":{"__isSmartRef__":true,"id":5868}},"5868":{"varMapping":{"__isSmartRef__":true,"id":5869},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5870},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5869":{"obj":{"__isSmartRef__":true,"id":5817},"name":"onMouseDown"},"5870":{},"5871":{},"5872":{"varMapping":{"__isSmartRef__":true,"id":5873},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":5874},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5873":{"this":{"__isSmartRef__":true,"id":5817}},"5874":{},"5875":{"varMapping":{"__isSmartRef__":true,"id":5876},"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":5877},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5876":{"this":{"__isSmartRef__":true,"id":5817}},"5877":{},"5878":{"varMapping":{"__isSmartRef__":true,"id":5879},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5880},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5879":{"this":{"__isSmartRef__":true,"id":5817}},"5880":{},"5881":{"_Position":{"__isSmartRef__":true,"id":5882},"renderContextTable":{"__isSmartRef__":true,"id":5883},"_Extent":{"__isSmartRef__":true,"id":5884},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5885},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5882":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5883":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5884":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5885":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5886":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5887":{"morph":{"__isSmartRef__":true,"id":5816},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5888":{"layouter":{"__isSmartRef__":true,"id":5889},"resizeWidth":true},"5889":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":5816},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"5890":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5891":{"x":0,"y":560,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5892":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":5893}},"5893":{"varMapping":{"__isSmartRef__":true,"id":5894},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":5899},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5894":{"this":{"__isSmartRef__":true,"id":5816},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5895}},"5895":{"$super":{"__isSmartRef__":true,"id":5896}},"5896":{"varMapping":{"__isSmartRef__":true,"id":5897},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5898},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5897":{"obj":{"__isSmartRef__":true,"id":5816},"name":"getLayoutableSubmorphs"},"5898":{},"5899":{},"5900":{"submorphs":[{"__isSmartRef__":true,"id":5901}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5965},"derivationIds":[null],"id":"ADAF0FE5-2542-48DF-987E-4D9CA31F8529","renderContextTable":{"__isSmartRef__":true,"id":5970},"eventHandler":{"__isSmartRef__":true,"id":5971},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5972},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":5974},"owner":{"__isSmartRef__":true,"id":5478},"_Position":{"__isSmartRef__":true,"id":5975},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5976},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5901":{"submorphs":[{"__isSmartRef__":true,"id":5902},{"__isSmartRef__":true,"id":5919}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5935},"derivationIds":[null],"id":"3BF34A55-C534-43AF-8778-A2FA52092CA6","renderContextTable":{"__isSmartRef__":true,"id":5940},"eventHandler":{"__isSmartRef__":true,"id":5941},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":5942},"grabbingEnabled":false,"draggingEnabled":false,"data":[],"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":5377},"label":"attributeConnections","children":[],"parent":{"__isSmartRef__":true,"id":5380},"expander":{"__isSmartRef__":true,"id":5902},"text":{"__isSmartRef__":true,"id":5919},"owner":{"__isSmartRef__":true,"id":5900},"_Position":{"__isSmartRef__":true,"id":5943},"priorExtent":{"__isSmartRef__":true,"id":5944},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5945},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5902":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5903},"derivationIds":[null],"id":"54A3EF4C-BA01-40AB-A094-26E2373EF5A3","renderContextTable":{"__isSmartRef__":true,"id":5909},"eventHandler":{"__isSmartRef__":true,"id":5910},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":5911},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":5901},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5912},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"5903":{"_Position":{"__isSmartRef__":true,"id":5904},"renderContextTable":{"__isSmartRef__":true,"id":5905},"_Extent":{"__isSmartRef__":true,"id":5906},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5907},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5387},"_Fill":{"__isSmartRef__":true,"id":5908},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5904":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5905":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5906":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5907":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5908":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5909":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5910":{"morph":{"__isSmartRef__":true,"id":5902},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5911":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5912":{"toggle":{"__isSmartRef__":true,"id":5913},"toggleExpansion":{"__isSmartRef__":true,"id":5916}},"5913":{"varMapping":{"__isSmartRef__":true,"id":5914},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":5915},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5914":{"this":{"__isSmartRef__":true,"id":5902}},"5915":{},"5916":{"varMapping":{"__isSmartRef__":true,"id":5917},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":5918},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5917":{"this":{"__isSmartRef__":true,"id":5902}},"5918":{},"5919":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5920},"derivationIds":[null],"id":"1D387DD3-E705-4B93-81D0-A9907D749693","renderContextTable":{"__isSmartRef__":true,"id":5924},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":5925},{"__isSmartRef__":true,"id":5927}],"eventHandler":{"__isSmartRef__":true,"id":5929},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":5930},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":5901},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5931},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5920":{"_Position":{"__isSmartRef__":true,"id":5921},"renderContextTable":{"__isSmartRef__":true,"id":5922},"_Extent":{"__isSmartRef__":true,"id":5923},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":5403},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":632},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5921":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5922":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5923":{"x":188,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5924":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"5925":{"style":{"__isSmartRef__":true,"id":5926},"chunkOwner":{"__isSmartRef__":true,"id":5919},"storedString":"attributeConnections","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5926":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5927":{"style":{"__isSmartRef__":true,"id":5928},"chunkOwner":{"__isSmartRef__":true,"id":5919},"storedString":": []","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5928":{"color":{"__isSmartRef__":true,"id":5410},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5929":{"morph":{"__isSmartRef__":true,"id":5919},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5930":{"x":180,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"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.lively.lang.Closure"},"5933":{"this":{"__isSmartRef__":true,"id":5919}},"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.lively.morphic.Graphics"},"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.lively.morphic.Graphics"},"5939":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"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":5901},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5942":{"resizeWidth":true},"5943":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5944":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5945":{"updateExpanderColor":{"__isSmartRef__":true,"id":5946},"onMouseDown":{"__isSmartRef__":true,"id":5949},"isRoot":{"__isSmartRef__":true,"id":5956},"displayValue":{"__isSmartRef__":true,"id":5959},"update":{"__isSmartRef__":true,"id":5962}},"5946":{"varMapping":{"__isSmartRef__":true,"id":5947},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":5948},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5947":{"this":{"__isSmartRef__":true,"id":5901}},"5948":{},"5949":{"varMapping":{"__isSmartRef__":true,"id":5950},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":5955},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5950":{"this":{"__isSmartRef__":true,"id":5901},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5951}},"5951":{"$super":{"__isSmartRef__":true,"id":5952}},"5952":{"varMapping":{"__isSmartRef__":true,"id":5953},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5954},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5953":{"obj":{"__isSmartRef__":true,"id":5901},"name":"onMouseDown"},"5954":{},"5955":{},"5956":{"varMapping":{"__isSmartRef__":true,"id":5957},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":5958},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5957":{"this":{"__isSmartRef__":true,"id":5901}},"5958":{},"5959":{"varMapping":{"__isSmartRef__":true,"id":5960},"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":5961},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5960":{"this":{"__isSmartRef__":true,"id":5901}},"5961":{},"5962":{"varMapping":{"__isSmartRef__":true,"id":5963},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5964},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5963":{"this":{"__isSmartRef__":true,"id":5901}},"5964":{},"5965":{"_Position":{"__isSmartRef__":true,"id":5966},"renderContextTable":{"__isSmartRef__":true,"id":5967},"_Extent":{"__isSmartRef__":true,"id":5968},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5969},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5966":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5967":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5968":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5969":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5970":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5971":{"morph":{"__isSmartRef__":true,"id":5900},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5972":{"layouter":{"__isSmartRef__":true,"id":5973},"resizeWidth":true},"5973":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":5900},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"5974":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5975":{"x":0,"y":540,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5976":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":5977}},"5977":{"varMapping":{"__isSmartRef__":true,"id":5978},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":5983},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5978":{"this":{"__isSmartRef__":true,"id":5900},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5979}},"5979":{"$super":{"__isSmartRef__":true,"id":5980}},"5980":{"varMapping":{"__isSmartRef__":true,"id":5981},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":5982},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5981":{"obj":{"__isSmartRef__":true,"id":5900},"name":"getLayoutableSubmorphs"},"5982":{},"5983":{},"5984":{"submorphs":[{"__isSmartRef__":true,"id":5985}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6049},"derivationIds":[null],"id":"FFBB0B62-6E93-4214-89D6-179BD87620F0","renderContextTable":{"__isSmartRef__":true,"id":6054},"eventHandler":{"__isSmartRef__":true,"id":6055},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6056},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":6058},"owner":{"__isSmartRef__":true,"id":5478},"_Position":{"__isSmartRef__":true,"id":6059},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6060},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5985":{"submorphs":[{"__isSmartRef__":true,"id":5986},{"__isSmartRef__":true,"id":6003}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6019},"derivationIds":[null],"id":"B7D4042F-3D70-4196-B3BB-D4452E71F678","renderContextTable":{"__isSmartRef__":true,"id":6024},"eventHandler":{"__isSmartRef__":true,"id":6025},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6026},"grabbingEnabled":false,"draggingEnabled":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":5377},"label":"db","children":[],"parent":{"__isSmartRef__":true,"id":5380},"expander":{"__isSmartRef__":true,"id":5986},"text":{"__isSmartRef__":true,"id":6003},"owner":{"__isSmartRef__":true,"id":5984},"_Position":{"__isSmartRef__":true,"id":6027},"priorExtent":{"__isSmartRef__":true,"id":6028},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6029},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"5986":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5987},"derivationIds":[null],"id":"70031D8B-11C0-45F1-A949-96D9C8088036","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":5985},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5996},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"5987":{"_Position":{"__isSmartRef__":true,"id":5988},"renderContextTable":{"__isSmartRef__":true,"id":5989},"_Extent":{"__isSmartRef__":true,"id":5990},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5991},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5387},"_Fill":{"__isSmartRef__":true,"id":5992},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"5988":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5989":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"5990":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5991":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5992":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"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":5986},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5995":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5996":{"toggle":{"__isSmartRef__":true,"id":5997},"toggleExpansion":{"__isSmartRef__":true,"id":6000}},"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":5999},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"5998":{"this":{"__isSmartRef__":true,"id":5986}},"5999":{},"6000":{"varMapping":{"__isSmartRef__":true,"id":6001},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":6002},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6001":{"this":{"__isSmartRef__":true,"id":5986}},"6002":{},"6003":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6004},"derivationIds":[null],"id":"AC5764E4-0FA9-4D84-B0C6-24504A3F84A1","renderContextTable":{"__isSmartRef__":true,"id":6008},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":6009},{"__isSmartRef__":true,"id":6011}],"eventHandler":{"__isSmartRef__":true,"id":6013},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":6014},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":5985},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6015},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6004":{"_Position":{"__isSmartRef__":true,"id":6005},"renderContextTable":{"__isSmartRef__":true,"id":6006},"_Extent":{"__isSmartRef__":true,"id":6007},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":5403},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":632},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6005":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6006":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6007":{"x":105.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6008":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6009":{"style":{"__isSmartRef__":true,"id":6010},"chunkOwner":{"__isSmartRef__":true,"id":6003},"storedString":"db","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6010":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6011":{"style":{"__isSmartRef__":true,"id":6012},"chunkOwner":{"__isSmartRef__":true,"id":6003},"storedString":": undefined","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6012":{"color":{"__isSmartRef__":true,"id":5410},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6013":{"morph":{"__isSmartRef__":true,"id":6003},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6014":{"x":97.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6015":{"layoutText":{"__isSmartRef__":true,"id":6016}},"6016":{"varMapping":{"__isSmartRef__":true,"id":6017},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":6018},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6017":{"this":{"__isSmartRef__":true,"id":6003}},"6018":{},"6019":{"_Position":{"__isSmartRef__":true,"id":6020},"renderContextTable":{"__isSmartRef__":true,"id":6021},"_Extent":{"__isSmartRef__":true,"id":6022},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6023},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6020":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6021":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6022":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6023":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6024":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6025":{"morph":{"__isSmartRef__":true,"id":5985},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6026":{"resizeWidth":true},"6027":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6028":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6029":{"updateExpanderColor":{"__isSmartRef__":true,"id":6030},"onMouseDown":{"__isSmartRef__":true,"id":6033},"isRoot":{"__isSmartRef__":true,"id":6040},"displayValue":{"__isSmartRef__":true,"id":6043},"update":{"__isSmartRef__":true,"id":6046}},"6030":{"varMapping":{"__isSmartRef__":true,"id":6031},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":6032},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6031":{"this":{"__isSmartRef__":true,"id":5985}},"6032":{},"6033":{"varMapping":{"__isSmartRef__":true,"id":6034},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":6039},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6034":{"this":{"__isSmartRef__":true,"id":5985},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6035}},"6035":{"$super":{"__isSmartRef__":true,"id":6036}},"6036":{"varMapping":{"__isSmartRef__":true,"id":6037},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6038},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6037":{"obj":{"__isSmartRef__":true,"id":5985},"name":"onMouseDown"},"6038":{},"6039":{},"6040":{"varMapping":{"__isSmartRef__":true,"id":6041},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":6042},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6041":{"this":{"__isSmartRef__":true,"id":5985}},"6042":{},"6043":{"varMapping":{"__isSmartRef__":true,"id":6044},"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":6045},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6044":{"this":{"__isSmartRef__":true,"id":5985}},"6045":{},"6046":{"varMapping":{"__isSmartRef__":true,"id":6047},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6048},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6047":{"this":{"__isSmartRef__":true,"id":5985}},"6048":{},"6049":{"_Position":{"__isSmartRef__":true,"id":6050},"renderContextTable":{"__isSmartRef__":true,"id":6051},"_Extent":{"__isSmartRef__":true,"id":6052},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6053},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6050":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6051":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6052":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6053":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6054":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6055":{"morph":{"__isSmartRef__":true,"id":5984},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6056":{"layouter":{"__isSmartRef__":true,"id":6057},"resizeWidth":true},"6057":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":5984},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"6058":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6059":{"x":0,"y":520,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6060":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":6061}},"6061":{"varMapping":{"__isSmartRef__":true,"id":6062},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":6067},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6062":{"this":{"__isSmartRef__":true,"id":5984},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6063}},"6063":{"$super":{"__isSmartRef__":true,"id":6064}},"6064":{"varMapping":{"__isSmartRef__":true,"id":6065},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6066},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6065":{"obj":{"__isSmartRef__":true,"id":5984},"name":"getLayoutableSubmorphs"},"6066":{},"6067":{},"6068":{"submorphs":[{"__isSmartRef__":true,"id":6069}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6133},"derivationIds":[null],"id":"AF5E2A5F-B21A-49AA-B761-DAC78CF882ED","renderContextTable":{"__isSmartRef__":true,"id":6138},"eventHandler":{"__isSmartRef__":true,"id":6139},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6140},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":6142},"owner":{"__isSmartRef__":true,"id":5478},"_Position":{"__isSmartRef__":true,"id":6143},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6144},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6069":{"submorphs":[{"__isSmartRef__":true,"id":6070},{"__isSmartRef__":true,"id":6087}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6103},"derivationIds":[null],"id":"D72D420E-9ACD-4D5C-8B13-EC3C8FDF19A3","renderContextTable":{"__isSmartRef__":true,"id":6108},"eventHandler":{"__isSmartRef__":true,"id":6109},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6110},"grabbingEnabled":false,"draggingEnabled":false,"data":"","propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":5377},"label":"dbName","children":[],"parent":{"__isSmartRef__":true,"id":5380},"expander":{"__isSmartRef__":true,"id":6070},"text":{"__isSmartRef__":true,"id":6087},"owner":{"__isSmartRef__":true,"id":6068},"_Position":{"__isSmartRef__":true,"id":6111},"priorExtent":{"__isSmartRef__":true,"id":6112},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6113},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6070":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6071},"derivationIds":[null],"id":"AEB67C2A-DB17-4531-A0D7-B71EF4582115","renderContextTable":{"__isSmartRef__":true,"id":6077},"eventHandler":{"__isSmartRef__":true,"id":6078},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6079},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":6069},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6080},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"6071":{"_Position":{"__isSmartRef__":true,"id":6072},"renderContextTable":{"__isSmartRef__":true,"id":6073},"_Extent":{"__isSmartRef__":true,"id":6074},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6075},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5387},"_Fill":{"__isSmartRef__":true,"id":6076},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6072":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6073":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6074":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6075":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6076":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6077":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6078":{"morph":{"__isSmartRef__":true,"id":6070},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6079":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6080":{"toggle":{"__isSmartRef__":true,"id":6081},"toggleExpansion":{"__isSmartRef__":true,"id":6084}},"6081":{"varMapping":{"__isSmartRef__":true,"id":6082},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":6083},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6082":{"this":{"__isSmartRef__":true,"id":6070}},"6083":{},"6084":{"varMapping":{"__isSmartRef__":true,"id":6085},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":6086},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6085":{"this":{"__isSmartRef__":true,"id":6070}},"6086":{},"6087":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6088},"derivationIds":[null],"id":"AA0980CF-7DC1-4A84-8B59-9955633C1624","renderContextTable":{"__isSmartRef__":true,"id":6092},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":6093},{"__isSmartRef__":true,"id":6095}],"eventHandler":{"__isSmartRef__":true,"id":6097},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":6098},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":6069},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6099},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6088":{"_Position":{"__isSmartRef__":true,"id":6089},"renderContextTable":{"__isSmartRef__":true,"id":6090},"_Extent":{"__isSmartRef__":true,"id":6091},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":5403},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":632},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6089":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6090":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6091":{"x":68,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6092":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6093":{"style":{"__isSmartRef__":true,"id":6094},"chunkOwner":{"__isSmartRef__":true,"id":6087},"storedString":"dbName","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6094":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6095":{"style":{"__isSmartRef__":true,"id":6096},"chunkOwner":{"__isSmartRef__":true,"id":6087},"storedString":": ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6096":{"color":{"__isSmartRef__":true,"id":5410},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6097":{"morph":{"__isSmartRef__":true,"id":6087},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6098":{"x":60,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6099":{"layoutText":{"__isSmartRef__":true,"id":6100}},"6100":{"varMapping":{"__isSmartRef__":true,"id":6101},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":6102},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6101":{"this":{"__isSmartRef__":true,"id":6087}},"6102":{},"6103":{"_Position":{"__isSmartRef__":true,"id":6104},"renderContextTable":{"__isSmartRef__":true,"id":6105},"_Extent":{"__isSmartRef__":true,"id":6106},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6107},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6104":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6105":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6106":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6107":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6108":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6109":{"morph":{"__isSmartRef__":true,"id":6069},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6110":{"resizeWidth":true},"6111":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6112":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6113":{"updateExpanderColor":{"__isSmartRef__":true,"id":6114},"onMouseDown":{"__isSmartRef__":true,"id":6117},"isRoot":{"__isSmartRef__":true,"id":6124},"displayValue":{"__isSmartRef__":true,"id":6127},"update":{"__isSmartRef__":true,"id":6130}},"6114":{"varMapping":{"__isSmartRef__":true,"id":6115},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":6116},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6115":{"this":{"__isSmartRef__":true,"id":6069}},"6116":{},"6117":{"varMapping":{"__isSmartRef__":true,"id":6118},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":6123},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6118":{"this":{"__isSmartRef__":true,"id":6069},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6119}},"6119":{"$super":{"__isSmartRef__":true,"id":6120}},"6120":{"varMapping":{"__isSmartRef__":true,"id":6121},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6122},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6121":{"obj":{"__isSmartRef__":true,"id":6069},"name":"onMouseDown"},"6122":{},"6123":{},"6124":{"varMapping":{"__isSmartRef__":true,"id":6125},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":6126},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6125":{"this":{"__isSmartRef__":true,"id":6069}},"6126":{},"6127":{"varMapping":{"__isSmartRef__":true,"id":6128},"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":6129},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6128":{"this":{"__isSmartRef__":true,"id":6069}},"6129":{},"6130":{"varMapping":{"__isSmartRef__":true,"id":6131},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6132},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6131":{"this":{"__isSmartRef__":true,"id":6069}},"6132":{},"6133":{"_Position":{"__isSmartRef__":true,"id":6134},"renderContextTable":{"__isSmartRef__":true,"id":6135},"_Extent":{"__isSmartRef__":true,"id":6136},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6137},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6134":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6135":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6136":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6137":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6138":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6139":{"morph":{"__isSmartRef__":true,"id":6068},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6140":{"layouter":{"__isSmartRef__":true,"id":6141},"resizeWidth":true},"6141":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":6068},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"6142":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6143":{"x":0,"y":500,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6144":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":6145}},"6145":{"varMapping":{"__isSmartRef__":true,"id":6146},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":6151},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6146":{"this":{"__isSmartRef__":true,"id":6068},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6147}},"6147":{"$super":{"__isSmartRef__":true,"id":6148}},"6148":{"varMapping":{"__isSmartRef__":true,"id":6149},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6150},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6149":{"obj":{"__isSmartRef__":true,"id":6068},"name":"getLayoutableSubmorphs"},"6150":{},"6151":{},"6152":{"submorphs":[{"__isSmartRef__":true,"id":6153}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6217},"derivationIds":[null],"id":"6B740E0C-3744-4B88-91B7-0B3CA9B8C036","renderContextTable":{"__isSmartRef__":true,"id":6222},"eventHandler":{"__isSmartRef__":true,"id":6223},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6224},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":6226},"owner":{"__isSmartRef__":true,"id":5478},"_Position":{"__isSmartRef__":true,"id":6227},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6228},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6153":{"submorphs":[{"__isSmartRef__":true,"id":6154},{"__isSmartRef__":true,"id":6171}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6187},"derivationIds":[null],"id":"B7A7DC10-4397-4A27-83F8-E491B8363D94","renderContextTable":{"__isSmartRef__":true,"id":6192},"eventHandler":{"__isSmartRef__":true,"id":6193},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6194},"grabbingEnabled":false,"draggingEnabled":false,"data":[null,"99868D5B-4AFB-4D0F-B333-75FDADC8EBAA","1724C6E9-0FFC-430F-8EA9-0CB466CF3B46","83CF2C89-334F-431A-8847-02801E94371E","212990CB-79C6-4709-8B98-9C12457BFB28"],"propertyList":["0","1","2","3","4"],"level":1,"treeView":{"__isSmartRef__":true,"id":5377},"label":"derivationIds","children":[],"parent":{"__isSmartRef__":true,"id":5380},"expander":{"__isSmartRef__":true,"id":6154},"text":{"__isSmartRef__":true,"id":6171},"owner":{"__isSmartRef__":true,"id":6152},"_Position":{"__isSmartRef__":true,"id":6195},"priorExtent":{"__isSmartRef__":true,"id":6196},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6197},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6154":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6155},"derivationIds":[null],"id":"13B00281-B141-49CB-A720-A9E19C74C333","renderContextTable":{"__isSmartRef__":true,"id":6161},"eventHandler":{"__isSmartRef__":true,"id":6162},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6163},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":6153},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6164},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"6155":{"_Position":{"__isSmartRef__":true,"id":6156},"renderContextTable":{"__isSmartRef__":true,"id":6157},"_Extent":{"__isSmartRef__":true,"id":6158},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6159},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5387},"_Fill":{"__isSmartRef__":true,"id":6160},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6156":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6157":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6158":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6159":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6160":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6161":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6162":{"morph":{"__isSmartRef__":true,"id":6154},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6163":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6164":{"toggle":{"__isSmartRef__":true,"id":6165},"toggleExpansion":{"__isSmartRef__":true,"id":6168}},"6165":{"varMapping":{"__isSmartRef__":true,"id":6166},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":6167},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6166":{"this":{"__isSmartRef__":true,"id":6154}},"6167":{},"6168":{"varMapping":{"__isSmartRef__":true,"id":6169},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":6170},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6169":{"this":{"__isSmartRef__":true,"id":6154}},"6170":{},"6171":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6172},"derivationIds":[null],"id":"79C7F40A-4B3E-4752-A04C-A6AFA72A147C","renderContextTable":{"__isSmartRef__":true,"id":6176},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":6177},{"__isSmartRef__":true,"id":6179}],"eventHandler":{"__isSmartRef__":true,"id":6181},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":6182},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":6153},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6183},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6172":{"_Position":{"__isSmartRef__":true,"id":6173},"renderContextTable":{"__isSmartRef__":true,"id":6174},"_Extent":{"__isSmartRef__":true,"id":6175},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":5403},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":632},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6173":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6174":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6175":{"x":158,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6176":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6177":{"style":{"__isSmartRef__":true,"id":6178},"chunkOwner":{"__isSmartRef__":true,"id":6171},"storedString":"derivationIds","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6178":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6179":{"style":{"__isSmartRef__":true,"id":6180},"chunkOwner":{"__isSmartRef__":true,"id":6171},"storedString":": [...]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6180":{"color":{"__isSmartRef__":true,"id":5410},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6181":{"morph":{"__isSmartRef__":true,"id":6171},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6182":{"x":150,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6183":{"layoutText":{"__isSmartRef__":true,"id":6184}},"6184":{"varMapping":{"__isSmartRef__":true,"id":6185},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":6186},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6185":{"this":{"__isSmartRef__":true,"id":6171}},"6186":{},"6187":{"_Position":{"__isSmartRef__":true,"id":6188},"renderContextTable":{"__isSmartRef__":true,"id":6189},"_Extent":{"__isSmartRef__":true,"id":6190},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6191},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6188":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6189":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6190":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6191":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6192":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6193":{"morph":{"__isSmartRef__":true,"id":6153},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6194":{"resizeWidth":true},"6195":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6196":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6197":{"updateExpanderColor":{"__isSmartRef__":true,"id":6198},"onMouseDown":{"__isSmartRef__":true,"id":6201},"isRoot":{"__isSmartRef__":true,"id":6208},"displayValue":{"__isSmartRef__":true,"id":6211},"update":{"__isSmartRef__":true,"id":6214}},"6198":{"varMapping":{"__isSmartRef__":true,"id":6199},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":6200},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6199":{"this":{"__isSmartRef__":true,"id":6153}},"6200":{},"6201":{"varMapping":{"__isSmartRef__":true,"id":6202},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":6207},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6202":{"this":{"__isSmartRef__":true,"id":6153},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6203}},"6203":{"$super":{"__isSmartRef__":true,"id":6204}},"6204":{"varMapping":{"__isSmartRef__":true,"id":6205},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6206},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6205":{"obj":{"__isSmartRef__":true,"id":6153},"name":"onMouseDown"},"6206":{},"6207":{},"6208":{"varMapping":{"__isSmartRef__":true,"id":6209},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":6210},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6209":{"this":{"__isSmartRef__":true,"id":6153}},"6210":{},"6211":{"varMapping":{"__isSmartRef__":true,"id":6212},"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":6213},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6212":{"this":{"__isSmartRef__":true,"id":6153}},"6213":{},"6214":{"varMapping":{"__isSmartRef__":true,"id":6215},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6216},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6215":{"this":{"__isSmartRef__":true,"id":6153}},"6216":{},"6217":{"_Position":{"__isSmartRef__":true,"id":6218},"renderContextTable":{"__isSmartRef__":true,"id":6219},"_Extent":{"__isSmartRef__":true,"id":6220},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6221},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6218":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6219":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6220":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6221":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6222":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6223":{"morph":{"__isSmartRef__":true,"id":6152},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6224":{"layouter":{"__isSmartRef__":true,"id":6225},"resizeWidth":true},"6225":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":6152},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"6226":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6227":{"x":0,"y":480,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6228":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":6229}},"6229":{"varMapping":{"__isSmartRef__":true,"id":6230},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":6235},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6230":{"this":{"__isSmartRef__":true,"id":6152},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6231}},"6231":{"$super":{"__isSmartRef__":true,"id":6232}},"6232":{"varMapping":{"__isSmartRef__":true,"id":6233},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6234},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6233":{"obj":{"__isSmartRef__":true,"id":6152},"name":"getLayoutableSubmorphs"},"6234":{},"6235":{},"6236":{"submorphs":[{"__isSmartRef__":true,"id":6237}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6301},"derivationIds":[null],"id":"940A8204-368D-4355-BFFD-E172D9CDA174","renderContextTable":{"__isSmartRef__":true,"id":6306},"eventHandler":{"__isSmartRef__":true,"id":6307},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6308},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":6310},"owner":{"__isSmartRef__":true,"id":5478},"_Position":{"__isSmartRef__":true,"id":6311},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6312},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6237":{"submorphs":[{"__isSmartRef__":true,"id":6238},{"__isSmartRef__":true,"id":6255}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6271},"derivationIds":[null],"id":"DD31714F-CAFD-4C81-9E77-60779D69CB84","renderContextTable":{"__isSmartRef__":true,"id":6276},"eventHandler":{"__isSmartRef__":true,"id":6277},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6278},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":5192},"propertyList":["x","y","__SourceModuleName__"],"level":1,"treeView":{"__isSmartRef__":true,"id":5377},"label":"distanceToDragEvent","children":[],"parent":{"__isSmartRef__":true,"id":5380},"expander":{"__isSmartRef__":true,"id":6238},"text":{"__isSmartRef__":true,"id":6255},"owner":{"__isSmartRef__":true,"id":6236},"_Position":{"__isSmartRef__":true,"id":6279},"priorExtent":{"__isSmartRef__":true,"id":6280},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6281},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6238":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6239},"derivationIds":[null],"id":"CD57A381-0464-4A22-81FC-DC7186BA25B6","renderContextTable":{"__isSmartRef__":true,"id":6245},"eventHandler":{"__isSmartRef__":true,"id":6246},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6247},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":6237},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6248},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"6239":{"_Position":{"__isSmartRef__":true,"id":6240},"renderContextTable":{"__isSmartRef__":true,"id":6241},"_Extent":{"__isSmartRef__":true,"id":6242},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6243},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5387},"_Fill":{"__isSmartRef__":true,"id":6244},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6240":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6241":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6242":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6243":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6244":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6245":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6246":{"morph":{"__isSmartRef__":true,"id":6238},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6247":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6248":{"toggle":{"__isSmartRef__":true,"id":6249},"toggleExpansion":{"__isSmartRef__":true,"id":6252}},"6249":{"varMapping":{"__isSmartRef__":true,"id":6250},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":6251},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6250":{"this":{"__isSmartRef__":true,"id":6238}},"6251":{},"6252":{"varMapping":{"__isSmartRef__":true,"id":6253},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":6254},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6253":{"this":{"__isSmartRef__":true,"id":6238}},"6254":{},"6255":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6256},"derivationIds":[null],"id":"06FA363F-0677-4C56-A7F6-717A66726791","renderContextTable":{"__isSmartRef__":true,"id":6260},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":6261},{"__isSmartRef__":true,"id":6263}],"eventHandler":{"__isSmartRef__":true,"id":6265},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":6266},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":6237},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6267},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6256":{"_Position":{"__isSmartRef__":true,"id":6257},"renderContextTable":{"__isSmartRef__":true,"id":6258},"_Extent":{"__isSmartRef__":true,"id":6259},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":5403},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":632},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6257":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6258":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6259":{"x":203,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"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","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6261":{"style":{"__isSmartRef__":true,"id":6262},"chunkOwner":{"__isSmartRef__":true,"id":6255},"storedString":"distanceToDragEvent","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6262":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6263":{"style":{"__isSmartRef__":true,"id":6264},"chunkOwner":{"__isSmartRef__":true,"id":6255},"storedString":": Point","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6264":{"color":{"__isSmartRef__":true,"id":5410},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6265":{"morph":{"__isSmartRef__":true,"id":6255},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6266":{"x":195,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6267":{"layoutText":{"__isSmartRef__":true,"id":6268}},"6268":{"varMapping":{"__isSmartRef__":true,"id":6269},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":6270},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6269":{"this":{"__isSmartRef__":true,"id":6255}},"6270":{},"6271":{"_Position":{"__isSmartRef__":true,"id":6272},"renderContextTable":{"__isSmartRef__":true,"id":6273},"_Extent":{"__isSmartRef__":true,"id":6274},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6275},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6272":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6273":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6274":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6275":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6276":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6277":{"morph":{"__isSmartRef__":true,"id":6237},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6278":{"resizeWidth":true},"6279":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6280":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6281":{"updateExpanderColor":{"__isSmartRef__":true,"id":6282},"onMouseDown":{"__isSmartRef__":true,"id":6285},"isRoot":{"__isSmartRef__":true,"id":6292},"displayValue":{"__isSmartRef__":true,"id":6295},"update":{"__isSmartRef__":true,"id":6298}},"6282":{"varMapping":{"__isSmartRef__":true,"id":6283},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":6284},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6283":{"this":{"__isSmartRef__":true,"id":6237}},"6284":{},"6285":{"varMapping":{"__isSmartRef__":true,"id":6286},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":6291},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6286":{"this":{"__isSmartRef__":true,"id":6237},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6287}},"6287":{"$super":{"__isSmartRef__":true,"id":6288}},"6288":{"varMapping":{"__isSmartRef__":true,"id":6289},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6290},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6289":{"obj":{"__isSmartRef__":true,"id":6237},"name":"onMouseDown"},"6290":{},"6291":{},"6292":{"varMapping":{"__isSmartRef__":true,"id":6293},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":6294},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6293":{"this":{"__isSmartRef__":true,"id":6237}},"6294":{},"6295":{"varMapping":{"__isSmartRef__":true,"id":6296},"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":6297},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6296":{"this":{"__isSmartRef__":true,"id":6237}},"6297":{},"6298":{"varMapping":{"__isSmartRef__":true,"id":6299},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6300},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6299":{"this":{"__isSmartRef__":true,"id":6237}},"6300":{},"6301":{"_Position":{"__isSmartRef__":true,"id":6302},"renderContextTable":{"__isSmartRef__":true,"id":6303},"_Extent":{"__isSmartRef__":true,"id":6304},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6305},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6302":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6303":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6304":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6305":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6306":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6307":{"morph":{"__isSmartRef__":true,"id":6236},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6308":{"layouter":{"__isSmartRef__":true,"id":6309},"resizeWidth":true},"6309":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":6236},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"6310":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6311":{"x":0,"y":460,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6312":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":6313}},"6313":{"varMapping":{"__isSmartRef__":true,"id":6314},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":6319},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6314":{"this":{"__isSmartRef__":true,"id":6236},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6315}},"6315":{"$super":{"__isSmartRef__":true,"id":6316}},"6316":{"varMapping":{"__isSmartRef__":true,"id":6317},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6318},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6317":{"obj":{"__isSmartRef__":true,"id":6236},"name":"getLayoutableSubmorphs"},"6318":{},"6319":{},"6320":{"submorphs":[{"__isSmartRef__":true,"id":6321}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6385},"derivationIds":[null],"id":"3FA67C52-554B-4385-A5F8-00E422A14A32","renderContextTable":{"__isSmartRef__":true,"id":6390},"eventHandler":{"__isSmartRef__":true,"id":6391},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6392},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":6394},"owner":{"__isSmartRef__":true,"id":5478},"_Position":{"__isSmartRef__":true,"id":6395},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6396},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6321":{"submorphs":[{"__isSmartRef__":true,"id":6322},{"__isSmartRef__":true,"id":6339}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6355},"derivationIds":[null],"id":"054EF815-B6AB-4DAE-BB4C-5DBD35E76791","renderContextTable":{"__isSmartRef__":true,"id":6360},"eventHandler":{"__isSmartRef__":true,"id":6361},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6362},"grabbingEnabled":false,"draggingEnabled":false,"data":[],"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":5377},"label":"doNotCopyProperties","children":[],"parent":{"__isSmartRef__":true,"id":5380},"expander":{"__isSmartRef__":true,"id":6322},"text":{"__isSmartRef__":true,"id":6339},"owner":{"__isSmartRef__":true,"id":6320},"_Position":{"__isSmartRef__":true,"id":6363},"priorExtent":{"__isSmartRef__":true,"id":6364},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6365},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6322":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6323},"derivationIds":[null],"id":"699868F8-E754-4BA6-85F5-600F9EF0DBEF","renderContextTable":{"__isSmartRef__":true,"id":6329},"eventHandler":{"__isSmartRef__":true,"id":6330},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6331},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":6321},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6332},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"6323":{"_Position":{"__isSmartRef__":true,"id":6324},"renderContextTable":{"__isSmartRef__":true,"id":6325},"_Extent":{"__isSmartRef__":true,"id":6326},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6327},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5387},"_Fill":{"__isSmartRef__":true,"id":6328},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6324":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6325":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6326":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6327":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6328":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6329":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6330":{"morph":{"__isSmartRef__":true,"id":6322},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6331":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6332":{"toggle":{"__isSmartRef__":true,"id":6333},"toggleExpansion":{"__isSmartRef__":true,"id":6336}},"6333":{"varMapping":{"__isSmartRef__":true,"id":6334},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":6335},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6334":{"this":{"__isSmartRef__":true,"id":6322}},"6335":{},"6336":{"varMapping":{"__isSmartRef__":true,"id":6337},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":6338},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6337":{"this":{"__isSmartRef__":true,"id":6322}},"6338":{},"6339":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6340},"derivationIds":[null],"id":"656A5401-023F-44A7-A87B-93DCCD519E4E","renderContextTable":{"__isSmartRef__":true,"id":6344},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":6345},{"__isSmartRef__":true,"id":6347}],"eventHandler":{"__isSmartRef__":true,"id":6349},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":6350},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":6321},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6351},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6340":{"_Position":{"__isSmartRef__":true,"id":6341},"renderContextTable":{"__isSmartRef__":true,"id":6342},"_Extent":{"__isSmartRef__":true,"id":6343},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":5403},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":632},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6341":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6342":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6343":{"x":180.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6344":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6345":{"style":{"__isSmartRef__":true,"id":6346},"chunkOwner":{"__isSmartRef__":true,"id":6339},"storedString":"doNotCopyProperties","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6346":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6347":{"style":{"__isSmartRef__":true,"id":6348},"chunkOwner":{"__isSmartRef__":true,"id":6339},"storedString":": []","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6348":{"color":{"__isSmartRef__":true,"id":5410},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6349":{"morph":{"__isSmartRef__":true,"id":6339},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6350":{"x":172.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6351":{"layoutText":{"__isSmartRef__":true,"id":6352}},"6352":{"varMapping":{"__isSmartRef__":true,"id":6353},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":6354},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6353":{"this":{"__isSmartRef__":true,"id":6339}},"6354":{},"6355":{"_Position":{"__isSmartRef__":true,"id":6356},"renderContextTable":{"__isSmartRef__":true,"id":6357},"_Extent":{"__isSmartRef__":true,"id":6358},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6359},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6356":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6357":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6358":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6359":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6360":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6361":{"morph":{"__isSmartRef__":true,"id":6321},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6362":{"resizeWidth":true},"6363":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6364":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6365":{"updateExpanderColor":{"__isSmartRef__":true,"id":6366},"onMouseDown":{"__isSmartRef__":true,"id":6369},"isRoot":{"__isSmartRef__":true,"id":6376},"displayValue":{"__isSmartRef__":true,"id":6379},"update":{"__isSmartRef__":true,"id":6382}},"6366":{"varMapping":{"__isSmartRef__":true,"id":6367},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":6368},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6367":{"this":{"__isSmartRef__":true,"id":6321}},"6368":{},"6369":{"varMapping":{"__isSmartRef__":true,"id":6370},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":6375},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6370":{"this":{"__isSmartRef__":true,"id":6321},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6371}},"6371":{"$super":{"__isSmartRef__":true,"id":6372}},"6372":{"varMapping":{"__isSmartRef__":true,"id":6373},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6374},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6373":{"obj":{"__isSmartRef__":true,"id":6321},"name":"onMouseDown"},"6374":{},"6375":{},"6376":{"varMapping":{"__isSmartRef__":true,"id":6377},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":6378},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6377":{"this":{"__isSmartRef__":true,"id":6321}},"6378":{},"6379":{"varMapping":{"__isSmartRef__":true,"id":6380},"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":6381},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6380":{"this":{"__isSmartRef__":true,"id":6321}},"6381":{},"6382":{"varMapping":{"__isSmartRef__":true,"id":6383},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6384},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6383":{"this":{"__isSmartRef__":true,"id":6321}},"6384":{},"6385":{"_Position":{"__isSmartRef__":true,"id":6386},"renderContextTable":{"__isSmartRef__":true,"id":6387},"_Extent":{"__isSmartRef__":true,"id":6388},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6389},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6386":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6387":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6388":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6389":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6390":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6391":{"morph":{"__isSmartRef__":true,"id":6320},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6392":{"layouter":{"__isSmartRef__":true,"id":6393},"resizeWidth":true},"6393":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":6320},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"6394":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6395":{"x":0,"y":440,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6396":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":6397}},"6397":{"varMapping":{"__isSmartRef__":true,"id":6398},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":6403},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6398":{"this":{"__isSmartRef__":true,"id":6320},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6399}},"6399":{"$super":{"__isSmartRef__":true,"id":6400}},"6400":{"varMapping":{"__isSmartRef__":true,"id":6401},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6402},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6401":{"obj":{"__isSmartRef__":true,"id":6320},"name":"getLayoutableSubmorphs"},"6402":{},"6403":{},"6404":{"submorphs":[{"__isSmartRef__":true,"id":6405}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6469},"derivationIds":[null],"id":"33B4948C-D4C1-4C5D-A850-6BEA1E326B21","renderContextTable":{"__isSmartRef__":true,"id":6474},"eventHandler":{"__isSmartRef__":true,"id":6475},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6476},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":6478},"owner":{"__isSmartRef__":true,"id":5478},"_Position":{"__isSmartRef__":true,"id":6479},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6480},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6405":{"submorphs":[{"__isSmartRef__":true,"id":6406},{"__isSmartRef__":true,"id":6423}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6439},"derivationIds":[null],"id":"33DB053C-3244-4502-BCF0-128534BEDBF8","renderContextTable":{"__isSmartRef__":true,"id":6444},"eventHandler":{"__isSmartRef__":true,"id":6445},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6446},"grabbingEnabled":false,"draggingEnabled":false,"data":[],"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":5377},"label":"doNotSerialize","children":[],"parent":{"__isSmartRef__":true,"id":5380},"expander":{"__isSmartRef__":true,"id":6406},"text":{"__isSmartRef__":true,"id":6423},"owner":{"__isSmartRef__":true,"id":6404},"_Position":{"__isSmartRef__":true,"id":6447},"priorExtent":{"__isSmartRef__":true,"id":6448},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6449},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6406":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6407},"derivationIds":[null],"id":"2AF5AF09-D0D2-47E8-BC2E-4EB973AB7FC3","renderContextTable":{"__isSmartRef__":true,"id":6413},"eventHandler":{"__isSmartRef__":true,"id":6414},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6415},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":6405},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6416},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"6407":{"_Position":{"__isSmartRef__":true,"id":6408},"renderContextTable":{"__isSmartRef__":true,"id":6409},"_Extent":{"__isSmartRef__":true,"id":6410},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6411},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5387},"_Fill":{"__isSmartRef__":true,"id":6412},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6408":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6409":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6410":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6411":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6412":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6413":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6414":{"morph":{"__isSmartRef__":true,"id":6406},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6415":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6416":{"toggle":{"__isSmartRef__":true,"id":6417},"toggleExpansion":{"__isSmartRef__":true,"id":6420}},"6417":{"varMapping":{"__isSmartRef__":true,"id":6418},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":6419},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6418":{"this":{"__isSmartRef__":true,"id":6406}},"6419":{},"6420":{"varMapping":{"__isSmartRef__":true,"id":6421},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":6422},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6421":{"this":{"__isSmartRef__":true,"id":6406}},"6422":{},"6423":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6424},"derivationIds":[null],"id":"45E5F0BF-7730-4AA7-A97F-56024DB983B4","renderContextTable":{"__isSmartRef__":true,"id":6428},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":6429},{"__isSmartRef__":true,"id":6431}],"eventHandler":{"__isSmartRef__":true,"id":6433},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":6434},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":6405},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6435},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6424":{"_Position":{"__isSmartRef__":true,"id":6425},"renderContextTable":{"__isSmartRef__":true,"id":6426},"_Extent":{"__isSmartRef__":true,"id":6427},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":5403},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":632},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6425":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6426":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6427":{"x":143,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6428":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6429":{"style":{"__isSmartRef__":true,"id":6430},"chunkOwner":{"__isSmartRef__":true,"id":6423},"storedString":"doNotSerialize","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6430":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6431":{"style":{"__isSmartRef__":true,"id":6432},"chunkOwner":{"__isSmartRef__":true,"id":6423},"storedString":": []","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6432":{"color":{"__isSmartRef__":true,"id":5410},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6433":{"morph":{"__isSmartRef__":true,"id":6423},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6434":{"x":135,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6435":{"layoutText":{"__isSmartRef__":true,"id":6436}},"6436":{"varMapping":{"__isSmartRef__":true,"id":6437},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":6438},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6437":{"this":{"__isSmartRef__":true,"id":6423}},"6438":{},"6439":{"_Position":{"__isSmartRef__":true,"id":6440},"renderContextTable":{"__isSmartRef__":true,"id":6441},"_Extent":{"__isSmartRef__":true,"id":6442},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6443},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6440":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6441":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6442":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6443":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6444":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6445":{"morph":{"__isSmartRef__":true,"id":6405},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6446":{"resizeWidth":true},"6447":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6448":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6449":{"updateExpanderColor":{"__isSmartRef__":true,"id":6450},"onMouseDown":{"__isSmartRef__":true,"id":6453},"isRoot":{"__isSmartRef__":true,"id":6460},"displayValue":{"__isSmartRef__":true,"id":6463},"update":{"__isSmartRef__":true,"id":6466}},"6450":{"varMapping":{"__isSmartRef__":true,"id":6451},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":6452},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6451":{"this":{"__isSmartRef__":true,"id":6405}},"6452":{},"6453":{"varMapping":{"__isSmartRef__":true,"id":6454},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":6459},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6454":{"this":{"__isSmartRef__":true,"id":6405},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6455}},"6455":{"$super":{"__isSmartRef__":true,"id":6456}},"6456":{"varMapping":{"__isSmartRef__":true,"id":6457},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6458},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6457":{"obj":{"__isSmartRef__":true,"id":6405},"name":"onMouseDown"},"6458":{},"6459":{},"6460":{"varMapping":{"__isSmartRef__":true,"id":6461},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":6462},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6461":{"this":{"__isSmartRef__":true,"id":6405}},"6462":{},"6463":{"varMapping":{"__isSmartRef__":true,"id":6464},"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":6465},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6464":{"this":{"__isSmartRef__":true,"id":6405}},"6465":{},"6466":{"varMapping":{"__isSmartRef__":true,"id":6467},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6468},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6467":{"this":{"__isSmartRef__":true,"id":6405}},"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.lively.morphic.Graphics"},"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.lively.morphic.Graphics"},"6473":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"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":6404},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6476":{"layouter":{"__isSmartRef__":true,"id":6477},"resizeWidth":true},"6477":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":6404},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"6478":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6479":{"x":0,"y":420,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6480":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":6481}},"6481":{"varMapping":{"__isSmartRef__":true,"id":6482},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":6487},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6482":{"this":{"__isSmartRef__":true,"id":6404},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6483}},"6483":{"$super":{"__isSmartRef__":true,"id":6484}},"6484":{"varMapping":{"__isSmartRef__":true,"id":6485},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6486},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6485":{"obj":{"__isSmartRef__":true,"id":6404},"name":"getLayoutableSubmorphs"},"6486":{},"6487":{},"6488":{"submorphs":[{"__isSmartRef__":true,"id":6489}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6553},"derivationIds":[null],"id":"96C2940A-D155-4537-9318-BAAD7CB8FDDF","renderContextTable":{"__isSmartRef__":true,"id":6558},"eventHandler":{"__isSmartRef__":true,"id":6559},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6560},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":6562},"owner":{"__isSmartRef__":true,"id":5478},"_Position":{"__isSmartRef__":true,"id":6563},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6564},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6489":{"submorphs":[{"__isSmartRef__":true,"id":6490},{"__isSmartRef__":true,"id":6507}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6523},"derivationIds":[null],"id":"D3E1C172-5BB1-4FC1-9ADC-81660D38E31C","renderContextTable":{"__isSmartRef__":true,"id":6528},"eventHandler":{"__isSmartRef__":true,"id":6529},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6530},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":5377},"label":"droppingEnabled","children":[],"parent":{"__isSmartRef__":true,"id":5380},"expander":{"__isSmartRef__":true,"id":6490},"text":{"__isSmartRef__":true,"id":6507},"owner":{"__isSmartRef__":true,"id":6488},"_Position":{"__isSmartRef__":true,"id":6531},"priorExtent":{"__isSmartRef__":true,"id":6532},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6533},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6490":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6491},"derivationIds":[null],"id":"91515E1C-4DEA-4EF8-835F-DE5147253075","renderContextTable":{"__isSmartRef__":true,"id":6497},"eventHandler":{"__isSmartRef__":true,"id":6498},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6499},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":6489},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6500},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"6491":{"_Position":{"__isSmartRef__":true,"id":6492},"renderContextTable":{"__isSmartRef__":true,"id":6493},"_Extent":{"__isSmartRef__":true,"id":6494},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6495},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5387},"_Fill":{"__isSmartRef__":true,"id":6496},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6492":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6493":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6494":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6495":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6496":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6497":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6498":{"morph":{"__isSmartRef__":true,"id":6490},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6499":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6500":{"toggle":{"__isSmartRef__":true,"id":6501},"toggleExpansion":{"__isSmartRef__":true,"id":6504}},"6501":{"varMapping":{"__isSmartRef__":true,"id":6502},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":6503},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6502":{"this":{"__isSmartRef__":true,"id":6490}},"6503":{},"6504":{"varMapping":{"__isSmartRef__":true,"id":6505},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":6506},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6505":{"this":{"__isSmartRef__":true,"id":6490}},"6506":{},"6507":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6508},"derivationIds":[null],"id":"70C2D619-157B-48F8-B87F-41ECB868EC44","renderContextTable":{"__isSmartRef__":true,"id":6512},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":6513},{"__isSmartRef__":true,"id":6515}],"eventHandler":{"__isSmartRef__":true,"id":6517},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":6518},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":6489},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6519},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6508":{"_Position":{"__isSmartRef__":true,"id":6509},"renderContextTable":{"__isSmartRef__":true,"id":6510},"_Extent":{"__isSmartRef__":true,"id":6511},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":5403},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":632},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6509":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6510":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6511":{"x":165.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6512":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6513":{"style":{"__isSmartRef__":true,"id":6514},"chunkOwner":{"__isSmartRef__":true,"id":6507},"storedString":"droppingEnabled","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6514":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6515":{"style":{"__isSmartRef__":true,"id":6516},"chunkOwner":{"__isSmartRef__":true,"id":6507},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6516":{"color":{"__isSmartRef__":true,"id":5410},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6517":{"morph":{"__isSmartRef__":true,"id":6507},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6518":{"x":157.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6519":{"layoutText":{"__isSmartRef__":true,"id":6520}},"6520":{"varMapping":{"__isSmartRef__":true,"id":6521},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":6522},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6521":{"this":{"__isSmartRef__":true,"id":6507}},"6522":{},"6523":{"_Position":{"__isSmartRef__":true,"id":6524},"renderContextTable":{"__isSmartRef__":true,"id":6525},"_Extent":{"__isSmartRef__":true,"id":6526},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6527},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6524":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6525":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6526":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6527":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6528":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6529":{"morph":{"__isSmartRef__":true,"id":6489},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6530":{"resizeWidth":true},"6531":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6532":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6533":{"updateExpanderColor":{"__isSmartRef__":true,"id":6534},"onMouseDown":{"__isSmartRef__":true,"id":6537},"isRoot":{"__isSmartRef__":true,"id":6544},"displayValue":{"__isSmartRef__":true,"id":6547},"update":{"__isSmartRef__":true,"id":6550}},"6534":{"varMapping":{"__isSmartRef__":true,"id":6535},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":6536},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6535":{"this":{"__isSmartRef__":true,"id":6489}},"6536":{},"6537":{"varMapping":{"__isSmartRef__":true,"id":6538},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":6543},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6538":{"this":{"__isSmartRef__":true,"id":6489},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6539}},"6539":{"$super":{"__isSmartRef__":true,"id":6540}},"6540":{"varMapping":{"__isSmartRef__":true,"id":6541},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6542},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6541":{"obj":{"__isSmartRef__":true,"id":6489},"name":"onMouseDown"},"6542":{},"6543":{},"6544":{"varMapping":{"__isSmartRef__":true,"id":6545},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":6546},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6545":{"this":{"__isSmartRef__":true,"id":6489}},"6546":{},"6547":{"varMapping":{"__isSmartRef__":true,"id":6548},"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":6549},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6548":{"this":{"__isSmartRef__":true,"id":6489}},"6549":{},"6550":{"varMapping":{"__isSmartRef__":true,"id":6551},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6552},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6551":{"this":{"__isSmartRef__":true,"id":6489}},"6552":{},"6553":{"_Position":{"__isSmartRef__":true,"id":6554},"renderContextTable":{"__isSmartRef__":true,"id":6555},"_Extent":{"__isSmartRef__":true,"id":6556},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6557},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6554":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6555":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6556":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6557":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6558":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6559":{"morph":{"__isSmartRef__":true,"id":6488},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6560":{"layouter":{"__isSmartRef__":true,"id":6561},"resizeWidth":true},"6561":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":6488},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"6562":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6563":{"x":0,"y":400,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6564":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":6565}},"6565":{"varMapping":{"__isSmartRef__":true,"id":6566},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":6571},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6566":{"this":{"__isSmartRef__":true,"id":6488},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6567}},"6567":{"$super":{"__isSmartRef__":true,"id":6568}},"6568":{"varMapping":{"__isSmartRef__":true,"id":6569},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6570},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6569":{"obj":{"__isSmartRef__":true,"id":6488},"name":"getLayoutableSubmorphs"},"6570":{},"6571":{},"6572":{"submorphs":[{"__isSmartRef__":true,"id":6573}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6637},"derivationIds":[null],"id":"8F832964-1CFB-407A-BDA3-EF6824C54EF4","renderContextTable":{"__isSmartRef__":true,"id":6642},"eventHandler":{"__isSmartRef__":true,"id":6643},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6644},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":6646},"owner":{"__isSmartRef__":true,"id":5478},"_Position":{"__isSmartRef__":true,"id":6647},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6648},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6573":{"submorphs":[{"__isSmartRef__":true,"id":6574},{"__isSmartRef__":true,"id":6591}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6607},"derivationIds":[null],"id":"A9C900C9-3BB6-4002-AC6A-72F4ACC26F17","renderContextTable":{"__isSmartRef__":true,"id":6612},"eventHandler":{"__isSmartRef__":true,"id":6613},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6614},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":5171},"propertyList":["morph","__SourceModuleName__","dispatchTable"],"level":1,"treeView":{"__isSmartRef__":true,"id":5377},"label":"eventHandler","children":[],"parent":{"__isSmartRef__":true,"id":5380},"expander":{"__isSmartRef__":true,"id":6574},"text":{"__isSmartRef__":true,"id":6591},"owner":{"__isSmartRef__":true,"id":6572},"_Position":{"__isSmartRef__":true,"id":6615},"priorExtent":{"__isSmartRef__":true,"id":6616},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6617},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6574":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6575},"derivationIds":[null],"id":"9AD4AC9D-8CFE-4E03-AC2F-12C1DE09180F","renderContextTable":{"__isSmartRef__":true,"id":6581},"eventHandler":{"__isSmartRef__":true,"id":6582},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6583},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":6573},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6584},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"6575":{"_Position":{"__isSmartRef__":true,"id":6576},"renderContextTable":{"__isSmartRef__":true,"id":6577},"_Extent":{"__isSmartRef__":true,"id":6578},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6579},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5387},"_Fill":{"__isSmartRef__":true,"id":6580},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6576":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6577":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6578":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6579":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6580":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6581":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6582":{"morph":{"__isSmartRef__":true,"id":6574},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6583":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6584":{"toggle":{"__isSmartRef__":true,"id":6585},"toggleExpansion":{"__isSmartRef__":true,"id":6588}},"6585":{"varMapping":{"__isSmartRef__":true,"id":6586},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":6587},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6586":{"this":{"__isSmartRef__":true,"id":6574}},"6587":{},"6588":{"varMapping":{"__isSmartRef__":true,"id":6589},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":6590},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6589":{"this":{"__isSmartRef__":true,"id":6574}},"6590":{},"6591":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6592},"derivationIds":[null],"id":"68ADDABF-5D67-4D93-BD3C-6210ABF850FE","renderContextTable":{"__isSmartRef__":true,"id":6596},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":6597},{"__isSmartRef__":true,"id":6599}],"eventHandler":{"__isSmartRef__":true,"id":6601},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":6602},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":6573},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6603},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6592":{"_Position":{"__isSmartRef__":true,"id":6593},"renderContextTable":{"__isSmartRef__":true,"id":6594},"_Extent":{"__isSmartRef__":true,"id":6595},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":5403},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":632},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6593":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6594":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6595":{"x":203,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6596":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6597":{"style":{"__isSmartRef__":true,"id":6598},"chunkOwner":{"__isSmartRef__":true,"id":6591},"storedString":"eventHandler","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6598":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6599":{"style":{"__isSmartRef__":true,"id":6600},"chunkOwner":{"__isSmartRef__":true,"id":6591},"storedString":": EventHandler","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6600":{"color":{"__isSmartRef__":true,"id":5410},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6601":{"morph":{"__isSmartRef__":true,"id":6591},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6602":{"x":195,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6603":{"layoutText":{"__isSmartRef__":true,"id":6604}},"6604":{"varMapping":{"__isSmartRef__":true,"id":6605},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":6606},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6605":{"this":{"__isSmartRef__":true,"id":6591}},"6606":{},"6607":{"_Position":{"__isSmartRef__":true,"id":6608},"renderContextTable":{"__isSmartRef__":true,"id":6609},"_Extent":{"__isSmartRef__":true,"id":6610},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6611},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6608":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6609":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6610":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6611":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6612":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6613":{"morph":{"__isSmartRef__":true,"id":6573},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6614":{"resizeWidth":true},"6615":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6616":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6617":{"updateExpanderColor":{"__isSmartRef__":true,"id":6618},"onMouseDown":{"__isSmartRef__":true,"id":6621},"isRoot":{"__isSmartRef__":true,"id":6628},"displayValue":{"__isSmartRef__":true,"id":6631},"update":{"__isSmartRef__":true,"id":6634}},"6618":{"varMapping":{"__isSmartRef__":true,"id":6619},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":6620},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6619":{"this":{"__isSmartRef__":true,"id":6573}},"6620":{},"6621":{"varMapping":{"__isSmartRef__":true,"id":6622},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":6627},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6622":{"this":{"__isSmartRef__":true,"id":6573},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6623}},"6623":{"$super":{"__isSmartRef__":true,"id":6624}},"6624":{"varMapping":{"__isSmartRef__":true,"id":6625},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6626},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6625":{"obj":{"__isSmartRef__":true,"id":6573},"name":"onMouseDown"},"6626":{},"6627":{},"6628":{"varMapping":{"__isSmartRef__":true,"id":6629},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":6630},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6629":{"this":{"__isSmartRef__":true,"id":6573}},"6630":{},"6631":{"varMapping":{"__isSmartRef__":true,"id":6632},"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":6633},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6632":{"this":{"__isSmartRef__":true,"id":6573}},"6633":{},"6634":{"varMapping":{"__isSmartRef__":true,"id":6635},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6636},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6635":{"this":{"__isSmartRef__":true,"id":6573}},"6636":{},"6637":{"_Position":{"__isSmartRef__":true,"id":6638},"renderContextTable":{"__isSmartRef__":true,"id":6639},"_Extent":{"__isSmartRef__":true,"id":6640},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6641},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6638":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6639":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6640":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6641":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6642":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6643":{"morph":{"__isSmartRef__":true,"id":6572},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6644":{"layouter":{"__isSmartRef__":true,"id":6645},"resizeWidth":true},"6645":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":6572},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"6646":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6647":{"x":0,"y":380,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6648":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":6649}},"6649":{"varMapping":{"__isSmartRef__":true,"id":6650},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":6655},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6650":{"this":{"__isSmartRef__":true,"id":6572},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6651}},"6651":{"$super":{"__isSmartRef__":true,"id":6652}},"6652":{"varMapping":{"__isSmartRef__":true,"id":6653},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6654},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6653":{"obj":{"__isSmartRef__":true,"id":6572},"name":"getLayoutableSubmorphs"},"6654":{},"6655":{},"6656":{"submorphs":[{"__isSmartRef__":true,"id":6657}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6721},"derivationIds":[null],"id":"73691882-C4E1-4D9F-A205-B8E92B735AE1","renderContextTable":{"__isSmartRef__":true,"id":6726},"eventHandler":{"__isSmartRef__":true,"id":6727},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6728},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":6730},"owner":{"__isSmartRef__":true,"id":5478},"_Position":{"__isSmartRef__":true,"id":6731},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6732},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6657":{"submorphs":[{"__isSmartRef__":true,"id":6658},{"__isSmartRef__":true,"id":6675}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6691},"derivationIds":[null],"id":"BA08D12C-40DC-407A-8016-17E056E4C717","renderContextTable":{"__isSmartRef__":true,"id":6696},"eventHandler":{"__isSmartRef__":true,"id":6697},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6698},"grabbingEnabled":false,"draggingEnabled":false,"data":"rgb(0, 0, 200)","propertyList":["0","1","2","3","4","5","6","7","8","9","10","11","12","13"],"level":1,"treeView":{"__isSmartRef__":true,"id":5377},"label":"fillStyle","children":[],"parent":{"__isSmartRef__":true,"id":5380},"expander":{"__isSmartRef__":true,"id":6658},"text":{"__isSmartRef__":true,"id":6675},"owner":{"__isSmartRef__":true,"id":6656},"_Position":{"__isSmartRef__":true,"id":6699},"priorExtent":{"__isSmartRef__":true,"id":6700},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6701},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6658":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6659},"derivationIds":[null],"id":"3BA04AA5-F255-4456-9C74-F56F1A0D7A8F","renderContextTable":{"__isSmartRef__":true,"id":6665},"eventHandler":{"__isSmartRef__":true,"id":6666},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6667},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":6657},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6668},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"6659":{"_Position":{"__isSmartRef__":true,"id":6660},"renderContextTable":{"__isSmartRef__":true,"id":6661},"_Extent":{"__isSmartRef__":true,"id":6662},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6663},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5387},"_Fill":{"__isSmartRef__":true,"id":6664},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6660":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6661":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6662":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6663":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6664":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6665":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6666":{"morph":{"__isSmartRef__":true,"id":6658},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6667":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6668":{"toggle":{"__isSmartRef__":true,"id":6669},"toggleExpansion":{"__isSmartRef__":true,"id":6672}},"6669":{"varMapping":{"__isSmartRef__":true,"id":6670},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":6671},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6670":{"this":{"__isSmartRef__":true,"id":6658}},"6671":{},"6672":{"varMapping":{"__isSmartRef__":true,"id":6673},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":6674},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6673":{"this":{"__isSmartRef__":true,"id":6658}},"6674":{},"6675":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6676},"derivationIds":[null],"id":"E574D573-FA95-4AE5-A9FD-94CE363BB46E","renderContextTable":{"__isSmartRef__":true,"id":6680},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":6681},{"__isSmartRef__":true,"id":6683}],"eventHandler":{"__isSmartRef__":true,"id":6685},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":6686},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":6657},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6687},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6676":{"_Position":{"__isSmartRef__":true,"id":6677},"renderContextTable":{"__isSmartRef__":true,"id":6678},"_Extent":{"__isSmartRef__":true,"id":6679},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":5403},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":632},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6677":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6678":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6679":{"x":195.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6680":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6681":{"style":{"__isSmartRef__":true,"id":6682},"chunkOwner":{"__isSmartRef__":true,"id":6675},"storedString":"fillStyle","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6682":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6683":{"style":{"__isSmartRef__":true,"id":6684},"chunkOwner":{"__isSmartRef__":true,"id":6675},"storedString":": rgb(0, 0, 200)","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6684":{"color":{"__isSmartRef__":true,"id":5410},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6685":{"morph":{"__isSmartRef__":true,"id":6675},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6686":{"x":187.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6687":{"layoutText":{"__isSmartRef__":true,"id":6688}},"6688":{"varMapping":{"__isSmartRef__":true,"id":6689},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":6690},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6689":{"this":{"__isSmartRef__":true,"id":6675}},"6690":{},"6691":{"_Position":{"__isSmartRef__":true,"id":6692},"renderContextTable":{"__isSmartRef__":true,"id":6693},"_Extent":{"__isSmartRef__":true,"id":6694},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6695},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6692":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6693":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6694":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6695":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6696":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6697":{"morph":{"__isSmartRef__":true,"id":6657},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6698":{"resizeWidth":true},"6699":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6700":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6701":{"updateExpanderColor":{"__isSmartRef__":true,"id":6702},"onMouseDown":{"__isSmartRef__":true,"id":6705},"isRoot":{"__isSmartRef__":true,"id":6712},"displayValue":{"__isSmartRef__":true,"id":6715},"update":{"__isSmartRef__":true,"id":6718}},"6702":{"varMapping":{"__isSmartRef__":true,"id":6703},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":6704},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6703":{"this":{"__isSmartRef__":true,"id":6657}},"6704":{},"6705":{"varMapping":{"__isSmartRef__":true,"id":6706},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":6711},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6706":{"this":{"__isSmartRef__":true,"id":6657},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6707}},"6707":{"$super":{"__isSmartRef__":true,"id":6708}},"6708":{"varMapping":{"__isSmartRef__":true,"id":6709},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6710},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6709":{"obj":{"__isSmartRef__":true,"id":6657},"name":"onMouseDown"},"6710":{},"6711":{},"6712":{"varMapping":{"__isSmartRef__":true,"id":6713},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":6714},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6713":{"this":{"__isSmartRef__":true,"id":6657}},"6714":{},"6715":{"varMapping":{"__isSmartRef__":true,"id":6716},"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":6717},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6716":{"this":{"__isSmartRef__":true,"id":6657}},"6717":{},"6718":{"varMapping":{"__isSmartRef__":true,"id":6719},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6720},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6719":{"this":{"__isSmartRef__":true,"id":6657}},"6720":{},"6721":{"_Position":{"__isSmartRef__":true,"id":6722},"renderContextTable":{"__isSmartRef__":true,"id":6723},"_Extent":{"__isSmartRef__":true,"id":6724},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6725},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6722":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6723":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6724":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6725":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6726":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6727":{"morph":{"__isSmartRef__":true,"id":6656},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6728":{"layouter":{"__isSmartRef__":true,"id":6729},"resizeWidth":true},"6729":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":6656},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"6730":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6731":{"x":0,"y":360,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6732":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":6733}},"6733":{"varMapping":{"__isSmartRef__":true,"id":6734},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":6739},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6734":{"this":{"__isSmartRef__":true,"id":6656},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6735}},"6735":{"$super":{"__isSmartRef__":true,"id":6736}},"6736":{"varMapping":{"__isSmartRef__":true,"id":6737},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6738},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6737":{"obj":{"__isSmartRef__":true,"id":6656},"name":"getLayoutableSubmorphs"},"6738":{},"6739":{},"6740":{"submorphs":[{"__isSmartRef__":true,"id":6741}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6805},"derivationIds":[null],"id":"C6EBBC3C-3E00-4B14-A4BD-958D979CA406","renderContextTable":{"__isSmartRef__":true,"id":6810},"eventHandler":{"__isSmartRef__":true,"id":6811},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6812},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":6814},"owner":{"__isSmartRef__":true,"id":5478},"_Position":{"__isSmartRef__":true,"id":6815},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6816},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6741":{"submorphs":[{"__isSmartRef__":true,"id":6742},{"__isSmartRef__":true,"id":6759}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6775},"derivationIds":[null],"id":"BE966B7A-A58B-4118-B83C-867062577F9D","renderContextTable":{"__isSmartRef__":true,"id":6780},"eventHandler":{"__isSmartRef__":true,"id":6781},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6782},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":5377},"label":"grabbingEnabled","children":[],"parent":{"__isSmartRef__":true,"id":5380},"expander":{"__isSmartRef__":true,"id":6742},"text":{"__isSmartRef__":true,"id":6759},"owner":{"__isSmartRef__":true,"id":6740},"_Position":{"__isSmartRef__":true,"id":6783},"priorExtent":{"__isSmartRef__":true,"id":6784},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6785},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6742":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6743},"derivationIds":[null],"id":"B98BE6E9-DC03-4756-98E4-3D106DA8929C","renderContextTable":{"__isSmartRef__":true,"id":6749},"eventHandler":{"__isSmartRef__":true,"id":6750},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6751},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":6741},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6752},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"6743":{"_Position":{"__isSmartRef__":true,"id":6744},"renderContextTable":{"__isSmartRef__":true,"id":6745},"_Extent":{"__isSmartRef__":true,"id":6746},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6747},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5387},"_Fill":{"__isSmartRef__":true,"id":6748},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6744":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6745":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6746":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6747":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6748":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6749":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6750":{"morph":{"__isSmartRef__":true,"id":6742},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6751":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6752":{"toggle":{"__isSmartRef__":true,"id":6753},"toggleExpansion":{"__isSmartRef__":true,"id":6756}},"6753":{"varMapping":{"__isSmartRef__":true,"id":6754},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":6755},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6754":{"this":{"__isSmartRef__":true,"id":6742}},"6755":{},"6756":{"varMapping":{"__isSmartRef__":true,"id":6757},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":6758},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6757":{"this":{"__isSmartRef__":true,"id":6742}},"6758":{},"6759":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6760},"derivationIds":[null],"id":"20EF409A-95E8-4FDC-A81B-FD7DFC2D74AA","renderContextTable":{"__isSmartRef__":true,"id":6764},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":6765},{"__isSmartRef__":true,"id":6767}],"eventHandler":{"__isSmartRef__":true,"id":6769},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":6770},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":6741},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6771},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6760":{"_Position":{"__isSmartRef__":true,"id":6761},"renderContextTable":{"__isSmartRef__":true,"id":6762},"_Extent":{"__isSmartRef__":true,"id":6763},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":5403},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":632},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6761":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6762":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6763":{"x":173,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6764":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6765":{"style":{"__isSmartRef__":true,"id":6766},"chunkOwner":{"__isSmartRef__":true,"id":6759},"storedString":"grabbingEnabled","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6766":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6767":{"style":{"__isSmartRef__":true,"id":6768},"chunkOwner":{"__isSmartRef__":true,"id":6759},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6768":{"color":{"__isSmartRef__":true,"id":5410},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6769":{"morph":{"__isSmartRef__":true,"id":6759},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6770":{"x":165,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6771":{"layoutText":{"__isSmartRef__":true,"id":6772}},"6772":{"varMapping":{"__isSmartRef__":true,"id":6773},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":6774},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6773":{"this":{"__isSmartRef__":true,"id":6759}},"6774":{},"6775":{"_Position":{"__isSmartRef__":true,"id":6776},"renderContextTable":{"__isSmartRef__":true,"id":6777},"_Extent":{"__isSmartRef__":true,"id":6778},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6779},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6776":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6777":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6778":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6779":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6780":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6781":{"morph":{"__isSmartRef__":true,"id":6741},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6782":{"resizeWidth":true},"6783":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6784":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6785":{"updateExpanderColor":{"__isSmartRef__":true,"id":6786},"onMouseDown":{"__isSmartRef__":true,"id":6789},"isRoot":{"__isSmartRef__":true,"id":6796},"displayValue":{"__isSmartRef__":true,"id":6799},"update":{"__isSmartRef__":true,"id":6802}},"6786":{"varMapping":{"__isSmartRef__":true,"id":6787},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":6788},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6787":{"this":{"__isSmartRef__":true,"id":6741}},"6788":{},"6789":{"varMapping":{"__isSmartRef__":true,"id":6790},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":6795},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6790":{"this":{"__isSmartRef__":true,"id":6741},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6791}},"6791":{"$super":{"__isSmartRef__":true,"id":6792}},"6792":{"varMapping":{"__isSmartRef__":true,"id":6793},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6794},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6793":{"obj":{"__isSmartRef__":true,"id":6741},"name":"onMouseDown"},"6794":{},"6795":{},"6796":{"varMapping":{"__isSmartRef__":true,"id":6797},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":6798},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6797":{"this":{"__isSmartRef__":true,"id":6741}},"6798":{},"6799":{"varMapping":{"__isSmartRef__":true,"id":6800},"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":6801},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6800":{"this":{"__isSmartRef__":true,"id":6741}},"6801":{},"6802":{"varMapping":{"__isSmartRef__":true,"id":6803},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6804},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6803":{"this":{"__isSmartRef__":true,"id":6741}},"6804":{},"6805":{"_Position":{"__isSmartRef__":true,"id":6806},"renderContextTable":{"__isSmartRef__":true,"id":6807},"_Extent":{"__isSmartRef__":true,"id":6808},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6809},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6806":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6807":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6808":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6809":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6810":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6811":{"morph":{"__isSmartRef__":true,"id":6740},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6812":{"layouter":{"__isSmartRef__":true,"id":6813},"resizeWidth":true},"6813":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":6740},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"6814":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6815":{"x":0,"y":340,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6816":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":6817}},"6817":{"varMapping":{"__isSmartRef__":true,"id":6818},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":6823},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6818":{"this":{"__isSmartRef__":true,"id":6740},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6819}},"6819":{"$super":{"__isSmartRef__":true,"id":6820}},"6820":{"varMapping":{"__isSmartRef__":true,"id":6821},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6822},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6821":{"obj":{"__isSmartRef__":true,"id":6740},"name":"getLayoutableSubmorphs"},"6822":{},"6823":{},"6824":{"submorphs":[{"__isSmartRef__":true,"id":6825}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6889},"derivationIds":[null],"id":"8467C64F-9413-48E2-92DC-E30FA2D32D1E","renderContextTable":{"__isSmartRef__":true,"id":6894},"eventHandler":{"__isSmartRef__":true,"id":6895},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6896},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":6898},"owner":{"__isSmartRef__":true,"id":5478},"_Position":{"__isSmartRef__":true,"id":6899},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6900},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6825":{"submorphs":[{"__isSmartRef__":true,"id":6826},{"__isSmartRef__":true,"id":6843}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6859},"derivationIds":[null],"id":"DB811DE3-0175-40B5-977B-50AA45C9A305","renderContextTable":{"__isSmartRef__":true,"id":6864},"eventHandler":{"__isSmartRef__":true,"id":6865},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6866},"grabbingEnabled":false,"draggingEnabled":false,"data":[],"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":5377},"label":"halos","children":[],"parent":{"__isSmartRef__":true,"id":5380},"expander":{"__isSmartRef__":true,"id":6826},"text":{"__isSmartRef__":true,"id":6843},"owner":{"__isSmartRef__":true,"id":6824},"_Position":{"__isSmartRef__":true,"id":6867},"priorExtent":{"__isSmartRef__":true,"id":6868},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6869},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6826":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6827},"derivationIds":[null],"id":"24916745-7C5A-403C-AC12-9021FED66B47","renderContextTable":{"__isSmartRef__":true,"id":6833},"eventHandler":{"__isSmartRef__":true,"id":6834},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6835},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":6825},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6836},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"6827":{"_Position":{"__isSmartRef__":true,"id":6828},"renderContextTable":{"__isSmartRef__":true,"id":6829},"_Extent":{"__isSmartRef__":true,"id":6830},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6831},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5387},"_Fill":{"__isSmartRef__":true,"id":6832},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6828":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6829":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6830":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6831":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6832":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6833":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6834":{"morph":{"__isSmartRef__":true,"id":6826},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6835":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6836":{"toggle":{"__isSmartRef__":true,"id":6837},"toggleExpansion":{"__isSmartRef__":true,"id":6840}},"6837":{"varMapping":{"__isSmartRef__":true,"id":6838},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":6839},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6838":{"this":{"__isSmartRef__":true,"id":6826}},"6839":{},"6840":{"varMapping":{"__isSmartRef__":true,"id":6841},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":6842},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6841":{"this":{"__isSmartRef__":true,"id":6826}},"6842":{},"6843":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6844},"derivationIds":[null],"id":"5C4D9EE1-FB05-4284-8965-8370102840DB","renderContextTable":{"__isSmartRef__":true,"id":6848},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":6849},{"__isSmartRef__":true,"id":6851}],"eventHandler":{"__isSmartRef__":true,"id":6853},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":6854},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":6825},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6855},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6844":{"_Position":{"__isSmartRef__":true,"id":6845},"renderContextTable":{"__isSmartRef__":true,"id":6846},"_Extent":{"__isSmartRef__":true,"id":6847},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":5403},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":632},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6845":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6846":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6847":{"x":75.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6848":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6849":{"style":{"__isSmartRef__":true,"id":6850},"chunkOwner":{"__isSmartRef__":true,"id":6843},"storedString":"halos","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6850":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6851":{"style":{"__isSmartRef__":true,"id":6852},"chunkOwner":{"__isSmartRef__":true,"id":6843},"storedString":": []","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6852":{"color":{"__isSmartRef__":true,"id":5410},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6853":{"morph":{"__isSmartRef__":true,"id":6843},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6854":{"x":67.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6855":{"layoutText":{"__isSmartRef__":true,"id":6856}},"6856":{"varMapping":{"__isSmartRef__":true,"id":6857},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":6858},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6857":{"this":{"__isSmartRef__":true,"id":6843}},"6858":{},"6859":{"_Position":{"__isSmartRef__":true,"id":6860},"renderContextTable":{"__isSmartRef__":true,"id":6861},"_Extent":{"__isSmartRef__":true,"id":6862},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6863},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6860":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6861":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6862":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6863":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6864":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6865":{"morph":{"__isSmartRef__":true,"id":6825},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6866":{"resizeWidth":true},"6867":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6868":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6869":{"updateExpanderColor":{"__isSmartRef__":true,"id":6870},"onMouseDown":{"__isSmartRef__":true,"id":6873},"isRoot":{"__isSmartRef__":true,"id":6880},"displayValue":{"__isSmartRef__":true,"id":6883},"update":{"__isSmartRef__":true,"id":6886}},"6870":{"varMapping":{"__isSmartRef__":true,"id":6871},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":6872},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6871":{"this":{"__isSmartRef__":true,"id":6825}},"6872":{},"6873":{"varMapping":{"__isSmartRef__":true,"id":6874},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":6879},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6874":{"this":{"__isSmartRef__":true,"id":6825},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6875}},"6875":{"$super":{"__isSmartRef__":true,"id":6876}},"6876":{"varMapping":{"__isSmartRef__":true,"id":6877},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6878},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6877":{"obj":{"__isSmartRef__":true,"id":6825},"name":"onMouseDown"},"6878":{},"6879":{},"6880":{"varMapping":{"__isSmartRef__":true,"id":6881},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":6882},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6881":{"this":{"__isSmartRef__":true,"id":6825}},"6882":{},"6883":{"varMapping":{"__isSmartRef__":true,"id":6884},"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":6885},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6884":{"this":{"__isSmartRef__":true,"id":6825}},"6885":{},"6886":{"varMapping":{"__isSmartRef__":true,"id":6887},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6888},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6887":{"this":{"__isSmartRef__":true,"id":6825}},"6888":{},"6889":{"_Position":{"__isSmartRef__":true,"id":6890},"renderContextTable":{"__isSmartRef__":true,"id":6891},"_Extent":{"__isSmartRef__":true,"id":6892},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6893},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6890":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6891":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6892":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6893":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6894":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6895":{"morph":{"__isSmartRef__":true,"id":6824},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6896":{"layouter":{"__isSmartRef__":true,"id":6897},"resizeWidth":true},"6897":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":6824},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"6898":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6899":{"x":0,"y":320,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6900":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":6901}},"6901":{"varMapping":{"__isSmartRef__":true,"id":6902},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":6907},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6902":{"this":{"__isSmartRef__":true,"id":6824},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6903}},"6903":{"$super":{"__isSmartRef__":true,"id":6904}},"6904":{"varMapping":{"__isSmartRef__":true,"id":6905},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6906},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6905":{"obj":{"__isSmartRef__":true,"id":6824},"name":"getLayoutableSubmorphs"},"6906":{},"6907":{},"6908":{"submorphs":[{"__isSmartRef__":true,"id":6909}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6973},"derivationIds":[null],"id":"CE7568D8-73D6-484F-88A5-9F80144B2016","renderContextTable":{"__isSmartRef__":true,"id":6978},"eventHandler":{"__isSmartRef__":true,"id":6979},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6980},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":6982},"owner":{"__isSmartRef__":true,"id":5478},"_Position":{"__isSmartRef__":true,"id":6983},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6984},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6909":{"submorphs":[{"__isSmartRef__":true,"id":6910},{"__isSmartRef__":true,"id":6927}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6943},"derivationIds":[null],"id":"08953430-BF38-4A86-8FFF-578ACE651081","renderContextTable":{"__isSmartRef__":true,"id":6948},"eventHandler":{"__isSmartRef__":true,"id":6949},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":6950},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":5377},"label":"halosEnabled","children":[],"parent":{"__isSmartRef__":true,"id":5380},"expander":{"__isSmartRef__":true,"id":6910},"text":{"__isSmartRef__":true,"id":6927},"owner":{"__isSmartRef__":true,"id":6908},"_Position":{"__isSmartRef__":true,"id":6951},"priorExtent":{"__isSmartRef__":true,"id":6952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6953},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6910":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6911},"derivationIds":[null],"id":"D8120B71-3A05-47D1-9277-71BDA5E0769F","renderContextTable":{"__isSmartRef__":true,"id":6917},"eventHandler":{"__isSmartRef__":true,"id":6918},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":6919},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":6909},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6920},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"6911":{"_Position":{"__isSmartRef__":true,"id":6912},"renderContextTable":{"__isSmartRef__":true,"id":6913},"_Extent":{"__isSmartRef__":true,"id":6914},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6915},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5387},"_Fill":{"__isSmartRef__":true,"id":6916},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6912":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6913":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6914":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6915":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6916":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6917":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6918":{"morph":{"__isSmartRef__":true,"id":6910},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6919":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6920":{"toggle":{"__isSmartRef__":true,"id":6921},"toggleExpansion":{"__isSmartRef__":true,"id":6924}},"6921":{"varMapping":{"__isSmartRef__":true,"id":6922},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":6923},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6922":{"this":{"__isSmartRef__":true,"id":6910}},"6923":{},"6924":{"varMapping":{"__isSmartRef__":true,"id":6925},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":6926},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6925":{"this":{"__isSmartRef__":true,"id":6910}},"6926":{},"6927":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6928},"derivationIds":[null],"id":"733A23B9-5ADF-424A-9482-F429F72AFEA5","renderContextTable":{"__isSmartRef__":true,"id":6932},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":6933},{"__isSmartRef__":true,"id":6935}],"eventHandler":{"__isSmartRef__":true,"id":6937},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":6938},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":6909},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6939},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6928":{"_Position":{"__isSmartRef__":true,"id":6929},"renderContextTable":{"__isSmartRef__":true,"id":6930},"_Extent":{"__isSmartRef__":true,"id":6931},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":5403},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":632},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6929":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6930":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6931":{"x":143,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6932":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"6933":{"style":{"__isSmartRef__":true,"id":6934},"chunkOwner":{"__isSmartRef__":true,"id":6927},"storedString":"halosEnabled","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6934":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6935":{"style":{"__isSmartRef__":true,"id":6936},"chunkOwner":{"__isSmartRef__":true,"id":6927},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6936":{"color":{"__isSmartRef__":true,"id":5410},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6937":{"morph":{"__isSmartRef__":true,"id":6927},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6938":{"x":135,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6939":{"layoutText":{"__isSmartRef__":true,"id":6940}},"6940":{"varMapping":{"__isSmartRef__":true,"id":6941},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":6942},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6941":{"this":{"__isSmartRef__":true,"id":6927}},"6942":{},"6943":{"_Position":{"__isSmartRef__":true,"id":6944},"renderContextTable":{"__isSmartRef__":true,"id":6945},"_Extent":{"__isSmartRef__":true,"id":6946},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6947},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6944":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6945":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6946":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6947":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6948":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6949":{"morph":{"__isSmartRef__":true,"id":6909},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6950":{"resizeWidth":true},"6951":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6952":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6953":{"updateExpanderColor":{"__isSmartRef__":true,"id":6954},"onMouseDown":{"__isSmartRef__":true,"id":6957},"isRoot":{"__isSmartRef__":true,"id":6964},"displayValue":{"__isSmartRef__":true,"id":6967},"update":{"__isSmartRef__":true,"id":6970}},"6954":{"varMapping":{"__isSmartRef__":true,"id":6955},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":6956},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6955":{"this":{"__isSmartRef__":true,"id":6909}},"6956":{},"6957":{"varMapping":{"__isSmartRef__":true,"id":6958},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":6963},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6958":{"this":{"__isSmartRef__":true,"id":6909},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6959}},"6959":{"$super":{"__isSmartRef__":true,"id":6960}},"6960":{"varMapping":{"__isSmartRef__":true,"id":6961},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6962},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6961":{"obj":{"__isSmartRef__":true,"id":6909},"name":"onMouseDown"},"6962":{},"6963":{},"6964":{"varMapping":{"__isSmartRef__":true,"id":6965},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":6966},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6965":{"this":{"__isSmartRef__":true,"id":6909}},"6966":{},"6967":{"varMapping":{"__isSmartRef__":true,"id":6968},"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":6969},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6968":{"this":{"__isSmartRef__":true,"id":6909}},"6969":{},"6970":{"varMapping":{"__isSmartRef__":true,"id":6971},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6972},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6971":{"this":{"__isSmartRef__":true,"id":6909}},"6972":{},"6973":{"_Position":{"__isSmartRef__":true,"id":6974},"renderContextTable":{"__isSmartRef__":true,"id":6975},"_Extent":{"__isSmartRef__":true,"id":6976},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6977},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6974":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6975":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6976":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6977":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6978":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6979":{"morph":{"__isSmartRef__":true,"id":6908},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6980":{"layouter":{"__isSmartRef__":true,"id":6981},"resizeWidth":true},"6981":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":6908},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"6982":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6983":{"x":0,"y":300,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6984":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":6985}},"6985":{"varMapping":{"__isSmartRef__":true,"id":6986},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":6991},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6986":{"this":{"__isSmartRef__":true,"id":6908},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6987}},"6987":{"$super":{"__isSmartRef__":true,"id":6988}},"6988":{"varMapping":{"__isSmartRef__":true,"id":6989},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":6990},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"6989":{"obj":{"__isSmartRef__":true,"id":6908},"name":"getLayoutableSubmorphs"},"6990":{},"6991":{},"6992":{"submorphs":[{"__isSmartRef__":true,"id":6993}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7057},"derivationIds":[null],"id":"B3260A9D-CA21-43EC-8407-5659BBD344DD","renderContextTable":{"__isSmartRef__":true,"id":7062},"eventHandler":{"__isSmartRef__":true,"id":7063},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7064},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":7066},"owner":{"__isSmartRef__":true,"id":5478},"_Position":{"__isSmartRef__":true,"id":7067},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7068},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6993":{"submorphs":[{"__isSmartRef__":true,"id":6994},{"__isSmartRef__":true,"id":7011}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7027},"derivationIds":[null],"id":"5E33CC41-72B5-4E91-BAED-3C77CA58B7E5","renderContextTable":{"__isSmartRef__":true,"id":7032},"eventHandler":{"__isSmartRef__":true,"id":7033},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7034},"grabbingEnabled":false,"draggingEnabled":false,"data":"1B6A4D7A-CC28-4FFC-B9C3-31C68F07CFD6","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":5377},"label":"id","children":[],"parent":{"__isSmartRef__":true,"id":5380},"expander":{"__isSmartRef__":true,"id":6994},"text":{"__isSmartRef__":true,"id":7011},"owner":{"__isSmartRef__":true,"id":6992},"_Position":{"__isSmartRef__":true,"id":7035},"priorExtent":{"__isSmartRef__":true,"id":7036},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7037},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"6994":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6995},"derivationIds":[null],"id":"95FA85EC-9131-4AB7-9C98-B6D1659AC218","renderContextTable":{"__isSmartRef__":true,"id":7001},"eventHandler":{"__isSmartRef__":true,"id":7002},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7003},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":6993},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7004},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"6995":{"_Position":{"__isSmartRef__":true,"id":6996},"renderContextTable":{"__isSmartRef__":true,"id":6997},"_Extent":{"__isSmartRef__":true,"id":6998},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6999},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5387},"_Fill":{"__isSmartRef__":true,"id":7000},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"6996":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6997":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"6998":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6999":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7000":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7001":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7002":{"morph":{"__isSmartRef__":true,"id":6994},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7003":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7004":{"toggle":{"__isSmartRef__":true,"id":7005},"toggleExpansion":{"__isSmartRef__":true,"id":7008}},"7005":{"varMapping":{"__isSmartRef__":true,"id":7006},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":7007},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7006":{"this":{"__isSmartRef__":true,"id":6994}},"7007":{},"7008":{"varMapping":{"__isSmartRef__":true,"id":7009},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":7010},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7009":{"this":{"__isSmartRef__":true,"id":6994}},"7010":{},"7011":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7012},"derivationIds":[null],"id":"03E3D01E-5C70-4D83-ADAC-B8F88B0DFB35","renderContextTable":{"__isSmartRef__":true,"id":7016},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":7017},{"__isSmartRef__":true,"id":7019}],"eventHandler":{"__isSmartRef__":true,"id":7021},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":7022},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":6993},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7023},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7012":{"_Position":{"__isSmartRef__":true,"id":7013},"renderContextTable":{"__isSmartRef__":true,"id":7014},"_Extent":{"__isSmartRef__":true,"id":7015},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":5403},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":632},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7013":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7014":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7015":{"x":308,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7016":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"7017":{"style":{"__isSmartRef__":true,"id":7018},"chunkOwner":{"__isSmartRef__":true,"id":7011},"storedString":"id","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7018":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7019":{"style":{"__isSmartRef__":true,"id":7020},"chunkOwner":{"__isSmartRef__":true,"id":7011},"storedString":": 1B6A4D7A-CC28-4FFC-B9C3-31C68F07CFD6","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7020":{"color":{"__isSmartRef__":true,"id":5410},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7021":{"morph":{"__isSmartRef__":true,"id":7011},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7022":{"x":300,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7023":{"layoutText":{"__isSmartRef__":true,"id":7024}},"7024":{"varMapping":{"__isSmartRef__":true,"id":7025},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":7026},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7025":{"this":{"__isSmartRef__":true,"id":7011}},"7026":{},"7027":{"_Position":{"__isSmartRef__":true,"id":7028},"renderContextTable":{"__isSmartRef__":true,"id":7029},"_Extent":{"__isSmartRef__":true,"id":7030},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7031},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7028":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7029":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7030":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7031":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7032":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7033":{"morph":{"__isSmartRef__":true,"id":6993},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7034":{"resizeWidth":true},"7035":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7036":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7037":{"updateExpanderColor":{"__isSmartRef__":true,"id":7038},"onMouseDown":{"__isSmartRef__":true,"id":7041},"isRoot":{"__isSmartRef__":true,"id":7048},"displayValue":{"__isSmartRef__":true,"id":7051},"update":{"__isSmartRef__":true,"id":7054}},"7038":{"varMapping":{"__isSmartRef__":true,"id":7039},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":7040},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7039":{"this":{"__isSmartRef__":true,"id":6993}},"7040":{},"7041":{"varMapping":{"__isSmartRef__":true,"id":7042},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":7047},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7042":{"this":{"__isSmartRef__":true,"id":6993},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7043}},"7043":{"$super":{"__isSmartRef__":true,"id":7044}},"7044":{"varMapping":{"__isSmartRef__":true,"id":7045},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7046},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7045":{"obj":{"__isSmartRef__":true,"id":6993},"name":"onMouseDown"},"7046":{},"7047":{},"7048":{"varMapping":{"__isSmartRef__":true,"id":7049},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":7050},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7049":{"this":{"__isSmartRef__":true,"id":6993}},"7050":{},"7051":{"varMapping":{"__isSmartRef__":true,"id":7052},"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":7053},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7052":{"this":{"__isSmartRef__":true,"id":6993}},"7053":{},"7054":{"varMapping":{"__isSmartRef__":true,"id":7055},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7056},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7055":{"this":{"__isSmartRef__":true,"id":6993}},"7056":{},"7057":{"_Position":{"__isSmartRef__":true,"id":7058},"renderContextTable":{"__isSmartRef__":true,"id":7059},"_Extent":{"__isSmartRef__":true,"id":7060},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7061},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7058":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7059":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7060":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7061":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7062":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7063":{"morph":{"__isSmartRef__":true,"id":6992},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7064":{"layouter":{"__isSmartRef__":true,"id":7065},"resizeWidth":true},"7065":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":6992},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"7066":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7067":{"x":0,"y":280,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7068":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":7069}},"7069":{"varMapping":{"__isSmartRef__":true,"id":7070},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":7075},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7070":{"this":{"__isSmartRef__":true,"id":6992},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7071}},"7071":{"$super":{"__isSmartRef__":true,"id":7072}},"7072":{"varMapping":{"__isSmartRef__":true,"id":7073},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7074},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7073":{"obj":{"__isSmartRef__":true,"id":6992},"name":"getLayoutableSubmorphs"},"7074":{},"7075":{},"7076":{"submorphs":[{"__isSmartRef__":true,"id":7077}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7141},"derivationIds":[null],"id":"7CDFA8BD-21B1-4785-9246-F16DD8A92CF1","renderContextTable":{"__isSmartRef__":true,"id":7146},"eventHandler":{"__isSmartRef__":true,"id":7147},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7148},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":7150},"owner":{"__isSmartRef__":true,"id":5478},"_Position":{"__isSmartRef__":true,"id":7151},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7152},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7077":{"submorphs":[{"__isSmartRef__":true,"id":7078},{"__isSmartRef__":true,"id":7095}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7111},"derivationIds":[null],"id":"E9EB45DF-5CF9-4BF7-8278-5F8AC6E4D497","renderContextTable":{"__isSmartRef__":true,"id":7116},"eventHandler":{"__isSmartRef__":true,"id":7117},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7118},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":5377},"label":"isBeingDragged","children":[],"parent":{"__isSmartRef__":true,"id":5380},"expander":{"__isSmartRef__":true,"id":7078},"text":{"__isSmartRef__":true,"id":7095},"owner":{"__isSmartRef__":true,"id":7076},"_Position":{"__isSmartRef__":true,"id":7119},"priorExtent":{"__isSmartRef__":true,"id":7120},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7121},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7078":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7079},"derivationIds":[null],"id":"D2E547D4-51D0-481F-B301-ED2AFE43A869","renderContextTable":{"__isSmartRef__":true,"id":7085},"eventHandler":{"__isSmartRef__":true,"id":7086},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7087},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":7077},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7088},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"7079":{"_Position":{"__isSmartRef__":true,"id":7080},"renderContextTable":{"__isSmartRef__":true,"id":7081},"_Extent":{"__isSmartRef__":true,"id":7082},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7083},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5387},"_Fill":{"__isSmartRef__":true,"id":7084},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7080":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7081":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7082":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7083":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7084":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7085":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7086":{"morph":{"__isSmartRef__":true,"id":7078},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7087":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7088":{"toggle":{"__isSmartRef__":true,"id":7089},"toggleExpansion":{"__isSmartRef__":true,"id":7092}},"7089":{"varMapping":{"__isSmartRef__":true,"id":7090},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":7091},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7090":{"this":{"__isSmartRef__":true,"id":7078}},"7091":{},"7092":{"varMapping":{"__isSmartRef__":true,"id":7093},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":7094},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7093":{"this":{"__isSmartRef__":true,"id":7078}},"7094":{},"7095":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7096},"derivationIds":[null],"id":"9474506E-4DB8-45B5-BB53-B7543B254F55","renderContextTable":{"__isSmartRef__":true,"id":7100},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":7101},{"__isSmartRef__":true,"id":7103}],"eventHandler":{"__isSmartRef__":true,"id":7105},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":7106},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":7077},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7107},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7096":{"_Position":{"__isSmartRef__":true,"id":7097},"renderContextTable":{"__isSmartRef__":true,"id":7098},"_Extent":{"__isSmartRef__":true,"id":7099},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":5403},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":632},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7097":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7098":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7099":{"x":165.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7100":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"7101":{"style":{"__isSmartRef__":true,"id":7102},"chunkOwner":{"__isSmartRef__":true,"id":7095},"storedString":"isBeingDragged","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7102":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7103":{"style":{"__isSmartRef__":true,"id":7104},"chunkOwner":{"__isSmartRef__":true,"id":7095},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7104":{"color":{"__isSmartRef__":true,"id":5410},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7105":{"morph":{"__isSmartRef__":true,"id":7095},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7106":{"x":157.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7107":{"layoutText":{"__isSmartRef__":true,"id":7108}},"7108":{"varMapping":{"__isSmartRef__":true,"id":7109},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":7110},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7109":{"this":{"__isSmartRef__":true,"id":7095}},"7110":{},"7111":{"_Position":{"__isSmartRef__":true,"id":7112},"renderContextTable":{"__isSmartRef__":true,"id":7113},"_Extent":{"__isSmartRef__":true,"id":7114},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7115},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7112":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7113":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7114":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7115":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7116":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7117":{"morph":{"__isSmartRef__":true,"id":7077},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7118":{"resizeWidth":true},"7119":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7120":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7121":{"updateExpanderColor":{"__isSmartRef__":true,"id":7122},"onMouseDown":{"__isSmartRef__":true,"id":7125},"isRoot":{"__isSmartRef__":true,"id":7132},"displayValue":{"__isSmartRef__":true,"id":7135},"update":{"__isSmartRef__":true,"id":7138}},"7122":{"varMapping":{"__isSmartRef__":true,"id":7123},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":7124},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7123":{"this":{"__isSmartRef__":true,"id":7077}},"7124":{},"7125":{"varMapping":{"__isSmartRef__":true,"id":7126},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":7131},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7126":{"this":{"__isSmartRef__":true,"id":7077},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7127}},"7127":{"$super":{"__isSmartRef__":true,"id":7128}},"7128":{"varMapping":{"__isSmartRef__":true,"id":7129},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7130},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7129":{"obj":{"__isSmartRef__":true,"id":7077},"name":"onMouseDown"},"7130":{},"7131":{},"7132":{"varMapping":{"__isSmartRef__":true,"id":7133},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":7134},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7133":{"this":{"__isSmartRef__":true,"id":7077}},"7134":{},"7135":{"varMapping":{"__isSmartRef__":true,"id":7136},"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":7137},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7136":{"this":{"__isSmartRef__":true,"id":7077}},"7137":{},"7138":{"varMapping":{"__isSmartRef__":true,"id":7139},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7140},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7139":{"this":{"__isSmartRef__":true,"id":7077}},"7140":{},"7141":{"_Position":{"__isSmartRef__":true,"id":7142},"renderContextTable":{"__isSmartRef__":true,"id":7143},"_Extent":{"__isSmartRef__":true,"id":7144},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7145},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7142":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7143":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7144":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7145":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7146":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7147":{"morph":{"__isSmartRef__":true,"id":7076},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7148":{"layouter":{"__isSmartRef__":true,"id":7149},"resizeWidth":true},"7149":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":7076},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"7150":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7151":{"x":0,"y":260,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7152":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":7153}},"7153":{"varMapping":{"__isSmartRef__":true,"id":7154},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":7159},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7154":{"this":{"__isSmartRef__":true,"id":7076},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7155}},"7155":{"$super":{"__isSmartRef__":true,"id":7156}},"7156":{"varMapping":{"__isSmartRef__":true,"id":7157},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7158},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7157":{"obj":{"__isSmartRef__":true,"id":7076},"name":"getLayoutableSubmorphs"},"7158":{},"7159":{},"7160":{"submorphs":[{"__isSmartRef__":true,"id":7161}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7225},"derivationIds":[null],"id":"0A56E634-83EE-4A63-B210-C336D5D9ABA9","renderContextTable":{"__isSmartRef__":true,"id":7230},"eventHandler":{"__isSmartRef__":true,"id":7231},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7232},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":7234},"owner":{"__isSmartRef__":true,"id":5478},"_Position":{"__isSmartRef__":true,"id":7235},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7236},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7161":{"submorphs":[{"__isSmartRef__":true,"id":7162},{"__isSmartRef__":true,"id":7179}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7195},"derivationIds":[null],"id":"4CA811F9-5CDF-4BBA-9D1E-A7C11B8FE86F","renderContextTable":{"__isSmartRef__":true,"id":7200},"eventHandler":{"__isSmartRef__":true,"id":7201},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7202},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":5377},"label":"isDrawing","children":[],"parent":{"__isSmartRef__":true,"id":5380},"expander":{"__isSmartRef__":true,"id":7162},"text":{"__isSmartRef__":true,"id":7179},"owner":{"__isSmartRef__":true,"id":7160},"_Position":{"__isSmartRef__":true,"id":7203},"priorExtent":{"__isSmartRef__":true,"id":7204},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7205},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7162":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7163},"derivationIds":[null],"id":"6EE3FF42-70F1-4BC6-BFAA-0B3B3DCF50C5","renderContextTable":{"__isSmartRef__":true,"id":7169},"eventHandler":{"__isSmartRef__":true,"id":7170},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7171},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":7161},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7172},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"7163":{"_Position":{"__isSmartRef__":true,"id":7164},"renderContextTable":{"__isSmartRef__":true,"id":7165},"_Extent":{"__isSmartRef__":true,"id":7166},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7167},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5387},"_Fill":{"__isSmartRef__":true,"id":7168},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7164":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7165":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7166":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7167":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7168":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"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"},"7170":{"morph":{"__isSmartRef__":true,"id":7162},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7171":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7172":{"toggle":{"__isSmartRef__":true,"id":7173},"toggleExpansion":{"__isSmartRef__":true,"id":7176}},"7173":{"varMapping":{"__isSmartRef__":true,"id":7174},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":7175},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7174":{"this":{"__isSmartRef__":true,"id":7162}},"7175":{},"7176":{"varMapping":{"__isSmartRef__":true,"id":7177},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":7178},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7177":{"this":{"__isSmartRef__":true,"id":7162}},"7178":{},"7179":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7180},"derivationIds":[null],"id":"1CF36B61-C283-4BF5-9CCF-24ABB4E4698C","renderContextTable":{"__isSmartRef__":true,"id":7184},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":7185},{"__isSmartRef__":true,"id":7187}],"eventHandler":{"__isSmartRef__":true,"id":7189},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":7190},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":7161},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7191},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7180":{"_Position":{"__isSmartRef__":true,"id":7181},"renderContextTable":{"__isSmartRef__":true,"id":7182},"_Extent":{"__isSmartRef__":true,"id":7183},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":5403},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":632},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7181":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7182":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7183":{"x":120,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7184":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"7185":{"style":{"__isSmartRef__":true,"id":7186},"chunkOwner":{"__isSmartRef__":true,"id":7179},"storedString":"isDrawing","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7186":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7187":{"style":{"__isSmartRef__":true,"id":7188},"chunkOwner":{"__isSmartRef__":true,"id":7179},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7188":{"color":{"__isSmartRef__":true,"id":5410},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7189":{"morph":{"__isSmartRef__":true,"id":7179},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7190":{"x":112.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7191":{"layoutText":{"__isSmartRef__":true,"id":7192}},"7192":{"varMapping":{"__isSmartRef__":true,"id":7193},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":7194},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7193":{"this":{"__isSmartRef__":true,"id":7179}},"7194":{},"7195":{"_Position":{"__isSmartRef__":true,"id":7196},"renderContextTable":{"__isSmartRef__":true,"id":7197},"_Extent":{"__isSmartRef__":true,"id":7198},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7199},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7196":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7197":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7198":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7199":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7200":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7201":{"morph":{"__isSmartRef__":true,"id":7161},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7202":{"resizeWidth":true},"7203":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7204":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7205":{"updateExpanderColor":{"__isSmartRef__":true,"id":7206},"onMouseDown":{"__isSmartRef__":true,"id":7209},"isRoot":{"__isSmartRef__":true,"id":7216},"displayValue":{"__isSmartRef__":true,"id":7219},"update":{"__isSmartRef__":true,"id":7222}},"7206":{"varMapping":{"__isSmartRef__":true,"id":7207},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":7208},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7207":{"this":{"__isSmartRef__":true,"id":7161}},"7208":{},"7209":{"varMapping":{"__isSmartRef__":true,"id":7210},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":7215},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7210":{"this":{"__isSmartRef__":true,"id":7161},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7211}},"7211":{"$super":{"__isSmartRef__":true,"id":7212}},"7212":{"varMapping":{"__isSmartRef__":true,"id":7213},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7214},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7213":{"obj":{"__isSmartRef__":true,"id":7161},"name":"onMouseDown"},"7214":{},"7215":{},"7216":{"varMapping":{"__isSmartRef__":true,"id":7217},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":7218},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7217":{"this":{"__isSmartRef__":true,"id":7161}},"7218":{},"7219":{"varMapping":{"__isSmartRef__":true,"id":7220},"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":7221},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7220":{"this":{"__isSmartRef__":true,"id":7161}},"7221":{},"7222":{"varMapping":{"__isSmartRef__":true,"id":7223},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7224},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7223":{"this":{"__isSmartRef__":true,"id":7161}},"7224":{},"7225":{"_Position":{"__isSmartRef__":true,"id":7226},"renderContextTable":{"__isSmartRef__":true,"id":7227},"_Extent":{"__isSmartRef__":true,"id":7228},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7229},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7226":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7227":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7228":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7229":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7230":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7231":{"morph":{"__isSmartRef__":true,"id":7160},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7232":{"layouter":{"__isSmartRef__":true,"id":7233},"resizeWidth":true},"7233":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":7160},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"7234":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7235":{"x":0,"y":240,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7236":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":7237}},"7237":{"varMapping":{"__isSmartRef__":true,"id":7238},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":7243},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7238":{"this":{"__isSmartRef__":true,"id":7160},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7239}},"7239":{"$super":{"__isSmartRef__":true,"id":7240}},"7240":{"varMapping":{"__isSmartRef__":true,"id":7241},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7242},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7241":{"obj":{"__isSmartRef__":true,"id":7160},"name":"getLayoutableSubmorphs"},"7242":{},"7243":{},"7244":{"submorphs":[{"__isSmartRef__":true,"id":7245}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7309},"derivationIds":[null],"id":"6BBBBE17-C01E-424E-8EF2-87FC9A752879","renderContextTable":{"__isSmartRef__":true,"id":7314},"eventHandler":{"__isSmartRef__":true,"id":7315},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7316},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":7318},"owner":{"__isSmartRef__":true,"id":5478},"_Position":{"__isSmartRef__":true,"id":7319},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7320},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7245":{"submorphs":[{"__isSmartRef__":true,"id":7246},{"__isSmartRef__":true,"id":7263}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7279},"derivationIds":[null],"id":"538B4F39-A58C-4A8F-B7A7-E5AC55733280","renderContextTable":{"__isSmartRef__":true,"id":7284},"eventHandler":{"__isSmartRef__":true,"id":7285},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7286},"grabbingEnabled":false,"draggingEnabled":false,"data":"WhiteBoard3","propertyList":["0","1","2","3","4","5","6","7","8","9","10"],"level":1,"treeView":{"__isSmartRef__":true,"id":5377},"label":"name","children":[],"parent":{"__isSmartRef__":true,"id":5380},"expander":{"__isSmartRef__":true,"id":7246},"text":{"__isSmartRef__":true,"id":7263},"owner":{"__isSmartRef__":true,"id":7244},"_Position":{"__isSmartRef__":true,"id":7287},"priorExtent":{"__isSmartRef__":true,"id":7288},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7289},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7246":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7247},"derivationIds":[null],"id":"BAD9C9AB-AA26-4AD3-BAF8-820D9AE0C072","renderContextTable":{"__isSmartRef__":true,"id":7253},"eventHandler":{"__isSmartRef__":true,"id":7254},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7255},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":7245},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7256},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"7247":{"_Position":{"__isSmartRef__":true,"id":7248},"renderContextTable":{"__isSmartRef__":true,"id":7249},"_Extent":{"__isSmartRef__":true,"id":7250},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7251},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5387},"_Fill":{"__isSmartRef__":true,"id":7252},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7248":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7249":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7250":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7251":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7252":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7253":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7254":{"morph":{"__isSmartRef__":true,"id":7246},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7255":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7256":{"toggle":{"__isSmartRef__":true,"id":7257},"toggleExpansion":{"__isSmartRef__":true,"id":7260}},"7257":{"varMapping":{"__isSmartRef__":true,"id":7258},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":7259},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7258":{"this":{"__isSmartRef__":true,"id":7246}},"7259":{},"7260":{"varMapping":{"__isSmartRef__":true,"id":7261},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":7262},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7261":{"this":{"__isSmartRef__":true,"id":7246}},"7262":{},"7263":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7264},"derivationIds":[null],"id":"6677C266-3E1C-487D-A005-9A55F180D515","renderContextTable":{"__isSmartRef__":true,"id":7268},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":7269},{"__isSmartRef__":true,"id":7271}],"eventHandler":{"__isSmartRef__":true,"id":7273},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":7274},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":7245},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7275},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7264":{"_Position":{"__isSmartRef__":true,"id":7265},"renderContextTable":{"__isSmartRef__":true,"id":7266},"_Extent":{"__isSmartRef__":true,"id":7267},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":5403},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":632},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7265":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7266":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7267":{"x":135.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7268":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"7269":{"style":{"__isSmartRef__":true,"id":7270},"chunkOwner":{"__isSmartRef__":true,"id":7263},"storedString":"name","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7270":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7271":{"style":{"__isSmartRef__":true,"id":7272},"chunkOwner":{"__isSmartRef__":true,"id":7263},"storedString":": WhiteBoard3","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7272":{"color":{"__isSmartRef__":true,"id":5410},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7273":{"morph":{"__isSmartRef__":true,"id":7263},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7274":{"x":127.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7275":{"layoutText":{"__isSmartRef__":true,"id":7276}},"7276":{"varMapping":{"__isSmartRef__":true,"id":7277},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":7278},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7277":{"this":{"__isSmartRef__":true,"id":7263}},"7278":{},"7279":{"_Position":{"__isSmartRef__":true,"id":7280},"renderContextTable":{"__isSmartRef__":true,"id":7281},"_Extent":{"__isSmartRef__":true,"id":7282},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7283},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7280":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7281":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7282":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7283":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7284":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7285":{"morph":{"__isSmartRef__":true,"id":7245},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7286":{"resizeWidth":true},"7287":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7288":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7289":{"updateExpanderColor":{"__isSmartRef__":true,"id":7290},"onMouseDown":{"__isSmartRef__":true,"id":7293},"isRoot":{"__isSmartRef__":true,"id":7300},"displayValue":{"__isSmartRef__":true,"id":7303},"update":{"__isSmartRef__":true,"id":7306}},"7290":{"varMapping":{"__isSmartRef__":true,"id":7291},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":7292},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7291":{"this":{"__isSmartRef__":true,"id":7245}},"7292":{},"7293":{"varMapping":{"__isSmartRef__":true,"id":7294},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":7299},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7294":{"this":{"__isSmartRef__":true,"id":7245},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7295}},"7295":{"$super":{"__isSmartRef__":true,"id":7296}},"7296":{"varMapping":{"__isSmartRef__":true,"id":7297},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7298},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7297":{"obj":{"__isSmartRef__":true,"id":7245},"name":"onMouseDown"},"7298":{},"7299":{},"7300":{"varMapping":{"__isSmartRef__":true,"id":7301},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":7302},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7301":{"this":{"__isSmartRef__":true,"id":7245}},"7302":{},"7303":{"varMapping":{"__isSmartRef__":true,"id":7304},"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":7305},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7304":{"this":{"__isSmartRef__":true,"id":7245}},"7305":{},"7306":{"varMapping":{"__isSmartRef__":true,"id":7307},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7308},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7307":{"this":{"__isSmartRef__":true,"id":7245}},"7308":{},"7309":{"_Position":{"__isSmartRef__":true,"id":7310},"renderContextTable":{"__isSmartRef__":true,"id":7311},"_Extent":{"__isSmartRef__":true,"id":7312},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7313},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7310":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7311":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7312":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7313":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7314":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7315":{"morph":{"__isSmartRef__":true,"id":7244},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7316":{"layouter":{"__isSmartRef__":true,"id":7317},"resizeWidth":true},"7317":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":7244},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"7318":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7319":{"x":0,"y":220,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7320":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":7321}},"7321":{"varMapping":{"__isSmartRef__":true,"id":7322},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":7327},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7322":{"this":{"__isSmartRef__":true,"id":7244},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7323}},"7323":{"$super":{"__isSmartRef__":true,"id":7324}},"7324":{"varMapping":{"__isSmartRef__":true,"id":7325},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7326},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7325":{"obj":{"__isSmartRef__":true,"id":7244},"name":"getLayoutableSubmorphs"},"7326":{},"7327":{},"7328":{"submorphs":[{"__isSmartRef__":true,"id":7329}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7393},"derivationIds":[null],"id":"046098A0-D41B-45FF-8AD4-6BF75A8EE9A6","renderContextTable":{"__isSmartRef__":true,"id":7398},"eventHandler":{"__isSmartRef__":true,"id":7399},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7400},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":7402},"owner":{"__isSmartRef__":true,"id":5478},"_Position":{"__isSmartRef__":true,"id":7403},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7404},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7329":{"submorphs":[{"__isSmartRef__":true,"id":7330},{"__isSmartRef__":true,"id":7347}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7363},"derivationIds":[null],"id":"A12D8BC5-8074-4DFB-947A-EB5580FC4916","renderContextTable":{"__isSmartRef__":true,"id":7368},"eventHandler":{"__isSmartRef__":true,"id":7369},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7370},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":0},"propertyList":["submorphs","scripts","shape","id","renderContextTable","eventHandler","grabbingEnabled","droppingEnabled","showsMorphMenu","halosEnabled","__layered_draggingEnabled__","_Position","priorExtent","hands","changeSet","__SourceModuleName__","eventStartPos","worldMenuOpened","draggingEnabled","clickedOnMorphTime","statusMessages","lastAlert","prevScroll","showsHalos","loadingMorph","attributeConnections","doNotSerialize","doNotCopyProperties","savedWorldAsURL","$$savedWorldAsURL","_renderContext","clickedOnMorph","currentHaloTarget","currentMenu","revisionOnLoad","draggedMorph","halos","selectionMorph"],"level":1,"treeView":{"__isSmartRef__":true,"id":5377},"label":"owner","children":[],"parent":{"__isSmartRef__":true,"id":5380},"expander":{"__isSmartRef__":true,"id":7330},"text":{"__isSmartRef__":true,"id":7347},"owner":{"__isSmartRef__":true,"id":7328},"_Position":{"__isSmartRef__":true,"id":7371},"priorExtent":{"__isSmartRef__":true,"id":7372},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7373},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7330":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7331},"derivationIds":[null],"id":"DD3E3A66-6966-44DF-9E08-998AE6A8980B","renderContextTable":{"__isSmartRef__":true,"id":7337},"eventHandler":{"__isSmartRef__":true,"id":7338},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7339},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":7329},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7340},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"7331":{"_Position":{"__isSmartRef__":true,"id":7332},"renderContextTable":{"__isSmartRef__":true,"id":7333},"_Extent":{"__isSmartRef__":true,"id":7334},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7335},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5387},"_Fill":{"__isSmartRef__":true,"id":7336},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7332":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7333":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7334":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7335":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7336":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7337":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7338":{"morph":{"__isSmartRef__":true,"id":7330},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7339":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7340":{"toggle":{"__isSmartRef__":true,"id":7341},"toggleExpansion":{"__isSmartRef__":true,"id":7344}},"7341":{"varMapping":{"__isSmartRef__":true,"id":7342},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":7343},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7342":{"this":{"__isSmartRef__":true,"id":7330}},"7343":{},"7344":{"varMapping":{"__isSmartRef__":true,"id":7345},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":7346},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7345":{"this":{"__isSmartRef__":true,"id":7330}},"7346":{},"7347":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7348},"derivationIds":[null],"id":"85FF53A6-3E03-4128-A7C6-BBAFA71EB9A5","renderContextTable":{"__isSmartRef__":true,"id":7352},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":7353},{"__isSmartRef__":true,"id":7355}],"eventHandler":{"__isSmartRef__":true,"id":7357},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":7358},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":7329},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7359},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7348":{"_Position":{"__isSmartRef__":true,"id":7349},"renderContextTable":{"__isSmartRef__":true,"id":7350},"_Extent":{"__isSmartRef__":true,"id":7351},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":5403},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":632},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7349":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7350":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7351":{"x":98,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7352":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"7353":{"style":{"__isSmartRef__":true,"id":7354},"chunkOwner":{"__isSmartRef__":true,"id":7347},"storedString":"owner","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7354":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7355":{"style":{"__isSmartRef__":true,"id":7356},"chunkOwner":{"__isSmartRef__":true,"id":7347},"storedString":": World","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7356":{"color":{"__isSmartRef__":true,"id":5410},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7357":{"morph":{"__isSmartRef__":true,"id":7347},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7358":{"x":90,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7359":{"layoutText":{"__isSmartRef__":true,"id":7360}},"7360":{"varMapping":{"__isSmartRef__":true,"id":7361},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":7362},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7361":{"this":{"__isSmartRef__":true,"id":7347}},"7362":{},"7363":{"_Position":{"__isSmartRef__":true,"id":7364},"renderContextTable":{"__isSmartRef__":true,"id":7365},"_Extent":{"__isSmartRef__":true,"id":7366},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7367},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7364":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7365":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7366":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7367":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7368":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7369":{"morph":{"__isSmartRef__":true,"id":7329},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7370":{"resizeWidth":true},"7371":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7372":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7373":{"updateExpanderColor":{"__isSmartRef__":true,"id":7374},"onMouseDown":{"__isSmartRef__":true,"id":7377},"isRoot":{"__isSmartRef__":true,"id":7384},"displayValue":{"__isSmartRef__":true,"id":7387},"update":{"__isSmartRef__":true,"id":7390}},"7374":{"varMapping":{"__isSmartRef__":true,"id":7375},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":7376},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7375":{"this":{"__isSmartRef__":true,"id":7329}},"7376":{},"7377":{"varMapping":{"__isSmartRef__":true,"id":7378},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":7383},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7378":{"this":{"__isSmartRef__":true,"id":7329},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7379}},"7379":{"$super":{"__isSmartRef__":true,"id":7380}},"7380":{"varMapping":{"__isSmartRef__":true,"id":7381},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7382},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7381":{"obj":{"__isSmartRef__":true,"id":7329},"name":"onMouseDown"},"7382":{},"7383":{},"7384":{"varMapping":{"__isSmartRef__":true,"id":7385},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":7386},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7385":{"this":{"__isSmartRef__":true,"id":7329}},"7386":{},"7387":{"varMapping":{"__isSmartRef__":true,"id":7388},"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":7389},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7388":{"this":{"__isSmartRef__":true,"id":7329}},"7389":{},"7390":{"varMapping":{"__isSmartRef__":true,"id":7391},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7392},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7391":{"this":{"__isSmartRef__":true,"id":7329}},"7392":{},"7393":{"_Position":{"__isSmartRef__":true,"id":7394},"renderContextTable":{"__isSmartRef__":true,"id":7395},"_Extent":{"__isSmartRef__":true,"id":7396},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7397},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7394":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7395":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7396":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7397":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7398":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7399":{"morph":{"__isSmartRef__":true,"id":7328},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7400":{"layouter":{"__isSmartRef__":true,"id":7401},"resizeWidth":true},"7401":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":7328},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"7402":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7403":{"x":0,"y":200,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7404":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":7405}},"7405":{"varMapping":{"__isSmartRef__":true,"id":7406},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":7411},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7406":{"this":{"__isSmartRef__":true,"id":7328},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7407}},"7407":{"$super":{"__isSmartRef__":true,"id":7408}},"7408":{"varMapping":{"__isSmartRef__":true,"id":7409},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7410},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7409":{"obj":{"__isSmartRef__":true,"id":7328},"name":"getLayoutableSubmorphs"},"7410":{},"7411":{},"7412":{"submorphs":[{"__isSmartRef__":true,"id":7413}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7477},"derivationIds":[null],"id":"9DBC5030-CADA-4DB7-B967-B65CEEB9D300","renderContextTable":{"__isSmartRef__":true,"id":7482},"eventHandler":{"__isSmartRef__":true,"id":7483},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7484},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":7486},"owner":{"__isSmartRef__":true,"id":5478},"_Position":{"__isSmartRef__":true,"id":7487},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7488},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7413":{"submorphs":[{"__isSmartRef__":true,"id":7414},{"__isSmartRef__":true,"id":7431}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7447},"derivationIds":[null],"id":"9D55884C-0E71-4639-814B-B23CC063AC01","renderContextTable":{"__isSmartRef__":true,"id":7452},"eventHandler":{"__isSmartRef__":true,"id":7453},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7454},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":5173},"propertyList":["partName","requiredModules","partsSpaceName","comment","changes","migrationLevel","revisionOnLoad","__SourceModuleName__"],"level":1,"treeView":{"__isSmartRef__":true,"id":5377},"label":"partsBinMetaInfo","children":[],"parent":{"__isSmartRef__":true,"id":5380},"expander":{"__isSmartRef__":true,"id":7414},"text":{"__isSmartRef__":true,"id":7431},"owner":{"__isSmartRef__":true,"id":7412},"_Position":{"__isSmartRef__":true,"id":7455},"priorExtent":{"__isSmartRef__":true,"id":7456},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7457},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7414":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7415},"derivationIds":[null],"id":"2EED319D-C47D-44F0-A3B3-88FC74028CD4","renderContextTable":{"__isSmartRef__":true,"id":7421},"eventHandler":{"__isSmartRef__":true,"id":7422},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7423},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":7413},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7424},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"7415":{"_Position":{"__isSmartRef__":true,"id":7416},"renderContextTable":{"__isSmartRef__":true,"id":7417},"_Extent":{"__isSmartRef__":true,"id":7418},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7419},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5387},"_Fill":{"__isSmartRef__":true,"id":7420},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7416":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7417":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7418":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7419":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7420":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7421":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7422":{"morph":{"__isSmartRef__":true,"id":7414},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7423":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7424":{"toggle":{"__isSmartRef__":true,"id":7425},"toggleExpansion":{"__isSmartRef__":true,"id":7428}},"7425":{"varMapping":{"__isSmartRef__":true,"id":7426},"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.lively.lang.Closure"},"7426":{"this":{"__isSmartRef__":true,"id":7414}},"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 && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":7430},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7429":{"this":{"__isSmartRef__":true,"id":7414}},"7430":{},"7431":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7432},"derivationIds":[null],"id":"B1A327D6-A8A2-4142-A151-8D19E3AEAC72","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,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":7442},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":7413},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7443},"__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":5403},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":632},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7433":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"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":263,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"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":"partsBinMetaInfo","__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":": PartsBinMetaInfo","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7440":{"color":{"__isSmartRef__":true,"id":5410},"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":255,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7443":{"layoutText":{"__isSmartRef__":true,"id":7444}},"7444":{"varMapping":{"__isSmartRef__":true,"id":7445},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":7446},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7445":{"this":{"__isSmartRef__":true,"id":7431}},"7446":{},"7447":{"_Position":{"__isSmartRef__":true,"id":7448},"renderContextTable":{"__isSmartRef__":true,"id":7449},"_Extent":{"__isSmartRef__":true,"id":7450},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7451},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7448":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7449":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7450":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7451":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7452":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7453":{"morph":{"__isSmartRef__":true,"id":7413},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7454":{"resizeWidth":true},"7455":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7456":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7457":{"updateExpanderColor":{"__isSmartRef__":true,"id":7458},"onMouseDown":{"__isSmartRef__":true,"id":7461},"isRoot":{"__isSmartRef__":true,"id":7468},"displayValue":{"__isSmartRef__":true,"id":7471},"update":{"__isSmartRef__":true,"id":7474}},"7458":{"varMapping":{"__isSmartRef__":true,"id":7459},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":7460},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7459":{"this":{"__isSmartRef__":true,"id":7413}},"7460":{},"7461":{"varMapping":{"__isSmartRef__":true,"id":7462},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":7467},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7462":{"this":{"__isSmartRef__":true,"id":7413},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7463}},"7463":{"$super":{"__isSmartRef__":true,"id":7464}},"7464":{"varMapping":{"__isSmartRef__":true,"id":7465},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7466},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7465":{"obj":{"__isSmartRef__":true,"id":7413},"name":"onMouseDown"},"7466":{},"7467":{},"7468":{"varMapping":{"__isSmartRef__":true,"id":7469},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":7470},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7469":{"this":{"__isSmartRef__":true,"id":7413}},"7470":{},"7471":{"varMapping":{"__isSmartRef__":true,"id":7472},"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":7473},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7472":{"this":{"__isSmartRef__":true,"id":7413}},"7473":{},"7474":{"varMapping":{"__isSmartRef__":true,"id":7475},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7476},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7475":{"this":{"__isSmartRef__":true,"id":7413}},"7476":{},"7477":{"_Position":{"__isSmartRef__":true,"id":7478},"renderContextTable":{"__isSmartRef__":true,"id":7479},"_Extent":{"__isSmartRef__":true,"id":7480},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7481},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7478":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7479":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7480":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7481":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7482":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7483":{"morph":{"__isSmartRef__":true,"id":7412},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7484":{"layouter":{"__isSmartRef__":true,"id":7485},"resizeWidth":true},"7485":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":7412},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"7486":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7487":{"x":0,"y":180,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7488":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":7489}},"7489":{"varMapping":{"__isSmartRef__":true,"id":7490},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":7495},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7490":{"this":{"__isSmartRef__":true,"id":7412},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7491}},"7491":{"$super":{"__isSmartRef__":true,"id":7492}},"7492":{"varMapping":{"__isSmartRef__":true,"id":7493},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7494},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7493":{"obj":{"__isSmartRef__":true,"id":7412},"name":"getLayoutableSubmorphs"},"7494":{},"7495":{},"7496":{"submorphs":[{"__isSmartRef__":true,"id":7497}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7561},"derivationIds":[null],"id":"10B91B93-AA01-4412-9D17-1806145F3B92","renderContextTable":{"__isSmartRef__":true,"id":7566},"eventHandler":{"__isSmartRef__":true,"id":7567},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7568},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":7570},"owner":{"__isSmartRef__":true,"id":5478},"_Position":{"__isSmartRef__":true,"id":7571},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7572},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7497":{"submorphs":[{"__isSmartRef__":true,"id":7498},{"__isSmartRef__":true,"id":7515}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7531},"derivationIds":[null],"id":"2C86B6B9-1FAA-4ED0-B92F-32C82DC86E50","renderContextTable":{"__isSmartRef__":true,"id":7536},"eventHandler":{"__isSmartRef__":true,"id":7537},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7538},"grabbingEnabled":false,"draggingEnabled":false,"data":[[444,198],[444,197],[444,195],[444,194],[444,193],[443,191],[440,189],[437,186],[433,184],[428,182],[423,182],[417,182],[411,182],[406,182],[400,184],[400,189],[400,194],[400,201],[404,209],[409,216],[414,223],[420,228],[427,232],[433,235],[439,236],[446,236],[453,235],[459,231],[464,224],[469,215],[473,203],[478,181],[479,159],[479,134],[475,119],[471,109],[469,100],[467,95],[466,91],[465,88],[464,84],[463,79],[462,76],[461,72],[461,71],[460,70],[459,70],[459,75],[459,82],[459,91],[459,102],[459,114],[459,127],[461,141],[465,154],[469,166],[473,179],[477,190],[480,200],[483,208],[486,213],[489,218],[493,222],[496,224],[501,228],[504,231],[507,232],[508,233],[509,233],[509,233]],"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"],"level":1,"treeView":{"__isSmartRef__":true,"id":5377},"label":"pointQueue","children":[],"parent":{"__isSmartRef__":true,"id":5380},"expander":{"__isSmartRef__":true,"id":7498},"text":{"__isSmartRef__":true,"id":7515},"owner":{"__isSmartRef__":true,"id":7496},"_Position":{"__isSmartRef__":true,"id":7539},"priorExtent":{"__isSmartRef__":true,"id":7540},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7541},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7498":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7499},"derivationIds":[null],"id":"45B73C3D-0F16-4458-8D7C-45FB6DF46602","renderContextTable":{"__isSmartRef__":true,"id":7505},"eventHandler":{"__isSmartRef__":true,"id":7506},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7507},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":7497},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7508},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"7499":{"_Position":{"__isSmartRef__":true,"id":7500},"renderContextTable":{"__isSmartRef__":true,"id":7501},"_Extent":{"__isSmartRef__":true,"id":7502},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7503},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5387},"_Fill":{"__isSmartRef__":true,"id":7504},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7500":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7501":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7502":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7503":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7504":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7505":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7506":{"morph":{"__isSmartRef__":true,"id":7498},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7507":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7508":{"toggle":{"__isSmartRef__":true,"id":7509},"toggleExpansion":{"__isSmartRef__":true,"id":7512}},"7509":{"varMapping":{"__isSmartRef__":true,"id":7510},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":7511},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7510":{"this":{"__isSmartRef__":true,"id":7498}},"7511":{},"7512":{"varMapping":{"__isSmartRef__":true,"id":7513},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":7514},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7513":{"this":{"__isSmartRef__":true,"id":7498}},"7514":{},"7515":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7516},"derivationIds":[null],"id":"FA2990B3-9FB9-4367-9285-D2CF70FBF624","renderContextTable":{"__isSmartRef__":true,"id":7520},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":7521},{"__isSmartRef__":true,"id":7523}],"eventHandler":{"__isSmartRef__":true,"id":7525},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":7526},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":7497},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7527},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7516":{"_Position":{"__isSmartRef__":true,"id":7517},"renderContextTable":{"__isSmartRef__":true,"id":7518},"_Extent":{"__isSmartRef__":true,"id":7519},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":5403},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":632},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7517":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7518":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7519":{"x":127.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7520":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"7521":{"style":{"__isSmartRef__":true,"id":7522},"chunkOwner":{"__isSmartRef__":true,"id":7515},"storedString":"pointQueue","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7522":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7523":{"style":{"__isSmartRef__":true,"id":7524},"chunkOwner":{"__isSmartRef__":true,"id":7515},"storedString":": [...]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7524":{"color":{"__isSmartRef__":true,"id":5410},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7525":{"morph":{"__isSmartRef__":true,"id":7515},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7526":{"x":127.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7527":{"layoutText":{"__isSmartRef__":true,"id":7528}},"7528":{"varMapping":{"__isSmartRef__":true,"id":7529},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":7530},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7529":{"this":{"__isSmartRef__":true,"id":7515}},"7530":{},"7531":{"_Position":{"__isSmartRef__":true,"id":7532},"renderContextTable":{"__isSmartRef__":true,"id":7533},"_Extent":{"__isSmartRef__":true,"id":7534},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7535},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7532":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7533":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7534":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7535":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7536":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7537":{"morph":{"__isSmartRef__":true,"id":7497},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7538":{"resizeWidth":true},"7539":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7540":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7541":{"updateExpanderColor":{"__isSmartRef__":true,"id":7542},"onMouseDown":{"__isSmartRef__":true,"id":7545},"isRoot":{"__isSmartRef__":true,"id":7552},"displayValue":{"__isSmartRef__":true,"id":7555},"update":{"__isSmartRef__":true,"id":7558}},"7542":{"varMapping":{"__isSmartRef__":true,"id":7543},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":7544},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7543":{"this":{"__isSmartRef__":true,"id":7497}},"7544":{},"7545":{"varMapping":{"__isSmartRef__":true,"id":7546},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":7551},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7546":{"this":{"__isSmartRef__":true,"id":7497},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7547}},"7547":{"$super":{"__isSmartRef__":true,"id":7548}},"7548":{"varMapping":{"__isSmartRef__":true,"id":7549},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7550},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7549":{"obj":{"__isSmartRef__":true,"id":7497},"name":"onMouseDown"},"7550":{},"7551":{},"7552":{"varMapping":{"__isSmartRef__":true,"id":7553},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":7554},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7553":{"this":{"__isSmartRef__":true,"id":7497}},"7554":{},"7555":{"varMapping":{"__isSmartRef__":true,"id":7556},"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":7557},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7556":{"this":{"__isSmartRef__":true,"id":7497}},"7557":{},"7558":{"varMapping":{"__isSmartRef__":true,"id":7559},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7560},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7559":{"this":{"__isSmartRef__":true,"id":7497}},"7560":{},"7561":{"_Position":{"__isSmartRef__":true,"id":7562},"renderContextTable":{"__isSmartRef__":true,"id":7563},"_Extent":{"__isSmartRef__":true,"id":7564},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7565},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7562":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7563":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7564":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7565":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7566":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7567":{"morph":{"__isSmartRef__":true,"id":7496},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7568":{"layouter":{"__isSmartRef__":true,"id":7569},"resizeWidth":true},"7569":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":7496},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"7570":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7571":{"x":0,"y":160,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7572":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":7573}},"7573":{"varMapping":{"__isSmartRef__":true,"id":7574},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":7579},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7574":{"this":{"__isSmartRef__":true,"id":7496},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7575}},"7575":{"$super":{"__isSmartRef__":true,"id":7576}},"7576":{"varMapping":{"__isSmartRef__":true,"id":7577},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7578},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7577":{"obj":{"__isSmartRef__":true,"id":7496},"name":"getLayoutableSubmorphs"},"7578":{},"7579":{},"7580":{"submorphs":[{"__isSmartRef__":true,"id":7581}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7645},"derivationIds":[null],"id":"CB0E8BA9-FA65-4CE1-8924-07CE168727A5","renderContextTable":{"__isSmartRef__":true,"id":7650},"eventHandler":{"__isSmartRef__":true,"id":7651},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7652},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":7654},"owner":{"__isSmartRef__":true,"id":5478},"_Position":{"__isSmartRef__":true,"id":7655},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7656},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7581":{"submorphs":[{"__isSmartRef__":true,"id":7582},{"__isSmartRef__":true,"id":7599}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7615},"derivationIds":[null],"id":"FAE951FF-88D4-46F5-834E-07633A664365","renderContextTable":{"__isSmartRef__":true,"id":7620},"eventHandler":{"__isSmartRef__":true,"id":7621},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7622},"grabbingEnabled":false,"draggingEnabled":false,"data":[0,0],"propertyList":["0","1"],"level":1,"treeView":{"__isSmartRef__":true,"id":5377},"label":"prevScroll","children":[],"parent":{"__isSmartRef__":true,"id":5380},"expander":{"__isSmartRef__":true,"id":7582},"text":{"__isSmartRef__":true,"id":7599},"owner":{"__isSmartRef__":true,"id":7580},"_Position":{"__isSmartRef__":true,"id":7623},"priorExtent":{"__isSmartRef__":true,"id":7624},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7625},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7582":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7583},"derivationIds":[null],"id":"9B3A12C2-63B8-419A-820A-ADEF290E0231","renderContextTable":{"__isSmartRef__":true,"id":7589},"eventHandler":{"__isSmartRef__":true,"id":7590},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7591},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":7581},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7592},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"7583":{"_Position":{"__isSmartRef__":true,"id":7584},"renderContextTable":{"__isSmartRef__":true,"id":7585},"_Extent":{"__isSmartRef__":true,"id":7586},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7587},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5387},"_Fill":{"__isSmartRef__":true,"id":7588},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7584":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7585":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7586":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7587":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7588":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7589":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7590":{"morph":{"__isSmartRef__":true,"id":7582},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7591":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7592":{"toggle":{"__isSmartRef__":true,"id":7593},"toggleExpansion":{"__isSmartRef__":true,"id":7596}},"7593":{"varMapping":{"__isSmartRef__":true,"id":7594},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":7595},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7594":{"this":{"__isSmartRef__":true,"id":7582}},"7595":{},"7596":{"varMapping":{"__isSmartRef__":true,"id":7597},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":7598},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7597":{"this":{"__isSmartRef__":true,"id":7582}},"7598":{},"7599":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7600},"derivationIds":[null],"id":"89720B1D-0917-461B-AEA9-E5D43EF6E388","renderContextTable":{"__isSmartRef__":true,"id":7604},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":7605},{"__isSmartRef__":true,"id":7607}],"eventHandler":{"__isSmartRef__":true,"id":7609},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":7610},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":7581},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7611},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7600":{"_Position":{"__isSmartRef__":true,"id":7601},"renderContextTable":{"__isSmartRef__":true,"id":7602},"_Extent":{"__isSmartRef__":true,"id":7603},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":5403},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":632},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7601":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7602":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7603":{"x":135.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7604":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"7605":{"style":{"__isSmartRef__":true,"id":7606},"chunkOwner":{"__isSmartRef__":true,"id":7599},"storedString":"prevScroll","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7606":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7607":{"style":{"__isSmartRef__":true,"id":7608},"chunkOwner":{"__isSmartRef__":true,"id":7599},"storedString":": [...]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7608":{"color":{"__isSmartRef__":true,"id":5410},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7609":{"morph":{"__isSmartRef__":true,"id":7599},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7610":{"x":127.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7611":{"layoutText":{"__isSmartRef__":true,"id":7612}},"7612":{"varMapping":{"__isSmartRef__":true,"id":7613},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":7614},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7613":{"this":{"__isSmartRef__":true,"id":7599}},"7614":{},"7615":{"_Position":{"__isSmartRef__":true,"id":7616},"renderContextTable":{"__isSmartRef__":true,"id":7617},"_Extent":{"__isSmartRef__":true,"id":7618},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7619},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7616":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7617":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7618":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7619":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7620":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7621":{"morph":{"__isSmartRef__":true,"id":7581},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7622":{"resizeWidth":true},"7623":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7624":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7625":{"updateExpanderColor":{"__isSmartRef__":true,"id":7626},"onMouseDown":{"__isSmartRef__":true,"id":7629},"isRoot":{"__isSmartRef__":true,"id":7636},"displayValue":{"__isSmartRef__":true,"id":7639},"update":{"__isSmartRef__":true,"id":7642}},"7626":{"varMapping":{"__isSmartRef__":true,"id":7627},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":7628},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7627":{"this":{"__isSmartRef__":true,"id":7581}},"7628":{},"7629":{"varMapping":{"__isSmartRef__":true,"id":7630},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":7635},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7630":{"this":{"__isSmartRef__":true,"id":7581},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7631}},"7631":{"$super":{"__isSmartRef__":true,"id":7632}},"7632":{"varMapping":{"__isSmartRef__":true,"id":7633},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7634},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7633":{"obj":{"__isSmartRef__":true,"id":7581},"name":"onMouseDown"},"7634":{},"7635":{},"7636":{"varMapping":{"__isSmartRef__":true,"id":7637},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":7638},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7637":{"this":{"__isSmartRef__":true,"id":7581}},"7638":{},"7639":{"varMapping":{"__isSmartRef__":true,"id":7640},"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":7641},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7640":{"this":{"__isSmartRef__":true,"id":7581}},"7641":{},"7642":{"varMapping":{"__isSmartRef__":true,"id":7643},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7644},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7643":{"this":{"__isSmartRef__":true,"id":7581}},"7644":{},"7645":{"_Position":{"__isSmartRef__":true,"id":7646},"renderContextTable":{"__isSmartRef__":true,"id":7647},"_Extent":{"__isSmartRef__":true,"id":7648},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7649},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7646":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7647":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7648":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7649":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7650":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7651":{"morph":{"__isSmartRef__":true,"id":7580},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7652":{"layouter":{"__isSmartRef__":true,"id":7653},"resizeWidth":true},"7653":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":7580},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"7654":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7655":{"x":0,"y":140,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7656":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":7657}},"7657":{"varMapping":{"__isSmartRef__":true,"id":7658},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":7663},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7658":{"this":{"__isSmartRef__":true,"id":7580},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7659}},"7659":{"$super":{"__isSmartRef__":true,"id":7660}},"7660":{"varMapping":{"__isSmartRef__":true,"id":7661},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7662},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7661":{"obj":{"__isSmartRef__":true,"id":7580},"name":"getLayoutableSubmorphs"},"7662":{},"7663":{},"7664":{"submorphs":[{"__isSmartRef__":true,"id":7665}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7729},"derivationIds":[null],"id":"B81BE8E5-765D-4741-A4C5-79265F3DB411","renderContextTable":{"__isSmartRef__":true,"id":7734},"eventHandler":{"__isSmartRef__":true,"id":7735},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7736},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":7738},"owner":{"__isSmartRef__":true,"id":5478},"_Position":{"__isSmartRef__":true,"id":7739},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7740},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7665":{"submorphs":[{"__isSmartRef__":true,"id":7666},{"__isSmartRef__":true,"id":7683}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7699},"derivationIds":[null],"id":"90FBF0A3-B14B-40D8-B7C9-1B962E02D556","renderContextTable":{"__isSmartRef__":true,"id":7704},"eventHandler":{"__isSmartRef__":true,"id":7705},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7706},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":5193},"propertyList":["x","y"],"level":1,"treeView":{"__isSmartRef__":true,"id":5377},"label":"priorExtent","children":[],"parent":{"__isSmartRef__":true,"id":5380},"expander":{"__isSmartRef__":true,"id":7666},"text":{"__isSmartRef__":true,"id":7683},"owner":{"__isSmartRef__":true,"id":7664},"_Position":{"__isSmartRef__":true,"id":7707},"priorExtent":{"__isSmartRef__":true,"id":7708},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7709},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7666":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7667},"derivationIds":[null],"id":"F88D4A15-EBC2-4AA9-A7DF-A2F118DB29CB","renderContextTable":{"__isSmartRef__":true,"id":7673},"eventHandler":{"__isSmartRef__":true,"id":7674},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7675},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":7665},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7676},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"7667":{"_Position":{"__isSmartRef__":true,"id":7668},"renderContextTable":{"__isSmartRef__":true,"id":7669},"_Extent":{"__isSmartRef__":true,"id":7670},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7671},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5387},"_Fill":{"__isSmartRef__":true,"id":7672},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7668":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7669":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7670":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7671":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7672":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7673":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7674":{"morph":{"__isSmartRef__":true,"id":7666},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7675":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7676":{"toggle":{"__isSmartRef__":true,"id":7677},"toggleExpansion":{"__isSmartRef__":true,"id":7680}},"7677":{"varMapping":{"__isSmartRef__":true,"id":7678},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":7679},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7678":{"this":{"__isSmartRef__":true,"id":7666}},"7679":{},"7680":{"varMapping":{"__isSmartRef__":true,"id":7681},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":7682},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7681":{"this":{"__isSmartRef__":true,"id":7666}},"7682":{},"7683":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7684},"derivationIds":[null],"id":"4A1F9B91-8C58-48C2-ACDA-CC2586AE7AB4","renderContextTable":{"__isSmartRef__":true,"id":7688},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":7689},{"__isSmartRef__":true,"id":7691}],"eventHandler":{"__isSmartRef__":true,"id":7693},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":7694},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":7665},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7695},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7684":{"_Position":{"__isSmartRef__":true,"id":7685},"renderContextTable":{"__isSmartRef__":true,"id":7686},"_Extent":{"__isSmartRef__":true,"id":7687},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":5403},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":632},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7685":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7686":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7687":{"x":135,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7688":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"7689":{"style":{"__isSmartRef__":true,"id":7690},"chunkOwner":{"__isSmartRef__":true,"id":7683},"storedString":"priorExtent","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7690":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7691":{"style":{"__isSmartRef__":true,"id":7692},"chunkOwner":{"__isSmartRef__":true,"id":7683},"storedString":": Point","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7692":{"color":{"__isSmartRef__":true,"id":5410},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7693":{"morph":{"__isSmartRef__":true,"id":7683},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7694":{"x":143,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7695":{"layoutText":{"__isSmartRef__":true,"id":7696}},"7696":{"varMapping":{"__isSmartRef__":true,"id":7697},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":7698},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7697":{"this":{"__isSmartRef__":true,"id":7683}},"7698":{},"7699":{"_Position":{"__isSmartRef__":true,"id":7700},"renderContextTable":{"__isSmartRef__":true,"id":7701},"_Extent":{"__isSmartRef__":true,"id":7702},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7703},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7700":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"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":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7703":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7704":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7705":{"morph":{"__isSmartRef__":true,"id":7665},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7706":{"resizeWidth":true},"7707":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7708":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7709":{"updateExpanderColor":{"__isSmartRef__":true,"id":7710},"onMouseDown":{"__isSmartRef__":true,"id":7713},"isRoot":{"__isSmartRef__":true,"id":7720},"displayValue":{"__isSmartRef__":true,"id":7723},"update":{"__isSmartRef__":true,"id":7726}},"7710":{"varMapping":{"__isSmartRef__":true,"id":7711},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":7712},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7711":{"this":{"__isSmartRef__":true,"id":7665}},"7712":{},"7713":{"varMapping":{"__isSmartRef__":true,"id":7714},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":7719},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7714":{"this":{"__isSmartRef__":true,"id":7665},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7715}},"7715":{"$super":{"__isSmartRef__":true,"id":7716}},"7716":{"varMapping":{"__isSmartRef__":true,"id":7717},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7718},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7717":{"obj":{"__isSmartRef__":true,"id":7665},"name":"onMouseDown"},"7718":{},"7719":{},"7720":{"varMapping":{"__isSmartRef__":true,"id":7721},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":7722},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7721":{"this":{"__isSmartRef__":true,"id":7665}},"7722":{},"7723":{"varMapping":{"__isSmartRef__":true,"id":7724},"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":7725},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7724":{"this":{"__isSmartRef__":true,"id":7665}},"7725":{},"7726":{"varMapping":{"__isSmartRef__":true,"id":7727},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7728},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7727":{"this":{"__isSmartRef__":true,"id":7665}},"7728":{},"7729":{"_Position":{"__isSmartRef__":true,"id":7730},"renderContextTable":{"__isSmartRef__":true,"id":7731},"_Extent":{"__isSmartRef__":true,"id":7732},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7733},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7730":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7731":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7732":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7733":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7734":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7735":{"morph":{"__isSmartRef__":true,"id":7664},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7736":{"layouter":{"__isSmartRef__":true,"id":7737},"resizeWidth":true},"7737":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":7664},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"7738":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7739":{"x":0,"y":120,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7740":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":7741}},"7741":{"varMapping":{"__isSmartRef__":true,"id":7742},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":7747},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7742":{"this":{"__isSmartRef__":true,"id":7664},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7743}},"7743":{"$super":{"__isSmartRef__":true,"id":7744}},"7744":{"varMapping":{"__isSmartRef__":true,"id":7745},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7746},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7745":{"obj":{"__isSmartRef__":true,"id":7664},"name":"getLayoutableSubmorphs"},"7746":{},"7747":{},"7748":{"submorphs":[{"__isSmartRef__":true,"id":7749}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7813},"derivationIds":[null],"id":"5CB63AD8-DD3F-40A5-BE00-668E6D5F4903","renderContextTable":{"__isSmartRef__":true,"id":7818},"eventHandler":{"__isSmartRef__":true,"id":7819},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7820},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":7822},"owner":{"__isSmartRef__":true,"id":5478},"_Position":{"__isSmartRef__":true,"id":7823},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7824},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7749":{"submorphs":[{"__isSmartRef__":true,"id":7750},{"__isSmartRef__":true,"id":7767}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7783},"derivationIds":[null],"id":"D9C185B8-0A19-4DEC-ACE4-EA51D6A1F67E","renderContextTable":{"__isSmartRef__":true,"id":7788},"eventHandler":{"__isSmartRef__":true,"id":7789},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7790},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":5170},"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":5377},"label":"renderContextTable","children":[],"parent":{"__isSmartRef__":true,"id":5380},"expander":{"__isSmartRef__":true,"id":7750},"text":{"__isSmartRef__":true,"id":7767},"owner":{"__isSmartRef__":true,"id":7748},"_Position":{"__isSmartRef__":true,"id":7791},"priorExtent":{"__isSmartRef__":true,"id":7792},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7793},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7750":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7751},"derivationIds":[null],"id":"9D7BA632-708E-493C-BBE6-03E236F1F0F0","renderContextTable":{"__isSmartRef__":true,"id":7757},"eventHandler":{"__isSmartRef__":true,"id":7758},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7759},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":7749},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7760},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"7751":{"_Position":{"__isSmartRef__":true,"id":7752},"renderContextTable":{"__isSmartRef__":true,"id":7753},"_Extent":{"__isSmartRef__":true,"id":7754},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7755},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5387},"_Fill":{"__isSmartRef__":true,"id":7756},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7752":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7753":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7754":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7755":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7756":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7757":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7758":{"morph":{"__isSmartRef__":true,"id":7750},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7759":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7760":{"toggle":{"__isSmartRef__":true,"id":7761},"toggleExpansion":{"__isSmartRef__":true,"id":7764}},"7761":{"varMapping":{"__isSmartRef__":true,"id":7762},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":7763},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7762":{"this":{"__isSmartRef__":true,"id":7750}},"7763":{},"7764":{"varMapping":{"__isSmartRef__":true,"id":7765},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":7766},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7765":{"this":{"__isSmartRef__":true,"id":7750}},"7766":{},"7767":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7768},"derivationIds":[null],"id":"EC95E405-6EC4-4418-9D64-DB230D98E97B","renderContextTable":{"__isSmartRef__":true,"id":7772},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":7773},{"__isSmartRef__":true,"id":7775}],"eventHandler":{"__isSmartRef__":true,"id":7777},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":7778},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":7749},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7779},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7768":{"_Position":{"__isSmartRef__":true,"id":7769},"renderContextTable":{"__isSmartRef__":true,"id":7770},"_Extent":{"__isSmartRef__":true,"id":7771},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":5403},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":632},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7769":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7770":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7771":{"x":195.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7772":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"7773":{"style":{"__isSmartRef__":true,"id":7774},"chunkOwner":{"__isSmartRef__":true,"id":7767},"storedString":"renderContextTable","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7774":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7775":{"style":{"__isSmartRef__":true,"id":7776},"chunkOwner":{"__isSmartRef__":true,"id":7767},"storedString":": {...}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7776":{"color":{"__isSmartRef__":true,"id":5410},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7777":{"morph":{"__isSmartRef__":true,"id":7767},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7778":{"x":187.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7779":{"layoutText":{"__isSmartRef__":true,"id":7780}},"7780":{"varMapping":{"__isSmartRef__":true,"id":7781},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":7782},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7781":{"this":{"__isSmartRef__":true,"id":7767}},"7782":{},"7783":{"_Position":{"__isSmartRef__":true,"id":7784},"renderContextTable":{"__isSmartRef__":true,"id":7785},"_Extent":{"__isSmartRef__":true,"id":7786},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7787},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7784":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7785":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7786":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7787":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7788":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7789":{"morph":{"__isSmartRef__":true,"id":7749},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7790":{"resizeWidth":true},"7791":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7792":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7793":{"updateExpanderColor":{"__isSmartRef__":true,"id":7794},"onMouseDown":{"__isSmartRef__":true,"id":7797},"isRoot":{"__isSmartRef__":true,"id":7804},"displayValue":{"__isSmartRef__":true,"id":7807},"update":{"__isSmartRef__":true,"id":7810}},"7794":{"varMapping":{"__isSmartRef__":true,"id":7795},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":7796},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7795":{"this":{"__isSmartRef__":true,"id":7749}},"7796":{},"7797":{"varMapping":{"__isSmartRef__":true,"id":7798},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":7803},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7798":{"this":{"__isSmartRef__":true,"id":7749},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7799}},"7799":{"$super":{"__isSmartRef__":true,"id":7800}},"7800":{"varMapping":{"__isSmartRef__":true,"id":7801},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7802},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7801":{"obj":{"__isSmartRef__":true,"id":7749},"name":"onMouseDown"},"7802":{},"7803":{},"7804":{"varMapping":{"__isSmartRef__":true,"id":7805},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":7806},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7805":{"this":{"__isSmartRef__":true,"id":7749}},"7806":{},"7807":{"varMapping":{"__isSmartRef__":true,"id":7808},"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":7809},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7808":{"this":{"__isSmartRef__":true,"id":7749}},"7809":{},"7810":{"varMapping":{"__isSmartRef__":true,"id":7811},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7812},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7811":{"this":{"__isSmartRef__":true,"id":7749}},"7812":{},"7813":{"_Position":{"__isSmartRef__":true,"id":7814},"renderContextTable":{"__isSmartRef__":true,"id":7815},"_Extent":{"__isSmartRef__":true,"id":7816},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7817},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7814":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7815":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7816":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7817":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7818":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7819":{"morph":{"__isSmartRef__":true,"id":7748},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7820":{"layouter":{"__isSmartRef__":true,"id":7821},"resizeWidth":true},"7821":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":7748},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"7822":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7823":{"x":0,"y":100,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7824":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":7825}},"7825":{"varMapping":{"__isSmartRef__":true,"id":7826},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":7831},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7826":{"this":{"__isSmartRef__":true,"id":7748},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7827}},"7827":{"$super":{"__isSmartRef__":true,"id":7828}},"7828":{"varMapping":{"__isSmartRef__":true,"id":7829},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7830},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7829":{"obj":{"__isSmartRef__":true,"id":7748},"name":"getLayoutableSubmorphs"},"7830":{},"7831":{},"7832":{"submorphs":[{"__isSmartRef__":true,"id":7833}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7897},"derivationIds":[null],"id":"6384B14B-83FA-4E3C-A03C-02793B61EB01","renderContextTable":{"__isSmartRef__":true,"id":7902},"eventHandler":{"__isSmartRef__":true,"id":7903},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7904},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":7906},"owner":{"__isSmartRef__":true,"id":5478},"_Position":{"__isSmartRef__":true,"id":7907},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7908},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7833":{"submorphs":[{"__isSmartRef__":true,"id":7834},{"__isSmartRef__":true,"id":7851}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7867},"derivationIds":[null],"id":"2BB59119-A77A-4725-975F-E9DAD8298E17","renderContextTable":{"__isSmartRef__":true,"id":7872},"eventHandler":{"__isSmartRef__":true,"id":7873},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7874},"grabbingEnabled":false,"draggingEnabled":false,"data":[],"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":5377},"label":"scripts","children":[],"parent":{"__isSmartRef__":true,"id":5380},"expander":{"__isSmartRef__":true,"id":7834},"text":{"__isSmartRef__":true,"id":7851},"owner":{"__isSmartRef__":true,"id":7832},"_Position":{"__isSmartRef__":true,"id":7875},"priorExtent":{"__isSmartRef__":true,"id":7876},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7877},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7834":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7835},"derivationIds":[null],"id":"EBE079B3-8B7B-48D4-B972-7E9F420DA4EF","renderContextTable":{"__isSmartRef__":true,"id":7841},"eventHandler":{"__isSmartRef__":true,"id":7842},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7843},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":7833},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7844},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"7835":{"_Position":{"__isSmartRef__":true,"id":7836},"renderContextTable":{"__isSmartRef__":true,"id":7837},"_Extent":{"__isSmartRef__":true,"id":7838},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7839},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5387},"_Fill":{"__isSmartRef__":true,"id":7840},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7836":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7837":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7838":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7839":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7840":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7841":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7842":{"morph":{"__isSmartRef__":true,"id":7834},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7843":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7844":{"toggle":{"__isSmartRef__":true,"id":7845},"toggleExpansion":{"__isSmartRef__":true,"id":7848}},"7845":{"varMapping":{"__isSmartRef__":true,"id":7846},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":7847},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7846":{"this":{"__isSmartRef__":true,"id":7834}},"7847":{},"7848":{"varMapping":{"__isSmartRef__":true,"id":7849},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":7850},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7849":{"this":{"__isSmartRef__":true,"id":7834}},"7850":{},"7851":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7852},"derivationIds":[null],"id":"134078C9-EEA4-4DC8-8691-2D1A13C0CF5C","renderContextTable":{"__isSmartRef__":true,"id":7856},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":7857},{"__isSmartRef__":true,"id":7859}],"eventHandler":{"__isSmartRef__":true,"id":7861},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":7862},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":7833},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7863},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7852":{"_Position":{"__isSmartRef__":true,"id":7853},"renderContextTable":{"__isSmartRef__":true,"id":7854},"_Extent":{"__isSmartRef__":true,"id":7855},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":5403},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":632},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7853":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7854":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7855":{"x":90.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7856":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"7857":{"style":{"__isSmartRef__":true,"id":7858},"chunkOwner":{"__isSmartRef__":true,"id":7851},"storedString":"scripts","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7858":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7859":{"style":{"__isSmartRef__":true,"id":7860},"chunkOwner":{"__isSmartRef__":true,"id":7851},"storedString":": []","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7860":{"color":{"__isSmartRef__":true,"id":5410},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7861":{"morph":{"__isSmartRef__":true,"id":7851},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7862":{"x":82.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7863":{"layoutText":{"__isSmartRef__":true,"id":7864}},"7864":{"varMapping":{"__isSmartRef__":true,"id":7865},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":7866},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7865":{"this":{"__isSmartRef__":true,"id":7851}},"7866":{},"7867":{"_Position":{"__isSmartRef__":true,"id":7868},"renderContextTable":{"__isSmartRef__":true,"id":7869},"_Extent":{"__isSmartRef__":true,"id":7870},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7871},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7868":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7869":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7870":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7871":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7872":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7873":{"morph":{"__isSmartRef__":true,"id":7833},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7874":{"resizeWidth":true},"7875":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7876":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7877":{"updateExpanderColor":{"__isSmartRef__":true,"id":7878},"onMouseDown":{"__isSmartRef__":true,"id":7881},"isRoot":{"__isSmartRef__":true,"id":7888},"displayValue":{"__isSmartRef__":true,"id":7891},"update":{"__isSmartRef__":true,"id":7894}},"7878":{"varMapping":{"__isSmartRef__":true,"id":7879},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":7880},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7879":{"this":{"__isSmartRef__":true,"id":7833}},"7880":{},"7881":{"varMapping":{"__isSmartRef__":true,"id":7882},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":7887},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7882":{"this":{"__isSmartRef__":true,"id":7833},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7883}},"7883":{"$super":{"__isSmartRef__":true,"id":7884}},"7884":{"varMapping":{"__isSmartRef__":true,"id":7885},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7886},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7885":{"obj":{"__isSmartRef__":true,"id":7833},"name":"onMouseDown"},"7886":{},"7887":{},"7888":{"varMapping":{"__isSmartRef__":true,"id":7889},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":7890},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7889":{"this":{"__isSmartRef__":true,"id":7833}},"7890":{},"7891":{"varMapping":{"__isSmartRef__":true,"id":7892},"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":7893},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7892":{"this":{"__isSmartRef__":true,"id":7833}},"7893":{},"7894":{"varMapping":{"__isSmartRef__":true,"id":7895},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7896},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7895":{"this":{"__isSmartRef__":true,"id":7833}},"7896":{},"7897":{"_Position":{"__isSmartRef__":true,"id":7898},"renderContextTable":{"__isSmartRef__":true,"id":7899},"_Extent":{"__isSmartRef__":true,"id":7900},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7901},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7898":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7899":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7900":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7901":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7902":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7903":{"morph":{"__isSmartRef__":true,"id":7832},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7904":{"layouter":{"__isSmartRef__":true,"id":7905},"resizeWidth":true},"7905":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":7832},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"7906":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7907":{"x":0,"y":80,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7908":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":7909}},"7909":{"varMapping":{"__isSmartRef__":true,"id":7910},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":7915},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7910":{"this":{"__isSmartRef__":true,"id":7832},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7911}},"7911":{"$super":{"__isSmartRef__":true,"id":7912}},"7912":{"varMapping":{"__isSmartRef__":true,"id":7913},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7914},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7913":{"obj":{"__isSmartRef__":true,"id":7832},"name":"getLayoutableSubmorphs"},"7914":{},"7915":{},"7916":{"submorphs":[{"__isSmartRef__":true,"id":7917}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7981},"derivationIds":[null],"id":"3F51E7D0-91D2-4F33-8C53-D714C0C59078","renderContextTable":{"__isSmartRef__":true,"id":7986},"eventHandler":{"__isSmartRef__":true,"id":7987},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7988},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":7990},"owner":{"__isSmartRef__":true,"id":5478},"_Position":{"__isSmartRef__":true,"id":7991},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7992},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7917":{"submorphs":[{"__isSmartRef__":true,"id":7918},{"__isSmartRef__":true,"id":7935}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7951},"derivationIds":[null],"id":"9F4B1C23-F5DF-4C64-A091-C453705A9D9C","renderContextTable":{"__isSmartRef__":true,"id":7956},"eventHandler":{"__isSmartRef__":true,"id":7957},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":7958},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":5165},"propertyList":["renderContextTable","_ClipMode","_BorderWidth","_Padding","_BorderColor","stringifiedShapeNode","extent","__SourceModuleName__","_Extent","_renderContext","shapeNode"],"level":1,"treeView":{"__isSmartRef__":true,"id":5377},"label":"shape","children":[],"parent":{"__isSmartRef__":true,"id":5380},"expander":{"__isSmartRef__":true,"id":7918},"text":{"__isSmartRef__":true,"id":7935},"owner":{"__isSmartRef__":true,"id":7916},"_Position":{"__isSmartRef__":true,"id":7959},"priorExtent":{"__isSmartRef__":true,"id":7960},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7961},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"7918":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7919},"derivationIds":[null],"id":"AA2E4EA9-99F8-4CDA-9951-A34BE785A35E","renderContextTable":{"__isSmartRef__":true,"id":7925},"eventHandler":{"__isSmartRef__":true,"id":7926},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":7927},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":7917},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7928},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"7919":{"_Position":{"__isSmartRef__":true,"id":7920},"renderContextTable":{"__isSmartRef__":true,"id":7921},"_Extent":{"__isSmartRef__":true,"id":7922},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7923},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5387},"_Fill":{"__isSmartRef__":true,"id":7924},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7920":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7921":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7922":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7923":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7924":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7925":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7926":{"morph":{"__isSmartRef__":true,"id":7918},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7927":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7928":{"toggle":{"__isSmartRef__":true,"id":7929},"toggleExpansion":{"__isSmartRef__":true,"id":7932}},"7929":{"varMapping":{"__isSmartRef__":true,"id":7930},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":7931},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7930":{"this":{"__isSmartRef__":true,"id":7918}},"7931":{},"7932":{"varMapping":{"__isSmartRef__":true,"id":7933},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":7934},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7933":{"this":{"__isSmartRef__":true,"id":7918}},"7934":{},"7935":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7936},"derivationIds":[null],"id":"15B5D55E-A0DA-4CB6-BC23-CDFBE9BEABA7","renderContextTable":{"__isSmartRef__":true,"id":7940},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":7941},{"__isSmartRef__":true,"id":7943}],"eventHandler":{"__isSmartRef__":true,"id":7945},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":7946},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":7917},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7947},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7936":{"_Position":{"__isSmartRef__":true,"id":7937},"renderContextTable":{"__isSmartRef__":true,"id":7938},"_Extent":{"__isSmartRef__":true,"id":7939},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":5403},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":632},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7937":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7938":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7939":{"x":120.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7940":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"7941":{"style":{"__isSmartRef__":true,"id":7942},"chunkOwner":{"__isSmartRef__":true,"id":7935},"storedString":"shape","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7942":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7943":{"style":{"__isSmartRef__":true,"id":7944},"chunkOwner":{"__isSmartRef__":true,"id":7935},"storedString":": External","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7944":{"color":{"__isSmartRef__":true,"id":5410},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7945":{"morph":{"__isSmartRef__":true,"id":7935},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7946":{"x":112.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7947":{"layoutText":{"__isSmartRef__":true,"id":7948}},"7948":{"varMapping":{"__isSmartRef__":true,"id":7949},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":7950},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7949":{"this":{"__isSmartRef__":true,"id":7935}},"7950":{},"7951":{"_Position":{"__isSmartRef__":true,"id":7952},"renderContextTable":{"__isSmartRef__":true,"id":7953},"_Extent":{"__isSmartRef__":true,"id":7954},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7955},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7952":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7953":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7954":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7955":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7956":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7957":{"morph":{"__isSmartRef__":true,"id":7917},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7958":{"resizeWidth":true},"7959":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7960":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7961":{"updateExpanderColor":{"__isSmartRef__":true,"id":7962},"onMouseDown":{"__isSmartRef__":true,"id":7965},"isRoot":{"__isSmartRef__":true,"id":7972},"displayValue":{"__isSmartRef__":true,"id":7975},"update":{"__isSmartRef__":true,"id":7978}},"7962":{"varMapping":{"__isSmartRef__":true,"id":7963},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":7964},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7963":{"this":{"__isSmartRef__":true,"id":7917}},"7964":{},"7965":{"varMapping":{"__isSmartRef__":true,"id":7966},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":7971},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7966":{"this":{"__isSmartRef__":true,"id":7917},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7967}},"7967":{"$super":{"__isSmartRef__":true,"id":7968}},"7968":{"varMapping":{"__isSmartRef__":true,"id":7969},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7970},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7969":{"obj":{"__isSmartRef__":true,"id":7917},"name":"onMouseDown"},"7970":{},"7971":{},"7972":{"varMapping":{"__isSmartRef__":true,"id":7973},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":7974},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7973":{"this":{"__isSmartRef__":true,"id":7917}},"7974":{},"7975":{"varMapping":{"__isSmartRef__":true,"id":7976},"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":7977},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7976":{"this":{"__isSmartRef__":true,"id":7917}},"7977":{},"7978":{"varMapping":{"__isSmartRef__":true,"id":7979},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7980},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7979":{"this":{"__isSmartRef__":true,"id":7917}},"7980":{},"7981":{"_Position":{"__isSmartRef__":true,"id":7982},"renderContextTable":{"__isSmartRef__":true,"id":7983},"_Extent":{"__isSmartRef__":true,"id":7984},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7985},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"7982":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7983":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"7984":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7985":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7986":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7987":{"morph":{"__isSmartRef__":true,"id":7916},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7988":{"layouter":{"__isSmartRef__":true,"id":7989},"resizeWidth":true},"7989":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":7916},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"7990":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7991":{"x":0,"y":60,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7992":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":7993}},"7993":{"varMapping":{"__isSmartRef__":true,"id":7994},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":7999},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7994":{"this":{"__isSmartRef__":true,"id":7916},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7995}},"7995":{"$super":{"__isSmartRef__":true,"id":7996}},"7996":{"varMapping":{"__isSmartRef__":true,"id":7997},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7998},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"7997":{"obj":{"__isSmartRef__":true,"id":7916},"name":"getLayoutableSubmorphs"},"7998":{},"7999":{},"8000":{"submorphs":[{"__isSmartRef__":true,"id":8001}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8065},"derivationIds":[null],"id":"0A0E59D6-60D3-4955-BB87-67C7C5C28E06","renderContextTable":{"__isSmartRef__":true,"id":8070},"eventHandler":{"__isSmartRef__":true,"id":8071},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8072},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":8074},"owner":{"__isSmartRef__":true,"id":5478},"_Position":{"__isSmartRef__":true,"id":8075},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8076},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8001":{"submorphs":[{"__isSmartRef__":true,"id":8002},{"__isSmartRef__":true,"id":8019}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8035},"derivationIds":[null],"id":"7CF2E553-1095-4E86-AD42-A89FD3586CB0","renderContextTable":{"__isSmartRef__":true,"id":8040},"eventHandler":{"__isSmartRef__":true,"id":8041},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8042},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":5377},"label":"showsHalos","children":[],"parent":{"__isSmartRef__":true,"id":5380},"expander":{"__isSmartRef__":true,"id":8002},"text":{"__isSmartRef__":true,"id":8019},"owner":{"__isSmartRef__":true,"id":8000},"_Position":{"__isSmartRef__":true,"id":8043},"priorExtent":{"__isSmartRef__":true,"id":8044},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8045},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8002":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8003},"derivationIds":[null],"id":"24F4B729-856E-4C02-BB76-2C77FBB8898C","renderContextTable":{"__isSmartRef__":true,"id":8009},"eventHandler":{"__isSmartRef__":true,"id":8010},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":8011},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":8001},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8012},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"8003":{"_Position":{"__isSmartRef__":true,"id":8004},"renderContextTable":{"__isSmartRef__":true,"id":8005},"_Extent":{"__isSmartRef__":true,"id":8006},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8007},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5387},"_Fill":{"__isSmartRef__":true,"id":8008},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8004":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8005":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8006":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8007":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8008":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8009":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8010":{"morph":{"__isSmartRef__":true,"id":8002},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8011":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8012":{"toggle":{"__isSmartRef__":true,"id":8013},"toggleExpansion":{"__isSmartRef__":true,"id":8016}},"8013":{"varMapping":{"__isSmartRef__":true,"id":8014},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":8015},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8014":{"this":{"__isSmartRef__":true,"id":8002}},"8015":{},"8016":{"varMapping":{"__isSmartRef__":true,"id":8017},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":8018},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8017":{"this":{"__isSmartRef__":true,"id":8002}},"8018":{},"8019":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8020},"derivationIds":[null],"id":"84EFC717-28F7-4910-92D1-798F839670D5","renderContextTable":{"__isSmartRef__":true,"id":8024},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":8025},{"__isSmartRef__":true,"id":8027}],"eventHandler":{"__isSmartRef__":true,"id":8029},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":8030},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":8001},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8031},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8020":{"_Position":{"__isSmartRef__":true,"id":8021},"renderContextTable":{"__isSmartRef__":true,"id":8022},"_Extent":{"__isSmartRef__":true,"id":8023},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":5403},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":632},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8021":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8022":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8023":{"x":135.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8024":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"8025":{"style":{"__isSmartRef__":true,"id":8026},"chunkOwner":{"__isSmartRef__":true,"id":8019},"storedString":"showsHalos","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8026":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8027":{"style":{"__isSmartRef__":true,"id":8028},"chunkOwner":{"__isSmartRef__":true,"id":8019},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8028":{"color":{"__isSmartRef__":true,"id":5410},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8029":{"morph":{"__isSmartRef__":true,"id":8019},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8030":{"x":127.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8031":{"layoutText":{"__isSmartRef__":true,"id":8032}},"8032":{"varMapping":{"__isSmartRef__":true,"id":8033},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":8034},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8033":{"this":{"__isSmartRef__":true,"id":8019}},"8034":{},"8035":{"_Position":{"__isSmartRef__":true,"id":8036},"renderContextTable":{"__isSmartRef__":true,"id":8037},"_Extent":{"__isSmartRef__":true,"id":8038},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8039},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8036":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8037":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8038":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8039":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"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":8001},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8042":{"resizeWidth":true},"8043":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8044":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8045":{"updateExpanderColor":{"__isSmartRef__":true,"id":8046},"onMouseDown":{"__isSmartRef__":true,"id":8049},"isRoot":{"__isSmartRef__":true,"id":8056},"displayValue":{"__isSmartRef__":true,"id":8059},"update":{"__isSmartRef__":true,"id":8062}},"8046":{"varMapping":{"__isSmartRef__":true,"id":8047},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":8048},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8047":{"this":{"__isSmartRef__":true,"id":8001}},"8048":{},"8049":{"varMapping":{"__isSmartRef__":true,"id":8050},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":8055},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8050":{"this":{"__isSmartRef__":true,"id":8001},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8051}},"8051":{"$super":{"__isSmartRef__":true,"id":8052}},"8052":{"varMapping":{"__isSmartRef__":true,"id":8053},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8054},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8053":{"obj":{"__isSmartRef__":true,"id":8001},"name":"onMouseDown"},"8054":{},"8055":{},"8056":{"varMapping":{"__isSmartRef__":true,"id":8057},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":8058},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8057":{"this":{"__isSmartRef__":true,"id":8001}},"8058":{},"8059":{"varMapping":{"__isSmartRef__":true,"id":8060},"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":8061},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8060":{"this":{"__isSmartRef__":true,"id":8001}},"8061":{},"8062":{"varMapping":{"__isSmartRef__":true,"id":8063},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8064},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8063":{"this":{"__isSmartRef__":true,"id":8001}},"8064":{},"8065":{"_Position":{"__isSmartRef__":true,"id":8066},"renderContextTable":{"__isSmartRef__":true,"id":8067},"_Extent":{"__isSmartRef__":true,"id":8068},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8069},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8066":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8067":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8068":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8069":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8070":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8071":{"morph":{"__isSmartRef__":true,"id":8000},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8072":{"layouter":{"__isSmartRef__":true,"id":8073},"resizeWidth":true},"8073":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":8000},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"8074":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8075":{"x":0,"y":40,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8076":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":8077}},"8077":{"varMapping":{"__isSmartRef__":true,"id":8078},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":8083},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8078":{"this":{"__isSmartRef__":true,"id":8000},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8079}},"8079":{"$super":{"__isSmartRef__":true,"id":8080}},"8080":{"varMapping":{"__isSmartRef__":true,"id":8081},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8082},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8081":{"obj":{"__isSmartRef__":true,"id":8000},"name":"getLayoutableSubmorphs"},"8082":{},"8083":{},"8084":{"submorphs":[{"__isSmartRef__":true,"id":8085}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8149},"derivationIds":[null],"id":"162308F4-4674-4548-A463-DD7492A09060","renderContextTable":{"__isSmartRef__":true,"id":8154},"eventHandler":{"__isSmartRef__":true,"id":8155},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8156},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":8158},"owner":{"__isSmartRef__":true,"id":5478},"_Position":{"__isSmartRef__":true,"id":8159},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8160},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8085":{"submorphs":[{"__isSmartRef__":true,"id":8086},{"__isSmartRef__":true,"id":8103}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8119},"derivationIds":[null],"id":"724BEA79-8A66-4E97-8CEB-6BD385074829","renderContextTable":{"__isSmartRef__":true,"id":8124},"eventHandler":{"__isSmartRef__":true,"id":8125},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8126},"grabbingEnabled":false,"draggingEnabled":false,"data":[],"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":5377},"label":"submorphs","children":[],"parent":{"__isSmartRef__":true,"id":5380},"expander":{"__isSmartRef__":true,"id":8086},"text":{"__isSmartRef__":true,"id":8103},"owner":{"__isSmartRef__":true,"id":8084},"_Position":{"__isSmartRef__":true,"id":8127},"priorExtent":{"__isSmartRef__":true,"id":8128},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8129},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"8086":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8087},"derivationIds":[null],"id":"63F2ABF8-9656-4D6D-954D-71C35511CB39","renderContextTable":{"__isSmartRef__":true,"id":8093},"eventHandler":{"__isSmartRef__":true,"id":8094},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":8095},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":8085},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8096},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"8087":{"_Position":{"__isSmartRef__":true,"id":8088},"renderContextTable":{"__isSmartRef__":true,"id":8089},"_Extent":{"__isSmartRef__":true,"id":8090},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8091},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5387},"_Fill":{"__isSmartRef__":true,"id":8092},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8088":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8089":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8090":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8091":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8092":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8093":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8094":{"morph":{"__isSmartRef__":true,"id":8086},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8095":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8096":{"toggle":{"__isSmartRef__":true,"id":8097},"toggleExpansion":{"__isSmartRef__":true,"id":8100}},"8097":{"varMapping":{"__isSmartRef__":true,"id":8098},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":8099},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8098":{"this":{"__isSmartRef__":true,"id":8086}},"8099":{},"8100":{"varMapping":{"__isSmartRef__":true,"id":8101},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":8102},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8101":{"this":{"__isSmartRef__":true,"id":8086}},"8102":{},"8103":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8104},"derivationIds":[null],"id":"29FCAB0D-6D29-41D2-9929-D99E37CA3912","renderContextTable":{"__isSmartRef__":true,"id":8108},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":8109},{"__isSmartRef__":true,"id":8111}],"eventHandler":{"__isSmartRef__":true,"id":8113},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":8114},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":8085},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8115},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8104":{"_Position":{"__isSmartRef__":true,"id":8105},"renderContextTable":{"__isSmartRef__":true,"id":8106},"_Extent":{"__isSmartRef__":true,"id":8107},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":5403},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":632},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8105":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8106":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8107":{"x":105.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8108":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"8109":{"style":{"__isSmartRef__":true,"id":8110},"chunkOwner":{"__isSmartRef__":true,"id":8103},"storedString":"submorphs","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8110":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8111":{"style":{"__isSmartRef__":true,"id":8112},"chunkOwner":{"__isSmartRef__":true,"id":8103},"storedString":": []","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8112":{"color":{"__isSmartRef__":true,"id":5410},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8113":{"morph":{"__isSmartRef__":true,"id":8103},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8114":{"x":97.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8115":{"layoutText":{"__isSmartRef__":true,"id":8116}},"8116":{"varMapping":{"__isSmartRef__":true,"id":8117},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":8118},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8117":{"this":{"__isSmartRef__":true,"id":8103}},"8118":{},"8119":{"_Position":{"__isSmartRef__":true,"id":8120},"renderContextTable":{"__isSmartRef__":true,"id":8121},"_Extent":{"__isSmartRef__":true,"id":8122},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8123},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8120":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8121":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8122":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8123":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8124":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8125":{"morph":{"__isSmartRef__":true,"id":8085},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8126":{"resizeWidth":true},"8127":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8128":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8129":{"updateExpanderColor":{"__isSmartRef__":true,"id":8130},"onMouseDown":{"__isSmartRef__":true,"id":8133},"isRoot":{"__isSmartRef__":true,"id":8140},"displayValue":{"__isSmartRef__":true,"id":8143},"update":{"__isSmartRef__":true,"id":8146}},"8130":{"varMapping":{"__isSmartRef__":true,"id":8131},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":8132},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8131":{"this":{"__isSmartRef__":true,"id":8085}},"8132":{},"8133":{"varMapping":{"__isSmartRef__":true,"id":8134},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":8139},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8134":{"this":{"__isSmartRef__":true,"id":8085},"__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 if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8138},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8137":{"obj":{"__isSmartRef__":true,"id":8085},"name":"onMouseDown"},"8138":{},"8139":{},"8140":{"varMapping":{"__isSmartRef__":true,"id":8141},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":8142},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8141":{"this":{"__isSmartRef__":true,"id":8085}},"8142":{},"8143":{"varMapping":{"__isSmartRef__":true,"id":8144},"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":8145},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8144":{"this":{"__isSmartRef__":true,"id":8085}},"8145":{},"8146":{"varMapping":{"__isSmartRef__":true,"id":8147},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8148},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8147":{"this":{"__isSmartRef__":true,"id":8085}},"8148":{},"8149":{"_Position":{"__isSmartRef__":true,"id":8150},"renderContextTable":{"__isSmartRef__":true,"id":8151},"_Extent":{"__isSmartRef__":true,"id":8152},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8153},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8150":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8151":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8152":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8153":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8154":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8155":{"morph":{"__isSmartRef__":true,"id":8084},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8156":{"layouter":{"__isSmartRef__":true,"id":8157},"resizeWidth":true},"8157":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":8084},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"8158":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8159":{"x":0,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8160":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":8161}},"8161":{"varMapping":{"__isSmartRef__":true,"id":8162},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":8167},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8162":{"this":{"__isSmartRef__":true,"id":8084},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8163}},"8163":{"$super":{"__isSmartRef__":true,"id":8164}},"8164":{"varMapping":{"__isSmartRef__":true,"id":8165},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8166},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8165":{"obj":{"__isSmartRef__":true,"id":8084},"name":"getLayoutableSubmorphs"},"8166":{},"8167":{},"8168":{"_Position":{"__isSmartRef__":true,"id":8169},"renderContextTable":{"__isSmartRef__":true,"id":8170},"_Extent":{"__isSmartRef__":true,"id":8171},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8172},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8169":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8170":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8171":{"x":100,"y":660,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8172":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8173":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8174":{"morph":{"__isSmartRef__":true,"id":5478},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8175":{"layouter":{"__isSmartRef__":true,"id":8176},"resizeWidth":true},"8176":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":5478},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"8177":{"x":0,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8178":{"x":100,"y":660,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8179":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":8180},"addTreeNodesForProperties":{"__isSmartRef__":true,"id":8187}},"8180":{"varMapping":{"__isSmartRef__":true,"id":8181},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":8186},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8181":{"this":{"__isSmartRef__":true,"id":5478},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8182}},"8182":{"$super":{"__isSmartRef__":true,"id":8183}},"8183":{"varMapping":{"__isSmartRef__":true,"id":8184},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8185},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8184":{"obj":{"__isSmartRef__":true,"id":5478},"name":"getLayoutableSubmorphs"},"8185":{},"8186":{},"8187":{"varMapping":{"__isSmartRef__":true,"id":8188},"source":"function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n }","funcProperties":{"__isSmartRef__":true,"id":8189},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8188":{"this":{"__isSmartRef__":true,"id":5478}},"8189":{},"8190":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8191":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":8192}},"8192":{"varMapping":{"__isSmartRef__":true,"id":8193},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":8198},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8193":{"this":{"__isSmartRef__":true,"id":5467},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8194}},"8194":{"$super":{"__isSmartRef__":true,"id":8195}},"8195":{"varMapping":{"__isSmartRef__":true,"id":8196},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8197},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8196":{"obj":{"__isSmartRef__":true,"id":5467},"name":"getLayoutableSubmorphs"},"8197":{},"8198":{},"8199":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8200":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8201":{"updateExpanderColor":{"__isSmartRef__":true,"id":8202},"onMouseDown":{"__isSmartRef__":true,"id":8205},"isRoot":{"__isSmartRef__":true,"id":8212},"displayValue":{"__isSmartRef__":true,"id":8215},"update":{"__isSmartRef__":true,"id":8218}},"8202":{"varMapping":{"__isSmartRef__":true,"id":8203},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":8204},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8203":{"this":{"__isSmartRef__":true,"id":5425}},"8204":{},"8205":{"varMapping":{"__isSmartRef__":true,"id":8206},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":8211},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8206":{"this":{"__isSmartRef__":true,"id":5425},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8207}},"8207":{"$super":{"__isSmartRef__":true,"id":8208}},"8208":{"varMapping":{"__isSmartRef__":true,"id":8209},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8210},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8209":{"obj":{"__isSmartRef__":true,"id":5425},"name":"onMouseDown"},"8210":{},"8211":{},"8212":{"varMapping":{"__isSmartRef__":true,"id":8213},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":8214},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8213":{"this":{"__isSmartRef__":true,"id":5425}},"8214":{},"8215":{"varMapping":{"__isSmartRef__":true,"id":8216},"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":8217},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8216":{"this":{"__isSmartRef__":true,"id":5425}},"8217":{},"8218":{"varMapping":{"__isSmartRef__":true,"id":8219},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8220},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8219":{"this":{"__isSmartRef__":true,"id":5425}},"8220":{},"8221":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8222":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8223":{"updateExpanderColor":{"__isSmartRef__":true,"id":8224},"onMouseDown":{"__isSmartRef__":true,"id":8227},"isRoot":{"__isSmartRef__":true,"id":8234},"displayValue":{"__isSmartRef__":true,"id":8237},"update":{"__isSmartRef__":true,"id":8240}},"8224":{"varMapping":{"__isSmartRef__":true,"id":8225},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":8226},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8225":{"this":{"__isSmartRef__":true,"id":5380}},"8226":{},"8227":{"varMapping":{"__isSmartRef__":true,"id":8228},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":8233},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8228":{"this":{"__isSmartRef__":true,"id":5380},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8229}},"8229":{"$super":{"__isSmartRef__":true,"id":8230}},"8230":{"varMapping":{"__isSmartRef__":true,"id":8231},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8232},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8231":{"obj":{"__isSmartRef__":true,"id":5380},"name":"onMouseDown"},"8232":{},"8233":{},"8234":{"varMapping":{"__isSmartRef__":true,"id":8235},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":8236},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8235":{"this":{"__isSmartRef__":true,"id":5380}},"8236":{},"8237":{"varMapping":{"__isSmartRef__":true,"id":8238},"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":8239},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8238":{"this":{"__isSmartRef__":true,"id":5380}},"8239":{},"8240":{"varMapping":{"__isSmartRef__":true,"id":8241},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8242},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8241":{"this":{"__isSmartRef__":true,"id":5380}},"8242":{},"8243":{"_Position":{"__isSmartRef__":true,"id":8244},"renderContextTable":{"__isSmartRef__":true,"id":8245},"_Extent":{"__isSmartRef__":true,"id":8246},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8247},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8244":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8245":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8246":{"x":100,"y":680,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8247":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8248":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8249":{"morph":{"__isSmartRef__":true,"id":5379},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8250":{"layouter":{"__isSmartRef__":true,"id":8251},"resizeWidth":true},"8251":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":5379},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"8252":{"x":100,"y":660,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8253":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":8254}},"8254":{"varMapping":{"__isSmartRef__":true,"id":8255},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":8260},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8255":{"this":{"__isSmartRef__":true,"id":5379},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8256}},"8256":{"$super":{"__isSmartRef__":true,"id":8257}},"8257":{"varMapping":{"__isSmartRef__":true,"id":8258},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8259},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8258":{"obj":{"__isSmartRef__":true,"id":5379},"name":"getLayoutableSubmorphs"},"8259":{},"8260":{},"8261":{"_Position":{"__isSmartRef__":true,"id":8262},"renderContextTable":{"__isSmartRef__":true,"id":8263},"_Extent":{"__isSmartRef__":true,"id":8264},"_ClipMode":"scroll","_Padding":{"__isSmartRef__":true,"id":8265},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"8262":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8263":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8264":{"x":270.8398611920343,"y":263.4698859496224,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8265":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8266":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8267":{"morph":{"__isSmartRef__":true,"id":5378},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8268":{"x":10,"y":10,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8269":{"resizeWidth":true,"resizeHeight":true},"8270":{"x":290.8398611920343,"y":283.4698859496224,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8271":{"setClipModeHTML":{"__isSmartRef__":true,"id":8272}},"8272":{"varMapping":{"__isSmartRef__":true,"id":8273},"source":"function setClipModeHTML(ctx, modeString) {\n $super(ctx, modeString);\n ctx.morphNode.style['overflow-x'] = 'hidden';\n }","funcProperties":{"__isSmartRef__":true,"id":8278},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8273":{"this":{"__isSmartRef__":true,"id":5378},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8274}},"8274":{"$super":{"__isSmartRef__":true,"id":8275}},"8275":{"varMapping":{"__isSmartRef__":true,"id":8276},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8277},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8276":{"obj":{"__isSmartRef__":true,"id":5378},"name":"setClipModeHTML"},"8277":{},"8278":{},"8279":{"target":{"__isSmartRef__":true,"id":5377},"selector":"update","args":[],"stopped":false,"tickTime":500,"currentTimeout":192549,"__LivelyClassName__":"lively.morphic.TargetScript","__SourceModuleName__":"Global.lively.morphic.Core"},"8280":{"position":{"__isSmartRef__":true,"id":8281},"_Extent":{"__isSmartRef__":true,"id":8282},"_BorderWidth":1.9240000000000002,"_BorderColor":{"__isSmartRef__":true,"id":8283},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":8284},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8285},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"8281":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8282":{"x":290.8398611920343,"y":283.4698859496224,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8283":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"8284":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8285":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"8286":{"x":10,"y":10,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8287":{"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"},"8288":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8289":{"morph":{"__isSmartRef__":true,"id":5377},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"8290":{"x":286.8398611920343,"y":281.4698859496224,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8291":{"layouter":{"__isSmartRef__":true,"id":8292},"resizeWidth":true,"resizeHeight":true,"moveVertical":false,"moveHorizontal":false,"adjustForNewBounds":true},"8292":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":10,"spacing":15,"container":{"__isSmartRef__":true,"id":5377},"__SourceModuleName__":"Global.lively.morphic.Layout","__LivelyClassName__":"lively.morphic.Layout.VerticalLayout"},"8293":{"x":164.35052570087606,"y":-15.96995493992489,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8294":{"border":{"__isSmartRef__":true,"id":5387},"contractedExpander":{"__isSmartRef__":true,"id":7504},"expandedExpander":{"__isSmartRef__":true,"id":2812},"focusedText":{"__isSmartRef__":true,"id":5404},"emphasizedText":{"__isSmartRef__":true,"id":5410}},"8295":{"size":10},"8296":{"wrapperExtent":{"__isSmartRef__":true,"id":8297},"expanderExtent":{"__isSmartRef__":true,"id":8298},"expanderOffset":{"__isSmartRef__":true,"id":8299},"textOffset":{"__isSmartRef__":true,"id":8300},"levelIndent":10,"maxTextWidth":500},"8297":{"x":0,"y":0,"width":100,"height":18,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8298":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8299":{"x":8,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8300":{"x":18,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8301":{"renderTree":{"__isSmartRef__":true,"id":8302},"createTreeNode":{"__isSmartRef__":true,"id":8306},"createTreeWrapper":{"__isSmartRef__":true,"id":8310},"reset":{"__isSmartRef__":true,"id":8314},"createTreeNodeMorph":{"__isSmartRef__":true,"id":8318},"createExpanderButton":{"__isSmartRef__":true,"id":8322},"createPropertyText":{"__isSmartRef__":true,"id":8326},"createScrollClip":{"__isSmartRef__":true,"id":8330},"resetDefaults":{"__isSmartRef__":true,"id":8334},"addScriptsToTreeNode":{"__isSmartRef__":true,"id":8338},"addScriptsToExpander":{"__isSmartRef__":true,"id":8341},"getDisplayStringFor":{"__isSmartRef__":true,"id":8344},"update":{"__isSmartRef__":true,"id":8348},"addScriptsToText":{"__isSmartRef__":true,"id":8352},"toggleAll":{"__isSmartRef__":true,"id":8356}},"8302":{"varMapping":{"__isSmartRef__":true,"id":8303},"source":"function renderTree(data) {\n this.rootNode = this.createTreeNode('Properties', data);\n this.addMorph(this.rootNode);\n \n var wrapper = this.createTreeWrapper(this.rootNode);\n var scroll = this.createScrollClip(wrapper);\n\n this.addMorph(scroll);\n\n this.startStepping(500/*ms*/, 'update'); \n}","funcProperties":{"__isSmartRef__":true,"id":8304},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8303":{"this":{"__isSmartRef__":true,"id":5377}},"8304":{"timestamp":{"__isSmartRef__":true,"id":8305},"user":"lauritz","tags":[]},"8305":{"isSerializedDate":true,"string":"Fri Jan 27 2012 02:23:33 GMT+0100 (CET)"},"8306":{"varMapping":{"__isSmartRef__":true,"id":8307},"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":8308},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8307":{"this":{"__isSmartRef__":true,"id":5377}},"8308":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":8309}},"8309":{"isSerializedDate":true,"string":"Mon Sep 26 2011 23:43:34 GMT+0200 (CEST)"},"8310":{"varMapping":{"__isSmartRef__":true,"id":8311},"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":8312},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8311":{"this":{"__isSmartRef__":true,"id":5377}},"8312":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":8313}},"8313":{"isSerializedDate":true,"string":"Tue Sep 20 2011 17:05:52 GMT+0200 (CEST)"},"8314":{"varMapping":{"__isSmartRef__":true,"id":8315},"source":"function reset() {\n this.removeAllMorphs();\n this.resetDefaults();\n this.rootNode = null; \n this.stopStepping();\n}","funcProperties":{"__isSmartRef__":true,"id":8316},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8315":{"this":{"__isSmartRef__":true,"id":5377}},"8316":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":8317}},"8317":{"isSerializedDate":true,"string":"Sat Oct 15 2011 00:41:57 GMT+0200 (CEST)"},"8318":{"varMapping":{"__isSmartRef__":true,"id":8319},"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":8320},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8319":{"this":{"__isSmartRef__":true,"id":5377}},"8320":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":8321}},"8321":{"isSerializedDate":true,"string":"Tue Oct 25 2011 19:24:35 GMT+0200 (CEST)"},"8322":{"varMapping":{"__isSmartRef__":true,"id":8323},"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":8324},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8323":{"this":{"__isSmartRef__":true,"id":5377}},"8324":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":8325}},"8325":{"isSerializedDate":true,"string":"Mon Sep 26 2011 23:32:58 GMT+0200 (CEST)"},"8326":{"varMapping":{"__isSmartRef__":true,"id":8327},"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":8328},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8327":{"this":{"__isSmartRef__":true,"id":5377}},"8328":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":8329}},"8329":{"isSerializedDate":true,"string":"Mon Sep 26 2011 23:18:07 GMT+0200 (CEST)"},"8330":{"varMapping":{"__isSmartRef__":true,"id":8331},"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":8332},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8331":{"this":{"__isSmartRef__":true,"id":5377}},"8332":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":8333}},"8333":{"isSerializedDate":true,"string":"Mon Sep 19 2011 19:54:00 GMT+0200 (CEST)"},"8334":{"varMapping":{"__isSmartRef__":true,"id":8335},"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":8336},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8335":{"this":{"__isSmartRef__":true,"id":5377}},"8336":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":8337}},"8337":{"isSerializedDate":true,"string":"Wed Sep 21 2011 19:38:04 GMT+0200 (CEST)"},"8338":{"varMapping":{"__isSmartRef__":true,"id":8339},"source":"function addScriptsToTreeNode(treeNode) {\n\n treeNode.addScript(function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n });\n\n treeNode.addScript(function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n });\n\n treeNode.addScript(function isRoot() {\n return (this.parent === null || this.parent === undefined);\n });\n\n treeNode.addScript(function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n });\n \n treeNode.addScript(function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n });\n\n}","funcProperties":{"__isSmartRef__":true,"id":8340},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8339":{"this":{"__isSmartRef__":true,"id":5377}},"8340":{},"8341":{"varMapping":{"__isSmartRef__":true,"id":8342},"source":"function addScriptsToExpander(expander) {\n\n expander.addScript(function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n });\n\n expander.addScript(function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n });\n\n}","funcProperties":{"__isSmartRef__":true,"id":8343},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8342":{"this":{"__isSmartRef__":true,"id":5377}},"8343":{},"8344":{"varMapping":{"__isSmartRef__":true,"id":8345},"source":"function getDisplayStringFor(treeNode) {\n var typeInfo = '';\n if (treeNode.data && treeNode.data.name) {\n typeInfo = treeNode.data.name;\n } else {\n typeInfo = (Objects.isMutableType(treeNode.data) ? \n Objects.shortPrintStringOf(treeNode.data) : treeNode.data);\n }\n return treeNode.label + \": \" + typeInfo;\n}","funcProperties":{"__isSmartRef__":true,"id":8346},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8345":{"this":{"__isSmartRef__":true,"id":5377}},"8346":{"timestamp":{"__isSmartRef__":true,"id":8347},"user":"lauritz","tags":[]},"8347":{"isSerializedDate":true,"string":"Fri Jan 27 2012 02:35:06 GMT+0100 (CET)"},"8348":{"varMapping":{"__isSmartRef__":true,"id":8349},"source":"function update() {\n this.rootNode.update();\n}","funcProperties":{"__isSmartRef__":true,"id":8350},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8349":{"this":{"__isSmartRef__":true,"id":5377}},"8350":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":8351}},"8351":{"isSerializedDate":true,"string":"Sat Oct 15 2011 00:42:27 GMT+0200 (CEST)"},"8352":{"varMapping":{"__isSmartRef__":true,"id":8353},"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":8354},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8353":{"this":{"__isSmartRef__":true,"id":5377}},"8354":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":8355}},"8355":{"isSerializedDate":true,"string":"Mon Sep 26 2011 23:16:48 GMT+0200 (CEST)"},"8356":{"varMapping":{"__isSmartRef__":true,"id":8357},"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":8358},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8357":{"this":{"__isSmartRef__":true,"id":5377}},"8358":{"timestamp":{"__isSmartRef__":true,"id":8359},"user":"lauritz","tags":[]},"8359":{"isSerializedDate":true,"string":"Thu Jan 05 2012 22:58:11 GMT+0100 (CET)"},"8360":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8361},"id":"6DC0D172-0663-4761-A833-1161461EF6B6","renderContextTable":{"__isSmartRef__":true,"id":8368},"textChunks":[{"__isSmartRef__":true,"id":8369}],"eventHandler":{"__isSmartRef__":true,"id":8371},"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":8372},"priorExtent":{"__isSmartRef__":true,"id":8373},"_MaxTextWidth":285.8398611920343,"_MinTextWidth":285.8398611920343,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"layout":{"__isSmartRef__":true,"id":8374},"doitContext":{"__isSmartRef__":true,"id":5164},"previousSelection":[0,0],"priorSelectionRange":[19,19],"charsReplaced":"typeof(this)","lastFindLoc":12,"__SourceModuleName__":"Global.lively.morphic.TextCore","prevScroll":[0,0],"isBeingDragged":false,"showsHalos":false,"name":"Workspace","owner":{"__isSmartRef__":true,"id":5376},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"distanceToDragEvent":{"__isSmartRef__":true,"id":8375},"isCopyMorphRef":true,"morphRefId":1,"scriptAnnotations":{"__isSmartRef__":true,"id":8376},"lastDragTime":1317079672221,"derivationIds":[372,"3BBD270B-A828-436A-915C-D23688CF2067","D0890AA7-6E65-4B35-9600-1AD66DF96797","243534E4-AE49-45EC-9DB9-384D7DE4B994","251CC01A-7FDF-4357-9313-99DE732BDF7B","49FB5C89-127F-411D-9E7D-74274AFC6322","4BCE87D8-39F3-4B7F-A78F-10398B72A854"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8379},"__LivelyClassName__":"lively.morphic.Text"},"8361":{"_Position":{"__isSmartRef__":true,"id":8362},"renderContextTable":{"__isSmartRef__":true,"id":8363},"_Extent":{"__isSmartRef__":true,"id":8364},"_ClipMode":"auto","_Padding":{"__isSmartRef__":true,"id":8365},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":8366},"_Fill":{"__isSmartRef__":true,"id":8367},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderRadius":4,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"8362":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8363":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8364":{"x":290.8398611920343,"y":81.00200300400502,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8365":{"x":3,"y":3,"width":-3,"height":-3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"8366":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"8367":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8368":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"8369":{"style":{"__isSmartRef__":true,"id":8370},"chunkOwner":{"__isSmartRef__":true,"id":8360},"storedString":"this.setExtent(pt(200,200))","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8370":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"8371":{"morph":{"__isSmartRef__":true,"id":8360},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"8372":{"x":10,"y":308.4698859496224,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8373":{"x":290.8398611920343,"y":81.00200300400502,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8374":{"resizeWidth":true,"resizeHeight":false,"moveVertical":true,"adjustForNewBounds":true},"8375":{"x":164.35052570087606,"y":-17.252879506132672,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8376":{"reset":{"__isSmartRef__":true,"id":8377}},"8377":{"time":{"__isSmartRef__":true,"id":8378},"user":"lauritz"},"8378":{"isSerializedDate":true,"string":"Tue Nov 15 2011 23:03:51 GMT+0100 (CET)"},"8379":{"reset":{"__isSmartRef__":true,"id":8380}},"8380":{"varMapping":{"__isSmartRef__":true,"id":8381},"source":"function reset() {\n this.doitContext = null;\n this.setTextString(\"\");\n}","funcProperties":{"__isSmartRef__":true,"id":8382},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8381":{"this":{"__isSmartRef__":true,"id":8360}},"8382":{},"8383":{"position":{"__isSmartRef__":true,"id":8384},"_Extent":{"__isSmartRef__":true,"id":8385},"_BorderWidth":1.4500000000000002,"_BorderColor":{"__isSmartRef__":true,"id":8386},"_Fill":{"__isSmartRef__":true,"id":8387},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":8388},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8389},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"8384":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8385":{"x":310.8398611920343,"y":399.4718889536274,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8386":{"r":0.372,"g":0.369,"b":0.372,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"8387":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8388":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8389":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"8390":{"x":0,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8391":{"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":8392}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"8392":{"date":{"__isSmartRef__":true,"id":8393},"author":"lauritz","message":"Disabled grabbing and dragging on other submorphs as well..."},"8393":{"isSerializedDate":true,"string":"Tue Oct 25 2011 20:21:08 GMT+0200 (CEST)"},"8394":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8395":{"morph":{"__isSmartRef__":true,"id":5376},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"8396":{"x":306.8398611920343,"y":397.4718889536274,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8397":{"x":212.32023310549857,"y":-12.472093186624761,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8398":{"resizeWidth":true,"resizeHeight":true,"adjustForNewBounds":true,"layouter":{"__isSmartRef__":true,"id":8399}},"8399":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":10,"spacing":15,"container":{"__isSmartRef__":true,"id":5376},"__SourceModuleName__":"Global.lively.morphic.Layout","__LivelyClassName__":"lively.morphic.Layout.VerticalLayout"},"8400":{"reset":{"__isSmartRef__":true,"id":8401},"moveFocusTo":{"__isSmartRef__":true,"id":8405},"explore":{"__isSmartRef__":true,"id":8409},"toggleAll":{"__isSmartRef__":true,"id":8413}},"8401":{"varMapping":{"__isSmartRef__":true,"id":8402},"source":"function reset() {\n this.workspace.reset();\n this.treeView.reset();\n this.focusedNode = null;\n}","funcProperties":{"__isSmartRef__":true,"id":8403},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8402":{"this":{"__isSmartRef__":true,"id":5376}},"8403":{"timestamp":{"__isSmartRef__":true,"id":8404},"user":"lauritz","tags":[]},"8404":{"isSerializedDate":true,"string":"Wed Sep 21 2011 01:48:08 GMT+0200 (CEST)"},"8405":{"varMapping":{"__isSmartRef__":true,"id":8406},"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":8407},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8406":{"this":{"__isSmartRef__":true,"id":5376}},"8407":{"timestamp":{"__isSmartRef__":true,"id":8408},"user":"lauritz","tags":[]},"8408":{"isSerializedDate":true,"string":"Tue Dec 13 2011 23:21:02 GMT+0100 (CET)"},"8409":{"varMapping":{"__isSmartRef__":true,"id":8410},"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":8411},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8410":{"this":{"__isSmartRef__":true,"id":5376}},"8411":{"timestamp":{"__isSmartRef__":true,"id":8412},"user":"lauritz","tags":[]},"8412":{"isSerializedDate":true,"string":"Tue Dec 13 2011 23:21:07 GMT+0100 (CET)"},"8413":{"varMapping":{"__isSmartRef__":true,"id":8414},"source":"function toggleAll() {\n this.treeView.toggleAll();\n}","funcProperties":{"__isSmartRef__":true,"id":8415},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8414":{"this":{"__isSmartRef__":true,"id":5376}},"8415":{"timestamp":{"__isSmartRef__":true,"id":8416},"user":"lauritz","tags":[]},"8416":{"isSerializedDate":true,"string":"Thu Jan 05 2012 22:40:54 GMT+0100 (CET)"},"8417":{"submorphs":[],"scripts":[],"id":"80024D9D-48D2-48B3-A609-E51C75F72383","shape":{"__isSmartRef__":true,"id":8418},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":8425},"showsHalos":false,"name":"ResizeCorner3","partsBinMetaInfo":{"__isSmartRef__":true,"id":8426},"__SourceModuleName__":"Global.lively.morphic.Core","__layered_draggingEnabled__":true,"dragStartPoint":null,"originalExtent":{"__isSmartRef__":true,"id":8427},"originalTargetExtent":null,"renderContextTable":{"__isSmartRef__":true,"id":8428},"eventHandler":{"__isSmartRef__":true,"id":8429},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"owner":{"__isSmartRef__":true,"id":5375},"priorExtent":{"__isSmartRef__":true,"id":8430},"distanceToDragEvent":{"__isSmartRef__":true,"id":8431},"derivationIds":[373,"EE44AF79-9BA3-4128-9A82-23CA02A35CBA","2DF62558-574F-4341-A678-C082E7B62474","0B40BDFA-37E3-4097-9157-BE8CCF94B0A1","3600D2AA-3070-493B-839E-BF41427E5A08","B8F4C02B-011E-483E-A3AB-BE57DC9B1FBE","4C05283E-F381-40A9-9AEF-6D6D233F85FF"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8432},"__LivelyClassName__":"lively.morphic.Box"},"8418":{"position":{"__isSmartRef__":true,"id":8419},"_Extent":{"__isSmartRef__":true,"id":8420},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":8421},"_Fill":{"__isSmartRef__":true,"id":8422},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":8423},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8424},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"8419":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8420":{"x":10,"y":10,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8421":{"r":0.568,"g":0.568,"b":0.568,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"8422":{"r":0.258,"g":0.258,"b":0.258,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8423":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8424":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"8425":{"x":300.49672894514134,"y":409.92138184230294,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8426":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"8427":{"x":239,"y":138,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8428":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8429":{"morph":{"__isSmartRef__":true,"id":8417},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"8430":{"x":10,"y":10,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8431":{"x":33.337083585580785,"y":-5.721794364406264,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8432":{"onDrag":{"__isSmartRef__":true,"id":8433},"onDragEnd":{"__isSmartRef__":true,"id":8440},"onDragStart":{"__isSmartRef__":true,"id":8447}},"8433":{"varMapping":{"__isSmartRef__":true,"id":8434},"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":8439},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8434":{"this":{"__isSmartRef__":true,"id":8417},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8435}},"8435":{"$super":{"__isSmartRef__":true,"id":8436}},"8436":{"varMapping":{"__isSmartRef__":true,"id":8437},"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":8438},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8437":{"obj":{"__isSmartRef__":true,"id":8417},"name":"onDrag"},"8438":{},"8439":{},"8440":{"varMapping":{"__isSmartRef__":true,"id":8441},"source":"function onDragEnd(evt) {\n\tthis.dragStartPoint = null;\n\tthis.originalTargetExtent = null;\n}","funcProperties":{"__isSmartRef__":true,"id":8446},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8441":{"this":{"__isSmartRef__":true,"id":8417},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8442}},"8442":{"$super":{"__isSmartRef__":true,"id":8443}},"8443":{"varMapping":{"__isSmartRef__":true,"id":8444},"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":8445},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8444":{"obj":{"__isSmartRef__":true,"id":8417},"name":"onDragEnd"},"8445":{},"8446":{},"8447":{"varMapping":{"__isSmartRef__":true,"id":8448},"source":"function onDragStart(evt) {\n\tthis.dragStartPoint = evt.mousePoint;\n\tthis.originalTargetExtent = this.owner.getExtent();\n}","funcProperties":{"__isSmartRef__":true,"id":8453},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8448":{"this":{"__isSmartRef__":true,"id":8417},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8449}},"8449":{"$super":{"__isSmartRef__":true,"id":8450}},"8450":{"varMapping":{"__isSmartRef__":true,"id":8451},"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":8452},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8451":{"obj":{"__isSmartRef__":true,"id":8417},"name":"onDragStart"},"8452":{},"8453":{},"8454":{"submorphs":[{"__isSmartRef__":true,"id":8455},{"__isSmartRef__":true,"id":8469},{"__isSmartRef__":true,"id":8516},{"__isSmartRef__":true,"id":8551}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8587},"id":"A8A05F45-4D82-474C-B74E-6BD28C78E12B","renderContextTable":{"__isSmartRef__":true,"id":8593},"eventHandler":{"__isSmartRef__":true,"id":8594},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":8595},"_Position":{"__isSmartRef__":true,"id":8596},"windowMorph":{"__isSmartRef__":true,"id":5375},"label":{"__isSmartRef__":true,"id":8455},"closeButton":{"__isSmartRef__":true,"id":8469},"menuButton":{"__isSmartRef__":true,"id":8516},"collapseButton":{"__isSmartRef__":true,"id":8551},"priorExtent":{"__isSmartRef__":true,"id":8597},"owner":{"__isSmartRef__":true,"id":5375},"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"prevScroll":[0,0],"derivationIds":[374,"CFE848EF-BE01-4E69-BBD0-796826FDBA2C","27B1F973-A4A1-49ED-8194-15A2125092E5","1AAC1E25-BFD3-4949-82B7-CA49C7FE30CC","AAFC6ADC-565B-42D5-B95A-49BB4FAE6F07","AA057279-ADDD-4D59-9A0A-E86FD7D21BE6","8EADAC43-54B0-4FAC-AF1C-A0D8FDD9E3CA"],"__LivelyClassName__":"lively.morphic.TitleBar"},"8455":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8456},"id":"4B88C53E-38E8-4CF6-921F-694C0EEAFE2F","renderContextTable":{"__isSmartRef__":true,"id":8462},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":8463}],"eventHandler":{"__isSmartRef__":true,"id":8465},"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":8466},"_Align":"center","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":8454},"priorExtent":{"__isSmartRef__":true,"id":8467},"_MaxTextWidth":251.49672894514134,"_MinTextWidth":251.49672894514134,"_MaxTextHeight":null,"_MinTextHeight":null,"_Position":{"__isSmartRef__":true,"id":8468},"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.TextCore","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[375,"73673BCB-A91C-4ECA-A36D-D85A24B4F4A3","2EE1A4B9-842D-4C63-ABEA-21DC74163CEE","3F973521-D5D9-4B44-BCF8-822B923644E8","F50BD739-1DA1-4EB3-9653-7B3145EA8817","A7AE88A1-BD5C-4F03-9E65-373F047B2C25","F8F2EE4C-88F2-4D50-ABC7-1F747DC646BB"],"__LivelyClassName__":"lively.morphic.Text"},"8456":{"_Position":{"__isSmartRef__":true,"id":8457},"renderContextTable":{"__isSmartRef__":true,"id":8458},"_Extent":{"__isSmartRef__":true,"id":8459},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":8460},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":8461},"_Fill":null,"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"8457":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8458":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8459":{"x":251.49672894514134,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8460":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"8461":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"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","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"8463":{"style":{"__isSmartRef__":true,"id":8464},"chunkOwner":{"__isSmartRef__":true,"id":8455},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"Explorer","__LivelyClassName__":"lively.morphic.TextChunk"},"8464":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"8465":{"morph":{"__isSmartRef__":true,"id":8455},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"8466":{"resizeWidth":true},"8467":{"x":251.49672894514134,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8468":{"x":20,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8469":{"submorphs":[{"__isSmartRef__":true,"id":8470}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8482},"id":"4471CF2A-DB28-493D-B10A-3630E373B36A","renderContextTable":{"__isSmartRef__":true,"id":8498},"eventHandler":{"__isSmartRef__":true,"id":8499},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"_Position":{"__isSmartRef__":true,"id":8500},"priorExtent":{"__isSmartRef__":true,"id":8501},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":8488},"lighterFill":{"__isSmartRef__":true,"id":8502},"label":{"__isSmartRef__":true,"id":8470},"owner":{"__isSmartRef__":true,"id":8454},"layout":{"__isSmartRef__":true,"id":8511},"attributeConnections":[{"__isSmartRef__":true,"id":8512},{"__isSmartRef__":true,"id":8514}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","derivationIds":[376,"C3AC01F3-7977-4D0A-A42C-700DE29F8F8E","A9533421-3987-49B1-B8FE-11D3B48B77B3","EC79C6DC-0809-4378-8061-032B4DD2D496","4DB70E9E-760D-401A-9BAD-25367B78CF72","1DC03620-BC8A-47EC-978A-2036FF929A8A","B048691C-3D91-4A6E-B21D-2AF0EB3E85C7"],"__LivelyClassName__":"lively.morphic.WindowControl"},"8470":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8471},"id":"0734CD03-1DBE-4F33-9A85-43933372836F","renderContextTable":{"__isSmartRef__":true,"id":8476},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":8477}],"eventHandler":{"__isSmartRef__":true,"id":8479},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_Position":{"__isSmartRef__":true,"id":8480},"priorExtent":{"__isSmartRef__":true,"id":8481},"_MaxTextWidth":17,"_MinTextWidth":17,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":8469},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[377,"C621D837-4DB4-4C83-A8C9-1C995944A45D","BCB8C9A6-BD1A-49F5-8BDD-7C6C8BFB840C","9AA4F44C-9D66-4990-B0E2-2998FC750C65","E136552C-1013-430B-8229-122AA2720D75","D343D9D5-BB6B-471C-89FD-977D04A54C18","198CEAEE-A3BF-4CED-8D10-C86583D458D7"],"__LivelyClassName__":"lively.morphic.Text"},"8471":{"_Position":{"__isSmartRef__":true,"id":8472},"renderContextTable":{"__isSmartRef__":true,"id":8473},"_Extent":{"__isSmartRef__":true,"id":8474},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":8475},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":8461},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"8472":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8473":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8474":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8475":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"8476":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"8477":{"style":{"__isSmartRef__":true,"id":8478},"chunkOwner":{"__isSmartRef__":true,"id":8470},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"X","__LivelyClassName__":"lively.morphic.TextChunk"},"8478":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"8479":{"morph":{"__isSmartRef__":true,"id":8470},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"8480":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8481":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8482":{"_Position":{"__isSmartRef__":true,"id":8483},"renderContextTable":{"__isSmartRef__":true,"id":8484},"_Extent":{"__isSmartRef__":true,"id":8485},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8486},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":8487},"_Fill":{"__isSmartRef__":true,"id":8488},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"8483":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8484":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8485":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8486":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"8487":{"r":0.7411764705882353,"g":0.7450980392156863,"b":0.7529411764705882,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"8488":{"stops":[{"__isSmartRef__":true,"id":8489},{"__isSmartRef__":true,"id":8491},{"__isSmartRef__":true,"id":8493},{"__isSmartRef__":true,"id":8495}],"vector":{"__isSmartRef__":true,"id":8497},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"8489":{"offset":0,"color":{"__isSmartRef__":true,"id":8490}},"8490":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"8491":{"offset":0.4,"color":{"__isSmartRef__":true,"id":8492}},"8492":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"8493":{"offset":0.6,"color":{"__isSmartRef__":true,"id":8494}},"8494":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"8495":{"offset":1,"color":{"__isSmartRef__":true,"id":8496}},"8496":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"8497":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"8498":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8499":{"morph":{"__isSmartRef__":true,"id":8469},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"8500":{"x":290.49672894514134,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8501":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8502":{"stops":[{"__isSmartRef__":true,"id":8503},{"__isSmartRef__":true,"id":8505},{"__isSmartRef__":true,"id":8507},{"__isSmartRef__":true,"id":8509}],"vector":{"__isSmartRef__":true,"id":8497},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"8503":{"offset":0,"color":{"__isSmartRef__":true,"id":8504}},"8504":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"8505":{"offset":0.4,"color":{"__isSmartRef__":true,"id":8506}},"8506":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"8507":{"offset":0.6,"color":{"__isSmartRef__":true,"id":8508}},"8508":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"8509":{"offset":1,"color":{"__isSmartRef__":true,"id":8510}},"8510":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"8511":{"moveHorizontal":true},"8512":{"sourceObj":{"__isSmartRef__":true,"id":8469},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":5375},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":8513},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"8513":{"source":{"__isSmartRef__":true,"id":8469},"target":{"__isSmartRef__":true,"id":5375}},"8514":{"sourceObj":{"__isSmartRef__":true,"id":8469},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":5375},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":8515},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"8515":{"source":{"__isSmartRef__":true,"id":8469},"target":{"__isSmartRef__":true,"id":5375}},"8516":{"submorphs":[{"__isSmartRef__":true,"id":8517}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8529},"id":"7DCF738D-CA9A-40B7-B05B-3D1AEAB9427D","renderContextTable":{"__isSmartRef__":true,"id":8534},"eventHandler":{"__isSmartRef__":true,"id":8535},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"_Position":{"__isSmartRef__":true,"id":8536},"priorExtent":{"__isSmartRef__":true,"id":8537},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":8488},"lighterFill":{"__isSmartRef__":true,"id":8538},"label":{"__isSmartRef__":true,"id":8517},"owner":{"__isSmartRef__":true,"id":8454},"attributeConnections":[{"__isSmartRef__":true,"id":8547},{"__isSmartRef__":true,"id":8549}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","prevScroll":[0,0],"derivationIds":[378,"FF4FE4CA-DFFC-40C6-A1E8-32667E37F3EC","A8A6A338-D618-4672-AFA8-914FD7C2A19E","85D2A7A2-F0B5-45CD-BB83-E6F60E8B681C","535E0653-E19D-4F22-952A-34C8EDED44E9","977A1381-981C-4500-B887-78143DE21406","62DA4EDF-FBE4-4D01-834D-C3E763CF55DE"],"__LivelyClassName__":"lively.morphic.WindowControl"},"8517":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8518},"id":"C214B7BC-A03B-4912-8BDC-67309C0CDE54","renderContextTable":{"__isSmartRef__":true,"id":8523},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":8524}],"eventHandler":{"__isSmartRef__":true,"id":8526},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_Position":{"__isSmartRef__":true,"id":8527},"priorExtent":{"__isSmartRef__":true,"id":8528},"_MaxTextWidth":17,"_MinTextWidth":17,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":8516},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"prevScroll":[0,0],"derivationIds":[379,"9C08820E-6B60-44C2-9150-BD546391671F","36F5662C-375A-4549-B94E-F150DCBCE3F8","030ACD5E-7567-45E7-928D-24821846DBD3","B1DB7B8C-99F5-44D9-8312-ADD58545154E","9037A2C8-C56D-4C9B-B2B6-FFEBD4CFC0B0","353D5A24-E404-457D-93C4-BC195B094724"],"__LivelyClassName__":"lively.morphic.Text"},"8518":{"_Position":{"__isSmartRef__":true,"id":8519},"renderContextTable":{"__isSmartRef__":true,"id":8520},"_Extent":{"__isSmartRef__":true,"id":8521},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":8522},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":8461},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"8519":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8520":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8521":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8522":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"8523":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"8524":{"style":{"__isSmartRef__":true,"id":8525},"chunkOwner":{"__isSmartRef__":true,"id":8517},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"M","__LivelyClassName__":"lively.morphic.TextChunk"},"8525":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"8526":{"morph":{"__isSmartRef__":true,"id":8517},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"8527":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8528":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8529":{"_Position":{"__isSmartRef__":true,"id":8530},"renderContextTable":{"__isSmartRef__":true,"id":8531},"_Extent":{"__isSmartRef__":true,"id":8532},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8533},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":8487},"_Fill":{"__isSmartRef__":true,"id":8488},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"8530":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8531":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8532":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8533":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"8534":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8535":{"morph":{"__isSmartRef__":true,"id":8516},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"8536":{"x":3,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8537":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8538":{"stops":[{"__isSmartRef__":true,"id":8539},{"__isSmartRef__":true,"id":8541},{"__isSmartRef__":true,"id":8543},{"__isSmartRef__":true,"id":8545}],"vector":{"__isSmartRef__":true,"id":8497},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"8539":{"offset":0,"color":{"__isSmartRef__":true,"id":8540}},"8540":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"8541":{"offset":0.4,"color":{"__isSmartRef__":true,"id":8542}},"8542":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"8543":{"offset":0.6,"color":{"__isSmartRef__":true,"id":8544}},"8544":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"8545":{"offset":1,"color":{"__isSmartRef__":true,"id":8546}},"8546":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"8547":{"sourceObj":{"__isSmartRef__":true,"id":8516},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":5375},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":8548},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"8548":{"source":{"__isSmartRef__":true,"id":8516},"target":{"__isSmartRef__":true,"id":5375}},"8549":{"sourceObj":{"__isSmartRef__":true,"id":8516},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":5375},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":8550},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"8550":{"source":{"__isSmartRef__":true,"id":8516},"target":{"__isSmartRef__":true,"id":5375}},"8551":{"submorphs":[{"__isSmartRef__":true,"id":8552}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8564},"id":"6F79406B-1B11-45BD-AA6B-B63E5D7004C1","renderContextTable":{"__isSmartRef__":true,"id":8569},"eventHandler":{"__isSmartRef__":true,"id":8570},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"_Position":{"__isSmartRef__":true,"id":8571},"priorExtent":{"__isSmartRef__":true,"id":8572},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":8488},"lighterFill":{"__isSmartRef__":true,"id":8573},"label":{"__isSmartRef__":true,"id":8552},"owner":{"__isSmartRef__":true,"id":8454},"layout":{"__isSmartRef__":true,"id":8582},"attributeConnections":[{"__isSmartRef__":true,"id":8583},{"__isSmartRef__":true,"id":8585}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","derivationIds":[380,"B603C6F6-E6E9-4618-BF46-1521ADDE21FE","7D67707D-A36A-46C7-AF4E-DBA063259CD8","0CE8DB38-9500-4B3D-BA30-191E72ABDE7C","9C2B6C81-CB1C-4AD9-941A-5307CCDA74CC","27DE4ECD-BBB4-4CA2-9C13-DBE49DE7A744","B9D13F17-7AA4-44BC-AA55-FF1F6DB50D8C"],"__LivelyClassName__":"lively.morphic.WindowControl"},"8552":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8553},"id":"0C1C09FB-5072-4FCC-8694-4C695B238711","renderContextTable":{"__isSmartRef__":true,"id":8558},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":8559}],"eventHandler":{"__isSmartRef__":true,"id":8561},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_Position":{"__isSmartRef__":true,"id":8562},"priorExtent":{"__isSmartRef__":true,"id":8563},"_MaxTextWidth":17,"_MinTextWidth":17,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":8551},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[381,"B48F0AA9-A9AE-4316-865F-D969FFFD4C87","3CE2E949-41E5-4680-ADB0-8AF865F87CA7","C865C749-7005-416E-B5A2-0FB224AB308E","CAED6589-594E-438B-ADB7-264F9B9D92B0","A391E593-03B1-4FDA-B6B3-978336437357","40913CEC-D4ED-4CA1-97B2-858D96CDC1F3"],"__LivelyClassName__":"lively.morphic.Text"},"8553":{"_Position":{"__isSmartRef__":true,"id":8554},"renderContextTable":{"__isSmartRef__":true,"id":8555},"_Extent":{"__isSmartRef__":true,"id":8556},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":8557},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":8461},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"8554":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8555":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8556":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8557":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"8558":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"8559":{"style":{"__isSmartRef__":true,"id":8560},"chunkOwner":{"__isSmartRef__":true,"id":8552},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"–","__LivelyClassName__":"lively.morphic.TextChunk"},"8560":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"8561":{"morph":{"__isSmartRef__":true,"id":8552},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"8562":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8563":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8564":{"_Position":{"__isSmartRef__":true,"id":8565},"renderContextTable":{"__isSmartRef__":true,"id":8566},"_Extent":{"__isSmartRef__":true,"id":8567},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8568},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":8487},"_Fill":{"__isSmartRef__":true,"id":8488},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"8565":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8566":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8567":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8568":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"8569":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8570":{"morph":{"__isSmartRef__":true,"id":8551},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"8571":{"x":271.49672894514134,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8572":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8573":{"stops":[{"__isSmartRef__":true,"id":8574},{"__isSmartRef__":true,"id":8576},{"__isSmartRef__":true,"id":8578},{"__isSmartRef__":true,"id":8580}],"vector":{"__isSmartRef__":true,"id":8497},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"8574":{"offset":0,"color":{"__isSmartRef__":true,"id":8575}},"8575":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"8576":{"offset":0.4,"color":{"__isSmartRef__":true,"id":8577}},"8577":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"8578":{"offset":0.6,"color":{"__isSmartRef__":true,"id":8579}},"8579":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"8580":{"offset":1,"color":{"__isSmartRef__":true,"id":8581}},"8581":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"8582":{"moveHorizontal":true},"8583":{"sourceObj":{"__isSmartRef__":true,"id":8551},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":5375},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":8584},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"8584":{"source":{"__isSmartRef__":true,"id":8551},"target":{"__isSmartRef__":true,"id":5375}},"8585":{"sourceObj":{"__isSmartRef__":true,"id":8551},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":5375},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":8586},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"8586":{"source":{"__isSmartRef__":true,"id":8551},"target":{"__isSmartRef__":true,"id":5375}},"8587":{"_Position":{"__isSmartRef__":true,"id":8588},"renderContextTable":{"__isSmartRef__":true,"id":8589},"_Extent":{"__isSmartRef__":true,"id":8590},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8591},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":8592},"_Fill":{"__isSmartRef__":true,"id":2810},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","_Opacity":1,"_BorderStyle":"solid","__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"8588":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8589":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8590":{"x":310.49672894514134,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8591":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"8592":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"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"},"8594":{"morph":{"__isSmartRef__":true,"id":8454},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"8595":{"resizeWidth":true,"adjustForNewBounds":true},"8596":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8597":{"x":310.49672894514134,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8598":{"renderContextTable":{"__isSmartRef__":true,"id":8599},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8600},"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_Extent":{"__isSmartRef__":true,"id":8601},"__SourceModuleName__":"Global.lively.morphic.Shapes","_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"8599":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8600":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"8601":{"x":310.49672894514134,"y":419.92138184230294,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8602":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8603":{"morph":{"__isSmartRef__":true,"id":5375},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"8604":{"adjustForNewBounds":true},"8605":{"x":1520.3877838765295,"y":2397.5776954539074,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8606":{"x":310.49672894514134,"y":419.92138184230294,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8607":{"x":0,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8608":{"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":8609},{"__isSmartRef__":true,"id":8611},{"__isSmartRef__":true,"id":8613},{"__isSmartRef__":true,"id":8615},{"__isSmartRef__":true,"id":8617},{"__isSmartRef__":true,"id":8619},{"__isSmartRef__":true,"id":8621},{"__isSmartRef__":true,"id":8623},{"__isSmartRef__":true,"id":8625},{"__isSmartRef__":true,"id":8627},{"__isSmartRef__":true,"id":8629},{"__isSmartRef__":true,"id":8631},{"__isSmartRef__":true,"id":8633},{"__isSmartRef__":true,"id":8635},{"__isSmartRef__":true,"id":8637},{"__isSmartRef__":true,"id":8639},{"__isSmartRef__":true,"id":8641},{"__isSmartRef__":true,"id":8643},{"__isSmartRef__":true,"id":8645},{"__isSmartRef__":true,"id":8647},{"__isSmartRef__":true,"id":8649},{"__isSmartRef__":true,"id":8651}],"revisionOnLoad":148785,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"8609":{"date":{"__isSmartRef__":true,"id":8610},"author":"lauritz","message":"","id":"41FC1B0F-23FC-4454-A424-F141A1C09663"},"8610":{"isSerializedDate":true,"string":"Thu Jan 05 2012 22:46:05 GMT+0100 (CET)"},"8611":{"date":{"__isSmartRef__":true,"id":8612},"author":"lauritz","message":"added >>expandAllNodes() which can expand complete trees, but not graphs.","id":"60178F3F-BA87-45A8-BD26-CF776AC017A7"},"8612":{"isSerializedDate":true,"string":"Thu Jan 05 2012 22:33:39 GMT+0100 (CET)"},"8613":{"date":{"__isSmartRef__":true,"id":8614},"author":"lauritz","message":"decreased width a bit","id":"837B2170-C0B8-4FA1-99D3-D6A1EB465519"},"8614":{"isSerializedDate":true,"string":"Sat Dec 03 2011 00:36:19 GMT+0100 (CET)"},"8615":{"date":{"__isSmartRef__":true,"id":8616},"author":"lauritz","message":"made expanding loop asynchronous","id":"5DFF88BC-08E6-43BD-B5B1-A9E8C93C7B19"},"8616":{"isSerializedDate":true,"string":"Wed Nov 30 2011 23:23:19 GMT+0100 (CET)"},"8617":{"date":{"__isSmartRef__":true,"id":8618},"author":"lauritz","message":"corrected toggling","id":"BFC57057-2596-42D0-89A1-811C34FCF5E1"},"8618":{"isSerializedDate":true,"string":"Tue Nov 22 2011 22:44:25 GMT+0100 (CET)"},"8619":{"date":{"__isSmartRef__":true,"id":8620},"author":"lauritz","message":"set a minimal extent","id":"D1DCDCB8-84EE-48D9-8AAE-3926E9D97D30"},"8620":{"isSerializedDate":true,"string":"Tue Nov 15 2011 23:39:16 GMT+0100 (CET)"},"8621":{"date":{"__isSmartRef__":true,"id":8622},"author":"lauritz","message":"convenience preset by default: tree is expanded, workspace says \"this\"","id":"D364A417-6014-4266-8DF3-CEA313F15793"},"8622":{"isSerializedDate":true,"string":"Tue Nov 15 2011 23:18:29 GMT+0100 (CET)"},"8623":{"date":{"__isSmartRef__":true,"id":8624},"author":"lauritz","message":"Disabled grabbing and dragging on other morphs as well."},"8624":{"isSerializedDate":true,"string":"Tue Oct 25 2011 20:23:10 GMT+0200 (CEST)"},"8625":{"date":{"__isSmartRef__":true,"id":8626},"author":"lauritz","message":"Disabled dragging and grabbing on tree nodes. Those should only be clickable."},"8626":{"isSerializedDate":true,"string":"Tue Oct 25 2011 19:25:14 GMT+0200 (CEST)"},"8627":{"date":{"__isSmartRef__":true,"id":8628},"author":"lauritz","message":"Fixed a bug by adding a condition to getClassNameOf. In case an object has no constructor."},"8628":{"isSerializedDate":true,"string":"Tue Oct 25 2011 22:37:11 GMT+0200 (CEST)"},"8629":{"date":{"__isSmartRef__":true,"id":8630},"author":"jenslincke","message":"reset scales","id":"5E64592A-C360-44DD-BDAE-AD956FBA7675"},"8630":{"isSerializedDate":true,"string":"Fri Oct 28 2011 16:11:21 GMT+0200 (CEST)"},"8631":{"date":{"__isSmartRef__":true,"id":8632},"author":"jenslincke","message":"bring resize corner to front","id":"765AA8A1-AA38-433A-B800-FFF743B3B9EF"},"8632":{"isSerializedDate":true,"string":"Thu Nov 03 2011 16:10:26 GMT+0100 (CET)"},"8633":{"date":{"__isSmartRef__":true,"id":8634},"author":"lauritz","message":"layout changes","id":"F09F5196-5203-405A-8EC3-1648A100FFF5"},"8634":{"isSerializedDate":true,"string":"Fri Nov 18 2011 23:54:38 GMT+0100 (CET)"},"8635":{"date":{"__isSmartRef__":true,"id":8636},"author":"lauritz","message":"corrected the order of array elements","id":"B41E19A0-DDED-40DC-BD23-6AB94F76D76D"},"8636":{"isSerializedDate":true,"string":"Tue Nov 22 2011 23:44:29 GMT+0100 (CET)"},"8637":{"date":{"__isSmartRef__":true,"id":8638},"author":"fbo","message":"fix Date bug","id":"64EDCB63-EB39-477E-A73D-E066101A8B21"},"8638":{"isSerializedDate":true,"string":"Sat Dec 03 2011 00:07:10 GMT+0100 (CET)"},"8639":{"date":{"__isSmartRef__":true,"id":8640},"author":"lauritz","message":"significantly reduced a performance problem regarding \"long\" string properties, doesnt freeze anymore.","id":"EA85DB22-3FD3-4D13-B769-763C4483C445"},"8640":{"isSerializedDate":true,"string":"Tue Dec 06 2011 00:55:19 GMT+0100 (CET)"},"8641":{"date":{"__isSmartRef__":true,"id":8642},"author":"lauritz","message":"clicking a node no longer resets the workspace content","id":"C8AE0678-08F5-4FFB-9662-77D7120DA285"},"8642":{"isSerializedDate":true,"string":"Tue Dec 13 2011 23:22:10 GMT+0100 (CET)"},"8643":{"date":{"__isSmartRef__":true,"id":8644},"author":"lauritz","message":"renamed >>#expandAllNodes to >>#toggleAll","id":"D9931ABA-396B-4C81-9C7E-7C2712405803"},"8644":{"isSerializedDate":true,"string":"Thu Jan 05 2012 22:41:44 GMT+0100 (CET)"},"8645":{"date":{"__isSmartRef__":true,"id":8646},"author":"lauritz","message":"asynchronous >>#toggleAll, because toggling is actually asynchronous and rendering as well...","id":"3B15F99C-CFD6-41FA-9778-D2BFBBD53B8D"},"8646":{"isSerializedDate":true,"string":"Thu Jan 05 2012 22:58:54 GMT+0100 (CET)"},"8647":{"date":{"__isSmartRef__":true,"id":8648},"author":"lauritz","message":"cleaned up how all typeof stuff","id":"98CD54B3-3527-4C4C-8577-A0B7476D8718"},"8648":{"isSerializedDate":true,"string":"Fri Jan 27 2012 02:31:53 GMT+0100 (CET)"},"8649":{"date":{"__isSmartRef__":true,"id":8650},"author":"lauritz","message":"","id":"183BD443-7A32-4E3B-8F6B-96473B0C4CB7"},"8650":{"isSerializedDate":true,"string":"Fri Jan 27 2012 02:35:42 GMT+0100 (CET)"},"8651":{"date":{"__isSmartRef__":true,"id":8652},"author":"jenslincke","message":"style tweak","id":"C366B53C-40DC-445D-B882-F5F147CD349F"},"8652":{"isSerializedDate":true,"string":"Mon Jan 30 2012 14:04:58 GMT+0100 (CET)"},"8653":{"x":1741,"y":2413,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8654":{"x":178,"y":269,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8655":{"explore":{"__isSmartRef__":true,"id":8656},"reset":{"__isSmartRef__":true,"id":8660},"inspect":{"__isSmartRef__":true,"id":8664},"toggleAll":{"__isSmartRef__":true,"id":8668}},"8656":{"varMapping":{"__isSmartRef__":true,"id":8657},"source":"function explore(object) {\n // please see this window's pane, \"ExplorerPane\"\n this.explorer.explore(object);\n}","funcProperties":{"__isSmartRef__":true,"id":8658},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8657":{"this":{"__isSmartRef__":true,"id":5375}},"8658":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":8659}},"8659":{"isSerializedDate":true,"string":"Wed Sep 21 2011 19:25:04 GMT+0200 (CEST)"},"8660":{"varMapping":{"__isSmartRef__":true,"id":8661},"source":"function reset() {\n // please see this window's pane, \"ExplorerPane\"\n this.explorer.reset();\n}","funcProperties":{"__isSmartRef__":true,"id":8662},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8661":{"this":{"__isSmartRef__":true,"id":5375}},"8662":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":8663}},"8663":{"isSerializedDate":true,"string":"Wed Sep 21 2011 19:25:04 GMT+0200 (CEST)"},"8664":{"varMapping":{"__isSmartRef__":true,"id":8665},"source":"function inspect(object) {\n // alias for explore\n this.explore(object);\n}","funcProperties":{"__isSmartRef__":true,"id":8666},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8665":{"this":{"__isSmartRef__":true,"id":5375}},"8666":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":8667}},"8667":{"isSerializedDate":true,"string":"Tue Nov 15 2011 23:04:54 GMT+0100 (CET)"},"8668":{"varMapping":{"__isSmartRef__":true,"id":8669},"source":"function toggleAll() {\n this.explorer.toggleAll();\n}","funcProperties":{"__isSmartRef__":true,"id":8670},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8669":{"this":{"__isSmartRef__":true,"id":5375}},"8670":{"timestamp":{"__isSmartRef__":true,"id":8671},"user":"lauritz","tags":[]},"8671":{"isSerializedDate":true,"string":"Thu Jan 05 2012 22:40:45 GMT+0100 (CET)"},"8672":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":8673},"id":2,"renderContextTable":{"__isSmartRef__":true,"id":8679},"eventHandler":{"__isSmartRef__":true,"id":8680},"droppingEnabled":false,"halosEnabled":false,"_world":{"__isSmartRef__":true,"id":0},"eventsAreIgnored":true,"_HandStyle":"default","_PointerEvents":"none","priorExtent":{"__isSmartRef__":true,"id":8681},"__SourceModuleName__":"Global.lively.morphic.Events","internalClickedOnMorph":{"__isSmartRef__":true,"id":0},"carriesGrabbedMorphs":false,"lastScrollTime":1334672559726,"scrollFocusMorph":{"__isSmartRef__":true,"id":0},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Position":{"__isSmartRef__":true,"id":8682},"_Scale":1,"_Rotation":0,"owner":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.HandMorph","withLayers":["Global.NoMagnetsLayer"]},"8673":{"_Position":{"__isSmartRef__":true,"id":8674},"renderContextTable":{"__isSmartRef__":true,"id":8675},"_Extent":{"__isSmartRef__":true,"id":8676},"_Fill":{"__isSmartRef__":true,"id":8677},"__SourceModuleName__":"Global.lively.morphic.Shapes","_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8678},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"8674":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8675":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8676":{"x":2,"y":2,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8677":{"r":0.8,"g":0,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8678":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"8679":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8680":{"morph":{"__isSmartRef__":true,"id":8672},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"8681":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8682":{"x":1931,"y":2818,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8683":{"_Position":{"__isSmartRef__":true,"id":8684},"renderContextTable":{"__isSmartRef__":true,"id":8685},"_Extent":{"__isSmartRef__":true,"id":8686},"_Fill":{"__isSmartRef__":true,"id":8687},"__SourceModuleName__":"Global.lively.morphic.Shapes","_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8688},"_Opacity":1,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"8684":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8685":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8686":{"x":3000,"y":4000,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8687":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8688":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"8689":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","setScroll":"setScrollHTML"},"8690":{"morph":{"__isSmartRef__":true,"id":0},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"8691":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8692":{"x":1440,"y":6000,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8693":{"name":"Local code","__LivelyClassName__":"ChangeSet","__SourceModuleName__":"Global.lively.ChangeSet"},"8694":{"submorphs":[{"__isSmartRef__":true,"id":8695}],"scripts":[],"id":"5C7C19FD-471F-4B35-93A3-4B26B1A48B22","shape":{"__isSmartRef__":true,"id":8724},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":8731},"showsHalos":false,"name":"LoadingMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":8732},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":8829},"eventHandler":{"__isSmartRef__":true,"id":8830},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"59692BC3-6C7B-4E23-B820-8699260EA722","486BB935-1313-4103-B2A8-642B19437478","18AFFD44-46CD-489E-B1D6-DED43E2B6B06","2608C892-2204-4981-9A87-8E749F8944AB","5535861F-4EA2-44AB-8A40-0538124E0AAC","16C292B3-86E8-4622-B516-27C48263B8CC","87731A20-D455-44D0-97E5-98A7CFD4E417","A17081E7-E597-47ED-BD32-6E4D206BD7D7","CFB4A44C-BFEA-4584-BCBA-AE2A56739200","76B3DD9B-8D01-42BA-A574-AB99D5F899BB","1EBC5512-8F54-4B24-998C-69A285EC8533","DD1165C7-6C1A-4361-A4AE-FCF6F31152FD","4D6D36E8-48F3-408A-B03C-202E4DC182BD","5F3B3E0F-BBC6-4DDA-BAA0-7EFC05FF2011","E0A6B33B-767A-4532-9021-892414520200","F5F5E2B1-5FF0-4E09-B323-AE88A3920B8D","0C7E832A-A741-430F-B295-8BC181D066FE","472AED3B-CB76-49BD-BF49-354A2D568F86","A7C52F65-D140-4791-880F-F7584C7BB570","3516412B-8B36-4E52-9416-6B7FB358BDC2","1840CACC-078C-4795-AD3F-E9D6F8D557A0","1FEDCA25-0131-46FA-840F-DC5F1B05C6CA","C620CED3-0AE9-4097-9AA7-2706A042F9C9","679A861B-40E0-4DB2-B22F-95B454C6978D","FEF39B3C-E634-4825-BAB8-2D44FE647B03"],"isBeingDragged":false,"priorExtent":{"__isSmartRef__":true,"id":8831},"layout":{"__isSmartRef__":true,"id":8832},"distanceToDragEvent":{"__isSmartRef__":true,"id":8833},"prevScroll":[0,0],"moved":true,"_Rotation":0,"_Scale":1,"headRevision":146469,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8834},"__LivelyClassName__":"lively.morphic.Box"},"8695":{"submorphs":[{"__isSmartRef__":true,"id":8696}],"scripts":[],"shape":{"__isSmartRef__":true,"id":8712},"id":"E6391128-469A-478F-BBB8-0AF1970842C6","renderContextTable":{"__isSmartRef__":true,"id":8717},"eventHandler":{"__isSmartRef__":true,"id":8718},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":8719},"name":"ProgressIndicator","priorExtent":{"__isSmartRef__":true,"id":8720},"showsHalos":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":8721},"partsBinMetaInfo":{"__isSmartRef__":true,"id":8722},"__SourceModuleName__":"Global.lively.morphic.Widgets","derivationIds":[520,"071F18BE-FF28-40F5-ACAD-1916E0D25C38","DF185A10-743D-45FC-B9C2-76E12D908BCF","BF125D2C-596A-4C1E-A5F8-DAE4801E9497","3CEE8CFF-B8F1-4B4B-A405-CB583080252A","D0652878-8F9C-4591-8A82-296898AACDB6","31441DDF-2220-43BE-A99F-69E1FEC68030","14A90039-0D3E-46DC-8445-D42B8E02EB42","681EF5DE-A344-4114-B2F3-B96CE3872524","C0381116-5116-4F33-B082-A411D0E4534E","24E9581E-B008-46EE-9CBC-D5190E100D98","C69D1041-2C5E-48FE-B04C-04E66450658A","4830945B-4FFF-4564-9424-34D7995DAE60","8602C233-B3E7-4682-9B0E-D7549761D934","B4E0E11F-2BED-462E-B708-89D63971856E","EE0144C2-D016-4390-8A67-4E7DEF171C83","F44DF6E4-5F27-440E-AB5F-3721C0A10CA6","73FC6648-DAAF-4673-8CF4-7DA219513F22","B78EB1B5-780C-45F7-B0A7-B988B52B1FF1","DFDB8CD1-72F7-40F4-849B-1F9B866277AB","66111105-B1FC-41F7-BF70-D45118C9E09F","02420416-1E35-4831-AABB-91CD0460CA1A","7C6B2EB2-4510-4A8E-BAFF-5CF0040DD7F5","0503F5A1-1732-4610-9A5A-920D658CA766","07C5AE03-36AD-4849-BACD-27D7D9A2CCF2","9FFF9D73-931C-404C-AA4B-5AC2E7C53504"],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"owner":{"__isSmartRef__":true,"id":8694},"isBeingDragged":false,"layout":{"__isSmartRef__":true,"id":8723},"prevScroll":[0,0],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Image"},"8696":{"submorphs":[],"scripts":[],"id":"EF8B66ED-6136-40BD-9731-2EF66B27F8C5","shape":{"__isSmartRef__":true,"id":8697},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":8703},"_MaxTextWidth":257,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":8700},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"loadedMorphName","partsBinMetaInfo":{"__isSmartRef__":true,"id":8704},"textChunks":[{"__isSmartRef__":true,"id":8705}],"charsReplaced":"MorphName","lastFindLoc":18,"priorSelectionRange":[9,0],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":8707},"renderContextTable":{"__isSmartRef__":true,"id":8708},"eventHandler":{"__isSmartRef__":true,"id":8709},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Padding":{"__isSmartRef__":true,"id":8710},"_ClipMode":"visible","derivationIds":[355,"023045B3-2D6B-4425-89FB-F4806D527BE0","DC0C2365-868C-41AE-8369-51C31E91493E","C6D9D314-86A1-4015-970B-F6787F535E1A","6AA4552E-2E85-447E-9033-99D5AA1A94BC","D94BE49C-8A3E-4F1F-BF28-FEDD9B40D213","AA8F0470-654C-4AA2-8135-4607F5429AC5","E0BAABCC-FFB2-4EDF-BAE5-C63CC99B6A97","1A86AE17-73AE-442E-AB36-DD90C6DFC8BC","EF750075-E964-4CD3-B6A4-161511E1D058","CED69CBF-FFA5-45E7-B333-FBACE4F278AC","E56978C1-7424-4C10-8168-11FD3237B540","D5AB2532-A4DC-42D6-AF17-99CBBCEAA848","245866CB-598A-4172-A3A0-A06D4D26C6AD","43B0F12E-5793-43AA-80E1-496774E0EBA6","1B776A8C-0413-475F-8EBD-120BBD91D2BB","F84F2C9A-8003-4E81-833A-83F48C92F3B8","3124B389-9FA4-4348-BC5D-0DFF9C59CD1B","1A1BCBAC-D7CC-4BAE-B8C2-7C693F7327A1","1CB201BA-5E0B-4771-821A-139FA2AEFBC2","195520FA-4816-47A4-B0F5-BA890AFD9DF9","0D15F28A-24C9-46B7-89C5-6D2354728AC1","316FE9D3-62EC-4FD6-9B0F-FFA622B79575","739F3743-9BE1-48C8-813D-C0BFB0DCACA6","01877B3B-7DA7-4222-B011-7B5F4E501862","B8FE7DEE-9568-4BE6-BA12-EA674BA79E08"],"_WhiteSpaceHandling":"pre-wrap","owner":{"__isSmartRef__":true,"id":8695},"_MinTextWidth":257,"_MinTextHeight":null,"previousSelection":[6,6],"_Align":"center","distanceToDragEvent":{"__isSmartRef__":true,"id":8711},"isBeingDragged":false,"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"8697":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":8698},"_Extent":{"__isSmartRef__":true,"id":8699},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":8700},"renderContextTable":{"__isSmartRef__":true,"id":8701},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8702},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"8698":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8699":{"x":257,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8700":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"8701":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8702":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"8703":{"x":-109,"y":38,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8704":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"comment":"a simple text morph","partName":"Text","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"8705":{"style":{"__isSmartRef__":true,"id":8706},"chunkOwner":{"__isSmartRef__":true,"id":8696},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"loading part","__LivelyClassName__":"lively.morphic.TextChunk"},"8706":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"8707":{"x":257,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8708":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"8709":{"morph":{"__isSmartRef__":true,"id":8696},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"8710":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"8711":{"x":179,"y":-11,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8712":{"_Position":{"__isSmartRef__":true,"id":8713},"renderContextTable":{"__isSmartRef__":true,"id":8714},"_Extent":{"__isSmartRef__":true,"id":8715},"_ImageURL":"data:image/gif;base64,R0lGODlhEAAQAPIAAP///wAAAMLCwkJCQgAAAGJiYoKCgpKSkiH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAAEAAQAAADMwi63P4wyklrE2MIOggZnAdOmGYJRbExwroUmcG2LmDEwnHQLVsYOd2mBzkYDAdKa+dIAAAh+QQJCgAAACwAAAAAEAAQAAADNAi63P5OjCEgG4QMu7DmikRxQlFUYDEZIGBMRVsaqHwctXXf7WEYB4Ag1xjihkMZsiUkKhIAIfkECQoAAAAsAAAAABAAEAAAAzYIujIjK8pByJDMlFYvBoVjHA70GU7xSUJhmKtwHPAKzLO9HMaoKwJZ7Rf8AYPDDzKpZBqfvwQAIfkECQoAAAAsAAAAABAAEAAAAzMIumIlK8oyhpHsnFZfhYumCYUhDAQxRIdhHBGqRoKw0R8DYlJd8z0fMDgsGo/IpHI5TAAAIfkECQoAAAAsAAAAABAAEAAAAzIIunInK0rnZBTwGPNMgQwmdsNgXGJUlIWEuR5oWUIpz8pAEAMe6TwfwyYsGo/IpFKSAAAh+QQJCgAAACwAAAAAEAAQAAADMwi6IMKQORfjdOe82p4wGccc4CEuQradylesojEMBgsUc2G7sDX3lQGBMLAJibufbSlKAAAh+QQJCgAAACwAAAAAEAAQAAADMgi63P7wCRHZnFVdmgHu2nFwlWCI3WGc3TSWhUFGxTAUkGCbtgENBMJAEJsxgMLWzpEAACH5BAkKAAAALAAAAAAQABAAAAMyCLrc/jDKSatlQtScKdceCAjDII7HcQ4EMTCpyrCuUBjCYRgHVtqlAiB1YhiCnlsRkAAAOwAAAAAAAAAAAA==","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__SourceModuleName__":"Global.lively.morphic.Shapes","_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8716},"_BorderWidth":0,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Image"},"8713":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8714":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","setImageURL":"setImageURLHTML","getNativeExtent":"getNativeExtentHTML"},"8715":{"x":31,"y":31,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8716":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"8717":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8718":{"morph":{"__isSmartRef__":true,"id":8695},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"8719":{"x":113.5,"y":81,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8720":{"x":30,"y":31,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8721":{"x":39,"y":-11,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8722":{"partName":"ProgressIndicator","requiredModules":[],"migrationLevel":2,"partsSpaceName":"PartsBin/Widgets/","__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"8723":{"centeredHorizontal":true,"centeredVertical":true},"8724":{"position":{"__isSmartRef__":true,"id":8725},"_Extent":{"__isSmartRef__":true,"id":8726},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":8727},"_Fill":{"__isSmartRef__":true,"id":8728},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":8729},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":8730},"_BorderRadius":8.515,"_Opacity":0.8146,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"8725":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8726":{"x":266,"y":223,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8727":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"8728":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8729":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"8730":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"8731":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8732":{"partsSpaceName":"PartsBin/iPadWidgets","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a placeholder to indicate that a morph is being loaded. It will be replaced by the morph as soon as the requested morph finished loading.","migrationLevel":4,"partName":"LoadingMorph","changes":[{"__isSmartRef__":true,"id":8733},{"__isSmartRef__":true,"id":8735},{"__isSmartRef__":true,"id":8737},{"__isSmartRef__":true,"id":8739},{"__isSmartRef__":true,"id":8741},{"__isSmartRef__":true,"id":8743},{"__isSmartRef__":true,"id":8745},{"__isSmartRef__":true,"id":8747},{"__isSmartRef__":true,"id":8749},{"__isSmartRef__":true,"id":8751},{"__isSmartRef__":true,"id":8753},{"__isSmartRef__":true,"id":8755},{"__isSmartRef__":true,"id":8757},{"__isSmartRef__":true,"id":8759},{"__isSmartRef__":true,"id":8761},{"__isSmartRef__":true,"id":8763},{"__isSmartRef__":true,"id":8765},{"__isSmartRef__":true,"id":8767},{"__isSmartRef__":true,"id":8769},{"__isSmartRef__":true,"id":8771},{"__isSmartRef__":true,"id":8773},{"__isSmartRef__":true,"id":8775},{"__isSmartRef__":true,"id":8777},{"__isSmartRef__":true,"id":8779},{"__isSmartRef__":true,"id":8781},{"__isSmartRef__":true,"id":8783},{"__isSmartRef__":true,"id":8785},{"__isSmartRef__":true,"id":8787},{"__isSmartRef__":true,"id":8789},{"__isSmartRef__":true,"id":8791},{"__isSmartRef__":true,"id":8793},{"__isSmartRef__":true,"id":8795},{"__isSmartRef__":true,"id":8797},{"__isSmartRef__":true,"id":8799},{"__isSmartRef__":true,"id":8801},{"__isSmartRef__":true,"id":8803},{"__isSmartRef__":true,"id":8805},{"__isSmartRef__":true,"id":8807},{"__isSmartRef__":true,"id":8809},{"__isSmartRef__":true,"id":8811},{"__isSmartRef__":true,"id":8813},{"__isSmartRef__":true,"id":8815},{"__isSmartRef__":true,"id":8817},{"__isSmartRef__":true,"id":8819},{"__isSmartRef__":true,"id":8821},{"__isSmartRef__":true,"id":8823},{"__isSmartRef__":true,"id":8825},{"__isSmartRef__":true,"id":8827}],"revisionOnLoad":151069,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"8733":{"date":{"__isSmartRef__":true,"id":8734},"author":"sstamm","message":"","id":"1C1391AE-5722-4707-BE52-F0094FC56829"},"8734":{"isSerializedDate":true,"string":"Wed Feb 22 2012 14:02:04 GMT+0100 (CET)"},"8735":{"date":{"__isSmartRef__":true,"id":8736},"author":"sstamm","message":"","id":"663F147A-9084-4AC3-81A7-1E7BA6547F08"},"8736":{"isSerializedDate":true,"string":"Wed Feb 22 2012 12:43:10 GMT+0100 (CET)"},"8737":{"date":{"__isSmartRef__":true,"id":8738},"author":"sstamm","message":"","id":"F72B746E-B170-4EFB-9074-5E8770640B8A"},"8738":{"isSerializedDate":true,"string":"Wed Feb 22 2012 12:36:14 GMT+0100 (CET)"},"8739":{"date":{"__isSmartRef__":true,"id":8740},"author":"sstamm","message":"","id":"568D2EFD-C535-43AE-8944-6D8B967129F5"},"8740":{"isSerializedDate":true,"string":"Wed Feb 22 2012 12:23:04 GMT+0100 (CET)"},"8741":{"date":{"__isSmartRef__":true,"id":8742},"author":"sstamm","message":"","id":"AB2484A6-0707-4E13-845E-F0A5F48BBA3D"},"8742":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:59:45 GMT+0100 (CET)"},"8743":{"date":{"__isSmartRef__":true,"id":8744},"author":"sstamm","message":"","id":"97D20633-F76C-46A5-A32A-FFE9BC83CAB3"},"8744":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:59:10 GMT+0100 (CET)"},"8745":{"date":{"__isSmartRef__":true,"id":8746},"author":"sstamm","message":"","id":"8A697DF5-9A45-4A84-B709-9719BF55083E"},"8746":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:56:54 GMT+0100 (CET)"},"8747":{"date":{"__isSmartRef__":true,"id":8748},"author":"sstamm","message":"","id":"F2157D66-1571-4B9A-B325-6FA96488260F"},"8748":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:51:05 GMT+0100 (CET)"},"8749":{"date":{"__isSmartRef__":true,"id":8750},"author":"sstamm","message":"","id":"E5E808CA-06AB-47DC-A9C9-CA7967591545"},"8750":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:47:19 GMT+0100 (CET)"},"8751":{"date":{"__isSmartRef__":true,"id":8752},"author":"sstamm","message":"","id":"009DC4E0-23CA-485A-A796-801AA0F75049"},"8752":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:46:25 GMT+0100 (CET)"},"8753":{"date":{"__isSmartRef__":true,"id":8754},"author":"sstamm","message":"","id":"C0CE1397-6E2E-4E8C-AEFF-9017E24BB7E4"},"8754":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:45:05 GMT+0100 (CET)"},"8755":{"date":{"__isSmartRef__":true,"id":8756},"author":"sstamm","message":"","id":"FFE16986-548D-4AC2-A627-CF6416282BC4"},"8756":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:37:15 GMT+0100 (CET)"},"8757":{"date":{"__isSmartRef__":true,"id":8758},"author":"sstamm","message":"","id":"57213D63-7147-4057-ADC9-30994443B066"},"8758":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:35:29 GMT+0100 (CET)"},"8759":{"date":{"__isSmartRef__":true,"id":8760},"author":"sstamm","message":"","id":"75A31364-B380-4312-BB5B-F8F2DA1CE824"},"8760":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:31:52 GMT+0100 (CET)"},"8761":{"date":{"__isSmartRef__":true,"id":8762},"author":"sstamm","message":"","id":"5AA50B7E-7D33-44C4-807B-BF1ABA31D530"},"8762":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:14:10 GMT+0100 (CET)"},"8763":{"date":{"__isSmartRef__":true,"id":8764},"author":"sstamm","message":"","id":"BCDCC505-534C-45E5-9BB2-5238959A5AD0"},"8764":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:02:56 GMT+0100 (CET)"},"8765":{"date":{"__isSmartRef__":true,"id":8766},"author":"sstamm","message":"","id":"890D14F4-E89D-4E05-BFB9-875D6AB6C765"},"8766":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:01:50 GMT+0100 (CET)"},"8767":{"date":{"__isSmartRef__":true,"id":8768},"author":"sstamm","message":"","id":"B6FE0805-0D24-4267-8238-8B332352617E"},"8768":{"isSerializedDate":true,"string":"Wed Feb 22 2012 10:55:44 GMT+0100 (CET)"},"8769":{"date":{"__isSmartRef__":true,"id":8770},"author":"sstamm","message":"callbacks are working","id":"9348260A-3B55-4659-BC85-440BFBD98EA4"},"8770":{"isSerializedDate":true,"string":"Fri Feb 10 2012 09:45:55 GMT+0100 (CET)"},"8771":{"date":{"__isSmartRef__":true,"id":8772},"author":"sstamm","message":"made it more opaque","id":"1B84264C-2822-407F-A58F-19217BCD2762"},"8772":{"isSerializedDate":true,"string":"Wed Feb 08 2012 11:41:50 GMT+0100 (CET)"},"8773":{"date":{"__isSmartRef__":true,"id":8774},"author":"sstamm","message":"","id":"0FB41D7D-2A52-4782-814B-A66C24FCE569"},"8774":{"isSerializedDate":true,"string":"Tue Feb 07 2012 11:13:49 GMT+0100 (CET)"},"8775":{"date":{"__isSmartRef__":true,"id":8776},"author":"sstamm","message":"","id":"A0C2D7C1-04AF-493A-A7D7-70750F7D3E2F"},"8776":{"isSerializedDate":true,"string":"Thu Feb 02 2012 17:22:07 GMT+0100 (CET)"},"8777":{"date":{"__isSmartRef__":true,"id":8778},"author":"sstamm","message":"trollolol","id":"F6CFAD78-AC72-4DE2-9F38-79776C2E9462"},"8778":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:55:14 GMT+0100 (CET)"},"8779":{"date":{"__isSmartRef__":true,"id":8780},"author":"sstamm","message":"should be centered now","id":"EE366B4D-C272-477F-8C28-4EAE5A7EC7CB"},"8780":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:54:35 GMT+0100 (CET)"},"8781":{"date":{"__isSmartRef__":true,"id":8782},"author":"sstamm","message":"initial commit","id":"8920D925-DD16-4667-B8C7-FB74D78C2424"},"8782":{"isSerializedDate":true,"string":"Thu Feb 02 2012 13:26:01 GMT+0100 (CET)"},"8783":{"date":{"__isSmartRef__":true,"id":8784},"author":"sstamm","message":"changed text morph name","id":"80E88A3C-5AF3-48F2-A600-710877630997"},"8784":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:04:01 GMT+0100 (CET)"},"8785":{"date":{"__isSmartRef__":true,"id":8786},"author":"sstamm","message":"added loading script","id":"EE9B8F4D-1F03-4232-82E6-794046974F8F"},"8786":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:28:30 GMT+0100 (CET)"},"8787":{"date":{"__isSmartRef__":true,"id":8788},"author":"sstamm","message":"added disconnection","id":"11F19267-924E-4087-99ED-998245576BD2"},"8788":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:32:58 GMT+0100 (CET)"},"8789":{"date":{"__isSmartRef__":true,"id":8790},"author":"sstamm","message":"removed connections before deletion","id":"35A88218-6864-4D52-83A2-BFF7B9A6907C"},"8790":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:41:00 GMT+0100 (CET)"},"8791":{"date":{"__isSmartRef__":true,"id":8792},"author":"sstamm","message":"now able to load parts by name and category as well as per partItem","id":"F36A5782-461D-4813-95F8-0207990A261C"},"8792":{"isSerializedDate":true,"string":"Thu Feb 02 2012 15:24:30 GMT+0100 (CET)"},"8793":{"date":{"__isSmartRef__":true,"id":8794},"author":"sstamm","message":"now with round corners","id":"F42C39CB-CC37-467D-BF10-D362241F047E"},"8794":{"isSerializedDate":true,"string":"Thu Feb 02 2012 15:26:23 GMT+0100 (CET)"},"8795":{"date":{"__isSmartRef__":true,"id":8796},"author":"sstamm","message":"loadingMorph is sync now","id":"12ACFFC9-BA53-4A2A-ABD4-894A5ECE1145"},"8796":{"isSerializedDate":true,"string":"Thu Feb 02 2012 15:48:04 GMT+0100 (CET)"},"8797":{"date":{"__isSmartRef__":true,"id":8798},"author":"sstamm","message":"display the loadingMorph in new thread","id":"2BA51E30-F02B-4AF0-B3BE-52DD4ED522CC"},"8798":{"isSerializedDate":true,"string":"Thu Feb 02 2012 15:53:49 GMT+0100 (CET)"},"8799":{"date":{"__isSmartRef__":true,"id":8800},"author":"sstamm","message":"","id":"DF0AE4EA-1B08-4556-8BBE-E6488F23B8A3"},"8800":{"isSerializedDate":true,"string":"Thu Feb 02 2012 16:49:48 GMT+0100 (CET)"},"8801":{"date":{"__isSmartRef__":true,"id":8802},"author":"sstamm","message":"","id":"220821B3-C589-41C9-A324-8E7E6D9D6CEB"},"8802":{"isSerializedDate":true,"string":"Thu Feb 02 2012 16:58:43 GMT+0100 (CET)"},"8803":{"date":{"__isSmartRef__":true,"id":8804},"author":"sstamm","message":"","id":"DEBFACE2-7EC5-4A86-AD46-5A0A88A73707"},"8804":{"isSerializedDate":true,"string":"Thu Feb 02 2012 17:04:28 GMT+0100 (CET)"},"8805":{"date":{"__isSmartRef__":true,"id":8806},"author":"sstamm","message":"load request in new thread if loading should be async","id":"18282D28-D6D4-48C9-A508-6E3244449BD8"},"8806":{"isSerializedDate":true,"string":"Tue Feb 07 2012 11:10:27 GMT+0100 (CET)"},"8807":{"date":{"__isSmartRef__":true,"id":8808},"author":"sstamm","message":"added benchmarking output","id":"249CFF90-DDF5-4A83-9759-0289E96D7D58"},"8808":{"isSerializedDate":true,"string":"Tue Feb 07 2012 11:31:50 GMT+0100 (CET)"},"8809":{"date":{"__isSmartRef__":true,"id":8810},"author":"sstamm","message":"","id":"882082E1-29B6-418D-9B8B-672729D60619"},"8810":{"isSerializedDate":true,"string":"Tue Feb 07 2012 11:38:26 GMT+0100 (CET)"},"8811":{"date":{"__isSmartRef__":true,"id":8812},"author":"sstamm","message":"","id":"5179AEF9-E19F-4B0C-BBD8-556C5687988A"},"8812":{"isSerializedDate":true,"string":"Tue Feb 07 2012 11:44:11 GMT+0100 (CET)"},"8813":{"date":{"__isSmartRef__":true,"id":8814},"author":"sstamm","message":"","id":"1159C5B4-724E-4124-9D7B-5CD5DC4A8EE3"},"8814":{"isSerializedDate":true,"string":"Tue Feb 07 2012 11:48:14 GMT+0100 (CET)"},"8815":{"date":{"__isSmartRef__":true,"id":8816},"author":"sstamm","message":"","id":"2A718D1F-1036-41D6-999A-336F2B14E65D"},"8816":{"isSerializedDate":true,"string":"Tue Feb 07 2012 11:49:47 GMT+0100 (CET)"},"8817":{"date":{"__isSmartRef__":true,"id":8818},"author":"sstamm","message":"","id":"EB6BDD0C-7EEC-4124-B77F-2F106A601538"},"8818":{"isSerializedDate":true,"string":"Tue Feb 07 2012 11:59:48 GMT+0100 (CET)"},"8819":{"date":{"__isSmartRef__":true,"id":8820},"author":"sstamm","message":"","id":"63EC8D07-AB6A-450A-BB84-9B4D37E03647"},"8820":{"isSerializedDate":true,"string":"Tue Feb 07 2012 12:02:33 GMT+0100 (CET)"},"8821":{"date":{"__isSmartRef__":true,"id":8822},"author":"sstamm","message":"","id":"19CE12E4-5AA5-48DC-B1D1-B0EB0EDF1CB9"},"8822":{"isSerializedDate":true,"string":"Tue Feb 07 2012 12:03:42 GMT+0100 (CET)"},"8823":{"date":{"__isSmartRef__":true,"id":8824},"author":"sstamm","message":"first attempt to introduce callback functions to part loading","id":"22BD0B95-8948-411A-A56E-AD7CBE445F1D"},"8824":{"isSerializedDate":true,"string":"Thu Feb 09 2012 20:20:11 GMT+0100 (CET)"},"8825":{"date":{"__isSmartRef__":true,"id":8826},"author":"sstamm","message":"","id":"A216DFD2-9D1F-4E62-A22F-6B5472823E1B"},"8826":{"isSerializedDate":true,"string":"Fri Mar 16 2012 15:37:34 GMT+0100 (CET)"},"8827":{"date":{"__isSmartRef__":true,"id":8828},"author":"sstamm","message":"","id":"464E723A-08DC-433C-AA5C-CEC850DBAF0B"},"8828":{"isSerializedDate":true,"string":"Fri Mar 16 2012 15:42:29 GMT+0100 (CET)"},"8829":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"8830":{"morph":{"__isSmartRef__":true,"id":8694},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"8831":{"x":266,"y":223,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8832":{"adjustForNewBounds":true},"8833":{"x":171,"y":-13,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"8834":{"loadPart":{"__isSmartRef__":true,"id":8835},"loadFinished":{"__isSmartRef__":true,"id":8839},"loadPartByName":{"__isSmartRef__":true,"id":8843}},"8835":{"varMapping":{"__isSmartRef__":true,"id":8836},"source":"function loadPart(partItem, isAsync) {\n this.partItem = partItem;\n \n this.openInWorld();\n if(partItem.part) {\n this.setExtent(partItem.part.getExtent());\n }\n this.align(this.bounds().center(), $world.visibleBounds().center());\n \n \n if(typeof isAsync === \"function\") {\n this.callback = isAsync;\n }\n\n connect(partItem, 'part', this, \"loadFinished\");\n\n partItem.loadPart(isAsync);\n\n return partItem.part;\n\n}","funcProperties":{"__isSmartRef__":true,"id":8837},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8836":{"this":{"__isSmartRef__":true,"id":8694}},"8837":{"timestamp":{"__isSmartRef__":true,"id":8838},"user":"sstamm","tags":[]},"8838":{"isSerializedDate":true,"string":"Fri Mar 16 2012 15:42:18 GMT+0100 (CET)"},"8839":{"varMapping":{"__isSmartRef__":true,"id":8840},"source":"function loadFinished(part) {\n if(this.owner === $world.firstHand()) {\n $world.firstHand().removeAllMorphs();\n } else {\n this.owner.addMorph(part);\n part.align(part.bounds().center(), this.bounds().center());\n this.remove();\n }\n disconnect(this.partItem, 'part', this, \"loadFinished\");\n if(this.callback) {\n this.callback(part);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8841},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8840":{"this":{"__isSmartRef__":true,"id":8694}},"8841":{"timestamp":{"__isSmartRef__":true,"id":8842},"user":"sstamm","tags":[]},"8842":{"isSerializedDate":true,"string":"Wed Feb 22 2012 14:01:53 GMT+0100 (CET)"},"8843":{"varMapping":{"__isSmartRef__":true,"id":8844},"source":"function loadPartByName(partName, optPartsSpaceName, isAsync) {\n var partItem = lively.PartsBin.getPartItem(partName, optPartsSpaceName);\n return this.loadPart(partItem, isAsync);\n}","funcProperties":{"__isSmartRef__":true,"id":8845},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8844":{"this":{"__isSmartRef__":true,"id":8694}},"8845":{"timestamp":{"__isSmartRef__":true,"id":8846},"user":"sstamm","tags":[]},"8846":{"isSerializedDate":true,"string":"Thu Feb 02 2012 17:03:18 GMT+0100 (CET)"},"8847":{"sourceObj":{"__isSmartRef__":true,"id":0},"sourceAttrName":"savedWorldAsURL","targetObj":{"__isSmartRef__":true,"id":0},"targetMethodName":"visitNewPageAfterSaveAs","converter":null,"converterString":null,"updaterString":"function ($upd, v) {\n if (v && v.toString() !== URL.source.toString()) {\n $upd(v)\n }\n }","varMapping":{"__isSmartRef__":true,"id":8848},"__SourceModuleName__":"Global.lively.bindings","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8849},"__LivelyClassName__":"AttributeConnection"},"8848":{"source":{"__isSmartRef__":true,"id":0},"target":{"__isSmartRef__":true,"id":0}},"8849":{"updater":{"__isSmartRef__":true,"id":8850}},"8850":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":8848},"source":"function ($upd, v) {\n if (v && v.toString() !== URL.source.toString()) {\n $upd(v)\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8851},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"8851":{},"8852":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/projects/BP2012/Research/CreateAWhiteBoard.xhtml","__LivelyClassName__":"URL","__SourceModuleName__":"Global.lively.Network"},"isSimplifiedRegistry":true}}]]>