.selection --> ObjectEditor - ObjectEditor.displaySourceForConnection)":{"__isSmartRef__":true,"id":1276},"eventHandler":{"__isSmartRef__":true,"id":1277},"_FontSize":10,"distanceToDragEvent":{"__isSmartRef__":true,"id":1278},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"isCopyMorphRef":true,"morphRefId":17,"currentCategory":null,"_Rotation":0,"_Scale":1,"selection":"-- ALL --","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1279},"__LivelyClassName__":"lively.morphic.List"},"428":{"position":{"__isSmartRef__":true,"id":429},"_Extent":{"__isSmartRef__":true,"id":430},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":431},"_Fill":{"__isSmartRef__":true,"id":432},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderRadius":0,"renderContextTable":{"__isSmartRef__":true,"id":433},"_Opacity":1,"_BorderStyle":"solid","_Padding":{"__isSmartRef__":true,"id":434},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"429":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"430":{"x":180,"y":150.61253261443596,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"431":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"432":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"433":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"434":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"435":{"x":10,"y":63.027958027992966,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"436":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":2,"__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"437":{"x":180,"y":150.06626676007966,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"438":{"sourceObj":{"__isSmartRef__":true,"id":427},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":426},"targetMethodName":"displaySourceForScript","converterString":"function (value) {\n return (value === '-- ALL --') ? null : value;\n}","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":439},"__SourceModuleName__":"Global.lively.bindings","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":440},"__LivelyClassName__":"AttributeConnection"},"439":{"source":{"__isSmartRef__":true,"id":427},"target":{"__isSmartRef__":true,"id":426}},"440":{"converter":{"__isSmartRef__":true,"id":441}},"441":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":439},"source":"function (value) {\n return (value === '-- ALL --') ? null : value;\n}","funcProperties":{"__isSmartRef__":true,"id":442},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"442":{},"443":{"resizeHeight":true},"444":{"submorphs":[],"scripts":[],"id":836,"shape":{"__isSmartRef__":true,"id":445},"droppingEnabled":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":450},"priorExtent":{"__isSmartRef__":true,"id":451},"titleBar":{"__isSmartRef__":true,"id":452},"contentOffset":{"__isSmartRef__":true,"id":593},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":{"__isSmartRef__":true,"id":594},"expandedExtent":{"__isSmartRef__":true,"id":595},"highlighted":true,"_Rotation":0,"_Scale":1,"prevDragPos":{"__isSmartRef__":true,"id":596},"showsHalos":false,"name":"ObjectEditor","__SourceModuleName__":"Global.lively.morphic.Widgets","target":{"__isSmartRef__":true,"id":597},"expandedPosition":{"__isSmartRef__":true,"id":920},"partsBinMetaInfo":{"__isSmartRef__":true,"id":921},"scriptList":{"__isSmartRef__":true,"id":427},"scriptPane":{"__isSmartRef__":true,"id":922},"classButton":{"__isSmartRef__":true,"id":1018},"connectionList":{"__isSmartRef__":true,"id":1063},"targetButton":{"__isSmartRef__":true,"id":1093},"renderContextTable":{"__isSmartRef__":true,"id":1136},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Position":{"__isSmartRef__":true,"id":1137},"morphSelector":{"__isSmartRef__":true,"id":1138},"eventHandler":{"__isSmartRef__":true,"id":1222},"cameForward":false,"isCopyMorphRef":true,"morphRefId":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1223},"__LivelyClassName__":"lively.morphic.Window","withoutLayers":["Global.lively.morphic.GrabbingLayer"]},"445":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":446},"_StrokeOpacity":0,"_BorderRadius":9.25,"_Extent":{"__isSmartRef__":true,"id":447},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderColor":{"__isSmartRef__":true,"id":448},"renderContextTable":{"__isSmartRef__":true,"id":449},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"446":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"447":{"x":981,"y":585.2,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"448":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"449":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"450":{"adjustForNewBounds":true},"451":{"x":981,"y":585.2,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"452":{"submorphs":[{"__isSmartRef__":true,"id":453},{"__isSmartRef__":true,"id":466},{"__isSmartRef__":true,"id":510},{"__isSmartRef__":true,"id":542}],"scripts":[],"id":837,"shape":{"__isSmartRef__":true,"id":575},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":588},"_Position":{"__isSmartRef__":true,"id":589},"eventsAreIgnored":true,"windowMorph":{"__isSmartRef__":true,"id":444},"label":{"__isSmartRef__":true,"id":453},"closeButton":{"__isSmartRef__":true,"id":466},"menuButton":{"__isSmartRef__":true,"id":510},"collapseButton":{"__isSmartRef__":true,"id":542},"priorExtent":{"__isSmartRef__":true,"id":590},"owner":null,"__SourceModuleName__":"Global.lively.morphic.Widgets","name":"ObjectEditorTitleBar","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":591},"eventHandler":{"__isSmartRef__":true,"id":592},"__LivelyClassName__":"lively.morphic.TitleBar"},"453":{"submorphs":[],"scripts":[],"id":838,"shape":{"__isSmartRef__":true,"id":454},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":459},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":460},"priorExtent":{"__isSmartRef__":true,"id":461},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":462}],"evalEnabled":false,"isLabel":true,"eventsAreIgnored":true,"_FontSize":10,"_Align":"center","owner":{"__isSmartRef__":true,"id":452},"__SourceModuleName__":"Global.lively.morphic.TextCore","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":464},"eventHandler":{"__isSmartRef__":true,"id":465},"_HandStyle":"default","_PointerEvents":"none","__LivelyClassName__":"lively.morphic.Text"},"454":{"_Position":{"__isSmartRef__":true,"id":455},"_Extent":{"__isSmartRef__":true,"id":456},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":457},"_Fill":null,"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":458},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"455":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"456":{"x":921.9776803724167,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"457":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"458":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"459":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"460":{"x":20,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"461":{"x":921.9776803724167,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"462":{"style":{"__isSmartRef__":true,"id":463},"chunkOwner":{"__isSmartRef__":true,"id":453},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"463":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"464":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"465":{"morph":{"__isSmartRef__":true,"id":453},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"466":{"submorphs":[{"__isSmartRef__":true,"id":467}],"scripts":[],"id":839,"shape":{"__isSmartRef__":true,"id":479},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":494},"priorExtent":{"__isSmartRef__":true,"id":495},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":483},"lighterFill":{"__isSmartRef__":true,"id":496},"label":{"__isSmartRef__":true,"id":467},"owner":{"__isSmartRef__":true,"id":452},"layout":{"__isSmartRef__":true,"id":505},"attributeConnections":[{"__isSmartRef__":true,"id":506},{"__isSmartRef__":true,"id":507}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":508},"eventHandler":{"__isSmartRef__":true,"id":509},"__LivelyClassName__":"lively.morphic.WindowControl"},"467":{"submorphs":[],"scripts":[],"id":840,"shape":{"__isSmartRef__":true,"id":468},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":472},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":473},"priorExtent":{"__isSmartRef__":true,"id":474},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":475}],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":466},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":477},"eventHandler":{"__isSmartRef__":true,"id":478},"_HandStyle":"default","_PointerEvents":"none","__LivelyClassName__":"lively.morphic.Text"},"468":{"_Position":{"__isSmartRef__":true,"id":469},"_Extent":{"__isSmartRef__":true,"id":470},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":457},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":471},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"469":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"470":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"471":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"472":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"473":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"474":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"475":{"style":{"__isSmartRef__":true,"id":476},"chunkOwner":{"__isSmartRef__":true,"id":467},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"476":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"477":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"478":{"morph":{"__isSmartRef__":true,"id":467},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"479":{"_Position":{"__isSmartRef__":true,"id":480},"_Extent":{"__isSmartRef__":true,"id":481},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":482},"_Fill":{"__isSmartRef__":true,"id":483},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":493},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"480":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"481":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"482":{"r":0.7411764705882353,"g":0.7450980392156863,"b":0.7529411764705882,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"483":{"stops":[{"__isSmartRef__":true,"id":484},{"__isSmartRef__":true,"id":486},{"__isSmartRef__":true,"id":488},{"__isSmartRef__":true,"id":490}],"vector":{"__isSmartRef__":true,"id":492},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"484":{"offset":0,"color":{"__isSmartRef__":true,"id":485}},"485":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"486":{"offset":0.4,"color":{"__isSmartRef__":true,"id":487}},"487":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"488":{"offset":0.6,"color":{"__isSmartRef__":true,"id":489}},"489":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"490":{"offset":1,"color":{"__isSmartRef__":true,"id":491}},"491":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"492":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"493":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"494":{"x":960.9776803724167,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"495":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"496":{"stops":[{"__isSmartRef__":true,"id":497},{"__isSmartRef__":true,"id":499},{"__isSmartRef__":true,"id":501},{"__isSmartRef__":true,"id":503}],"vector":{"__isSmartRef__":true,"id":492},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"497":{"offset":0,"color":{"__isSmartRef__":true,"id":498}},"498":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"499":{"offset":0.4,"color":{"__isSmartRef__":true,"id":500}},"500":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"501":{"offset":0.6,"color":{"__isSmartRef__":true,"id":502}},"502":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"503":{"offset":1,"color":{"__isSmartRef__":true,"id":504}},"504":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"505":{"moveHorizontal":true},"506":{"sourceObj":{"__isSmartRef__":true,"id":466},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":444},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"507":{"sourceObj":{"__isSmartRef__":true,"id":466},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":444},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"508":{"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"},"509":{"morph":{"__isSmartRef__":true,"id":466},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"510":{"submorphs":[{"__isSmartRef__":true,"id":511}],"scripts":[],"id":841,"shape":{"__isSmartRef__":true,"id":523},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":527},"priorExtent":{"__isSmartRef__":true,"id":528},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":483},"lighterFill":{"__isSmartRef__":true,"id":529},"label":{"__isSmartRef__":true,"id":511},"owner":{"__isSmartRef__":true,"id":452},"attributeConnections":[{"__isSmartRef__":true,"id":538},{"__isSmartRef__":true,"id":539}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","showsHalos":false,"_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":540},"eventHandler":{"__isSmartRef__":true,"id":541},"__LivelyClassName__":"lively.morphic.WindowControl"},"511":{"submorphs":[],"scripts":[],"id":842,"shape":{"__isSmartRef__":true,"id":512},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":516},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":517},"priorExtent":{"__isSmartRef__":true,"id":518},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":519}],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":510},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":521},"eventHandler":{"__isSmartRef__":true,"id":522},"_HandStyle":"default","_PointerEvents":"none","__LivelyClassName__":"lively.morphic.Text"},"512":{"_Position":{"__isSmartRef__":true,"id":513},"_Extent":{"__isSmartRef__":true,"id":514},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":457},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":515},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"513":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"514":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"515":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"516":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"517":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"518":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"519":{"style":{"__isSmartRef__":true,"id":520},"chunkOwner":{"__isSmartRef__":true,"id":511},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"520":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"521":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"522":{"morph":{"__isSmartRef__":true,"id":511},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"523":{"_Position":{"__isSmartRef__":true,"id":524},"_Extent":{"__isSmartRef__":true,"id":525},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":482},"_Fill":{"__isSmartRef__":true,"id":483},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":526},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"524":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"525":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"526":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"527":{"x":3,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"528":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"529":{"stops":[{"__isSmartRef__":true,"id":530},{"__isSmartRef__":true,"id":532},{"__isSmartRef__":true,"id":534},{"__isSmartRef__":true,"id":536}],"vector":{"__isSmartRef__":true,"id":492},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"530":{"offset":0,"color":{"__isSmartRef__":true,"id":531}},"531":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"532":{"offset":0.4,"color":{"__isSmartRef__":true,"id":533}},"533":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"534":{"offset":0.6,"color":{"__isSmartRef__":true,"id":535}},"535":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"536":{"offset":1,"color":{"__isSmartRef__":true,"id":537}},"537":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"538":{"sourceObj":{"__isSmartRef__":true,"id":510},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":444},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"539":{"sourceObj":{"__isSmartRef__":true,"id":510},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":444},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"540":{"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"},"541":{"morph":{"__isSmartRef__":true,"id":510},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"542":{"submorphs":[{"__isSmartRef__":true,"id":543}],"scripts":[],"id":843,"shape":{"__isSmartRef__":true,"id":555},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":559},"priorExtent":{"__isSmartRef__":true,"id":560},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":483},"lighterFill":{"__isSmartRef__":true,"id":561},"label":{"__isSmartRef__":true,"id":543},"owner":{"__isSmartRef__":true,"id":452},"layout":{"__isSmartRef__":true,"id":570},"attributeConnections":[{"__isSmartRef__":true,"id":571},{"__isSmartRef__":true,"id":572}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":573},"eventHandler":{"__isSmartRef__":true,"id":574},"__LivelyClassName__":"lively.morphic.WindowControl"},"543":{"submorphs":[],"scripts":[],"id":844,"shape":{"__isSmartRef__":true,"id":544},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":548},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":549},"priorExtent":{"__isSmartRef__":true,"id":550},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":551}],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":542},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":553},"eventHandler":{"__isSmartRef__":true,"id":554},"_HandStyle":"default","_PointerEvents":"none","__LivelyClassName__":"lively.morphic.Text"},"544":{"_Position":{"__isSmartRef__":true,"id":545},"_Extent":{"__isSmartRef__":true,"id":546},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":457},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":547},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"545":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"546":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"547":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"548":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"549":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"550":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"551":{"style":{"__isSmartRef__":true,"id":552},"chunkOwner":{"__isSmartRef__":true,"id":543},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"552":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"553":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"554":{"morph":{"__isSmartRef__":true,"id":543},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"555":{"_Position":{"__isSmartRef__":true,"id":556},"_Extent":{"__isSmartRef__":true,"id":557},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":482},"_Fill":{"__isSmartRef__":true,"id":483},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":558},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"556":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"557":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"558":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"559":{"x":941.9776803724167,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"560":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"561":{"stops":[{"__isSmartRef__":true,"id":562},{"__isSmartRef__":true,"id":564},{"__isSmartRef__":true,"id":566},{"__isSmartRef__":true,"id":568}],"vector":{"__isSmartRef__":true,"id":492},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"562":{"offset":0,"color":{"__isSmartRef__":true,"id":563}},"563":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"564":{"offset":0.4,"color":{"__isSmartRef__":true,"id":565}},"565":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"566":{"offset":0.6,"color":{"__isSmartRef__":true,"id":567}},"567":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"568":{"offset":1,"color":{"__isSmartRef__":true,"id":569}},"569":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"570":{"moveHorizontal":true},"571":{"sourceObj":{"__isSmartRef__":true,"id":542},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":444},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"572":{"sourceObj":{"__isSmartRef__":true,"id":542},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":444},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"573":{"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"},"574":{"morph":{"__isSmartRef__":true,"id":542},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"575":{"_Position":{"__isSmartRef__":true,"id":576},"_Extent":{"__isSmartRef__":true,"id":577},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":578},"_Fill":{"__isSmartRef__":true,"id":579},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":587},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"576":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"577":{"x":980.9776803724167,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"578":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"579":{"stops":[{"__isSmartRef__":true,"id":580},{"__isSmartRef__":true,"id":582},{"__isSmartRef__":true,"id":584}],"vector":{"__isSmartRef__":true,"id":586},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"580":{"offset":0,"color":{"__isSmartRef__":true,"id":581}},"581":{"r":0.7200000000000001,"g":0.7200000000000001,"b":0.7200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"582":{"offset":0.6,"color":{"__isSmartRef__":true,"id":583}},"583":{"r":0.9,"g":0.9,"b":0.9,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"584":{"offset":1,"color":{"__isSmartRef__":true,"id":585}},"585":{"r":0.7200000000000001,"g":0.7200000000000001,"b":0.7200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"586":{"x":0,"y":1,"width":0,"height":-1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"587":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"588":{"resizeWidth":true,"adjustForNewBounds":true},"589":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"590":{"x":980.9776803724167,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"591":{"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"},"592":{"morph":{"__isSmartRef__":true,"id":452},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"593":{"x":0,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"594":{"a":1,"b":0,"c":0,"d":1,"e":377.6609726943286,"f":419.5142810783999,"__SourceModuleName__":"Global.lively.morphic.Core","__LivelyClassName__":"lively.morphic.Similitude"},"595":{"x":861.5223196275833,"y":575.166499196892,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"596":{"x":613,"y":129,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"597":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":598},"id":394,"renderContextTable":{"__isSmartRef__":true,"id":604},"textChunks":[{"__isSmartRef__":true,"id":605}],"eventHandler":{"__isSmartRef__":true,"id":607},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":608},"_ClipMode":"auto","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":609},"priorExtent":{"__isSmartRef__":true,"id":610},"_MaxTextWidth":500,"_MaxTextHeight":200,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":611},"layout":{"__isSmartRef__":true,"id":758},"doitContext":{"__isSmartRef__":true,"id":759},"priorSelectionRange":[0,36],"charsReplaced":"","lastFindLoc":20,"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"598":{"_Position":{"__isSmartRef__":true,"id":599},"renderContextTable":{"__isSmartRef__":true,"id":600},"_Extent":{"__isSmartRef__":true,"id":601},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":602},"_Fill":{"__isSmartRef__":true,"id":603},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"599":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"600":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"601":{"x":500,"y":200,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"602":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"603":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"604":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"605":{"style":{"__isSmartRef__":true,"id":606},"chunkOwner":{"__isSmartRef__":true,"id":597},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"606":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"607":{"morph":{"__isSmartRef__":true,"id":597},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"608":{"x":2,"y":1,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"609":{"x":0,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"610":{"x":500,"y":200,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"611":{"submorphs":[{"__isSmartRef__":true,"id":597},{"__isSmartRef__":true,"id":612}],"scripts":[],"shape":{"__isSmartRef__":true,"id":749},"id":395,"renderContextTable":{"__isSmartRef__":true,"id":752},"eventHandler":{"__isSmartRef__":true,"id":753},"droppingEnabled":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":754},"LK2":true,"_Position":{"__isSmartRef__":true,"id":755},"priorExtent":{"__isSmartRef__":true,"id":756},"targetMorph":{"__isSmartRef__":true,"id":597},"titleBar":{"__isSmartRef__":true,"id":612},"contentOffset":{"__isSmartRef__":true,"id":609},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":null,"expandedExtent":null,"ignoreEventsOnExpand":false,"highlighted":true,"_Rotation":0,"_Scale":1,"prevDragPos":{"__isSmartRef__":true,"id":757},"cameForward":false,"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.Window","withoutLayers":["Global.lively.morphic.GrabbingLayer"]},"612":{"submorphs":[{"__isSmartRef__":true,"id":613},{"__isSmartRef__":true,"id":626},{"__isSmartRef__":true,"id":672},{"__isSmartRef__":true,"id":705}],"scripts":[],"shape":{"__isSmartRef__":true,"id":739},"id":396,"renderContextTable":{"__isSmartRef__":true,"id":744},"eventHandler":{"__isSmartRef__":true,"id":745},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":746},"_Position":{"__isSmartRef__":true,"id":747},"windowMorph":{"__isSmartRef__":true,"id":611},"label":{"__isSmartRef__":true,"id":613},"closeButton":{"__isSmartRef__":true,"id":626},"menuButton":{"__isSmartRef__":true,"id":672},"collapseButton":{"__isSmartRef__":true,"id":705},"priorExtent":{"__isSmartRef__":true,"id":748},"owner":{"__isSmartRef__":true,"id":611},"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.TitleBar"},"613":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":614},"id":397,"renderContextTable":{"__isSmartRef__":true,"id":618},"textChunks":[{"__isSmartRef__":true,"id":619}],"eventHandler":{"__isSmartRef__":true,"id":621},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":622},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","evalEnabled":false,"isLabel":true,"_HandStyle":"default","layout":{"__isSmartRef__":true,"id":623},"_FontSize":10,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","owner":{"__isSmartRef__":true,"id":612},"priorExtent":{"__isSmartRef__":true,"id":624},"_MaxTextWidth":441,"_MaxTextHeight":17,"_Position":{"__isSmartRef__":true,"id":625},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"614":{"_Position":{"__isSmartRef__":true,"id":615},"renderContextTable":{"__isSmartRef__":true,"id":616},"_Extent":{"__isSmartRef__":true,"id":617},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":602},"_Fill":null,"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"615":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"616":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"617":{"x":441,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"618":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"619":{"style":{"__isSmartRef__":true,"id":620},"chunkOwner":{"__isSmartRef__":true,"id":613},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"620":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"621":{"morph":{"__isSmartRef__":true,"id":613},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"622":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"623":{"resizeWidth":true},"624":{"x":0,"y":14,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"625":{"x":20,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"626":{"submorphs":[{"__isSmartRef__":true,"id":627}],"scripts":[],"shape":{"__isSmartRef__":true,"id":639},"id":398,"renderContextTable":{"__isSmartRef__":true,"id":654},"eventHandler":{"__isSmartRef__":true,"id":655},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":656},"priorExtent":{"__isSmartRef__":true,"id":657},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":644},"lighterFill":{"__isSmartRef__":true,"id":658},"label":{"__isSmartRef__":true,"id":627},"owner":{"__isSmartRef__":true,"id":612},"layout":{"__isSmartRef__":true,"id":667},"attributeConnections":[{"__isSmartRef__":true,"id":668},{"__isSmartRef__":true,"id":670}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"627":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":628},"id":399,"renderContextTable":{"__isSmartRef__":true,"id":632},"textChunks":[{"__isSmartRef__":true,"id":633}],"eventHandler":{"__isSmartRef__":true,"id":635},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":636},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":637},"priorExtent":{"__isSmartRef__":true,"id":638},"_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":626},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"628":{"_Position":{"__isSmartRef__":true,"id":629},"renderContextTable":{"__isSmartRef__":true,"id":630},"_Extent":{"__isSmartRef__":true,"id":631},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":602},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"629":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"630":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"631":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"632":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"633":{"style":{"__isSmartRef__":true,"id":634},"chunkOwner":{"__isSmartRef__":true,"id":627},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"634":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"635":{"morph":{"__isSmartRef__":true,"id":627},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"636":{"x":0,"y":3,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"637":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"638":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"639":{"_Position":{"__isSmartRef__":true,"id":640},"renderContextTable":{"__isSmartRef__":true,"id":641},"_Extent":{"__isSmartRef__":true,"id":642},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":643},"_Fill":{"__isSmartRef__":true,"id":644},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"640":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"641":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"642":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"643":{"r":0.7411764705882353,"g":0.7450980392156863,"b":0.7529411764705882,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"644":{"stops":[{"__isSmartRef__":true,"id":645},{"__isSmartRef__":true,"id":647},{"__isSmartRef__":true,"id":649},{"__isSmartRef__":true,"id":651}],"vector":{"__isSmartRef__":true,"id":653},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"645":{"offset":0,"color":{"__isSmartRef__":true,"id":646}},"646":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"647":{"offset":0.4,"color":{"__isSmartRef__":true,"id":648}},"648":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"649":{"offset":0.6,"color":{"__isSmartRef__":true,"id":650}},"650":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"651":{"offset":1,"color":{"__isSmartRef__":true,"id":652}},"652":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"653":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"654":{"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"},"655":{"morph":{"__isSmartRef__":true,"id":626},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"656":{"x":480,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"657":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"658":{"stops":[{"__isSmartRef__":true,"id":659},{"__isSmartRef__":true,"id":661},{"__isSmartRef__":true,"id":663},{"__isSmartRef__":true,"id":665}],"vector":{"__isSmartRef__":true,"id":653},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"659":{"offset":0,"color":{"__isSmartRef__":true,"id":660}},"660":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"661":{"offset":0.4,"color":{"__isSmartRef__":true,"id":662}},"662":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"663":{"offset":0.6,"color":{"__isSmartRef__":true,"id":664}},"664":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"665":{"offset":1,"color":{"__isSmartRef__":true,"id":666}},"666":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"667":{"moveHorizontal":true},"668":{"sourceObj":{"__isSmartRef__":true,"id":626},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":611},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":669},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"669":{"source":{"__isSmartRef__":true,"id":626},"target":{"__isSmartRef__":true,"id":611}},"670":{"sourceObj":{"__isSmartRef__":true,"id":626},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":611},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":671},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"671":{"source":{"__isSmartRef__":true,"id":626},"target":{"__isSmartRef__":true,"id":611}},"672":{"submorphs":[{"__isSmartRef__":true,"id":673}],"scripts":[],"shape":{"__isSmartRef__":true,"id":684},"id":400,"renderContextTable":{"__isSmartRef__":true,"id":688},"eventHandler":{"__isSmartRef__":true,"id":689},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":690},"priorExtent":{"__isSmartRef__":true,"id":691},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":644},"lighterFill":{"__isSmartRef__":true,"id":692},"label":{"__isSmartRef__":true,"id":673},"owner":{"__isSmartRef__":true,"id":612},"attributeConnections":[{"__isSmartRef__":true,"id":701},{"__isSmartRef__":true,"id":703}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"673":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":674},"id":401,"renderContextTable":{"__isSmartRef__":true,"id":678},"textChunks":[{"__isSmartRef__":true,"id":679}],"eventHandler":{"__isSmartRef__":true,"id":681},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":636},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":682},"priorExtent":{"__isSmartRef__":true,"id":683},"_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":672},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"674":{"_Position":{"__isSmartRef__":true,"id":675},"renderContextTable":{"__isSmartRef__":true,"id":676},"_Extent":{"__isSmartRef__":true,"id":677},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":602},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"675":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"676":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"677":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"678":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"679":{"style":{"__isSmartRef__":true,"id":680},"chunkOwner":{"__isSmartRef__":true,"id":673},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"680":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"681":{"morph":{"__isSmartRef__":true,"id":673},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"682":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"683":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"684":{"_Position":{"__isSmartRef__":true,"id":685},"renderContextTable":{"__isSmartRef__":true,"id":686},"_Extent":{"__isSmartRef__":true,"id":687},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":643},"_Fill":{"__isSmartRef__":true,"id":644},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"685":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"686":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"687":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"688":{"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"},"689":{"morph":{"__isSmartRef__":true,"id":672},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"690":{"x":3,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"691":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"692":{"stops":[{"__isSmartRef__":true,"id":693},{"__isSmartRef__":true,"id":695},{"__isSmartRef__":true,"id":697},{"__isSmartRef__":true,"id":699}],"vector":{"__isSmartRef__":true,"id":653},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"693":{"offset":0,"color":{"__isSmartRef__":true,"id":694}},"694":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"695":{"offset":0.4,"color":{"__isSmartRef__":true,"id":696}},"696":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"697":{"offset":0.6,"color":{"__isSmartRef__":true,"id":698}},"698":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"699":{"offset":1,"color":{"__isSmartRef__":true,"id":700}},"700":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"701":{"sourceObj":{"__isSmartRef__":true,"id":672},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":611},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":702},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"702":{"source":{"__isSmartRef__":true,"id":672},"target":{"__isSmartRef__":true,"id":611}},"703":{"sourceObj":{"__isSmartRef__":true,"id":672},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":611},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":704},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"704":{"source":{"__isSmartRef__":true,"id":672},"target":{"__isSmartRef__":true,"id":611}},"705":{"submorphs":[{"__isSmartRef__":true,"id":706}],"scripts":[],"shape":{"__isSmartRef__":true,"id":717},"id":402,"renderContextTable":{"__isSmartRef__":true,"id":721},"eventHandler":{"__isSmartRef__":true,"id":722},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":723},"priorExtent":{"__isSmartRef__":true,"id":724},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":644},"lighterFill":{"__isSmartRef__":true,"id":725},"label":{"__isSmartRef__":true,"id":706},"owner":{"__isSmartRef__":true,"id":612},"layout":{"__isSmartRef__":true,"id":734},"attributeConnections":[{"__isSmartRef__":true,"id":735},{"__isSmartRef__":true,"id":737}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"706":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":707},"id":403,"renderContextTable":{"__isSmartRef__":true,"id":711},"textChunks":[{"__isSmartRef__":true,"id":712}],"eventHandler":{"__isSmartRef__":true,"id":714},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":636},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":715},"priorExtent":{"__isSmartRef__":true,"id":716},"_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":705},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"707":{"_Position":{"__isSmartRef__":true,"id":708},"renderContextTable":{"__isSmartRef__":true,"id":709},"_Extent":{"__isSmartRef__":true,"id":710},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":602},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"708":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"709":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"710":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"711":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"712":{"style":{"__isSmartRef__":true,"id":713},"chunkOwner":{"__isSmartRef__":true,"id":706},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"713":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"714":{"morph":{"__isSmartRef__":true,"id":706},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"715":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"716":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"717":{"_Position":{"__isSmartRef__":true,"id":718},"renderContextTable":{"__isSmartRef__":true,"id":719},"_Extent":{"__isSmartRef__":true,"id":720},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":643},"_Fill":{"__isSmartRef__":true,"id":644},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"718":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"719":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"720":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"721":{"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"},"722":{"morph":{"__isSmartRef__":true,"id":705},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"723":{"x":461,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"724":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"725":{"stops":[{"__isSmartRef__":true,"id":726},{"__isSmartRef__":true,"id":728},{"__isSmartRef__":true,"id":730},{"__isSmartRef__":true,"id":732}],"vector":{"__isSmartRef__":true,"id":653},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"726":{"offset":0,"color":{"__isSmartRef__":true,"id":727}},"727":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"728":{"offset":0.4,"color":{"__isSmartRef__":true,"id":729}},"729":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"730":{"offset":0.6,"color":{"__isSmartRef__":true,"id":731}},"731":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"732":{"offset":1,"color":{"__isSmartRef__":true,"id":733}},"733":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"734":{"moveHorizontal":true},"735":{"sourceObj":{"__isSmartRef__":true,"id":705},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":611},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":736},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"736":{"source":{"__isSmartRef__":true,"id":705},"target":{"__isSmartRef__":true,"id":611}},"737":{"sourceObj":{"__isSmartRef__":true,"id":705},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":611},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":738},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"738":{"source":{"__isSmartRef__":true,"id":705},"target":{"__isSmartRef__":true,"id":611}},"739":{"_Position":{"__isSmartRef__":true,"id":740},"renderContextTable":{"__isSmartRef__":true,"id":741},"_Extent":{"__isSmartRef__":true,"id":742},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":743},"_Fill":{"__isSmartRef__":true,"id":579},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"740":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"741":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"742":{"x":500,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"743":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"744":{"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"},"745":{"morph":{"__isSmartRef__":true,"id":612},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"746":{"resizeWidth":true,"adjustForNewBounds":true},"747":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"748":{"x":500,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"749":{"renderContextTable":{"__isSmartRef__":true,"id":750},"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_Extent":{"__isSmartRef__":true,"id":751},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"750":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"751":{"x":500,"y":222,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"752":{"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"},"753":{"morph":{"__isSmartRef__":true,"id":611},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"754":{"adjustForNewBounds":true},"755":{"x":1234,"y":448,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"756":{"x":500,"y":222,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"757":{"x":1478,"y":453,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"758":{"resizeWidth":true,"resizeHeight":true},"759":{"submorphs":[{"__isSmartRef__":true,"id":760},{"__isSmartRef__":true,"id":774}],"scripts":[],"shape":{"__isSmartRef__":true,"id":904},"id":361,"renderContextTable":{"__isSmartRef__":true,"id":908},"eventHandler":{"__isSmartRef__":true,"id":909},"droppingEnabled":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":910},"LK2":true,"_Position":{"__isSmartRef__":true,"id":911},"priorExtent":{"__isSmartRef__":true,"id":912},"targetMorph":{"__isSmartRef__":true,"id":760},"titleBar":{"__isSmartRef__":true,"id":774},"contentOffset":{"__isSmartRef__":true,"id":770},"collapsedTransform":{"__isSmartRef__":true,"id":913},"collapsedExtent":{"__isSmartRef__":true,"id":914},"expandedTransform":{"__isSmartRef__":true,"id":915},"expandedExtent":{"__isSmartRef__":true,"id":916},"ignoreEventsOnExpand":false,"owner":null,"showsHalos":false,"highlighted":true,"_Rotation":0,"_Scale":1,"prevDragPos":{"__isSmartRef__":true,"id":917},"expandedPosition":{"__isSmartRef__":true,"id":918},"state":"shutdown","collapsedPosition":{"__isSmartRef__":true,"id":919},"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.Window","withoutLayers":["Global.lively.morphic.GrabbingLayer"]},"760":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":761},"id":360,"renderContextTable":{"__isSmartRef__":true,"id":766},"textChunks":[{"__isSmartRef__":true,"id":767}],"eventHandler":{"__isSmartRef__":true,"id":769},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":608},"_ClipMode":"auto","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco,monospace","_Position":{"__isSmartRef__":true,"id":770},"priorExtent":{"__isSmartRef__":true,"id":771},"_MaxTextWidth":500,"_MaxTextHeight":0,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":759},"layout":{"__isSmartRef__":true,"id":772},"syntaxHighlightingWhileTyping":true,"attributeConnections":[{"__isSmartRef__":true,"id":773}],"doNotSerialize":["$$textString"],"doNotCopyProperties":["$$textString"],"lastSyntaxHighlightTime":1307282796737,"accessibleInInactiveWindow":true,"eventsAreIgnored":false,"_HandStyle":"default","_PointerEvents":"auto","_Visible":true,"priorSelectionRange":[0,22],"charsReplaced":"","lastFindLoc":15,"__SourceModuleName__":"Global.lively.morphic.TextCore","textString":"","__LivelyClassName__":"lively.morphic.Text"},"761":{"_Position":{"__isSmartRef__":true,"id":762},"renderContextTable":{"__isSmartRef__":true,"id":763},"_Extent":{"__isSmartRef__":true,"id":764},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":602},"_Fill":{"__isSmartRef__":true,"id":765},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"762":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"763":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"764":{"x":500,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"765":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"766":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"767":{"style":{"__isSmartRef__":true,"id":768},"chunkOwner":{"__isSmartRef__":true,"id":760},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"768":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"769":{"morph":{"__isSmartRef__":true,"id":760},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"770":{"x":0,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"771":{"x":500,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"772":{"resizeWidth":true,"resizeHeight":true},"773":{"sourceObj":{"__isSmartRef__":true,"id":760},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":760},"targetMethodName":"highlightJavaScriptSyntax","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"774":{"submorphs":[{"__isSmartRef__":true,"id":775},{"__isSmartRef__":true,"id":787},{"__isSmartRef__":true,"id":821},{"__isSmartRef__":true,"id":854}],"scripts":[],"shape":{"__isSmartRef__":true,"id":888},"id":362,"renderContextTable":{"__isSmartRef__":true,"id":899},"eventHandler":{"__isSmartRef__":true,"id":900},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":901},"_Position":{"__isSmartRef__":true,"id":902},"windowMorph":{"__isSmartRef__":true,"id":759},"label":{"__isSmartRef__":true,"id":775},"closeButton":{"__isSmartRef__":true,"id":787},"menuButton":{"__isSmartRef__":true,"id":821},"collapseButton":{"__isSmartRef__":true,"id":854},"priorExtent":{"__isSmartRef__":true,"id":903},"owner":{"__isSmartRef__":true,"id":759},"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.TitleBar"},"775":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":776},"id":363,"renderContextTable":{"__isSmartRef__":true,"id":780},"textChunks":[{"__isSmartRef__":true,"id":781}],"eventHandler":{"__isSmartRef__":true,"id":783},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":622},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","evalEnabled":false,"isLabel":true,"_HandStyle":"default","layout":{"__isSmartRef__":true,"id":784},"_FontSize":10,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","owner":{"__isSmartRef__":true,"id":774},"priorExtent":{"__isSmartRef__":true,"id":785},"_MaxTextWidth":441,"_MaxTextHeight":17,"_Position":{"__isSmartRef__":true,"id":786},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"776":{"_Position":{"__isSmartRef__":true,"id":777},"renderContextTable":{"__isSmartRef__":true,"id":778},"_Extent":{"__isSmartRef__":true,"id":779},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":602},"_Fill":null,"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"777":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"778":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"779":{"x":441,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"780":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"781":{"style":{"__isSmartRef__":true,"id":782},"chunkOwner":{"__isSmartRef__":true,"id":775},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"782":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"783":{"morph":{"__isSmartRef__":true,"id":775},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"784":{"resizeWidth":true},"785":{"x":0,"y":14,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"786":{"x":20,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"787":{"submorphs":[{"__isSmartRef__":true,"id":788}],"scripts":[],"shape":{"__isSmartRef__":true,"id":799},"id":364,"renderContextTable":{"__isSmartRef__":true,"id":803},"eventHandler":{"__isSmartRef__":true,"id":804},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":805},"priorExtent":{"__isSmartRef__":true,"id":806},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":644},"lighterFill":{"__isSmartRef__":true,"id":807},"label":{"__isSmartRef__":true,"id":788},"owner":{"__isSmartRef__":true,"id":774},"layout":{"__isSmartRef__":true,"id":816},"attributeConnections":[{"__isSmartRef__":true,"id":817},{"__isSmartRef__":true,"id":819}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"788":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":789},"id":365,"renderContextTable":{"__isSmartRef__":true,"id":793},"textChunks":[{"__isSmartRef__":true,"id":794}],"eventHandler":{"__isSmartRef__":true,"id":796},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":636},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":797},"priorExtent":{"__isSmartRef__":true,"id":798},"_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":787},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"789":{"_Position":{"__isSmartRef__":true,"id":790},"renderContextTable":{"__isSmartRef__":true,"id":791},"_Extent":{"__isSmartRef__":true,"id":792},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":602},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"790":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"791":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"792":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"793":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"794":{"style":{"__isSmartRef__":true,"id":795},"chunkOwner":{"__isSmartRef__":true,"id":788},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"795":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"796":{"morph":{"__isSmartRef__":true,"id":788},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"797":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"798":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"799":{"_Position":{"__isSmartRef__":true,"id":800},"renderContextTable":{"__isSmartRef__":true,"id":801},"_Extent":{"__isSmartRef__":true,"id":802},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":643},"_Fill":{"__isSmartRef__":true,"id":644},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"800":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"801":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"802":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"803":{"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"},"804":{"morph":{"__isSmartRef__":true,"id":787},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"805":{"x":480,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"806":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"807":{"stops":[{"__isSmartRef__":true,"id":808},{"__isSmartRef__":true,"id":810},{"__isSmartRef__":true,"id":812},{"__isSmartRef__":true,"id":814}],"vector":{"__isSmartRef__":true,"id":653},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"808":{"offset":0,"color":{"__isSmartRef__":true,"id":809}},"809":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"810":{"offset":0.4,"color":{"__isSmartRef__":true,"id":811}},"811":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"812":{"offset":0.6,"color":{"__isSmartRef__":true,"id":813}},"813":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"814":{"offset":1,"color":{"__isSmartRef__":true,"id":815}},"815":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"816":{"moveHorizontal":true},"817":{"sourceObj":{"__isSmartRef__":true,"id":787},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":759},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":818},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"818":{"source":{"__isSmartRef__":true,"id":787},"target":{"__isSmartRef__":true,"id":759}},"819":{"sourceObj":{"__isSmartRef__":true,"id":787},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":759},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":820},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"820":{"source":{"__isSmartRef__":true,"id":787},"target":{"__isSmartRef__":true,"id":759}},"821":{"submorphs":[{"__isSmartRef__":true,"id":822}],"scripts":[],"shape":{"__isSmartRef__":true,"id":833},"id":366,"renderContextTable":{"__isSmartRef__":true,"id":837},"eventHandler":{"__isSmartRef__":true,"id":838},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":839},"priorExtent":{"__isSmartRef__":true,"id":840},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":644},"lighterFill":{"__isSmartRef__":true,"id":841},"label":{"__isSmartRef__":true,"id":822},"owner":{"__isSmartRef__":true,"id":774},"attributeConnections":[{"__isSmartRef__":true,"id":850},{"__isSmartRef__":true,"id":852}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"822":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":823},"id":367,"renderContextTable":{"__isSmartRef__":true,"id":827},"textChunks":[{"__isSmartRef__":true,"id":828}],"eventHandler":{"__isSmartRef__":true,"id":830},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":636},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":831},"priorExtent":{"__isSmartRef__":true,"id":832},"_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":821},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"823":{"_Position":{"__isSmartRef__":true,"id":824},"renderContextTable":{"__isSmartRef__":true,"id":825},"_Extent":{"__isSmartRef__":true,"id":826},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":602},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"824":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"825":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"826":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"827":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"828":{"style":{"__isSmartRef__":true,"id":829},"chunkOwner":{"__isSmartRef__":true,"id":822},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"829":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"830":{"morph":{"__isSmartRef__":true,"id":822},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"831":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"832":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"833":{"_Position":{"__isSmartRef__":true,"id":834},"renderContextTable":{"__isSmartRef__":true,"id":835},"_Extent":{"__isSmartRef__":true,"id":836},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":643},"_Fill":{"__isSmartRef__":true,"id":644},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"834":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"835":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"836":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"837":{"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"},"838":{"morph":{"__isSmartRef__":true,"id":821},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"839":{"x":3,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"840":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"841":{"stops":[{"__isSmartRef__":true,"id":842},{"__isSmartRef__":true,"id":844},{"__isSmartRef__":true,"id":846},{"__isSmartRef__":true,"id":848}],"vector":{"__isSmartRef__":true,"id":653},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"842":{"offset":0,"color":{"__isSmartRef__":true,"id":843}},"843":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"844":{"offset":0.4,"color":{"__isSmartRef__":true,"id":845}},"845":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"846":{"offset":0.6,"color":{"__isSmartRef__":true,"id":847}},"847":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"848":{"offset":1,"color":{"__isSmartRef__":true,"id":849}},"849":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"850":{"sourceObj":{"__isSmartRef__":true,"id":821},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":759},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":851},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"851":{"source":{"__isSmartRef__":true,"id":821},"target":{"__isSmartRef__":true,"id":759}},"852":{"sourceObj":{"__isSmartRef__":true,"id":821},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":759},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":853},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"853":{"source":{"__isSmartRef__":true,"id":821},"target":{"__isSmartRef__":true,"id":759}},"854":{"submorphs":[{"__isSmartRef__":true,"id":855}],"scripts":[],"shape":{"__isSmartRef__":true,"id":866},"id":368,"renderContextTable":{"__isSmartRef__":true,"id":870},"eventHandler":{"__isSmartRef__":true,"id":871},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":872},"priorExtent":{"__isSmartRef__":true,"id":873},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":644},"lighterFill":{"__isSmartRef__":true,"id":874},"label":{"__isSmartRef__":true,"id":855},"owner":{"__isSmartRef__":true,"id":774},"layout":{"__isSmartRef__":true,"id":883},"attributeConnections":[{"__isSmartRef__":true,"id":884},{"__isSmartRef__":true,"id":886}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"855":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":856},"id":369,"renderContextTable":{"__isSmartRef__":true,"id":860},"textChunks":[{"__isSmartRef__":true,"id":861}],"eventHandler":{"__isSmartRef__":true,"id":863},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":636},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":864},"priorExtent":{"__isSmartRef__":true,"id":865},"_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":854},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"856":{"_Position":{"__isSmartRef__":true,"id":857},"renderContextTable":{"__isSmartRef__":true,"id":858},"_Extent":{"__isSmartRef__":true,"id":859},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":602},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"857":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"858":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"859":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"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","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":855},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"862":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"863":{"morph":{"__isSmartRef__":true,"id":855},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"864":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"865":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"866":{"_Position":{"__isSmartRef__":true,"id":867},"renderContextTable":{"__isSmartRef__":true,"id":868},"_Extent":{"__isSmartRef__":true,"id":869},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":643},"_Fill":{"__isSmartRef__":true,"id":644},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"867":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"868":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"869":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"870":{"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"},"871":{"morph":{"__isSmartRef__":true,"id":854},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"872":{"x":461,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"873":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"874":{"stops":[{"__isSmartRef__":true,"id":875},{"__isSmartRef__":true,"id":877},{"__isSmartRef__":true,"id":879},{"__isSmartRef__":true,"id":881}],"vector":{"__isSmartRef__":true,"id":653},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"875":{"offset":0,"color":{"__isSmartRef__":true,"id":876}},"876":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"877":{"offset":0.4,"color":{"__isSmartRef__":true,"id":878}},"878":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"879":{"offset":0.6,"color":{"__isSmartRef__":true,"id":880}},"880":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"881":{"offset":1,"color":{"__isSmartRef__":true,"id":882}},"882":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"883":{"moveHorizontal":true},"884":{"sourceObj":{"__isSmartRef__":true,"id":854},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":759},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":885},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"885":{"source":{"__isSmartRef__":true,"id":854},"target":{"__isSmartRef__":true,"id":759}},"886":{"sourceObj":{"__isSmartRef__":true,"id":854},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":759},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":887},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"887":{"source":{"__isSmartRef__":true,"id":854},"target":{"__isSmartRef__":true,"id":759}},"888":{"_Position":{"__isSmartRef__":true,"id":889},"renderContextTable":{"__isSmartRef__":true,"id":890},"_Extent":{"__isSmartRef__":true,"id":891},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":743},"_Fill":{"__isSmartRef__":true,"id":892},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"889":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"890":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"891":{"x":500,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"892":{"stops":[{"__isSmartRef__":true,"id":893},{"__isSmartRef__":true,"id":895},{"__isSmartRef__":true,"id":897}],"vector":{"__isSmartRef__":true,"id":653},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"893":{"offset":0,"color":{"__isSmartRef__":true,"id":894}},"894":{"r":0.8600000000000001,"g":0.8600000000000001,"b":0.8600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"895":{"offset":0.6,"color":{"__isSmartRef__":true,"id":896}},"896":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"897":{"offset":1,"color":{"__isSmartRef__":true,"id":898}},"898":{"r":0.8600000000000001,"g":0.8600000000000001,"b":0.8600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"899":{"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"},"900":{"morph":{"__isSmartRef__":true,"id":774},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"901":{"resizeWidth":true,"adjustForNewBounds":true},"902":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"903":{"x":500,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"904":{"renderContextTable":{"__isSmartRef__":true,"id":905},"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_Extent":{"__isSmartRef__":true,"id":906},"_Position":{"__isSmartRef__":true,"id":907},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"905":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"906":{"x":500,"y":222,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"907":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"908":{"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"},"909":{"morph":{"__isSmartRef__":true,"id":759},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"910":{"adjustForNewBounds":true},"911":{"x":1131,"y":79,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"912":{"x":500,"y":222,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"913":{"a":1,"b":0,"c":0,"d":1,"e":1131,"f":79,"__SourceModuleName__":"Global.lively.morphic.Core","__LivelyClassName__":"lively.morphic.Similitude"},"914":{"x":500,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"915":{"a":1,"b":0,"c":0,"d":1,"e":1131,"f":79,"__SourceModuleName__":"Global.lively.morphic.Core","__LivelyClassName__":"lively.morphic.Similitude"},"916":{"x":500,"y":222,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"917":{"x":1507,"y":76,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"918":{"x":1131,"y":79,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"919":{"x":1131,"y":79,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"920":{"x":377.6609726943286,"y":419.5142810783999,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"921":{"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"},"922":{"submorphs":[],"scripts":[],"id":352,"shape":{"__isSmartRef__":true,"id":923},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":930},"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco,courier","_Position":{"__isSmartRef__":true,"id":931},"_MaxTextWidth":503.0285365288845,"_MaxTextHeight":null,"textChunks":[{"__isSmartRef__":true,"id":932}],"layout":{"__isSmartRef__":true,"id":934},"showsHalos":false,"prevScroll":[0,0],"priorSelectionRange":[8517,8517],"name":"ObjectEditorScriptPane","charsReplaced":"SCRIPTNAME","lastFindLoc":34,"partsBinMetaInfo":{"__isSmartRef__":true,"id":935},"__SourceModuleName__":"Global.lively.morphic.TextCore","priorExtent":{"__isSmartRef__":true,"id":936},"_ClipMode":"auto","owner":{"__isSmartRef__":true,"id":426},"_FontSize":9,"lastSyntaxHighlightTime":1322538262279,"doitContext":{"__isSmartRef__":true,"id":426},"savedTextString":"// changed at Mon Nov 28 2011 19:42:24 GMT-0800 (PST) by lauritz \nthis.addScript(function test2() {\n \n}).tag([\"test2\", \"test\"]);","_Align":"left","renderContextTable":{"__isSmartRef__":true,"id":937},"lastSearchString":"stringsformat","eventHandler":{"__isSmartRef__":true,"id":938},"attributeConnections":[{"__isSmartRef__":true,"id":939}],"doNotSerialize":["$$textString"],"doNotCopyProperties":["$$textString"],"distanceToDragEvent":{"__isSmartRef__":true,"id":965},"_MinTextWidth":503.0285365288845,"_MinTextHeight":null,"previousSelection":[0,0],"lastSaveSource":"// changed at Wed Nov 16 2011 19:52:56 GMT-0800 (PST) by lauritz \nthis.addScript(function confirmUnsavedChanges(callback) {\n var message = \"Discard unsaved changes?\";\n var dialog = new lively.morphic.ConfirmDialog(message, callback);\n\n return this.world().openDialog(dialog);\n}).tag([]);\n\n\n// changed at Thu Nov 17 2011 11:04:19 GMT-0800 (PST) by lauritz \nthis.addScript(function copyToPartsBinWithUserRequest() {\n this.owner.copyToPartsBinWithUserRequest();\n}).tag([]);\n\n\n// changed at Wed Nov 16 2011 19:13:43 GMT-0800 (PST) by lauritz \nthis.addScript(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}).tag([]);\n\n\n// changed at Wed Nov 16 2011 19:59:26 GMT-0800 (PST) by lauritz \nthis.addScript(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}).tag([]);\n\n\n// changed at Wed Nov 16 2011 19:52:36 GMT-0800 (PST) by lauritz \nthis.addScript(function displaySourceForConnection(connection) {\n var code = \"\", that = this;\n if (connection === null) {\n this.sortedConnectionNamesOfObj(this.target).forEach(function(each) {\n code = code.concat(that.generateSourceForConnection(each[1])).concat(\"\\n\\n\");\n });\n code = code.substring(0, code.length - \"\\n\\n\".length - 1);\n } else {\n code = this.generateSourceForConnection(connection);\n }\n this.displayJavaScriptSource(code);\n}).tag([]);\n\n\n// changed at Wed Nov 16 2011 19:51:37 GMT-0800 (PST) by lauritz \nthis.addScript(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}).tag([]);\n\n\n// changed at Mon Nov 28 2011 19:38:23 GMT-0800 (PST) by lauritz \nthis.addScript(function ensureAnnotationLayer() {\n module('lively.LayerableMorphs').load(true);\n\n if (\"ScriptAnnotationLayer\" in Global) return;\n \n cop.create(\"ScriptAnnotationLayer\");\n ScriptAnnotationLayer.refineClass(\n lively.morphic.Morph,{\n \n addScript: function(funcOrString) {\n var func = Function.fromString(funcOrString),\n oldFunction = this[func.name],\n changed = oldFunction && oldFunction.toString() !== func.toString();\n \n var result = cop.proceed.apply(this, arguments);\n\n if (oldFunction && !changed) {\n this[func.name].setTimestampAndUser(oldFunction.timestamp, oldFunction.user);\n } else {\n this[func.name].setTimestampAndUser();\n }\n return result;\n },\n\n tagScript: function(scriptName, tags) {\n return this[scriptName].tag(tags);\n }\n\n }); \n ScriptAnnotationLayer.refineObject(\n Function.prototype,{\n\n setTimestampAndUser: function(timestamp, user) {\n this.setProperty('timestamp', timestamp || new Date());\n if ($world && $world.getUserName()) {\n this.setProperty('user', user || $world.getUserName());\n }\n },\n \n tag: function(tags) {\n var tags = (typeof tags === 'string') ? [tags] : tags;\n this.setProperty(\"tags\", tags);\n return true; \n } \n });\n\n}).tag([]);\n\n\n// changed at Wed Nov 16 2011 19:59:26 GMT-0800 (PST) by lauritz \nthis.addScript(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}).tag([]);\n\n\n// changed at Mon Nov 28 2011 19:32:42 GMT-0800 (PST) by lauritz \nthis.addScript(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}).tag([]);\n\n\n// changed at Wed Nov 16 2011 19:59:26 GMT-0800 (PST) by lauritz \nthis.addScript(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}).tag([]);\n\n\n// changed at Mon Nov 28 2011 19:41:00 GMT-0800 (PST) by lauritz \nthis.addScript(function migrateOldScriptAnnotations() {\n var target = this.target;\n\n if (!target) return;\n\n if (target.scriptAnnotations) {\n Functions.own(target).forEach(function (scriptName){\n var scriptAnnotation = target.scriptAnnotations[scriptName];\n if (!scriptAnnotation) return;\n if (scriptAnnotation.user) {\n target[scriptName].setProperty('user', scriptAnnotation.user);\n }\n if (scriptAnnotation.time) {\n target[scriptName].setProperty('timestamp', scriptAnnotation.time);\n }\n if (scriptAnnotation.categories) {\n target[scriptName].setProperty('tags', scriptAnnotation.categories);\n }\n });\n delete target.scriptAnnotations;\n } \n\n Functions.own(target).forEach(function (scriptName) {\n if (target[scriptName].categories) {\n target[scriptName].tags = target[scriptName].categories;\n delete target[scriptName].categories;\n } \n });\n\n}).tag([]);\n\n\n// changed at Wed Nov 16 2011 19:59:26 GMT-0800 (PST) by lauritz \nthis.addScript(function newConnection() {\n if (this.target) {\n var code = \"connect(SOURCE, SOURCE_PROPERTY, TARGET, TARGET_PROPERTY);\";\n this.displayJavaScriptSource(code);\n }\n}).tag([]);\n\n\n// changed at Mon Nov 28 2011 19:24:25 GMT-0800 (PST) by lauritz \nthis.addScript(function newScript() {\n if (this.target) {\n var code = \"this.addScript(function SCRIPTNAME() {\\n \\n}).tag([]);\";\n this.displayJavaScriptSource(code);\n }\n}).tag([]);\n\n\n// changed at Wed Nov 16 2011 19:59:26 GMT-0800 (PST) by lauritz \nthis.addScript(function onShutdown() {\n if (this.scriptPane.hasChanged()) {\n var that = this;\n // callback is executed asynchronously since waits on user input.\n // however, the editor should not be closed before input\n // therefore, we patch the remove method until the user reacted\n this.owner.remove = function() {};\n var callback = function(confirmed) {\n if (that.owner.state === \"shutdown\") delete that.owner.state;\n that.owner.remove = that.owner.__proto__.remove;\n if (confirmed) that.owner.remove();\n }\n this.confirmUnsavedChanges(callback);\n } \n}).tag([]);\n\n\n// changed at Mon Nov 28 2011 19:33:20 GMT-0800 (PST) by lauritz \nthis.addScript(function printTags(script) {\n if (!script.tags) return \"[]\";\n\n var printString = '[';\n for (var i=0; i < script.tags.length; i++) {\n if (i !== 0) printString += ', ';\n printString += '\"' + script.tags[i] + '\"';\n }\n printString += ']';\n return printString;\n}).tag([]);\n\n\n// changed at Mon Nov 28 2011 19:37:05 GMT-0800 (PST) by lauritz \nthis.addScript(function reset() {\n this.scriptPane = this.get('ObjectEditorScriptPane')\n this.scriptList = this.get('ObjectEditorScriptList')\n this.connectionList = this.get('ObjectEditorConnectionList')\n this.morphSelector = this.get('ObjectEditorMorphSelector')\n this.target = null;\n this.scriptPane.reset();\n this.scriptList.setList();\n this.connectionList.setList();\n this.morphSelector.reset();\n this.tagChooser.reset();\n this.currentTag = null;\n this.stopStepping();\n}).tag([]);\n\n\n// changed at Wed Nov 16 2011 19:47:56 GMT-0800 (PST) by lauritz \nthis.addScript(function selectChangedContent(source) {\n\n var addScriptRegex = /this\\.addScript\\s*\\(\\s*function\\s*([^\\(]*)/g;\n var addScriptMatches = [];\n var addScriptMatch = addScriptRegex.exec(source);\n while (addScriptMatch) {\n addScriptMatches.push(addScriptMatch[1]);\n addScriptMatch = addScriptRegex.exec(source);\n }\n \n // if scripts were added, select either a specific one or all\n if (addScriptMatches.length > 0) { \n if (addScriptMatches.length === 1) {\n return this.scriptList.selectAddedScript(addScriptMatches[0]);\n }\n return this.scriptList.selectAt(0);\n }\n\n var connectionRegex = \n /connect\\(\\s*([^,]*)\\s*,\\s*\"([^,]*)\"\\s*,\\s*([^,]*)\\s*,\\s*\"([^,]*)\"/g;\n var connectionMatches = [];\n var connectionMatch = connectionRegex.exec(source);\n while (connectionMatch) {\n connectionMatches.push(connectionMatch);\n connectionMatch = connectionRegex.exec(source);\n }\n\n // if connections were made, select either a specific one or all\n if (connectionMatches.length > 0) {\n if (connectionMatches.length === 1) {\n var match = connectionMatches[0];\n for (var i=0; i 1) {\n this.scriptList.preselectItem();\n } else if (this.connectionList.getList().size() > 1) {\n this.connectionList.preselectItem();\n } else {\n this.scriptList.selectAt(0);\n }\n}).tag([]);\n\n\n// changed at Wed Nov 16 2011 19:59:26 GMT-0800 (PST) by lauritz \nthis.addScript(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}).tag([]);\n\n\n// changed at Wed Nov 16 2011 19:52:36 GMT-0800 (PST) by lauritz \nthis.addScript(function displaySourceForConnection(connection) {\n var code = \"\", that = this;\n if (connection === null) {\n this.sortedConnectionNamesOfObj(this.target).forEach(function(each) {\n code = code.concat(that.generateSourceForConnection(each[1])).concat(\"\\n\\n\");\n });\n code = code.substring(0, code.length - \"\\n\\n\".length - 1);\n } else {\n code = this.generateSourceForConnection(connection);\n }\n this.displayJavaScriptSource(code);\n}).tag([]);\n\n\n// changed at Wed Nov 16 2011 19:51:37 GMT-0800 (PST) by lauritz \nthis.addScript(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}).tag([]);\n\n\n// changed at Mon Nov 28 2011 19:38:23 GMT-0800 (PST) by lauritz \nthis.addScript(function ensureAnnotationLayer() {\n module('lively.LayerableMorphs').load(true);\n\n if (\"ScriptAnnotationLayer\" in Global) return;\n \n cop.create(\"ScriptAnnotationLayer\");\n ScriptAnnotationLayer.refineClass(\n lively.morphic.Morph,{\n \n addScript: function(funcOrString) {\n var func = Function.fromString(funcOrString),\n oldFunction = this[func.name],\n changed = oldFunction && oldFunction.toString() !== func.toString();\n \n var result = cop.proceed.apply(this, arguments);\n\n if (oldFunction && !changed) {\n this[func.name].setTimestampAndUser(oldFunction.timestamp, oldFunction.user);\n } else {\n this[func.name].setTimestampAndUser();\n }\n return result;\n },\n\n tagScript: function(scriptName, tags) {\n return this[scriptName].tag(tags);\n }\n\n }); \n ScriptAnnotationLayer.refineObject(\n Function.prototype,{\n\n setTimestampAndUser: function(timestamp, user) {\n this.setProperty('timestamp', timestamp || new Date());\n if ($world && $world.getUserName()) {\n this.setProperty('user', user || $world.getUserName());\n }\n },\n \n tag: function(tags) {\n var tags = (typeof tags === 'string') ? [tags] : tags;\n this.setProperty(\"tags\", tags);\n return true; \n } \n });\n\n}).tag([]);\n\n\n// changed at Wed Nov 16 2011 19:59:26 GMT-0800 (PST) by lauritz \nthis.addScript(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}).tag([]);\n\n\n// changed at Mon Nov 28 2011 19:32:42 GMT-0800 (PST) by lauritz \nthis.addScript(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}).tag([]);\n\n\n// changed at Wed Nov 16 2011 19:59:26 GMT-0800 (PST) by lauritz \nthis.addScript(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}).tag([]);\n\n\n// changed at Mon Nov 28 2011 19:41:00 GMT-0800 (PST) by lauritz \nthis.addScript(function migrateOldScriptAnnotations() {\n var target = this.target;\n\n if (!target) return;\n\n if (target.scriptAnnotations) {\n Functions.own(target).forEach(function (scriptName){\n var scriptAnnotation = target.scriptAnnotations[scriptName];\n if (!scriptAnnotation) return;\n if (scriptAnnotation.user) {\n target[scriptName].setProperty('user', scriptAnnotation.user);\n }\n if (scriptAnnotation.time) {\n target[scriptName].setProperty('timestamp', scriptAnnotation.time);\n }\n if (scriptAnnotation.categories) {\n target[scriptName].setProperty('tags', scriptAnnotation.categories);\n }\n });\n delete target.scriptAnnotations;\n } \n\n Functions.own(target).forEach(function (scriptName) {\n if (target[scriptName].categories) {\n target[scriptName].tags = target[scriptName].categories;\n delete target[scriptName].categories;\n } \n });\n\n}).tag([]);\n\n\n// changed at Wed Nov 16 2011 19:59:26 GMT-0800 (PST) by lauritz \nthis.addScript(function newConnection() {\n if (this.target) {\n var code = \"connect(SOURCE, SOURCE_PROPERTY, TARGET, TARGET_PROPERTY);\";\n this.displayJavaScriptSource(code);\n }\n}).tag([]);\n\n\n// changed at Mon Nov 28 2011 19:24:25 GMT-0800 (PST) by lauritz \nthis.addScript(function newScript() {\n if (this.target) {\n var code = \"this.addScript(function SCRIPTNAME() {\\n \\n}).tag([]);\";\n this.displayJavaScriptSource(code);\n }\n}).tag([]);\n\n\n// changed at Wed Nov 16 2011 19:59:26 GMT-0800 (PST) by lauritz \nthis.addScript(function onShutdown() {\n if (this.scriptPane.hasChanged()) {\n var that = this;\n // callback is executed asynchronously since waits on user input.\n // however, the editor should not be closed before input\n // therefore, we patch the remove method until the user reacted\n this.owner.remove = function() {};\n var callback = function(confirmed) {\n if (that.owner.state === \"shutdown\") delete that.owner.state;\n that.owner.remove = that.owner.__proto__.remove;\n if (confirmed) that.owner.remove();\n }\n this.confirmUnsavedChanges(callback);\n } \n}).tag([]);\n\n\n// changed at Mon Nov 28 2011 19:33:20 GMT-0800 (PST) by lauritz \nthis.addScript(function printTags(script) {\n if (!script.tags) return \"[]\";\n\n var printString = '[';\n for (var i=0; i < script.tags.length; i++) {\n if (i !== 0) printString += ', ';\n printString += '\"' + script.tags[i] + '\"';\n }\n printString += ']';\n return printString;\n}).tag([]);\n\n\n// changed at Mon Nov 28 2011 19:37:05 GMT-0800 (PST) by lauritz \nthis.addScript(function reset() {\n this.scriptPane = this.get('ObjectEditorScriptPane')\n this.scriptList = this.get('ObjectEditorScriptList')\n this.connectionList = this.get('ObjectEditorConnectionList')\n this.morphSelector = this.get('ObjectEditorMorphSelector')\n this.target = null;\n this.scriptPane.reset();\n this.scriptList.setList();\n this.connectionList.setList();\n this.morphSelector.reset();\n this.tagChooser.reset();\n this.currentTag = null;\n this.stopStepping();\n}).tag([]);\n\n\n// changed at Wed Nov 16 2011 19:47:56 GMT-0800 (PST) by lauritz \nthis.addScript(function selectChangedContent(source) {\n\n var addScriptRegex = /this\\.addScript\\s*\\(\\s*function\\s*([^\\(]*)/g;\n var addScriptMatches = [];\n var addScriptMatch = addScriptRegex.exec(source);\n while (addScriptMatch) {\n addScriptMatches.push(addScriptMatch[1]);\n addScriptMatch = addScriptRegex.exec(source);\n }\n \n // if scripts were added, select either a specific one or all\n if (addScriptMatches.length > 0) { \n if (addScriptMatches.length === 1) {\n return this.scriptList.selectAddedScript(addScriptMatches[0]);\n }\n return this.scriptList.selectAt(0);\n }\n\n var connectionRegex = \n /connect\\(\\s*([^,]*)\\s*,\\s*\"([^,]*)\"\\s*,\\s*([^,]*)\\s*,\\s*\"([^,]*)\"/g;\n var connectionMatches = [];\n var connectionMatch = connectionRegex.exec(source);\n while (connectionMatch) {\n connectionMatches.push(connectionMatch);\n connectionMatch = connectionRegex.exec(source);\n }\n\n // if connections were made, select either a specific one or all\n if (connectionMatches.length > 0) {\n if (connectionMatches.length === 1) {\n var match = connectionMatches[0];\n for (var i=0; i 1) {\n this.scriptList.preselectItem();\n } else if (this.connectionList.getList().size() > 1) {\n this.connectionList.preselectItem();\n } else {\n this.scriptList.selectAt(0);\n }\n}).tag([]);\n\n\n// changed at Wed Nov 16 2011 19:59:26 GMT-0800 (PST) by lauritz \nthis.addScript(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}).tag([]);\n\n\n// changed at Wed Nov 16 2011 19:52:36 GMT-0800 (PST) by lauritz \nthis.addScript(function displaySourceForConnection(connection) {\n var code = \"\", that = this;\n if (connection === null) {\n this.sortedConnectionNamesOfObj(this.target).forEach(function(each) {\n code = code.concat(that.generateSourceForConnection(each[1])).concat(\"\\n\\n\");\n });\n code = code.substring(0, code.length - \"\\n\\n\".length - 1);\n } else {\n code = this.generateSourceForConnection(connection);\n }\n this.displayJavaScriptSource(code);\n}).tag([]);\n\n\n// changed at Wed Nov 16 2011 19:51:37 GMT-0800 (PST) by lauritz \nthis.addScript(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}).tag([]);\n\n\n// changed at Mon Nov 28 2011 19:38:23 GMT-0800 (PST) by lauritz \nthis.addScript(function ensureAnnotationLayer() {\n module('lively.LayerableMorphs').load(true);\n\n if (\"ScriptAnnotationLayer\" in Global) return;\n \n cop.create(\"ScriptAnnotationLayer\");\n ScriptAnnotationLayer.refineClass(\n lively.morphic.Morph,{\n \n addScript: function(funcOrString) {\n var func = Function.fromString(funcOrString),\n oldFunction = this[func.name],\n changed = oldFunction && oldFunction.toString() !== func.toString();\n \n var result = cop.proceed.apply(this, arguments);\n\n if (oldFunction && !changed) {\n this[func.name].setTimestampAndUser(oldFunction.timestamp, oldFunction.user);\n } else {\n this[func.name].setTimestampAndUser();\n }\n return result;\n },\n\n tagScript: function(scriptName, tags) {\n return this[scriptName].tag(tags);\n }\n\n }); \n ScriptAnnotationLayer.refineObject(\n Function.prototype,{\n\n setTimestampAndUser: function(timestamp, user) {\n this.setProperty('timestamp', timestamp || new Date());\n if ($world && $world.getUserName()) {\n this.setProperty('user', user || $world.getUserName());\n }\n },\n \n tag: function(tags) {\n var tags = (typeof tags === 'string') ? [tags] : tags;\n this.setProperty(\"tags\", tags);\n return true; \n } \n });\n\n}).tag([]);\n\n\n// changed at Wed Nov 16 2011 19:59:26 GMT-0800 (PST) by lauritz \nthis.addScript(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}).tag([]);\n\n\n// changed at Mon Nov 28 2011 19:32:42 GMT-0800 (PST) by lauritz \nthis.addScript(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}).tag([]);\n\n\n// changed at Wed Nov 16 2011 19:59:26 GMT-0800 (PST) by lauritz \nthis.addScript(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}).tag([]);\n\n\n// changed at Mon Nov 28 2011 19:41:00 GMT-0800 (PST) by lauritz \nthis.addScript(function migrateOldScriptAnnotations() {\n var target = this.target;\n\n if (!target) return;\n\n if (target.scriptAnnotations) {\n Functions.own(target).forEach(function (scriptName){\n var scriptAnnotation = target.scriptAnnotations[scriptName];\n if (!scriptAnnotation) return;\n if (scriptAnnotation.user) {\n target[scriptName].setProperty('user', scriptAnnotation.user);\n }\n if (scriptAnnotation.time) {\n target[scriptName].setProperty('timestamp', scriptAnnotation.time);\n }\n if (scriptAnnotation.categories) {\n target[scriptName].setProperty('tags', scriptAnnotation.categories);\n }\n });\n delete target.scriptAnnotations;\n } \n\n Functions.own(target).forEach(function (scriptName) {\n if (target[scriptName].categories) {\n target[scriptName].tags = target[scriptName].categories;\n delete target[scriptName].categories;\n } \n });\n\n}).tag([]);\n\n\n// changed at Wed Nov 16 2011 19:59:26 GMT-0800 (PST) by lauritz \nthis.addScript(function newConnection() {\n if (this.target) {\n var code = \"connect(SOURCE, SOURCE_PROPERTY, TARGET, TARGET_PROPERTY);\";\n this.displayJavaScriptSource(code);\n }\n}).tag([]);\n\n\n// changed at Mon Nov 28 2011 19:24:25 GMT-0800 (PST) by lauritz \nthis.addScript(function newScript() {\n if (this.target) {\n var code = \"this.addScript(function SCRIPTNAME() {\\n \\n}).tag([]);\";\n this.displayJavaScriptSource(code);\n }\n}).tag([]);\n\n\n// changed at Wed Nov 16 2011 19:59:26 GMT-0800 (PST) by lauritz \nthis.addScript(function onShutdown() {\n if (this.scriptPane.hasChanged()) {\n var that = this;\n // callback is executed asynchronously since waits on user input.\n // however, the editor should not be closed before input\n // therefore, we patch the remove method until the user reacted\n this.owner.remove = function() {};\n var callback = function(confirmed) {\n if (that.owner.state === \"shutdown\") delete that.owner.state;\n that.owner.remove = that.owner.__proto__.remove;\n if (confirmed) that.owner.remove();\n }\n this.confirmUnsavedChanges(callback);\n } \n}).tag([]);\n\n\n// changed at Mon Nov 28 2011 19:33:20 GMT-0800 (PST) by lauritz \nthis.addScript(function printTags(script) {\n if (!script.tags) return \"[]\";\n\n var printString = '[';\n for (var i=0; i < script.tags.length; i++) {\n if (i !== 0) printString += ', ';\n printString += '\"' + script.tags[i] + '\"';\n }\n printString += ']';\n return printString;\n}).tag([]);\n\n\n// changed at Mon Nov 28 2011 19:37:05 GMT-0800 (PST) by lauritz \nthis.addScript(function reset() {\n this.scriptPane = this.get('ObjectEditorScriptPane')\n this.scriptList = this.get('ObjectEditorScriptList')\n this.connectionList = this.get('ObjectEditorConnectionList')\n this.morphSelector = this.get('ObjectEditorMorphSelector')\n this.target = null;\n this.scriptPane.reset();\n this.scriptList.setList();\n this.connectionList.setList();\n this.morphSelector.reset();\n this.tagChooser.reset();\n this.currentTag = null;\n this.stopStepping();\n}).tag([]);\n\n\n// changed at Wed Nov 16 2011 19:47:56 GMT-0800 (PST) by lauritz \nthis.addScript(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":1262},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1261":{"this":{"__isSmartRef__":true,"id":444}},"1262":{},"1263":{"varMapping":{"__isSmartRef__":true,"id":1264},"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":1265},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1264":{"this":{"__isSmartRef__":true,"id":444}},"1265":{},"1266":{"varMapping":{"__isSmartRef__":true,"id":1267},"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":1268},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1267":{"this":{"__isSmartRef__":true,"id":444}},"1268":{},"1269":{"varMapping":{"__isSmartRef__":true,"id":1270},"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":1271},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1270":{"this":{"__isSmartRef__":true,"id":444}},"1271":{},"1272":{"varMapping":{"__isSmartRef__":true,"id":1273},"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":1473},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1472":{"this":{"__isSmartRef__":true,"id":1419}},"1473":{"timestamp":{"__isSmartRef__":true,"id":1474},"user":"lauritz","categories":[]},"1474":{"isSerializedDate":true,"string":"Thu Nov 10 2011 16:46:54 GMT-0800 (PST)"},"1475":{"submorphs":[{"__isSmartRef__":true,"id":1476}],"scripts":[],"id":350,"shape":{"__isSmartRef__":true,"id":1491},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1507},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1494},"lighterFill":{"__isSmartRef__":true,"id":1508},"label":{"__isSmartRef__":true,"id":1476},"attributeConnections":[{"__isSmartRef__":true,"id":1517}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","padding":{"__isSmartRef__":true,"id":1519},"name":"ObjectEditorRemoveScriptButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":1520},"renderContextTable":{"__isSmartRef__":true,"id":1521},"priorExtent":{"__isSmartRef__":true,"id":1522},"owner":{"__isSmartRef__":true,"id":426},"eventHandler":{"__isSmartRef__":true,"id":1523},"isCopyMorphRef":true,"morphRefId":24,"draggingEnabled":false,"objectEditorPane":{"__isSmartRef__":true,"id":426},"distanceToDragEvent":{"__isSmartRef__":true,"id":1524},"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1525},"__LivelyClassName__":"lively.morphic.Button"},"1476":{"submorphs":[],"scripts":[],"id":351,"shape":{"__isSmartRef__":true,"id":1477},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":25,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1483},"textColor":{"__isSmartRef__":true,"id":1480},"owner":{"__isSmartRef__":true,"id":1475},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":1484}],"padding":{"__isSmartRef__":true,"id":1486},"_Padding":{"__isSmartRef__":true,"id":1487},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":1488},"_FontFamily":"Helvetica, Sans-Serif","renderContextTable":{"__isSmartRef__":true,"id":1489},"_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","_Align":"center","eventHandler":{"__isSmartRef__":true,"id":1490},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":25,"_MinTextHeight":null,"draggingEnabled":false,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"1477":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1478},"_Extent":{"__isSmartRef__":true,"id":1479},"_BorderColor":{"__isSmartRef__":true,"id":1480},"renderContextTable":{"__isSmartRef__":true,"id":1481},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1482},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1478":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1479":{"x":25,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1480":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1481":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1482":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1483":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1484":{"style":{"__isSmartRef__":true,"id":1485},"morph":{"__isSmartRef__":true,"id":1476},"__SourceModuleName__":"Global.lively.morphic.TextCore","chunkOwner":{"__isSmartRef__":true,"id":1476},"storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk"},"1485":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1486":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1487":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1488":{"x":25,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1489":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1490":{"morph":{"__isSmartRef__":true,"id":1476},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1491":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1492},"_Extent":{"__isSmartRef__":true,"id":1493},"_Fill":{"__isSmartRef__":true,"id":1494},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1504},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":1505},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1506},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1492":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1493":{"x":25,"y":20,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1494":{"stops":[{"__isSmartRef__":true,"id":1495},{"__isSmartRef__":true,"id":1497},{"__isSmartRef__":true,"id":1499},{"__isSmartRef__":true,"id":1501}],"vector":{"__isSmartRef__":true,"id":1503},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1495":{"offset":0,"color":{"__isSmartRef__":true,"id":1496}},"1496":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1497":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1498}},"1498":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1499":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1500}},"1500":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1501":{"offset":1,"color":{"__isSmartRef__":true,"id":1502}},"1502":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1503":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1504":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"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":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1507":{"x":160,"y":40,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1508":{"stops":[{"__isSmartRef__":true,"id":1509},{"__isSmartRef__":true,"id":1511},{"__isSmartRef__":true,"id":1513},{"__isSmartRef__":true,"id":1515}],"vector":{"__isSmartRef__":true,"id":1503},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1509":{"offset":0,"color":{"__isSmartRef__":true,"id":1510}},"1510":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1511":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1512}},"1512":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1513":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1514}},"1514":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1515":{"offset":1,"color":{"__isSmartRef__":true,"id":1516}},"1516":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1517":{"sourceObj":{"__isSmartRef__":true,"id":1475},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1475},"targetMethodName":"deleteSelectedScript","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1518},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1518":{"source":{"__isSmartRef__":true,"id":1475},"target":{"__isSmartRef__":true,"id":1475}},"1519":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1520":{"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"},"1521":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1522":{"x":30,"y":20,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1523":{"morph":{"__isSmartRef__":true,"id":1475},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1524":{"x":33.35839679439101,"y":-21.324811622839547,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1525":{"deleteSelectedScript":{"__isSmartRef__":true,"id":1526}},"1526":{"varMapping":{"__isSmartRef__":true,"id":1527},"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":1528},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1527":{"this":{"__isSmartRef__":true,"id":1475}},"1528":{"timestamp":{"__isSmartRef__":true,"id":1529},"user":"lauritz"},"1529":{"isSerializedDate":true,"string":"Thu Nov 17 2011 09:12:21 GMT-0800 (PST)"},"1530":{"submorphs":[{"__isSmartRef__":true,"id":1531}],"scripts":[],"id":354,"shape":{"__isSmartRef__":true,"id":1546},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1562},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1549},"lighterFill":{"__isSmartRef__":true,"id":1563},"label":{"__isSmartRef__":true,"id":1531},"attributeConnections":[{"__isSmartRef__":true,"id":1572}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","padding":{"__isSmartRef__":true,"id":1574},"name":"ObjectEditorMorphSelector","partsBinMetaInfo":{"__isSmartRef__":true,"id":1575},"list":[],"renderContextTable":{"__isSmartRef__":true,"id":1576},"eventHandler":{"__isSmartRef__":true,"id":1577},"distanceToDragEvent":{"__isSmartRef__":true,"id":1578},"priorExtent":{"__isSmartRef__":true,"id":1579},"owner":{"__isSmartRef__":true,"id":426},"textString":"","selection":{"__isSmartRef__":true,"id":1580},"_ClipMode":"visible","prevScroll":[0,0],"listMorph":null,"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1597},"__LivelyClassName__":"lively.morphic.Button"},"1531":{"submorphs":[],"scripts":[],"id":355,"shape":{"__isSmartRef__":true,"id":1532},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":180,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1538},"textColor":{"__isSmartRef__":true,"id":1535},"owner":{"__isSmartRef__":true,"id":1530},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":1539}],"padding":{"__isSmartRef__":true,"id":1541},"_Padding":{"__isSmartRef__":true,"id":1541},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":1542},"attributeConnections":[{"__isSmartRef__":true,"id":1543}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"renderContextTable":{"__isSmartRef__":true,"id":1544},"eventHandler":{"__isSmartRef__":true,"id":1545},"_HandStyle":"default","_PointerEvents":"none","_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":180,"_MinTextHeight":null,"_Align":"left","_FontFamily":"Arial","_FontSize":11,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"1532":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1533},"_Extent":{"__isSmartRef__":true,"id":1534},"_BorderColor":{"__isSmartRef__":true,"id":1535},"renderContextTable":{"__isSmartRef__":true,"id":1536},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":1537},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1533":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1534":{"x":180,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1535":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1536":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1537":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1538":{"x":2,"y":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1539":{"style":{"__isSmartRef__":true,"id":1540},"chunkOwner":{"__isSmartRef__":true,"id":1531},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"ObjectEditorPane","__LivelyClassName__":"lively.morphic.TextChunk"},"1540":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1541":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1542":{"x":180,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1543":{"sourceObj":{"__isSmartRef__":true,"id":1531},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":1530},"targetMethodName":"selection","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1544":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1545":{"morph":{"__isSmartRef__":true,"id":1531},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1546":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1547},"_Extent":{"__isSmartRef__":true,"id":1548},"_Fill":{"__isSmartRef__":true,"id":1549},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1559},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":1560},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1561},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1547":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1548":{"x":180,"y":20,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1549":{"stops":[{"__isSmartRef__":true,"id":1550},{"__isSmartRef__":true,"id":1552},{"__isSmartRef__":true,"id":1554},{"__isSmartRef__":true,"id":1556}],"vector":{"__isSmartRef__":true,"id":1558},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1550":{"offset":0,"color":{"__isSmartRef__":true,"id":1551}},"1551":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1552":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1553}},"1553":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1554":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1555}},"1555":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1556":{"offset":1,"color":{"__isSmartRef__":true,"id":1557}},"1557":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1558":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1559":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1560":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1561":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1562":{"x":240.1308656788165,"y":10,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1563":{"stops":[{"__isSmartRef__":true,"id":1564},{"__isSmartRef__":true,"id":1566},{"__isSmartRef__":true,"id":1568},{"__isSmartRef__":true,"id":1570}],"vector":{"__isSmartRef__":true,"id":1558},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1564":{"offset":0,"color":{"__isSmartRef__":true,"id":1565}},"1565":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1566":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1567}},"1567":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1568":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1569}},"1569":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1570":{"offset":1,"color":{"__isSmartRef__":true,"id":1571}},"1571":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1572":{"sourceObj":{"__isSmartRef__":true,"id":1530},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":426},"targetMethodName":"setTarget","converter":null,"converterString":"function (name) { return $world.get(name)}","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1573},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1573":{"source":{"__isSmartRef__":true,"id":1530},"target":{"__isSmartRef__":true,"id":426}},"1574":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1575":{"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"},"1576":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1577":{"morph":{"__isSmartRef__":true,"id":1530},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1578":{"x":122.93118375058827,"y":-11.582832083333244,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1579":{"x":180,"y":20,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1580":{"submorphs":[],"scripts":[],"id":181,"shape":{"__isSmartRef__":true,"id":1581},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1587},"_MaxTextWidth":580,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":1588},"showsHalos":false,"_FontSize":28,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"Title","partsBinMetaInfo":{"__isSmartRef__":true,"id":1589},"_TextColor":{"__isSmartRef__":true,"id":1590},"renderContextTable":{"__isSmartRef__":true,"id":1591},"textChunks":[{"__isSmartRef__":true,"id":1592}],"eventHandler":{"__isSmartRef__":true,"id":1594},"priorExtent":{"__isSmartRef__":true,"id":1595},"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":1596},"_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","isCopyMorphRef":true,"morphRefId":2,"prevScroll":[0,0],"__LivelyClassName__":"lively.morphic.Text"},"1581":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1582},"_Extent":{"__isSmartRef__":true,"id":1583},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1584},"renderContextTable":{"__isSmartRef__":true,"id":1585},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1586},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1582":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1583":{"x":580,"y":43,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1584":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1585":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1586":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1587":{"x":37,"y":23,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1588":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1589":{"partsSpaceName":"PartsBin/Worlds/","__SourceModuleName__":"Global.lively.PartsBin","comment":"For example a world title.","partName":"Title","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1590":{"r":0,"g":0.309,"b":0.595,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1591":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1592":{"style":{"__isSmartRef__":true,"id":1593},"chunkOwner":{"__isSmartRef__":true,"id":1580},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk"},"1593":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1594":{"morph":{"__isSmartRef__":true,"id":1580},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1595":{"x":580,"y":43,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1596":{"x":221,"y":-12,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1597":{"createListMorph":{"__isSmartRef__":true,"id":1598},"getList":{"__isSmartRef__":true,"id":1602},"removeList":{"__isSmartRef__":true,"id":1606},"reset":{"__isSmartRef__":true,"id":1610},"displayTopLevelMorphs":{"__isSmartRef__":true,"id":1614},"onMouseDown":{"__isSmartRef__":true,"id":1618},"resetConnections":{"__isSmartRef__":true,"id":1626},"setTargetOfPane":{"__isSmartRef__":true,"id":1630},"setTargetToListSelection":{"__isSmartRef__":true,"id":1634},"onBlur":{"__isSmartRef__":true,"id":1638},"setTarget":{"__isSmartRef__":true,"id":1646}},"1598":{"varMapping":{"__isSmartRef__":true,"id":1599},"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":1600},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1599":{"this":{"__isSmartRef__":true,"id":1530}},"1600":{"timestamp":{"__isSmartRef__":true,"id":1601},"user":"lauritz","categories":[]},"1601":{"isSerializedDate":true,"string":"Tue Nov 15 2011 22:18:15 GMT-0800 (PST)"},"1602":{"varMapping":{"__isSmartRef__":true,"id":1603},"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":1604},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1603":{"this":{"__isSmartRef__":true,"id":1530}},"1604":{"timestamp":{"__isSmartRef__":true,"id":1605},"user":"lauritz","categories":[]},"1605":{"isSerializedDate":true,"string":"Mon Nov 21 2011 14:12:23 GMT-0800 (PST)"},"1606":{"varMapping":{"__isSmartRef__":true,"id":1607},"source":"function removeList() {\n this.listMorph && this.listMorph.remove();\n this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":1608},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1607":{"this":{"__isSmartRef__":true,"id":1530}},"1608":{"timestamp":{"__isSmartRef__":true,"id":1609},"user":"lauritz","categories":[]},"1609":{"isSerializedDate":true,"string":"Wed Nov 16 2011 19:04:43 GMT-0800 (PST)"},"1610":{"varMapping":{"__isSmartRef__":true,"id":1611},"source":"function reset() {\n this.list = [];\n this.setLabel('empty');\n this.label.setAlign('left');\n this.removeList();\n this.resetConnections();\n this.applyStyle({fixedWidth: true, fixedHeight: true, borderWidth: 1, overflow: 'visible'});\n}","funcProperties":{"__isSmartRef__":true,"id":1612},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1611":{"this":{"__isSmartRef__":true,"id":1530}},"1612":{"timestamp":{"__isSmartRef__":true,"id":1613},"user":"lauritz","categories":[]},"1613":{"isSerializedDate":true,"string":"Wed Nov 16 2011 19:04:57 GMT-0800 (PST)"},"1614":{"varMapping":{"__isSmartRef__":true,"id":1615},"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":1616},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1615":{"this":{"__isSmartRef__":true,"id":1530}},"1616":{"timestamp":{"__isSmartRef__":true,"id":1617},"user":"lauritz","categories":[]},"1617":{"isSerializedDate":true,"string":"Wed Nov 16 2011 19:03:02 GMT-0800 (PST)"},"1618":{"varMapping":{"__isSmartRef__":true,"id":1619},"source":"function onMouseDown(evt) {\n if (evt.isCommandKey() || evt.isRightMouseButtonDown()) return $super(evt);\n if (this.listMorph) {\n this.removeList();\n } else {\n this.displayTopLevelMorphs();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1624},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1619":{"this":{"__isSmartRef__":true,"id":1530},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1620}},"1620":{"$super":{"__isSmartRef__":true,"id":1621}},"1621":{"varMapping":{"__isSmartRef__":true,"id":1622},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1623},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1622":{"obj":{"__isSmartRef__":true,"id":1530},"name":"onMouseDown"},"1623":{},"1624":{"timestamp":{"__isSmartRef__":true,"id":1625},"user":"lauritz","categories":[]},"1625":{"isSerializedDate":true,"string":"Wed Nov 16 2011 19:04:36 GMT-0800 (PST)"},"1626":{"varMapping":{"__isSmartRef__":true,"id":1627},"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":1628},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1627":{"this":{"__isSmartRef__":true,"id":1530}},"1628":{"timestamp":{"__isSmartRef__":true,"id":1629},"user":"lauritz","categories":[]},"1629":{"isSerializedDate":true,"string":"Tue Nov 15 2011 21:41:16 GMT-0800 (PST)"},"1630":{"varMapping":{"__isSmartRef__":true,"id":1631},"source":"function setTargetOfPane(selection) {\n this.owner.setTarget(selection);\n this.setLabel(selection.getName());\n this.label.setAlign('left');\n}","funcProperties":{"__isSmartRef__":true,"id":1632},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1631":{"this":{"__isSmartRef__":true,"id":1530}},"1632":{"timestamp":{"__isSmartRef__":true,"id":1633},"user":"lauritz","categories":[]},"1633":{"isSerializedDate":true,"string":"Thu Nov 17 2011 09:40:02 GMT-0800 (PST)"},"1634":{"varMapping":{"__isSmartRef__":true,"id":1635},"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":1636},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1635":{"this":{"__isSmartRef__":true,"id":1530}},"1636":{"timestamp":{"__isSmartRef__":true,"id":1637},"user":"lauritz","categories":[]},"1637":{"isSerializedDate":true,"string":"Tue Nov 15 2011 21:41:16 GMT-0800 (PST)"},"1638":{"varMapping":{"__isSmartRef__":true,"id":1639},"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":1644},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1639":{"this":{"__isSmartRef__":true,"id":1530},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1640}},"1640":{"$super":{"__isSmartRef__":true,"id":1641}},"1641":{"varMapping":{"__isSmartRef__":true,"id":1642},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1643},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1642":{"obj":{"__isSmartRef__":true,"id":1530},"name":"onBlur"},"1643":{},"1644":{"timestamp":{"__isSmartRef__":true,"id":1645},"user":"lauritz","categories":[]},"1645":{"isSerializedDate":true,"string":"Mon Nov 21 2011 14:13:05 GMT-0800 (PST)"},"1646":{"varMapping":{"__isSmartRef__":true,"id":1647},"source":"function setTarget(target) {\n this.label.setTextString(target.getName() || target.toString());\n}","funcProperties":{"__isSmartRef__":true,"id":1648},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1647":{"this":{"__isSmartRef__":true,"id":1530}},"1648":{"timestamp":{"__isSmartRef__":true,"id":1649},"user":"lauritz","categories":[]},"1649":{"isSerializedDate":true,"string":"Fri Nov 18 2011 11:18:03 GMT-0800 (PST)"},"1650":{"submorphs":[],"scripts":[],"id":356,"shape":{"__isSmartRef__":true,"id":1651},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":false,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1657},"_MaxTextWidth":64.8979476392384,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":1654},"showsHalos":false,"_FontSize":9,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"ObjectEditorScriptsText1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1658},"textChunks":[{"__isSmartRef__":true,"id":1659}],"charsReplaced":"Scripts","lastFindLoc":-7,"priorSelectionRange":[0,7],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":1661},"renderContextTable":{"__isSmartRef__":true,"id":1662},"eventHandler":{"__isSmartRef__":true,"id":1663},"_WhiteSpaceHandling":"pre-wrap","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":64.8979476392384,"_MinTextHeight":null,"_ClipMode":"visible","draggingEnabled":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":1664},"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":426},"isCopyMorphRef":true,"morphRefId":27,"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"1651":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1652},"_Extent":{"__isSmartRef__":true,"id":1653},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1654},"renderContextTable":{"__isSmartRef__":true,"id":1655},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1656},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1652":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1653":{"x":64.8979476392384,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1654":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1655":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1656":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1657":{"x":198.16434648623274,"y":12.911539589748486,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1658":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1659":{"style":{"__isSmartRef__":true,"id":1660},"chunkOwner":{"__isSmartRef__":true,"id":1650},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"Target:","__LivelyClassName__":"lively.morphic.TextChunk"},"1660":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1661":{"x":64.8979476392384,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1662":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1663":{"morph":{"__isSmartRef__":true,"id":1650},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1664":{"x":41.065989525935834,"y":-10.506047005169194,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1665":{"submorphs":[],"scripts":[],"id":357,"shape":{"__isSmartRef__":true,"id":1666},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":false,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1672},"_MaxTextWidth":64.8979476392384,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":1669},"showsHalos":false,"_FontSize":9,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"ObjectEditorScriptsText2","partsBinMetaInfo":{"__isSmartRef__":true,"id":1673},"textChunks":[{"__isSmartRef__":true,"id":1674}],"charsReplaced":"Scripts","lastFindLoc":-7,"priorSelectionRange":[0,7],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":1676},"renderContextTable":{"__isSmartRef__":true,"id":1677},"eventHandler":{"__isSmartRef__":true,"id":1678},"_WhiteSpaceHandling":"pre-wrap","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":64.8979476392384,"_MinTextHeight":null,"_ClipMode":"visible","draggingEnabled":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":1679},"eventsAreIgnored":true,"isCopyMorphRef":true,"morphRefId":27,"owner":{"__isSmartRef__":true,"id":426},"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"1666":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1667},"_Extent":{"__isSmartRef__":true,"id":1668},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1669},"renderContextTable":{"__isSmartRef__":true,"id":1670},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1671},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1667":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1668":{"x":64.8979476392384,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1669":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1670":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1671":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1672":{"x":10,"y":12.911539589749026,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1673":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1674":{"style":{"__isSmartRef__":true,"id":1675},"chunkOwner":{"__isSmartRef__":true,"id":1665},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"Tag:","__LivelyClassName__":"lively.morphic.TextChunk"},"1675":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1676":{"x":64.8979476392384,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1677":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1678":{"morph":{"__isSmartRef__":true,"id":1665},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1679":{"x":45.76052154281416,"y":-27.783027415339603,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1680":{"submorphs":[{"__isSmartRef__":true,"id":1681}],"scripts":[],"id":358,"shape":{"__isSmartRef__":true,"id":1696},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1712},"value":true,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1713},"lighterFill":{"__isSmartRef__":true,"id":1699},"label":{"__isSmartRef__":true,"id":1681},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","padding":{"__isSmartRef__":true,"id":1722},"name":"ObjectEditorTagChooser","partsBinMetaInfo":{"__isSmartRef__":true,"id":1723},"listMorph":null,"list":[],"renderContextTable":{"__isSmartRef__":true,"id":1724},"eventHandler":{"__isSmartRef__":true,"id":1725},"distanceToDragEvent":{"__isSmartRef__":true,"id":1726},"priorExtent":{"__isSmartRef__":true,"id":1727},"textString":"PartsBinBrowser","selection":"","_ClipMode":"visible","prevScroll":[0,0],"owner":{"__isSmartRef__":true,"id":426},"setTargetToListSelection":"all","savedTextString":"all","_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1728},"__LivelyClassName__":"lively.morphic.Button"},"1681":{"submorphs":[],"scripts":[],"id":359,"shape":{"__isSmartRef__":true,"id":1682},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":130,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1688},"textColor":{"__isSmartRef__":true,"id":1685},"owner":{"__isSmartRef__":true,"id":1680},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":1689}],"padding":{"__isSmartRef__":true,"id":1691},"_Padding":{"__isSmartRef__":true,"id":1691},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":1692},"attributeConnections":[{"__isSmartRef__":true,"id":1693}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"renderContextTable":{"__isSmartRef__":true,"id":1694},"eventHandler":{"__isSmartRef__":true,"id":1695},"_HandStyle":"default","_PointerEvents":"none","_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":130,"_MinTextHeight":null,"_Align":"left","_FontFamily":"Arial","_FontSize":11,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"1682":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1683},"_Extent":{"__isSmartRef__":true,"id":1684},"_BorderColor":{"__isSmartRef__":true,"id":1685},"renderContextTable":{"__isSmartRef__":true,"id":1686},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":1687},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1683":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1684":{"x":130,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1685":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1686":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1687":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1688":{"x":2,"y":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1689":{"style":{"__isSmartRef__":true,"id":1690},"chunkOwner":{"__isSmartRef__":true,"id":1681},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk"},"1690":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1691":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1692":{"x":130,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1693":{"sourceObj":{"__isSmartRef__":true,"id":1681},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":1680},"targetMethodName":"selection","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1694":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"1695":{"morph":{"__isSmartRef__":true,"id":1681},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1696":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1697},"_Extent":{"__isSmartRef__":true,"id":1698},"_Fill":{"__isSmartRef__":true,"id":1699},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1709},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":1710},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1711},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1697":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1698":{"x":130,"y":20,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1699":{"stops":[{"__isSmartRef__":true,"id":1700},{"__isSmartRef__":true,"id":1702},{"__isSmartRef__":true,"id":1704},{"__isSmartRef__":true,"id":1706}],"vector":{"__isSmartRef__":true,"id":1708},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1700":{"offset":0,"color":{"__isSmartRef__":true,"id":1701}},"1701":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1702":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1703}},"1703":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1704":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1705}},"1705":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1706":{"offset":1,"color":{"__isSmartRef__":true,"id":1707}},"1707":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1708":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1709":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1710":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1711":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1712":{"x":39.12381412396891,"y":10.000000000000057,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1713":{"stops":[{"__isSmartRef__":true,"id":1714},{"__isSmartRef__":true,"id":1716},{"__isSmartRef__":true,"id":1718},{"__isSmartRef__":true,"id":1720}],"vector":{"__isSmartRef__":true,"id":1708},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1714":{"offset":0,"color":{"__isSmartRef__":true,"id":1715}},"1715":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1716":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1717}},"1717":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1718":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1719}},"1719":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1720":{"offset":1,"color":{"__isSmartRef__":true,"id":1721}},"1721":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1722":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1723":{"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"},"1724":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1725":{"morph":{"__isSmartRef__":true,"id":1680},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1726":{"x":85.7442776093583,"y":-11.582832083333244,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1727":{"x":130,"y":20,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1728":{"createListMorph":{"__isSmartRef__":true,"id":1729},"getList":{"__isSmartRef__":true,"id":1733},"removeList":{"__isSmartRef__":true,"id":1737},"reset":{"__isSmartRef__":true,"id":1741},"onMouseUp":{"__isSmartRef__":true,"id":1745},"onBlur":{"__isSmartRef__":true,"id":1753},"setTag":{"__isSmartRef__":true,"id":1761}},"1729":{"varMapping":{"__isSmartRef__":true,"id":1730},"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":1731},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1730":{"this":{"__isSmartRef__":true,"id":1680}},"1731":{"timestamp":{"__isSmartRef__":true,"id":1732},"user":"lauritz","categories":[]},"1732":{"isSerializedDate":true,"string":"Mon Nov 28 2011 19:35:59 GMT-0800 (PST)"},"1733":{"varMapping":{"__isSmartRef__":true,"id":1734},"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 tags.unshift(''); // all scripts\n return tags;\n}","funcProperties":{"__isSmartRef__":true,"id":1735},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1734":{"this":{"__isSmartRef__":true,"id":1680}},"1735":{"timestamp":{"__isSmartRef__":true,"id":1736},"user":"lauritz","categories":[]},"1736":{"isSerializedDate":true,"string":"Mon Nov 28 2011 19:42:01 GMT-0800 (PST)"},"1737":{"varMapping":{"__isSmartRef__":true,"id":1738},"source":"function removeList() {\n this.listMorph && this.listMorph.remove()\n this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":1739},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1738":{"this":{"__isSmartRef__":true,"id":1680}},"1739":{"timestamp":{"__isSmartRef__":true,"id":1740},"user":"lauritz","categories":[]},"1740":{"isSerializedDate":true,"string":"Thu Nov 17 2011 10:06:51 GMT-0800 (PST)"},"1741":{"varMapping":{"__isSmartRef__":true,"id":1742},"source":"function reset() {\n this.list = [];\n this.setLabel('');\n this.label.setAlign('left');\n this.removeList();\n this.applyStyle({fixedWidth: true, fixedHeight: true, borderWidth: 1, overflow: 'visible'})\n}","funcProperties":{"__isSmartRef__":true,"id":1743},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1742":{"this":{"__isSmartRef__":true,"id":1680}},"1743":{"timestamp":{"__isSmartRef__":true,"id":1744},"user":"lauritz","categories":[]},"1744":{"isSerializedDate":true,"string":"Tue Nov 15 2011 22:35:58 GMT-0800 (PST)"},"1745":{"varMapping":{"__isSmartRef__":true,"id":1746},"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":1751},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1746":{"this":{"__isSmartRef__":true,"id":1680},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1747}},"1747":{"$super":{"__isSmartRef__":true,"id":1748}},"1748":{"varMapping":{"__isSmartRef__":true,"id":1749},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1750},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1749":{"obj":{"__isSmartRef__":true,"id":1680},"name":"onMouseUp"},"1750":{},"1751":{"timestamp":{"__isSmartRef__":true,"id":1752},"user":"lauritz","categories":[]},"1752":{"isSerializedDate":true,"string":"Thu Nov 17 2011 09:59:16 GMT-0800 (PST)"},"1753":{"varMapping":{"__isSmartRef__":true,"id":1754},"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":1759},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1754":{"this":{"__isSmartRef__":true,"id":1680},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1755}},"1755":{"$super":{"__isSmartRef__":true,"id":1756}},"1756":{"varMapping":{"__isSmartRef__":true,"id":1757},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1758},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1757":{"obj":{"__isSmartRef__":true,"id":1680},"name":"onBlur"},"1758":{},"1759":{"timestamp":{"__isSmartRef__":true,"id":1760},"user":"lauritz","categories":[]},"1760":{"isSerializedDate":true,"string":"Mon Nov 21 2011 14:10:03 GMT-0800 (PST)"},"1761":{"varMapping":{"__isSmartRef__":true,"id":1762},"source":"function setTag(tag) {\n this.setLabel(tag || '');\n this.label.setAlign('left');\n this.owner.setTag(tag);\n}","funcProperties":{"__isSmartRef__":true,"id":1763},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1762":{"this":{"__isSmartRef__":true,"id":1680}},"1763":{"timestamp":{"__isSmartRef__":true,"id":1764},"user":"lauritz","categories":[]},"1764":{"isSerializedDate":true,"string":"Mon Nov 28 2011 19:36:12 GMT-0800 (PST)"},"1765":{"target":{"__isSmartRef__":true,"id":426},"selector":"update","args":[],"stopped":false,"tickTime":500,"currentTimeout":7484,"suspended":false,"__SourceModuleName__":"Global.lively.morphic.Core","__LivelyClassName__":"lively.morphic.TargetScript"},"1766":{"position":{"__isSmartRef__":true,"id":1767},"_Extent":{"__isSmartRef__":true,"id":1768},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1769},"_Fill":{"__isSmartRef__":true,"id":1770},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1771},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1772},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1767":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1768":{"x":723.0285365288845,"y":339.61253261443596,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1769":{"r":0.372,"g":0.369,"b":0.372,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1770":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1771":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"1772":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1773":{"x":0.971126750461849,"y":21.45669012569269,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1774":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","comment":"Edit scripts and connections of a specific morph.","migrationLevel":4,"partName":"ObjectEditorPane","changes":[{"__isSmartRef__":true,"id":1775}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1775":{"date":{"__isSmartRef__":true,"id":1776},"author":"lauritz","message":"Adapted the update behavior on ticks. Reduces the impact of HTML's autoscroll to selected list items."},"1776":{"isSerializedDate":true,"string":"Thu Oct 20 2011 15:39:30 GMT-0700 (PDT)"},"1777":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1778":{"morph":{"__isSmartRef__":true,"id":426},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1779":{"x":723.0285365288845,"y":339.61253261443596,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1780":{"resizeWidth":true,"resizeHeight":true,"adjustForNewBounds":true},"1781":{"x":350.2386236582805,"y":-3.2455173507596555,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1782":{"displayInitialScript":{"__isSmartRef__":true,"id":1783},"displayJavaScriptSource":{"__isSmartRef__":true,"id":1787},"displaySourceForConnection":{"__isSmartRef__":true,"id":1791},"displaySourceForScript":{"__isSmartRef__":true,"id":1795},"generateSourceForConnection":{"__isSmartRef__":true,"id":1799},"generateSourceForScript":{"__isSmartRef__":true,"id":1803},"generateTargetCode":{"__isSmartRef__":true,"id":1807},"newConnection":{"__isSmartRef__":true,"id":1811},"newScript":{"__isSmartRef__":true,"id":1815},"reset":{"__isSmartRef__":true,"id":1819},"selectChangedContent":{"__isSmartRef__":true,"id":1823},"setTarget":{"__isSmartRef__":true,"id":1827},"sortedConnectionNamesOfObj":{"__isSmartRef__":true,"id":1831},"sortedScriptNamesOfObj":{"__isSmartRef__":true,"id":1835},"updateLists":{"__isSmartRef__":true,"id":1839},"onShutdown":{"__isSmartRef__":true,"id":1843},"confirmUnsavedChanges":{"__isSmartRef__":true,"id":1847},"update":{"__isSmartRef__":true,"id":1851},"ensureAnnotationLayer":{"__isSmartRef__":true,"id":1855},"migrateOldScriptAnnotations":{"__isSmartRef__":true,"id":1859},"copyToPartsBinWithUserRequest":{"__isSmartRef__":true,"id":1863},"printTags":{"__isSmartRef__":true,"id":1871},"setTag":{"__isSmartRef__":true,"id":1875}},"1783":{"varMapping":{"__isSmartRef__":true,"id":1784},"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":1785},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1784":{"this":{"__isSmartRef__":true,"id":426}},"1785":{"timestamp":{"__isSmartRef__":true,"id":1786},"user":"lauritz","categories":[]},"1786":{"isSerializedDate":true,"string":"Wed Nov 16 2011 19:13:43 GMT-0800 (PST)"},"1787":{"varMapping":{"__isSmartRef__":true,"id":1788},"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":1789},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1788":{"this":{"__isSmartRef__":true,"id":426}},"1789":{"timestamp":{"__isSmartRef__":true,"id":1790},"user":"lauritz","categories":[]},"1790":{"isSerializedDate":true,"string":"Wed Nov 16 2011 19:59:26 GMT-0800 (PST)"},"1791":{"varMapping":{"__isSmartRef__":true,"id":1792},"source":"function displaySourceForConnection(connection) {\n var code = \"\", that = this;\n if (connection === null) {\n this.sortedConnectionNamesOfObj(this.target).forEach(function(each) {\n code = code.concat(that.generateSourceForConnection(each[1])).concat(\"\\n\\n\");\n });\n code = code.substring(0, code.length - \"\\n\\n\".length - 1);\n } else {\n code = this.generateSourceForConnection(connection);\n }\n this.displayJavaScriptSource(code);\n}","funcProperties":{"__isSmartRef__":true,"id":1793},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1792":{"this":{"__isSmartRef__":true,"id":426}},"1793":{"timestamp":{"__isSmartRef__":true,"id":1794},"user":"lauritz","categories":[]},"1794":{"isSerializedDate":true,"string":"Wed Nov 16 2011 19:52:36 GMT-0800 (PST)"},"1795":{"varMapping":{"__isSmartRef__":true,"id":1796},"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":1797},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1796":{"this":{"__isSmartRef__":true,"id":426}},"1797":{"timestamp":{"__isSmartRef__":true,"id":1798},"user":"lauritz","categories":[]},"1798":{"isSerializedDate":true,"string":"Wed Nov 16 2011 19:51:37 GMT-0800 (PST)"},"1799":{"varMapping":{"__isSmartRef__":true,"id":1800},"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":1801},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1800":{"this":{"__isSmartRef__":true,"id":426}},"1801":{"timestamp":{"__isSmartRef__":true,"id":1802},"user":"lauritz","categories":[]},"1802":{"isSerializedDate":true,"string":"Wed Nov 16 2011 19:59:26 GMT-0800 (PST)"},"1803":{"varMapping":{"__isSmartRef__":true,"id":1804},"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":1805},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1804":{"this":{"__isSmartRef__":true,"id":426}},"1805":{"timestamp":{"__isSmartRef__":true,"id":1806},"user":"lauritz","categories":[]},"1806":{"isSerializedDate":true,"string":"Mon Nov 28 2011 19:32:42 GMT-0800 (PST)"},"1807":{"varMapping":{"__isSmartRef__":true,"id":1808},"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":1809},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1808":{"this":{"__isSmartRef__":true,"id":426}},"1809":{"timestamp":{"__isSmartRef__":true,"id":1810},"user":"lauritz","categories":[]},"1810":{"isSerializedDate":true,"string":"Wed Nov 16 2011 19:59:26 GMT-0800 (PST)"},"1811":{"varMapping":{"__isSmartRef__":true,"id":1812},"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":1813},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1812":{"this":{"__isSmartRef__":true,"id":426}},"1813":{"timestamp":{"__isSmartRef__":true,"id":1814},"user":"lauritz","categories":[]},"1814":{"isSerializedDate":true,"string":"Wed Nov 16 2011 19:59:26 GMT-0800 (PST)"},"1815":{"varMapping":{"__isSmartRef__":true,"id":1816},"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":1817},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1816":{"this":{"__isSmartRef__":true,"id":426}},"1817":{"timestamp":{"__isSmartRef__":true,"id":1818},"user":"lauritz","categories":[]},"1818":{"isSerializedDate":true,"string":"Mon Nov 28 2011 19:24:25 GMT-0800 (PST)"},"1819":{"varMapping":{"__isSmartRef__":true,"id":1820},"source":"function reset() {\n this.scriptPane = this.get('ObjectEditorScriptPane')\n this.scriptList = this.get('ObjectEditorScriptList')\n this.connectionList = this.get('ObjectEditorConnectionList')\n this.morphSelector = this.get('ObjectEditorMorphSelector')\n this.target = null;\n this.scriptPane.reset();\n this.scriptList.setList();\n this.connectionList.setList();\n this.morphSelector.reset();\n this.tagChooser.reset();\n this.currentTag = null;\n this.stopStepping();\n}","funcProperties":{"__isSmartRef__":true,"id":1821},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1820":{"this":{"__isSmartRef__":true,"id":426}},"1821":{"timestamp":{"__isSmartRef__":true,"id":1822},"user":"lauritz","categories":[]},"1822":{"isSerializedDate":true,"string":"Mon Nov 28 2011 19:37:05 GMT-0800 (PST)"},"1823":{"varMapping":{"__isSmartRef__":true,"id":1824},"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