>>onPaste: Error: INVALID_STATE_ERR: DOM Exception 11\nundefined","__layered_draggingEnabled__":true,"_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":2216},"eventHandler":{"__isSmartRef__":true,"id":2217},"eventStartPos":null,"attributeConnections":[{"__isSmartRef__":true,"id":2218}],"__layered_doNotSerialize__":[],"doNotCopyProperties":["$$savedWorldAsURL"],"doNotSerialize":["$$savedWorldAsURL"],"worldMenuOpened":true,"prevScroll":[0,-2160],"draggingEnabled":true,"clickedOnMorphTime":1333367500236,"_Scroll":[0,-2160],"currentUser":"sstamm","loadingMorph":{"__isSmartRef__":true,"id":2223},"savedWorldAsURL":{"__isSmartRef__":true,"id":2376},"__LivelyClassName__":"lively.morphic.World"},"1":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2},"id":18444,"renderContextTable":{"__isSmartRef__":true,"id":10},"eventHandler":{"__isSmartRef__":true,"id":11},"droppingEnabled":true,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":0},"controlPoints":[{"__isSmartRef__":true,"id":12},{"__isSmartRef__":true,"id":760}],"con":{"__isSmartRef__":true,"id":579},"showsMorphMenu":true,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":780},"__LivelyClassName__":"lively.morphic.Path"},"2":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3},{"__isSmartRef__":true,"id":4}],"renderContextTable":{"__isSmartRef__":true,"id":5},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":6},"_Extent":{"__isSmartRef__":true,"id":7},"_Padding":{"__isSmartRef__":true,"id":8},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":9},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"3":{"isAbsolute":true,"x":41,"y":588,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"4":{"isAbsolute":true,"x":41,"y":588,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"5":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"6":{"x":40,"y":587,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7":{"x":1,"y":1,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"9":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"10":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"11":{"morph":{"__isSmartRef__":true,"id":1},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"12":{"morph":{"__isSmartRef__":true,"id":1},"index":0,"connectedMagnet":{"__isSmartRef__":true,"id":13},"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"13":{"morph":{"__isSmartRef__":true,"id":14},"position":{"__isSmartRef__":true,"id":759},"connectedControlPoints":[{"__isSmartRef__":true,"id":12},{"__isSmartRef__":true,"id":760}],"cachedGlobalPosition":{"__isSmartRef__":true,"id":779},"__SourceModuleName__":"Global.lively.morphic.Connectors","__LivelyClassName__":"lively.morphic.RelativeMagnet"},"14":{"submorphs":[{"__isSmartRef__":true,"id":15},{"__isSmartRef__":true,"id":102},{"__isSmartRef__":true,"id":198},{"__isSmartRef__":true,"id":292},{"__isSmartRef__":true,"id":377},{"__isSmartRef__":true,"id":434},{"__isSmartRef__":true,"id":496},{"__isSmartRef__":true,"id":511}],"scripts":[],"id":16793,"shape":{"__isSmartRef__":true,"id":571},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"UserStory4","partsBinMetaInfo":{"__isSmartRef__":true,"id":581},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":650},"eventHandler":{"__isSmartRef__":true,"id":651},"attributeConnections":[{"__isSmartRef__":true,"id":579}],"doNotSerialize":[],"doNotCopyProperties":[],"priorExtent":{"__isSmartRef__":true,"id":652},"isBeingDragged":false,"isCopyMorphRef":true,"morphRefId":2,"layout":{"__isSmartRef__":true,"id":653},"scriptAnnotations":{"__isSmartRef__":true,"id":654},"titlePane":"Title","databaseRev":"1-1fd2ad18a8156299fe20a7329f5edf34","databaseID":"a96fcc542c7c941948c9b0a117502612","distanceToDragEvent":{"__isSmartRef__":true,"id":693},"serialization":{"__isSmartRef__":true,"id":694},"owner":null,"_Position":{"__isSmartRef__":true,"id":701},"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":702},"__LivelyClassName__":"lively.morphic.Box"},"15":{"submorphs":[{"__isSmartRef__":true,"id":16}],"scripts":[],"id":16794,"shape":{"__isSmartRef__":true,"id":31},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":35},"lighterFill":{"__isSmartRef__":true,"id":47},"label":{"__isSmartRef__":true,"id":16},"name":"PublishButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":56},"attributeConnections":[{"__isSmartRef__":true,"id":57}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","priorExtent":{"__isSmartRef__":true,"id":93},"renderContextTable":{"__isSmartRef__":true,"id":94},"eventHandler":{"__isSmartRef__":true,"id":95},"isBeingDragged":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":96},"layout":{"__isSmartRef__":true,"id":97},"scriptAnnotations":{"__isSmartRef__":true,"id":98},"isCopyMorphRef":true,"morphRefId":2,"_Position":{"__isSmartRef__":true,"id":101},"owner":{"__isSmartRef__":true,"id":14},"publishUserStory":false,"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Button"},"16":{"submorphs":[],"scripts":[],"id":16795,"shape":{"__isSmartRef__":true,"id":17},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":23},"_MaxTextWidth":86,"_MaxTextHeight":null,"textStyle":null,"padding":{"__isSmartRef__":true,"id":24},"_Padding":{"__isSmartRef__":true,"id":25},"owner":{"__isSmartRef__":true,"id":15},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":26},"textChunks":[{"__isSmartRef__":true,"id":27}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":29},"eventHandler":{"__isSmartRef__":true,"id":30},"_HandStyle":"default","_PointerEvents":"none","_MinTextWidth":86,"_MinTextHeight":null,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isCopyMorphRef":true,"morphRefId":2,"__LivelyClassName__":"lively.morphic.Text"},"17":{"position":{"__isSmartRef__":true,"id":18},"_Extent":{"__isSmartRef__":true,"id":19},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":20},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":21},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":22},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"18":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"19":{"x":86,"y":23,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"22":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"23":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"25":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"26":{"x":86,"y":23,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"27":{"style":{"__isSmartRef__":true,"id":28},"chunkOwner":{"__isSmartRef__":true,"id":16},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk"},"28":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"29":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"30":{"morph":{"__isSmartRef__":true,"id":16},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"31":{"position":{"__isSmartRef__":true,"id":32},"_Extent":{"__isSmartRef__":true,"id":33},"_BorderWidth":1.1840000000000002,"_BorderColor":{"__isSmartRef__":true,"id":34},"_Fill":{"__isSmartRef__":true,"id":35},"_BorderRadius":5.2,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":45},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":46},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"32":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"33":{"x":86,"y":23,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"34":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"35":{"stops":[{"__isSmartRef__":true,"id":36},{"__isSmartRef__":true,"id":38},{"__isSmartRef__":true,"id":40},{"__isSmartRef__":true,"id":42}],"vector":{"__isSmartRef__":true,"id":44},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"36":{"offset":0,"color":{"__isSmartRef__":true,"id":37}},"37":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"38":{"offset":0.4,"color":{"__isSmartRef__":true,"id":39}},"39":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"40":{"offset":0.6,"color":{"__isSmartRef__":true,"id":41}},"41":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"42":{"offset":1,"color":{"__isSmartRef__":true,"id":43}},"43":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"44":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"45":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"46":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"47":{"stops":[{"__isSmartRef__":true,"id":48},{"__isSmartRef__":true,"id":50},{"__isSmartRef__":true,"id":52},{"__isSmartRef__":true,"id":54}],"vector":{"__isSmartRef__":true,"id":44},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"48":{"offset":0,"color":{"__isSmartRef__":true,"id":49}},"49":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"50":{"offset":0.4,"color":{"__isSmartRef__":true,"id":51}},"51":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"52":{"offset":0.6,"color":{"__isSmartRef__":true,"id":53}},"53":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"54":{"offset":1,"color":{"__isSmartRef__":true,"id":55}},"55":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"56":{"partsSpaceName":"PartsBin/Inputs","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"partName":"ScriptableButton","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"57":{"sourceObj":{"__isSmartRef__":true,"id":15},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":14},"targetMethodName":"publishUserStory","visualConnector":{"__isSmartRef__":true,"id":58},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"58":{"submorphs":[{"__isSmartRef__":true,"id":59}],"scripts":[],"shape":{"__isSmartRef__":true,"id":74},"id":20262,"renderContextTable":{"__isSmartRef__":true,"id":81},"eventHandler":{"__isSmartRef__":true,"id":82},"droppingEnabled":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":83},{"__isSmartRef__":true,"id":84}],"con":{"__isSmartRef__":true,"id":57},"showsMorphMenu":true,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":85},"__LivelyClassName__":"lively.morphic.Path"},"59":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":60},"id":20263,"renderContextTable":{"__isSmartRef__":true,"id":71},"eventHandler":{"__isSmartRef__":true,"id":72},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":73},"owner":{"__isSmartRef__":true,"id":58},"_Rotation":-2.414348024283846,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.Path"},"60":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":61},{"__isSmartRef__":true,"id":62},{"__isSmartRef__":true,"id":63},{"__isSmartRef__":true,"id":64}],"renderContextTable":{"__isSmartRef__":true,"id":65},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":66},"_Extent":{"__isSmartRef__":true,"id":67},"_Padding":{"__isSmartRef__":true,"id":68},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":69},"_Fill":{"__isSmartRef__":true,"id":70},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"61":{"isAbsolute":true,"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"62":{"isAbsolute":true,"x":0,"y":12,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"63":{"isAbsolute":true,"x":16,"y":6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"64":{"isAbsolute":true,"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"65":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"66":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"67":{"x":16,"y":12,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"68":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"69":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"70":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"71":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"72":{"morph":{"__isSmartRef__":true,"id":59},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"73":{"x":0.5,"y":0.5,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"74":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":75},{"__isSmartRef__":true,"id":76}],"renderContextTable":{"__isSmartRef__":true,"id":77},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":78},"_Extent":{"__isSmartRef__":true,"id":79},"_Padding":{"__isSmartRef__":true,"id":80},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":69},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"75":{"isAbsolute":true,"x":309,"y":275,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"76":{"isAbsolute":true,"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"77":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"78":{"x":-0.5,"y":-0.5,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"79":{"x":310,"y":276,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"80":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"81":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"82":{"morph":{"__isSmartRef__":true,"id":58},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"83":{"morph":{"__isSmartRef__":true,"id":58},"index":0,"connectedMagnet":null,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"84":{"morph":{"__isSmartRef__":true,"id":58},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":59},"markerDirection":"prev","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"85":{"morphMenuItems":{"__isSmartRef__":true,"id":86}},"86":{"varMapping":{"__isSmartRef__":true,"id":87},"source":"function morphMenuItems() {\n var visualConnector = this, con = this.con, world = this.world();\n var items = [\n ['edit converter', function() {\n var source = con.converterString || 'function converter(value) {\\n return value\\n}',\n editor = new lively.morphic.Text(new Rectangle(0,0, 400, 200), source);\n editor.doitContext = con;\n connect(editor, 'savedTextString', con, 'converterString', {updater:\n function($upd, source) { this.targetObj.converter = null; $upd(source) }});\n connect(editor, 'savedTextString', world, 'alertOK', {converter: \n function() { return 'setting new converter' }})\n editor.applyStyle({syntaxHighlighting: true, fontFamily: 'Courier', resizeWidth: true, resizeHeight: true});\n var title = con.targetObj.name && con.sourceObj.name ?\n 'Editor for ' + con.targetObj.name + ' -> ' + con.sourceObj.name :\n 'Editor for converter function';\n var window = world.addFramedMorph(editor, title)\n window.align(window.bounds().topCenter(), visualConnector.bounds().bottomCenter())\n }],\n ['hide', function() {\n visualConnector.disconnectFromMagnets();\n visualConnector.remove();\n }],\n ['disconnect', function() {\n alertOK('Disconnected ' + visualConnector.con);\n visualConnector.con.visualDisconnect();\n }],\n ['cancel', function() {}],\n ];\n return items;\n }","funcProperties":{"__isSmartRef__":true,"id":92},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"87":{"this":{"__isSmartRef__":true,"id":58},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":88}},"88":{"$super":{"__isSmartRef__":true,"id":89}},"89":{"varMapping":{"__isSmartRef__":true,"id":90},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":91},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"90":{"obj":{"__isSmartRef__":true,"id":58},"name":"morphMenuItems"},"91":{},"92":{},"93":{"x":85,"y":23,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"94":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"95":{"morph":{"__isSmartRef__":true,"id":15},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"96":{"x":64,"y":-9,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"97":{"moveVertical":true,"moveHorizontal":true},"98":{"publishUserStory":{"__isSmartRef__":true,"id":99}},"99":{"time":{"__isSmartRef__":true,"id":100},"user":"sebastian.stamm"},"100":{"isSerializedDate":true,"string":"Tue Oct 18 2011 13:23:30 GMT+0200 (W. Europe Daylight Time)"},"101":{"x":394,"y":264,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"102":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":103},"id":16796,"renderContextTable":{"__isSmartRef__":true,"id":146},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":147}],"eventHandler":{"__isSmartRef__":true,"id":149},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"auto","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"monospace","_FontSize":10,"priorExtent":{"__isSmartRef__":true,"id":150},"_MaxTextWidth":430.112,"_MinTextWidth":430.112,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"layout":{"__isSmartRef__":true,"id":151},"syntaxHighlightingWhileTyping":false,"attributeConnections":[{"__isSmartRef__":true,"id":152},{"__isSmartRef__":true,"id":110}],"doNotSerialize":["$$textString"],"doNotCopyProperties":["$$textString"],"lastSyntaxHighlightTime":1317804898170,"accessibleInInactiveWindow":true,"previousSelection":[0,11],"priorSelectionRange":[0,11],"showsHalos":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":187},"isBeingDragged":false,"charsReplaced":"","lastFindLoc":13,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"DescriptionPane","scriptAnnotations":{"__isSmartRef__":true,"id":188},"isCopyMorphRef":true,"morphRefId":1,"isInLayoutCycle":false,"_Position":{"__isSmartRef__":true,"id":193},"owner":{"__isSmartRef__":true,"id":14},"_Rotation":0,"_Scale":1,"textString":"undefined","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":194},"__LivelyClassName__":"lively.morphic.Text"},"103":{"_Position":{"__isSmartRef__":true,"id":104},"renderContextTable":{"__isSmartRef__":true,"id":105},"_Extent":{"__isSmartRef__":true,"id":106},"_ClipMode":"auto","_Padding":{"__isSmartRef__":true,"id":107},"_BorderWidth":0.444,"_BorderColor":{"__isSmartRef__":true,"id":108},"_BorderRadius":5.55,"_Opacity":1,"_BorderStyle":"solid","__SourceModuleName__":"Global.lively.morphic.Shapes","attributeConnections":[{"__isSmartRef__":true,"id":109}],"doNotSerialize":["$$_Fill"],"doNotCopyProperties":["$$_Fill"],"_Fill":{"__isSmartRef__":true,"id":145},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"104":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"105":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"106":{"x":468,"y":192,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"107":{"x":10,"y":10,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"108":{"r":0.258,"g":0.258,"b":0.258,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"109":{"sourceObj":{"__isSmartRef__":true,"id":103},"sourceAttrName":"_Fill","targetObj":{"__isSmartRef__":true,"id":14},"targetMethodName":"makeSerialization","dependedBy":{"__isSmartRef__":true,"id":110},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"110":{"sourceObj":{"__isSmartRef__":true,"id":102},"sourceAttrName":"fill","targetObj":{"__isSmartRef__":true,"id":14},"targetMethodName":"makeSerialization","dependendConnections":[{"__isSmartRef__":true,"id":109},{"__isSmartRef__":true,"id":109},{"__isSmartRef__":true,"id":109},{"__isSmartRef__":true,"id":109},{"__isSmartRef__":true,"id":109},{"__isSmartRef__":true,"id":109},{"__isSmartRef__":true,"id":109},{"__isSmartRef__":true,"id":109},{"__isSmartRef__":true,"id":109},{"__isSmartRef__":true,"id":109},{"__isSmartRef__":true,"id":109},{"__isSmartRef__":true,"id":109},{"__isSmartRef__":true,"id":109},{"__isSmartRef__":true,"id":109},{"__isSmartRef__":true,"id":109},{"__isSmartRef__":true,"id":109},{"__isSmartRef__":true,"id":109},{"__isSmartRef__":true,"id":109},{"__isSmartRef__":true,"id":109},{"__isSmartRef__":true,"id":109},{"__isSmartRef__":true,"id":109},{"__isSmartRef__":true,"id":109},{"__isSmartRef__":true,"id":109},{"__isSmartRef__":true,"id":109},{"__isSmartRef__":true,"id":109},{"__isSmartRef__":true,"id":109},{"__isSmartRef__":true,"id":109},{"__isSmartRef__":true,"id":109},{"__isSmartRef__":true,"id":109},{"__isSmartRef__":true,"id":109},{"__isSmartRef__":true,"id":109},{"__isSmartRef__":true,"id":109},{"__isSmartRef__":true,"id":109},{"__isSmartRef__":true,"id":109},{"__isSmartRef__":true,"id":109}],"visualConnector":{"__isSmartRef__":true,"id":111},"__SourceModuleName__":"Global.lively.bindings.GeometryBindings","__LivelyClassName__":"lively.morphic.GeometryConnection"},"111":{"submorphs":[{"__isSmartRef__":true,"id":112}],"scripts":[],"shape":{"__isSmartRef__":true,"id":126},"id":17742,"renderContextTable":{"__isSmartRef__":true,"id":133},"eventHandler":{"__isSmartRef__":true,"id":134},"droppingEnabled":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":135},{"__isSmartRef__":true,"id":136}],"con":{"__isSmartRef__":true,"id":110},"showsMorphMenu":true,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":137},"__LivelyClassName__":"lively.morphic.Path"},"112":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":113},"id":17743,"renderContextTable":{"__isSmartRef__":true,"id":123},"eventHandler":{"__isSmartRef__":true,"id":124},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":125},"owner":{"__isSmartRef__":true,"id":111},"_Rotation":-1.7384387646261124,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.Path"},"113":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":114},{"__isSmartRef__":true,"id":115},{"__isSmartRef__":true,"id":116},{"__isSmartRef__":true,"id":117}],"renderContextTable":{"__isSmartRef__":true,"id":118},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":119},"_Extent":{"__isSmartRef__":true,"id":120},"_Padding":{"__isSmartRef__":true,"id":121},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":9},"_Fill":{"__isSmartRef__":true,"id":122},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"114":{"isAbsolute":true,"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"115":{"isAbsolute":true,"x":0,"y":12,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"116":{"isAbsolute":true,"x":16,"y":6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"117":{"isAbsolute":true,"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"118":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"119":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"120":{"x":16,"y":12,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"121":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"122":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"123":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"124":{"morph":{"__isSmartRef__":true,"id":112},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"125":{"x":0.5,"y":0.5,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"126":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":127},{"__isSmartRef__":true,"id":128}],"renderContextTable":{"__isSmartRef__":true,"id":129},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":130},"_Extent":{"__isSmartRef__":true,"id":131},"_Padding":{"__isSmartRef__":true,"id":132},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":9},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"127":{"isAbsolute":true,"x":11,"y":65,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"128":{"isAbsolute":true,"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"129":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"130":{"x":-0.5,"y":-0.5,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"131":{"x":12,"y":66,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"132":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"133":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"134":{"morph":{"__isSmartRef__":true,"id":111},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"135":{"morph":{"__isSmartRef__":true,"id":111},"index":0,"connectedMagnet":null,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"136":{"morph":{"__isSmartRef__":true,"id":111},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":112},"markerDirection":"prev","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"137":{"morphMenuItems":{"__isSmartRef__":true,"id":138}},"138":{"varMapping":{"__isSmartRef__":true,"id":139},"source":"function morphMenuItems() {\n var visualConnector = this, con = this.con, world = this.world();\n var items = [\n ['edit converter', function() {\n var source = con.converterString || 'function converter(value) {\\n return value\\n}',\n editor = new lively.morphic.Text(new Rectangle(0,0, 400, 200), source);\n editor.doitContext = con;\n connect(editor, 'savedTextString', con, 'converterString', {updater:\n function($upd, source) { this.targetObj.converter = null; $upd(source) }});\n connect(editor, 'savedTextString', world, 'alertOK', {converter: \n function() { return 'setting new converter' }})\n editor.applyStyle({syntaxHighlighting: true, fontFamily: 'Courier', resizeWidth: true, resizeHeight: true});\n var title = con.targetObj.name && con.sourceObj.name ?\n 'Editor for ' + con.targetObj.name + ' -> ' + con.sourceObj.name :\n 'Editor for converter function';\n var window = world.addFramedMorph(editor, title)\n window.align(window.bounds().topCenter(), visualConnector.bounds().bottomCenter())\n }],\n ['hide', function() {\n visualConnector.disconnectFromMagnets();\n visualConnector.remove();\n }],\n ['disconnect', function() {\n alertOK('Disconnected ' + visualConnector.con);\n visualConnector.con.visualDisconnect();\n }],\n ['cancel', function() {}],\n ];\n return items;\n }","funcProperties":{"__isSmartRef__":true,"id":144},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"139":{"this":{"__isSmartRef__":true,"id":111},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":140}},"140":{"$super":{"__isSmartRef__":true,"id":141}},"141":{"varMapping":{"__isSmartRef__":true,"id":142},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":143},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"142":{"obj":{"__isSmartRef__":true,"id":111},"name":"morphMenuItems"},"143":{},"144":{},"145":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"146":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"147":{"style":{"__isSmartRef__":true,"id":148},"chunkOwner":{"__isSmartRef__":true,"id":102},"storedString":"undefined","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"148":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"149":{"morph":{"__isSmartRef__":true,"id":102},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"150":{"x":468,"y":192,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"151":{"resizeWidth":true,"resizeHeight":true},"152":{"sourceObj":{"__isSmartRef__":true,"id":102},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":14},"targetMethodName":"makeSerialization","visualConnector":{"__isSmartRef__":true,"id":153},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"153":{"submorphs":[{"__isSmartRef__":true,"id":154}],"scripts":[],"shape":{"__isSmartRef__":true,"id":168},"id":17544,"renderContextTable":{"__isSmartRef__":true,"id":175},"eventHandler":{"__isSmartRef__":true,"id":176},"droppingEnabled":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":177},{"__isSmartRef__":true,"id":178}],"con":{"__isSmartRef__":true,"id":152},"showsMorphMenu":true,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":179},"__LivelyClassName__":"lively.morphic.Path"},"154":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":155},"id":17545,"renderContextTable":{"__isSmartRef__":true,"id":165},"eventHandler":{"__isSmartRef__":true,"id":166},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":167},"owner":{"__isSmartRef__":true,"id":153},"_Rotation":-1.7384387646261124,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.Path"},"155":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":156},{"__isSmartRef__":true,"id":157},{"__isSmartRef__":true,"id":158},{"__isSmartRef__":true,"id":159}],"renderContextTable":{"__isSmartRef__":true,"id":160},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":161},"_Extent":{"__isSmartRef__":true,"id":162},"_Padding":{"__isSmartRef__":true,"id":163},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":9},"_Fill":{"__isSmartRef__":true,"id":164},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"156":{"isAbsolute":true,"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"157":{"isAbsolute":true,"x":0,"y":12,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"158":{"isAbsolute":true,"x":16,"y":6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"159":{"isAbsolute":true,"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"160":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"161":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"162":{"x":16,"y":12,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"163":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"164":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"165":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"166":{"morph":{"__isSmartRef__":true,"id":154},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"167":{"x":0.5,"y":0.5,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"168":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":169},{"__isSmartRef__":true,"id":170}],"renderContextTable":{"__isSmartRef__":true,"id":171},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":172},"_Extent":{"__isSmartRef__":true,"id":173},"_Padding":{"__isSmartRef__":true,"id":174},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":9},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"169":{"isAbsolute":true,"x":11,"y":65,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"170":{"isAbsolute":true,"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"171":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"172":{"x":-0.5,"y":-0.5,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"173":{"x":12,"y":66,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"174":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"175":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"176":{"morph":{"__isSmartRef__":true,"id":153},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"177":{"morph":{"__isSmartRef__":true,"id":153},"index":0,"connectedMagnet":null,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"178":{"morph":{"__isSmartRef__":true,"id":153},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":154},"markerDirection":"prev","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"179":{"morphMenuItems":{"__isSmartRef__":true,"id":180}},"180":{"varMapping":{"__isSmartRef__":true,"id":181},"source":"function morphMenuItems() {\n var visualConnector = this, con = this.con, world = this.world();\n var items = [\n ['edit converter', function() {\n var source = con.converterString || 'function converter(value) {\\n return value\\n}',\n editor = new lively.morphic.Text(new Rectangle(0,0, 400, 200), source);\n editor.doitContext = con;\n connect(editor, 'savedTextString', con, 'converterString', {updater:\n function($upd, source) { this.targetObj.converter = null; $upd(source) }});\n connect(editor, 'savedTextString', world, 'alertOK', {converter: \n function() { return 'setting new converter' }})\n editor.applyStyle({syntaxHighlighting: true, fontFamily: 'Courier', resizeWidth: true, resizeHeight: true});\n var title = con.targetObj.name && con.sourceObj.name ?\n 'Editor for ' + con.targetObj.name + ' -> ' + con.sourceObj.name :\n 'Editor for converter function';\n var window = world.addFramedMorph(editor, title)\n window.align(window.bounds().topCenter(), visualConnector.bounds().bottomCenter())\n }],\n ['hide', function() {\n visualConnector.disconnectFromMagnets();\n visualConnector.remove();\n }],\n ['disconnect', function() {\n alertOK('Disconnected ' + visualConnector.con);\n visualConnector.con.visualDisconnect();\n }],\n ['cancel', function() {}],\n ];\n return items;\n }","funcProperties":{"__isSmartRef__":true,"id":186},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"181":{"this":{"__isSmartRef__":true,"id":153},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":182}},"182":{"$super":{"__isSmartRef__":true,"id":183}},"183":{"varMapping":{"__isSmartRef__":true,"id":184},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":185},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"184":{"obj":{"__isSmartRef__":true,"id":153},"name":"morphMenuItems"},"185":{},"186":{},"187":{"x":268,"y":-13,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"188":{"printMe":{"__isSmartRef__":true,"id":189},"deleteUserStory":{"__isSmartRef__":true,"id":191}},"189":{"time":{"__isSmartRef__":true,"id":190},"user":"athomschke"},"190":{"isSerializedDate":true,"string":"Wed Oct 19 2011 14:49:29 GMT+0200 (W. Europe Daylight Time)"},"191":{"time":{"__isSmartRef__":true,"id":192},"user":"benjamin.siegmund"},"192":{"isSerializedDate":true,"string":"Tue Oct 18 2011 16:11:24 GMT+0200 (W. Europe Daylight Time)"},"193":{"x":11,"y":65,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"194":{"printMe":{"__isSmartRef__":true,"id":195}},"195":{"varMapping":{"__isSmartRef__":true,"id":196},"source":"function printMe() {\n alert(this.textString);\n}","funcProperties":{"__isSmartRef__":true,"id":197},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"196":{"this":{"__isSmartRef__":true,"id":102}},"197":{},"198":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":199},"id":16797,"renderContextTable":{"__isSmartRef__":true,"id":242},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":243}],"eventHandler":{"__isSmartRef__":true,"id":245},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"auto","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Arial","_FontSize":16,"priorExtent":{"__isSmartRef__":true,"id":246},"_MaxTextWidth":447,"_MinTextWidth":447,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"layout":{"__isSmartRef__":true,"id":247},"syntaxHighlightingWhileTyping":false,"attributeConnections":[{"__isSmartRef__":true,"id":248},{"__isSmartRef__":true,"id":206}],"doNotSerialize":["$$textString"],"doNotCopyProperties":["$$textString"],"lastSyntaxHighlightTime":1317804898170,"accessibleInInactiveWindow":true,"previousSelection":[0,5],"priorSelectionRange":[0,5],"showsHalos":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":283},"isBeingDragged":false,"charsReplaced":"foo","lastFindLoc":6,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"TitlePane","scriptAnnotations":{"__isSmartRef__":true,"id":284},"isCopyMorphRef":true,"morphRefId":4,"isInLayoutCycle":false,"_Position":{"__isSmartRef__":true,"id":287},"owner":{"__isSmartRef__":true,"id":14},"_Rotation":0,"_Scale":1,"textString":"undefined","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":288},"__LivelyClassName__":"lively.morphic.Text"},"199":{"_Position":{"__isSmartRef__":true,"id":200},"renderContextTable":{"__isSmartRef__":true,"id":201},"_Extent":{"__isSmartRef__":true,"id":202},"_ClipMode":"auto","_Padding":{"__isSmartRef__":true,"id":203},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":204},"_BorderRadius":6.660000000000001,"_Opacity":1,"_BorderStyle":"solid","__SourceModuleName__":"Global.lively.morphic.Shapes","attributeConnections":[{"__isSmartRef__":true,"id":205}],"doNotSerialize":["$$_Fill"],"doNotCopyProperties":["$$_Fill"],"_Fill":{"__isSmartRef__":true,"id":241},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"200":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"201":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"202":{"x":467,"y":44,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"203":{"x":10,"y":10,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"204":{"r":0.258,"g":0.258,"b":0.258,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"205":{"sourceObj":{"__isSmartRef__":true,"id":199},"sourceAttrName":"_Fill","targetObj":{"__isSmartRef__":true,"id":14},"targetMethodName":"makeSerialization","dependedBy":{"__isSmartRef__":true,"id":206},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"206":{"sourceObj":{"__isSmartRef__":true,"id":198},"sourceAttrName":"fill","targetObj":{"__isSmartRef__":true,"id":14},"targetMethodName":"makeSerialization","dependendConnections":[{"__isSmartRef__":true,"id":205},{"__isSmartRef__":true,"id":205},{"__isSmartRef__":true,"id":205},{"__isSmartRef__":true,"id":205},{"__isSmartRef__":true,"id":205},{"__isSmartRef__":true,"id":205},{"__isSmartRef__":true,"id":205},{"__isSmartRef__":true,"id":205},{"__isSmartRef__":true,"id":205},{"__isSmartRef__":true,"id":205},{"__isSmartRef__":true,"id":205},{"__isSmartRef__":true,"id":205},{"__isSmartRef__":true,"id":205},{"__isSmartRef__":true,"id":205},{"__isSmartRef__":true,"id":205},{"__isSmartRef__":true,"id":205},{"__isSmartRef__":true,"id":205},{"__isSmartRef__":true,"id":205},{"__isSmartRef__":true,"id":205},{"__isSmartRef__":true,"id":205},{"__isSmartRef__":true,"id":205},{"__isSmartRef__":true,"id":205},{"__isSmartRef__":true,"id":205},{"__isSmartRef__":true,"id":205},{"__isSmartRef__":true,"id":205},{"__isSmartRef__":true,"id":205},{"__isSmartRef__":true,"id":205},{"__isSmartRef__":true,"id":205},{"__isSmartRef__":true,"id":205},{"__isSmartRef__":true,"id":205},{"__isSmartRef__":true,"id":205},{"__isSmartRef__":true,"id":205},{"__isSmartRef__":true,"id":205},{"__isSmartRef__":true,"id":205},{"__isSmartRef__":true,"id":205}],"visualConnector":{"__isSmartRef__":true,"id":207},"__SourceModuleName__":"Global.lively.bindings.GeometryBindings","__LivelyClassName__":"lively.morphic.GeometryConnection"},"207":{"submorphs":[{"__isSmartRef__":true,"id":208}],"scripts":[],"shape":{"__isSmartRef__":true,"id":222},"id":17239,"renderContextTable":{"__isSmartRef__":true,"id":229},"eventHandler":{"__isSmartRef__":true,"id":230},"droppingEnabled":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":231},{"__isSmartRef__":true,"id":232}],"con":{"__isSmartRef__":true,"id":206},"showsMorphMenu":true,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":233},"__LivelyClassName__":"lively.morphic.Path"},"208":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":209},"id":17240,"renderContextTable":{"__isSmartRef__":true,"id":219},"eventHandler":{"__isSmartRef__":true,"id":220},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":221},"owner":{"__isSmartRef__":true,"id":207},"_Rotation":-2.356194490192345,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.Path"},"209":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":210},{"__isSmartRef__":true,"id":211},{"__isSmartRef__":true,"id":212},{"__isSmartRef__":true,"id":213}],"renderContextTable":{"__isSmartRef__":true,"id":214},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":215},"_Extent":{"__isSmartRef__":true,"id":216},"_Padding":{"__isSmartRef__":true,"id":217},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":9},"_Fill":{"__isSmartRef__":true,"id":218},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"210":{"isAbsolute":true,"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"211":{"isAbsolute":true,"x":0,"y":12,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"212":{"isAbsolute":true,"x":16,"y":6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"213":{"isAbsolute":true,"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"214":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"215":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"216":{"x":16,"y":12,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"217":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"218":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"219":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"220":{"morph":{"__isSmartRef__":true,"id":208},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"221":{"x":0.5,"y":0.5,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"222":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":223},{"__isSmartRef__":true,"id":224}],"renderContextTable":{"__isSmartRef__":true,"id":225},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":226},"_Extent":{"__isSmartRef__":true,"id":227},"_Padding":{"__isSmartRef__":true,"id":228},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":9},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"223":{"isAbsolute":true,"x":12,"y":12,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"224":{"isAbsolute":true,"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"225":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"226":{"x":-0.5,"y":-0.5,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"227":{"x":13,"y":13,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"228":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"229":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"230":{"morph":{"__isSmartRef__":true,"id":207},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"231":{"morph":{"__isSmartRef__":true,"id":207},"index":0,"connectedMagnet":null,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"232":{"morph":{"__isSmartRef__":true,"id":207},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":208},"markerDirection":"prev","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"233":{"morphMenuItems":{"__isSmartRef__":true,"id":234}},"234":{"varMapping":{"__isSmartRef__":true,"id":235},"source":"function morphMenuItems() {\n var visualConnector = this, con = this.con, world = this.world();\n var items = [\n ['edit converter', function() {\n var source = con.converterString || 'function converter(value) {\\n return value\\n}',\n editor = new lively.morphic.Text(new Rectangle(0,0, 400, 200), source);\n editor.doitContext = con;\n connect(editor, 'savedTextString', con, 'converterString', {updater:\n function($upd, source) { this.targetObj.converter = null; $upd(source) }});\n connect(editor, 'savedTextString', world, 'alertOK', {converter: \n function() { return 'setting new converter' }})\n editor.applyStyle({syntaxHighlighting: true, fontFamily: 'Courier', resizeWidth: true, resizeHeight: true});\n var title = con.targetObj.name && con.sourceObj.name ?\n 'Editor for ' + con.targetObj.name + ' -> ' + con.sourceObj.name :\n 'Editor for converter function';\n var window = world.addFramedMorph(editor, title)\n window.align(window.bounds().topCenter(), visualConnector.bounds().bottomCenter())\n }],\n ['hide', function() {\n visualConnector.disconnectFromMagnets();\n visualConnector.remove();\n }],\n ['disconnect', function() {\n alertOK('Disconnected ' + visualConnector.con);\n visualConnector.con.visualDisconnect();\n }],\n ['cancel', function() {}],\n ];\n return items;\n }","funcProperties":{"__isSmartRef__":true,"id":240},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"235":{"this":{"__isSmartRef__":true,"id":207},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":236}},"236":{"$super":{"__isSmartRef__":true,"id":237}},"237":{"varMapping":{"__isSmartRef__":true,"id":238},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":239},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"238":{"obj":{"__isSmartRef__":true,"id":207},"name":"morphMenuItems"},"239":{},"240":{},"241":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"242":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"243":{"style":{"__isSmartRef__":true,"id":244},"chunkOwner":{"__isSmartRef__":true,"id":198},"storedString":"undefined","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"244":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"245":{"morph":{"__isSmartRef__":true,"id":198},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"246":{"x":467,"y":44,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"247":{"resizeWidth":true,"resizeHeight":false},"248":{"sourceObj":{"__isSmartRef__":true,"id":198},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":14},"targetMethodName":"makeSerialization","visualConnector":{"__isSmartRef__":true,"id":249},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"249":{"submorphs":[{"__isSmartRef__":true,"id":250}],"scripts":[],"shape":{"__isSmartRef__":true,"id":264},"id":17081,"renderContextTable":{"__isSmartRef__":true,"id":271},"eventHandler":{"__isSmartRef__":true,"id":272},"droppingEnabled":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":273},{"__isSmartRef__":true,"id":274}],"con":{"__isSmartRef__":true,"id":248},"showsMorphMenu":true,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":275},"__LivelyClassName__":"lively.morphic.Path"},"250":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":251},"id":17082,"renderContextTable":{"__isSmartRef__":true,"id":261},"eventHandler":{"__isSmartRef__":true,"id":262},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":263},"owner":{"__isSmartRef__":true,"id":249},"_Rotation":-2.356194490192345,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.Path"},"251":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":252},{"__isSmartRef__":true,"id":253},{"__isSmartRef__":true,"id":254},{"__isSmartRef__":true,"id":255}],"renderContextTable":{"__isSmartRef__":true,"id":256},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":257},"_Extent":{"__isSmartRef__":true,"id":258},"_Padding":{"__isSmartRef__":true,"id":259},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":9},"_Fill":{"__isSmartRef__":true,"id":260},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"252":{"isAbsolute":true,"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"253":{"isAbsolute":true,"x":0,"y":12,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"254":{"isAbsolute":true,"x":16,"y":6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"255":{"isAbsolute":true,"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"256":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"257":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"258":{"x":16,"y":12,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"259":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"260":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"261":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"262":{"morph":{"__isSmartRef__":true,"id":250},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"263":{"x":0.5,"y":0.5,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"264":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":265},{"__isSmartRef__":true,"id":266}],"renderContextTable":{"__isSmartRef__":true,"id":267},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":268},"_Extent":{"__isSmartRef__":true,"id":269},"_Padding":{"__isSmartRef__":true,"id":270},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":9},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"265":{"isAbsolute":true,"x":12,"y":12,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"266":{"isAbsolute":true,"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"267":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"268":{"x":-0.5,"y":-0.5,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"269":{"x":13,"y":13,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"270":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"271":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"272":{"morph":{"__isSmartRef__":true,"id":249},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"273":{"morph":{"__isSmartRef__":true,"id":249},"index":0,"connectedMagnet":null,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"274":{"morph":{"__isSmartRef__":true,"id":249},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":250},"markerDirection":"prev","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"275":{"morphMenuItems":{"__isSmartRef__":true,"id":276}},"276":{"varMapping":{"__isSmartRef__":true,"id":277},"source":"function morphMenuItems() {\n var visualConnector = this, con = this.con, world = this.world();\n var items = [\n ['edit converter', function() {\n var source = con.converterString || 'function converter(value) {\\n return value\\n}',\n editor = new lively.morphic.Text(new Rectangle(0,0, 400, 200), source);\n editor.doitContext = con;\n connect(editor, 'savedTextString', con, 'converterString', {updater:\n function($upd, source) { this.targetObj.converter = null; $upd(source) }});\n connect(editor, 'savedTextString', world, 'alertOK', {converter: \n function() { return 'setting new converter' }})\n editor.applyStyle({syntaxHighlighting: true, fontFamily: 'Courier', resizeWidth: true, resizeHeight: true});\n var title = con.targetObj.name && con.sourceObj.name ?\n 'Editor for ' + con.targetObj.name + ' -> ' + con.sourceObj.name :\n 'Editor for converter function';\n var window = world.addFramedMorph(editor, title)\n window.align(window.bounds().topCenter(), visualConnector.bounds().bottomCenter())\n }],\n ['hide', function() {\n visualConnector.disconnectFromMagnets();\n visualConnector.remove();\n }],\n ['disconnect', function() {\n alertOK('Disconnected ' + visualConnector.con);\n visualConnector.con.visualDisconnect();\n }],\n ['cancel', function() {}],\n ];\n return items;\n }","funcProperties":{"__isSmartRef__":true,"id":282},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"277":{"this":{"__isSmartRef__":true,"id":249},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":278}},"278":{"$super":{"__isSmartRef__":true,"id":279}},"279":{"varMapping":{"__isSmartRef__":true,"id":280},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":281},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"280":{"obj":{"__isSmartRef__":true,"id":249},"name":"morphMenuItems"},"281":{},"282":{},"283":{"x":268,"y":-13,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"284":{"printMe":{"__isSmartRef__":true,"id":285}},"285":{"time":{"__isSmartRef__":true,"id":286},"user":"athomschke"},"286":{"isSerializedDate":true,"string":"Wed Oct 19 2011 14:49:57 GMT+0200 (W. Europe Daylight Time)"},"287":{"x":12,"y":12,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"288":{"printMe":{"__isSmartRef__":true,"id":289}},"289":{"varMapping":{"__isSmartRef__":true,"id":290},"source":"function printMe() {\n alert(this.textString)\n}","funcProperties":{"__isSmartRef__":true,"id":291},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"290":{"this":{"__isSmartRef__":true,"id":198}},"291":{},"292":{"submorphs":[{"__isSmartRef__":true,"id":293}],"scripts":[],"id":16798,"shape":{"__isSmartRef__":true,"id":308},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":315},"lighterFill":{"__isSmartRef__":true,"id":325},"label":{"__isSmartRef__":true,"id":293},"name":"DeleteButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":334},"attributeConnections":[{"__isSmartRef__":true,"id":335}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","priorExtent":{"__isSmartRef__":true,"id":371},"renderContextTable":{"__isSmartRef__":true,"id":372},"eventHandler":{"__isSmartRef__":true,"id":373},"isBeingDragged":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":374},"layout":{"__isSmartRef__":true,"id":375},"textString":"Delete","_Position":{"__isSmartRef__":true,"id":376},"owner":{"__isSmartRef__":true,"id":14},"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Button"},"293":{"submorphs":[],"scripts":[],"id":16799,"shape":{"__isSmartRef__":true,"id":294},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":300},"_MaxTextWidth":25,"_MaxTextHeight":null,"textStyle":null,"padding":{"__isSmartRef__":true,"id":301},"_Padding":{"__isSmartRef__":true,"id":302},"owner":{"__isSmartRef__":true,"id":292},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":303},"textChunks":[{"__isSmartRef__":true,"id":304}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":306},"eventHandler":{"__isSmartRef__":true,"id":307},"_HandStyle":"default","_PointerEvents":"none","_MinTextWidth":25,"_MinTextHeight":null,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"__LivelyClassName__":"lively.morphic.Text"},"294":{"position":{"__isSmartRef__":true,"id":295},"_Extent":{"__isSmartRef__":true,"id":296},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":297},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":298},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":299},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"295":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"296":{"x":25,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"297":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"298":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"299":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"300":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"301":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"302":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"303":{"x":25,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"304":{"style":{"__isSmartRef__":true,"id":305},"chunkOwner":{"__isSmartRef__":true,"id":293},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk"},"305":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"306":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"307":{"morph":{"__isSmartRef__":true,"id":293},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"308":{"position":{"__isSmartRef__":true,"id":309},"_Extent":{"__isSmartRef__":true,"id":310},"_BorderWidth":1.6280000000000001,"_BorderColor":{"__isSmartRef__":true,"id":311},"_Fill":{"__isSmartRef__":true,"id":312},"_BorderRadius":5.2,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":313},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":314},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"309":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"310":{"x":25,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"311":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"312":{"r":1,"g":0.09471783713529147,"b":0.11328772765559311,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"313":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"314":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"315":{"stops":[{"__isSmartRef__":true,"id":316},{"__isSmartRef__":true,"id":318},{"__isSmartRef__":true,"id":320},{"__isSmartRef__":true,"id":322}],"vector":{"__isSmartRef__":true,"id":324},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"316":{"offset":0,"color":{"__isSmartRef__":true,"id":317}},"317":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"318":{"offset":0.4,"color":{"__isSmartRef__":true,"id":319}},"319":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"320":{"offset":0.6,"color":{"__isSmartRef__":true,"id":321}},"321":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"322":{"offset":1,"color":{"__isSmartRef__":true,"id":323}},"323":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"324":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"325":{"stops":[{"__isSmartRef__":true,"id":326},{"__isSmartRef__":true,"id":328},{"__isSmartRef__":true,"id":330},{"__isSmartRef__":true,"id":332}],"vector":{"__isSmartRef__":true,"id":324},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"326":{"offset":0,"color":{"__isSmartRef__":true,"id":327}},"327":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"328":{"offset":0.4,"color":{"__isSmartRef__":true,"id":329}},"329":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"330":{"offset":0.6,"color":{"__isSmartRef__":true,"id":331}},"331":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"332":{"offset":1,"color":{"__isSmartRef__":true,"id":333}},"333":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"334":{"partsSpaceName":"PartsBin/Inputs","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"partName":"ScriptableButton","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"335":{"sourceObj":{"__isSmartRef__":true,"id":292},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":14},"targetMethodName":"deleteUserStory","visualConnector":{"__isSmartRef__":true,"id":336},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"336":{"submorphs":[{"__isSmartRef__":true,"id":337}],"scripts":[],"shape":{"__isSmartRef__":true,"id":352},"id":23288,"renderContextTable":{"__isSmartRef__":true,"id":359},"eventHandler":{"__isSmartRef__":true,"id":360},"droppingEnabled":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":361},{"__isSmartRef__":true,"id":362}],"con":{"__isSmartRef__":true,"id":335},"showsMorphMenu":true,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":363},"__LivelyClassName__":"lively.morphic.Path"},"337":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":338},"id":23289,"renderContextTable":{"__isSmartRef__":true,"id":349},"eventHandler":{"__isSmartRef__":true,"id":350},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":351},"owner":{"__isSmartRef__":true,"id":336},"_Rotation":-1.6147240938717864,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.Path"},"338":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":339},{"__isSmartRef__":true,"id":340},{"__isSmartRef__":true,"id":341},{"__isSmartRef__":true,"id":342}],"renderContextTable":{"__isSmartRef__":true,"id":343},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":344},"_Extent":{"__isSmartRef__":true,"id":345},"_Padding":{"__isSmartRef__":true,"id":346},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":347},"_Fill":{"__isSmartRef__":true,"id":348},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"339":{"isAbsolute":true,"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"340":{"isAbsolute":true,"x":0,"y":12,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"341":{"isAbsolute":true,"x":16,"y":6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"342":{"isAbsolute":true,"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"343":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"344":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"345":{"x":16,"y":12,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"346":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"347":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"348":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"349":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"350":{"morph":{"__isSmartRef__":true,"id":337},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"351":{"x":0.5,"y":0.5,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"352":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":353},{"__isSmartRef__":true,"id":354}],"renderContextTable":{"__isSmartRef__":true,"id":355},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":356},"_Extent":{"__isSmartRef__":true,"id":357},"_Padding":{"__isSmartRef__":true,"id":358},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":347},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"353":{"isAbsolute":true,"x":12,"y":273,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"354":{"isAbsolute":true,"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"355":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"356":{"x":-0.5,"y":-0.5,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"357":{"x":13,"y":274,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"358":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"359":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"360":{"morph":{"__isSmartRef__":true,"id":336},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"361":{"morph":{"__isSmartRef__":true,"id":336},"index":0,"connectedMagnet":null,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"362":{"morph":{"__isSmartRef__":true,"id":336},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":337},"markerDirection":"prev","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"363":{"morphMenuItems":{"__isSmartRef__":true,"id":364}},"364":{"varMapping":{"__isSmartRef__":true,"id":365},"source":"function morphMenuItems() {\n var visualConnector = this, con = this.con, world = this.world();\n var items = [\n ['edit converter', function() {\n var source = con.converterString || 'function converter(value) {\\n return value\\n}',\n editor = new lively.morphic.Text(new Rectangle(0,0, 400, 200), source);\n editor.doitContext = con;\n connect(editor, 'savedTextString', con, 'converterString', {updater:\n function($upd, source) { this.targetObj.converter = null; $upd(source) }});\n connect(editor, 'savedTextString', world, 'alertOK', {converter: \n function() { return 'setting new converter' }})\n editor.applyStyle({syntaxHighlighting: true, fontFamily: 'Courier', resizeWidth: true, resizeHeight: true});\n var title = con.targetObj.name && con.sourceObj.name ?\n 'Editor for ' + con.targetObj.name + ' -> ' + con.sourceObj.name :\n 'Editor for converter function';\n var window = world.addFramedMorph(editor, title)\n window.align(window.bounds().topCenter(), visualConnector.bounds().bottomCenter())\n }],\n ['hide', function() {\n visualConnector.disconnectFromMagnets();\n visualConnector.remove();\n }],\n ['disconnect', function() {\n alertOK('Disconnected ' + visualConnector.con);\n visualConnector.con.visualDisconnect();\n }],\n ['cancel', function() {}],\n ];\n return items;\n }","funcProperties":{"__isSmartRef__":true,"id":370},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"365":{"this":{"__isSmartRef__":true,"id":336},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":366}},"366":{"$super":{"__isSmartRef__":true,"id":367}},"367":{"varMapping":{"__isSmartRef__":true,"id":368},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":369},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"368":{"obj":{"__isSmartRef__":true,"id":336},"name":"morphMenuItems"},"369":{},"370":{},"371":{"x":25,"y":23,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"372":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"373":{"morph":{"__isSmartRef__":true,"id":292},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"374":{"x":31,"y":-14,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"375":{"moveVertical":true},"376":{"x":122,"y":265,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"377":{"submorphs":[],"scripts":[],"id":16800,"shape":{"__isSmartRef__":true,"id":378},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":385},"showsHalos":false,"name":"ResizeCorner1","partsBinMetaInfo":{"__isSmartRef__":true,"id":386},"__SourceModuleName__":"Global.lively.morphic.Core","__layered_draggingEnabled__":true,"dragStartPoint":null,"originalExtent":{"__isSmartRef__":true,"id":387},"originalTargetExtent":null,"renderContextTable":{"__isSmartRef__":true,"id":388},"eventHandler":{"__isSmartRef__":true,"id":389},"cornerName":"bottomRight","priorExtent":{"__isSmartRef__":true,"id":390},"originalTargetInnerBounds":null,"isResizeCorner":true,"relativeOrigin":null,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"owner":{"__isSmartRef__":true,"id":14},"scriptAnnotations":{"__isSmartRef__":true,"id":391},"layout":{"__isSmartRef__":true,"id":398},"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":399},"__LivelyClassName__":"lively.morphic.Box"},"378":{"position":{"__isSmartRef__":true,"id":379},"_Extent":{"__isSmartRef__":true,"id":380},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":381},"_Fill":{"__isSmartRef__":true,"id":382},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":383},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":384},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"379":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"380":{"x":10,"y":10,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"381":{"r":0.568,"g":0.568,"b":0.568,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"382":{"r":0.258,"g":0.258,"b":0.258,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"383":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"384":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"385":{"x":480,"y":285,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"386":{"partsSpaceName":"PartsBin/Widgets/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"Resize an object without using halos.","partName":"ResizeCorner","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"387":{"x":239,"y":138,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"388":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"389":{"morph":{"__isSmartRef__":true,"id":377},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"390":{"x":10,"y":10,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"391":{"onDrag":{"__isSmartRef__":true,"id":392},"onDragEnd":{"__isSmartRef__":true,"id":394},"onDragStart":{"__isSmartRef__":true,"id":396}},"392":{"time":{"__isSmartRef__":true,"id":393},"user":"conrad.calmez"},"393":{"isSerializedDate":true,"string":"Tue Oct 18 2011 17:27:49 GMT+0200 (W. Europe Daylight Time)"},"394":{"time":{"__isSmartRef__":true,"id":395},"user":"conrad.calmez"},"395":{"isSerializedDate":true,"string":"Tue Oct 18 2011 17:27:49 GMT+0200 (W. Europe Daylight Time)"},"396":{"time":{"__isSmartRef__":true,"id":397},"user":"conrad.calmez"},"397":{"isSerializedDate":true,"string":"Tue Oct 18 2011 17:27:49 GMT+0200 (W. Europe Daylight Time)"},"398":{"moveHorizontal":true,"moveVertical":true},"399":{"onDrag":{"__isSmartRef__":true,"id":400},"onDragEnd":{"__isSmartRef__":true,"id":407},"onDragStart":{"__isSmartRef__":true,"id":414},"reset":{"__isSmartRef__":true,"id":421},"morphMenuItems":{"__isSmartRef__":true,"id":424},"alignToOwner":{"__isSmartRef__":true,"id":431}},"400":{"varMapping":{"__isSmartRef__":true,"id":401},"source":"function onDrag(evt) {\n\t// alert(\"onDrag\")\n\t\tvar moveDelta = evt.mousePoint.subPt(this.dragStartPoint)\n\t\tif (evt.isShiftDown()) {\n\t\t\tvar maxDelta = Math.max(moveDelta.x, moveDelta.y);\n\t\t\tmoveDelta = pt(maxDelta, maxDelta);\n\t\t}\n\t\tthis.owner.setExtent(this.originalTargetExtent.addPt(moveDelta));\n\t\tthis.align(this.bounds().bottomRight(), this.owner.getExtent())\n}","funcProperties":{"__isSmartRef__":true,"id":406},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"401":{"this":{"__isSmartRef__":true,"id":377},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":402}},"402":{"$super":{"__isSmartRef__":true,"id":403}},"403":{"varMapping":{"__isSmartRef__":true,"id":404},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":405},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"404":{"obj":{"__isSmartRef__":true,"id":377},"name":"onDrag"},"405":{},"406":{},"407":{"varMapping":{"__isSmartRef__":true,"id":408},"source":"function onDragEnd(evt) {\n\tthis.dragStartPoint = null;\n\tthis.originalTargetExtent = null;\n}","funcProperties":{"__isSmartRef__":true,"id":413},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"408":{"this":{"__isSmartRef__":true,"id":377},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":409}},"409":{"$super":{"__isSmartRef__":true,"id":410}},"410":{"varMapping":{"__isSmartRef__":true,"id":411},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":412},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"411":{"obj":{"__isSmartRef__":true,"id":377},"name":"onDragEnd"},"412":{},"413":{},"414":{"varMapping":{"__isSmartRef__":true,"id":415},"source":"function onDragStart(evt) {\n\tthis.dragStartPoint = evt.mousePoint;\n\tthis.originalTargetExtent = this.owner.getExtent();\n}","funcProperties":{"__isSmartRef__":true,"id":420},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"415":{"this":{"__isSmartRef__":true,"id":377},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":416}},"416":{"$super":{"__isSmartRef__":true,"id":417}},"417":{"varMapping":{"__isSmartRef__":true,"id":418},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":419},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"418":{"obj":{"__isSmartRef__":true,"id":377},"name":"onDragStart"},"419":{},"420":{},"421":{"varMapping":{"__isSmartRef__":true,"id":422},"source":"function reset() {\n this.isResizeCorner = true\n this.cornerName = 'bottomRight'\n this.setExtent(pt(10,10));\n this.setPosition(pt(0,0))\n}","funcProperties":{"__isSmartRef__":true,"id":423},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"422":{"this":{"__isSmartRef__":true,"id":377}},"423":{},"424":{"varMapping":{"__isSmartRef__":true,"id":425},"source":"function morphMenuItems() {\n return $super().concat([\n [\"corner\", [\n [\"top left\", function() { this.cornerName = 'topLeft'}.bind(this)],\n [\"top right\", function() { this.cornerName = 'topRight'}.bind(this)],\n [\"bottom right\", function() { this.cornerName = 'bottomRight'}.bind(this)],\n [\"bottom left\", function() { this.cornerName = 'bottomLeft'}.bind(this)],\n ]]\n ])\t\n}","funcProperties":{"__isSmartRef__":true,"id":430},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"425":{"this":{"__isSmartRef__":true,"id":377},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":426}},"426":{"$super":{"__isSmartRef__":true,"id":427}},"427":{"varMapping":{"__isSmartRef__":true,"id":428},"source":"function () {\n\t\t\t\ttry {\n\t\t\t\t\treturn obj.constructor.prototype[name].apply(obj, arguments)\n\t\t\t\t} catch(e) {\n\t\t\t\t\talert('Error in $super call: ' + e + '\\n' + e.stack);\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}","funcProperties":{"__isSmartRef__":true,"id":429},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"428":{"obj":{"__isSmartRef__":true,"id":377},"name":"morphMenuItems"},"429":{},"430":{},"431":{"varMapping":{"__isSmartRef__":true,"id":432},"source":"function alignToOwner() {\n this.align(this.bounds()[this.cornerName](), this.owner.shape.bounds()[this.cornerName]() )\n}","funcProperties":{"__isSmartRef__":true,"id":433},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"432":{"this":{"__isSmartRef__":true,"id":377}},"433":{},"434":{"submorphs":[],"scripts":[],"id":16801,"renderContextTable":{"__isSmartRef__":true,"id":435},"shape":{"__isSmartRef__":true,"id":436},"droppingEnabled":true,"halosEnabled":true,"_ClipMode":"auto","eventHandler":{"__isSmartRef__":true,"id":443},"itemList":["new","in progress","done"],"selectOnMove":false,"showsHalos":false,"priorExtent":{"__isSmartRef__":true,"id":444},"attributeConnections":[{"__isSmartRef__":true,"id":445}],"doNotSerialize":["$$selectedLineNo"],"doNotCopyProperties":["$$selectedLineNo"],"name":"DropDownList","partsBinMetaInfo":{"__isSmartRef__":true,"id":485},"__SourceModuleName__":"Global.lively.morphic.Core","changeTriggered":false,"selection":"new","layout":{"__isSmartRef__":true,"id":486},"distanceToDragEvent":{"__isSmartRef__":true,"id":487},"isCopyMorphRef":true,"morphRefId":1,"scriptAnnotations":{"__isSmartRef__":true,"id":488},"_Position":{"__isSmartRef__":true,"id":491},"owner":{"__isSmartRef__":true,"id":14},"_Rotation":0,"_Scale":1,"selectedLineNo":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":492},"__LivelyClassName__":"lively.morphic.DropDownList"},"435":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateListContent":"updateListContentHTML","resizeList":"resizeListHTML","getItemIndexFromEvent":"getItemIndexFromEventHTML","getListExtent":"getListExtentHTML","setSize":"setSizeHTML","renderAsDropDownList":"renderAsDropDownListHTML","setFontSize":"setFontSizeHTML","setFontFamily":"setFontFamilyHTML","getSelectedIndexes":"getSelectedIndexesHTML","enableMultipleSelections":"enableMultipleSelectionsHTML","selectAllAt":"selectAllAtHTML","clearSelections":"clearSelectionsHTML","deselectAt":"deselectAtHTML"},"436":{"_Position":{"__isSmartRef__":true,"id":437},"renderContextTable":{"__isSmartRef__":true,"id":438},"_Extent":{"__isSmartRef__":true,"id":439},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":440},"_Fill":{"__isSmartRef__":true,"id":441},"__SourceModuleName__":"Global.lively.morphic.Shapes","_Padding":{"__isSmartRef__":true,"id":442},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"437":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"438":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"439":{"x":107,"y":25,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"440":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"441":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"442":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"443":{"morph":{"__isSmartRef__":true,"id":434},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"444":{"x":107,"y":26,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"445":{"sourceObj":{"__isSmartRef__":true,"id":434},"sourceAttrName":"selectedLineNo","targetObj":{"__isSmartRef__":true,"id":434},"targetMethodName":"fill","visualConnector":{"__isSmartRef__":true,"id":446},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"446":{"submorphs":[{"__isSmartRef__":true,"id":447}],"scripts":[],"shape":{"__isSmartRef__":true,"id":466},"id":3620,"renderContextTable":{"__isSmartRef__":true,"id":473},"eventHandler":{"__isSmartRef__":true,"id":474},"droppingEnabled":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":475},{"__isSmartRef__":true,"id":476}],"con":{"__isSmartRef__":true,"id":445},"showsMorphMenu":true,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":477},"__LivelyClassName__":"lively.morphic.Path"},"447":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":448},"id":3621,"renderContextTable":{"__isSmartRef__":true,"id":459},"eventHandler":{"__isSmartRef__":true,"id":460},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":461},"owner":{"__isSmartRef__":true,"id":446},"showsHalos":false,"controlPoints":[{"__isSmartRef__":true,"id":462},{"__isSmartRef__":true,"id":463},{"__isSmartRef__":true,"id":464},{"__isSmartRef__":true,"id":465}],"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Rotation":2.1965478205316833,"__LivelyClassName__":"lively.morphic.Path"},"448":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":449},{"__isSmartRef__":true,"id":450},{"__isSmartRef__":true,"id":451},{"__isSmartRef__":true,"id":452}],"renderContextTable":{"__isSmartRef__":true,"id":453},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":454},"_Extent":{"__isSmartRef__":true,"id":455},"_Padding":{"__isSmartRef__":true,"id":456},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":457},"_Fill":{"__isSmartRef__":true,"id":458},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"449":{"isAbsolute":true,"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"450":{"isAbsolute":true,"x":0,"y":12,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"451":{"isAbsolute":true,"x":16,"y":6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"452":{"isAbsolute":true,"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"453":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"454":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"455":{"x":16,"y":12,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"456":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"457":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"458":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"459":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"460":{"morph":{"__isSmartRef__":true,"id":447},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"461":{"x":0.5,"y":137.5,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"462":{"morph":{"__isSmartRef__":true,"id":447},"index":0,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"463":{"morph":{"__isSmartRef__":true,"id":447},"index":1,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"464":{"morph":{"__isSmartRef__":true,"id":447},"index":2,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"465":{"morph":{"__isSmartRef__":true,"id":447},"index":3,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"466":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":467},{"__isSmartRef__":true,"id":468}],"renderContextTable":{"__isSmartRef__":true,"id":469},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":470},"_Extent":{"__isSmartRef__":true,"id":471},"_Padding":{"__isSmartRef__":true,"id":472},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":457},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"467":{"isAbsolute":true,"x":306,"y":262,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"468":{"isAbsolute":true,"x":207,"y":399,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"469":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"470":{"x":206.5,"y":261.5,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"471":{"x":100,"y":138,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"472":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"473":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"474":{"morph":{"__isSmartRef__":true,"id":446},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"475":{"morph":{"__isSmartRef__":true,"id":446},"index":0,"connectedMagnet":null,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"476":{"morph":{"__isSmartRef__":true,"id":446},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":447},"markerDirection":"prev","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"477":{"morphMenuItems":{"__isSmartRef__":true,"id":478}},"478":{"varMapping":{"__isSmartRef__":true,"id":479},"source":"function morphMenuItems() {\n var visualConnector = this, con = this.con, world = this.world();\n var items = [\n ['edit converter', function() {\n var source = con.converterString || 'function converter(value) {\\n return value\\n}',\n editor = new lively.morphic.Text(new Rectangle(0,0, 400, 200), source);\n editor.doitContext = con;\n connect(editor, 'savedTextString', con, 'converterString', {updater:\n function($upd, source) { this.targetObj.converter = null; $upd(source) }});\n connect(editor, 'savedTextString', world, 'alertOK', {converter: \n function() { return 'setting new converter' }})\n editor.applyStyle({syntaxHighlighting: true, fontFamily: 'Courier', resizeWidth: true, resizeHeight: true});\n var title = con.targetObj.name && con.sourceObj.name ?\n 'Editor for ' + con.targetObj.name + ' -> ' + con.sourceObj.name :\n 'Editor for converter function';\n var window = world.addFramedMorph(editor, title)\n window.align(window.bounds().topCenter(), visualConnector.bounds().bottomCenter())\n }],\n ['hide', function() {\n visualConnector.disconnectFromMagnets();\n visualConnector.remove();\n }],\n ['disconnect', function() {\n alertOK('Disconnected ' + visualConnector.con);\n visualConnector.con.visualDisconnect();\n }],\n ['cancel', function() {}],\n ];\n return items;\n }","funcProperties":{"__isSmartRef__":true,"id":484},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"479":{"this":{"__isSmartRef__":true,"id":446},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":480}},"480":{"$super":{"__isSmartRef__":true,"id":481}},"481":{"varMapping":{"__isSmartRef__":true,"id":482},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":483},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"482":{"obj":{"__isSmartRef__":true,"id":446},"name":"morphMenuItems"},"483":{},"484":{},"485":{"requiredModules":[],"migrationLevel":2,"partsSpaceName":"PartsBin/Widgets/","__SourceModuleName__":"Global.lively.PartsBin","comment":"\"Native\" drop down list","partName":"DropDownList","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"486":{"moveVertical":true,"moveHorizontal":true},"487":{"x":78,"y":-11,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"488":{"fill":{"__isSmartRef__":true,"id":489}},"489":{"time":{"__isSmartRef__":true,"id":490},"user":"conrad.calmez"},"490":{"isSerializedDate":true,"string":"Wed Oct 19 2011 13:10:36 GMT+0200 (W. Europe Daylight Time)"},"491":{"x":278,"y":262,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"492":{"fill":{"__isSmartRef__":true,"id":493}},"493":{"varMapping":{"__isSmartRef__":true,"id":494},"source":"function fill(lineNumber) {\n var status, color;\n status = this.itemList[lineNumber];\n switch (status) {\n case 'new':\n color = Color.rgb(255,255,255)\n break;\n case 'in progress':\n color = Color.rgb(255,255,0)\n break;\n case 'done':\n color = Color.rgb(0,255,0)\n break;\n default:\n color = Color.rgb(200,200,200)\n break;\n }\n this.owner.get('Rectangle').shape.setFill(color);\n}","funcProperties":{"__isSmartRef__":true,"id":495},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"494":{"this":{"__isSmartRef__":true,"id":434}},"495":{},"496":{"submorphs":[],"scripts":[],"id":16802,"shape":{"__isSmartRef__":true,"id":497},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"Rectangle","partsBinMetaInfo":{"__isSmartRef__":true,"id":504},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":505},"eventHandler":{"__isSmartRef__":true,"id":506},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"layout":{"__isSmartRef__":true,"id":507},"priorExtent":{"__isSmartRef__":true,"id":508},"isBeingDragged":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":509},"_Position":{"__isSmartRef__":true,"id":510},"owner":{"__isSmartRef__":true,"id":14},"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Box"},"497":{"position":{"__isSmartRef__":true,"id":498},"_Extent":{"__isSmartRef__":true,"id":499},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":500},"_Fill":{"__isSmartRef__":true,"id":501},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":502},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":503},"_BorderRadius":50,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"498":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"499":{"x":26,"y":25,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"500":{"r":0.753,"g":0.753,"b":0.753,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"501":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"502":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"503":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"504":{"partsSpaceName":"PartsBin/Basic/","__SourceModuleName__":"Global.lively.PartsBin","comment":"A simple box morph. A really blue one. Its amazing what you can build out of simple boxes.... Who needs stars when you got blue rectangles!","migrationLevel":2,"partName":"Rectangle","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"505":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"506":{"morph":{"__isSmartRef__":true,"id":496},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"507":{"moveVertical":true,"moveHorizontal":true},"508":{"x":26,"y":26,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"509":{"x":40,"y":-8,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"510":{"x":244,"y":262,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"511":{"submorphs":[{"__isSmartRef__":true,"id":512}],"scripts":[],"id":16803,"shape":{"__isSmartRef__":true,"id":527},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":543},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":531},"lighterFill":{"__isSmartRef__":true,"id":544},"label":{"__isSmartRef__":true,"id":512},"name":"RevertButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":553},"attributeConnections":[{"__isSmartRef__":true,"id":554}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","priorExtent":{"__isSmartRef__":true,"id":555},"renderContextTable":{"__isSmartRef__":true,"id":556},"eventHandler":{"__isSmartRef__":true,"id":557},"owner":{"__isSmartRef__":true,"id":14},"scriptAnnotations":{"__isSmartRef__":true,"id":558},"layout":{"__isSmartRef__":true,"id":565},"_Visible":true,"distanceToDragEvent":{"__isSmartRef__":true,"id":566},"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":567},"__LivelyClassName__":"lively.morphic.Button"},"512":{"submorphs":[],"scripts":[],"id":16804,"shape":{"__isSmartRef__":true,"id":513},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":519},"_MaxTextWidth":101,"_MaxTextHeight":null,"textStyle":null,"padding":{"__isSmartRef__":true,"id":520},"_Padding":{"__isSmartRef__":true,"id":521},"owner":{"__isSmartRef__":true,"id":511},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":522},"textChunks":[{"__isSmartRef__":true,"id":523}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":525},"eventHandler":{"__isSmartRef__":true,"id":526},"_HandStyle":"default","_PointerEvents":"none","_MinTextWidth":101,"_MinTextHeight":null,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"__LivelyClassName__":"lively.morphic.Text"},"513":{"position":{"__isSmartRef__":true,"id":514},"_Extent":{"__isSmartRef__":true,"id":515},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":516},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":517},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":518},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"514":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"515":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"516":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"517":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"518":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"519":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"520":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"521":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"522":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"523":{"style":{"__isSmartRef__":true,"id":524},"chunkOwner":{"__isSmartRef__":true,"id":512},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk"},"524":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"525":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"526":{"morph":{"__isSmartRef__":true,"id":512},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"527":{"position":{"__isSmartRef__":true,"id":528},"_Extent":{"__isSmartRef__":true,"id":529},"_BorderWidth":1.1840000000000002,"_BorderColor":{"__isSmartRef__":true,"id":530},"_Fill":{"__isSmartRef__":true,"id":531},"_BorderRadius":5.2,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":541},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":542},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"528":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"529":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"530":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"531":{"stops":[{"__isSmartRef__":true,"id":532},{"__isSmartRef__":true,"id":534},{"__isSmartRef__":true,"id":536},{"__isSmartRef__":true,"id":538}],"vector":{"__isSmartRef__":true,"id":540},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"532":{"offset":0,"color":{"__isSmartRef__":true,"id":533}},"533":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"534":{"offset":0.4,"color":{"__isSmartRef__":true,"id":535}},"535":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"536":{"offset":0.6,"color":{"__isSmartRef__":true,"id":537}},"537":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"538":{"offset":1,"color":{"__isSmartRef__":true,"id":539}},"539":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"540":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"541":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"542":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"543":{"x":10,"y":266,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"544":{"stops":[{"__isSmartRef__":true,"id":545},{"__isSmartRef__":true,"id":547},{"__isSmartRef__":true,"id":549},{"__isSmartRef__":true,"id":551}],"vector":{"__isSmartRef__":true,"id":540},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"545":{"offset":0,"color":{"__isSmartRef__":true,"id":546}},"546":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"547":{"offset":0.4,"color":{"__isSmartRef__":true,"id":548}},"548":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"549":{"offset":0.6,"color":{"__isSmartRef__":true,"id":550}},"550":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"551":{"offset":1,"color":{"__isSmartRef__":true,"id":552}},"552":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"553":{"partsSpaceName":"PartsBin/Inputs","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"partName":"ScriptableButton","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"554":{"sourceObj":{"__isSmartRef__":true,"id":511},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":511},"targetMethodName":"onFire","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"555":{"x":101,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"556":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"557":{"morph":{"__isSmartRef__":true,"id":511},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"558":{"onFire":{"__isSmartRef__":true,"id":559},"setIsActive":{"__isSmartRef__":true,"id":561},"getIsActive":{"__isSmartRef__":true,"id":563}},"559":{"time":{"__isSmartRef__":true,"id":560},"user":"athomschke"},"560":{"isSerializedDate":true,"string":"Wed Oct 19 2011 14:50:04 GMT+0200 (W. Europe Daylight Time)"},"561":{"time":{"__isSmartRef__":true,"id":562},"user":"athomschke"},"562":{"isSerializedDate":true,"string":"Wed Oct 19 2011 14:37:21 GMT+0200 (W. Europe Daylight Time)"},"563":{"time":{"__isSmartRef__":true,"id":564},"user":"athomschke"},"564":{"isSerializedDate":true,"string":"Wed Oct 19 2011 14:26:23 GMT+0200 (W. Europe Daylight Time)"},"565":{"moveVertical":true},"566":{"x":73,"y":-14,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"567":{"onFire":{"__isSmartRef__":true,"id":568}},"568":{"varMapping":{"__isSmartRef__":true,"id":569},"source":"function onFire() { \n this.owner.setSerializedProperties(this.owner.originalProperties);\n}","funcProperties":{"__isSmartRef__":true,"id":570},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"569":{"this":{"__isSmartRef__":true,"id":511}},"570":{},"571":{"position":{"__isSmartRef__":true,"id":572},"_Extent":{"__isSmartRef__":true,"id":573},"_Fill":{"__isSmartRef__":true,"id":574},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":575},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":576},"_BorderRadius":7.7700000000000005,"_Opacity":1,"_BorderStyle":"solid","_Position":{"__isSmartRef__":true,"id":577},"attributeConnections":[{"__isSmartRef__":true,"id":578}],"doNotSerialize":["$$_BorderColor"],"doNotCopyProperties":["$$_BorderColor"],"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":580},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"572":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"573":{"x":490,"y":295,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"574":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"575":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"576":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"577":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"578":{"sourceObj":{"__isSmartRef__":true,"id":571},"sourceAttrName":"_BorderColor","targetObj":{"__isSmartRef__":true,"id":14},"targetMethodName":"makeSerialization","dependedBy":{"__isSmartRef__":true,"id":579},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"579":{"sourceObj":{"__isSmartRef__":true,"id":14},"sourceAttrName":"borderColor","targetObj":{"__isSmartRef__":true,"id":14},"targetMethodName":"makeSerialization","dependendConnections":[{"__isSmartRef__":true,"id":578},{"__isSmartRef__":true,"id":578},{"__isSmartRef__":true,"id":578},{"__isSmartRef__":true,"id":578},{"__isSmartRef__":true,"id":578},{"__isSmartRef__":true,"id":578},{"__isSmartRef__":true,"id":578},{"__isSmartRef__":true,"id":578},{"__isSmartRef__":true,"id":578},{"__isSmartRef__":true,"id":578},{"__isSmartRef__":true,"id":578},{"__isSmartRef__":true,"id":578},{"__isSmartRef__":true,"id":578},{"__isSmartRef__":true,"id":578},{"__isSmartRef__":true,"id":578},{"__isSmartRef__":true,"id":578},{"__isSmartRef__":true,"id":578},{"__isSmartRef__":true,"id":578},{"__isSmartRef__":true,"id":578},{"__isSmartRef__":true,"id":578},{"__isSmartRef__":true,"id":578},{"__isSmartRef__":true,"id":578},{"__isSmartRef__":true,"id":578},{"__isSmartRef__":true,"id":578},{"__isSmartRef__":true,"id":578},{"__isSmartRef__":true,"id":578},{"__isSmartRef__":true,"id":578},{"__isSmartRef__":true,"id":578},{"__isSmartRef__":true,"id":578},{"__isSmartRef__":true,"id":578},{"__isSmartRef__":true,"id":578},{"__isSmartRef__":true,"id":578},{"__isSmartRef__":true,"id":578},{"__isSmartRef__":true,"id":578}],"visualConnector":{"__isSmartRef__":true,"id":1},"__SourceModuleName__":"Global.lively.bindings.GeometryBindings","__LivelyClassName__":"lively.morphic.GeometryConnection"},"580":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"581":{"partsSpaceName":"PartsBin/BP2012/","__SourceModuleName__":"Global.lively.PartsBin","comment":"A simple box morph. A really blue one. Its amazing what you can build out of simple boxes.... Who needs stars when you got blue rectangles!","migrationLevel":4,"partName":"UserStory","changes":[{"__isSmartRef__":true,"id":582},{"__isSmartRef__":true,"id":584},{"__isSmartRef__":true,"id":586},{"__isSmartRef__":true,"id":588},{"__isSmartRef__":true,"id":590},{"__isSmartRef__":true,"id":592},{"__isSmartRef__":true,"id":594},{"__isSmartRef__":true,"id":596},{"__isSmartRef__":true,"id":598},{"__isSmartRef__":true,"id":600},{"__isSmartRef__":true,"id":602},{"__isSmartRef__":true,"id":604},{"__isSmartRef__":true,"id":606},{"__isSmartRef__":true,"id":608},{"__isSmartRef__":true,"id":610},{"__isSmartRef__":true,"id":612},{"__isSmartRef__":true,"id":614},{"__isSmartRef__":true,"id":616},{"__isSmartRef__":true,"id":618},{"__isSmartRef__":true,"id":620},{"__isSmartRef__":true,"id":622},{"__isSmartRef__":true,"id":624},{"__isSmartRef__":true,"id":626},{"__isSmartRef__":true,"id":628},{"__isSmartRef__":true,"id":630},{"__isSmartRef__":true,"id":632},{"__isSmartRef__":true,"id":634},{"__isSmartRef__":true,"id":636},{"__isSmartRef__":true,"id":638},{"__isSmartRef__":true,"id":640},{"__isSmartRef__":true,"id":642},{"__isSmartRef__":true,"id":644},{"__isSmartRef__":true,"id":646},{"__isSmartRef__":true,"id":648}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"582":{"date":{"__isSmartRef__":true,"id":583},"author":"sebastian.stamm","message":"fixed serialization for diffViewer"},"583":{"isSerializedDate":true,"string":"Fri Oct 21 2011 11:59:25 GMT+0200 (W. Europe Daylight Time)"},"584":{"date":{"__isSmartRef__":true,"id":585},"author":"sebastian.stamm","message":"FIX: dropDownList works now"},"585":{"isSerializedDate":true,"string":"Fri Oct 21 2011 10:50:30 GMT+0200 (W. Europe Daylight Time)"},"586":{"date":{"__isSmartRef__":true,"id":587},"author":"sebastian.stamm","message":"bugfix: revert button"},"587":{"isSerializedDate":true,"string":"Thu Oct 20 2011 16:30:13 GMT+0200 (W. Europe Daylight Time)"},"588":{"date":{"__isSmartRef__":true,"id":589},"author":"benjamin.siegmund","message":"added alert when creating new task"},"589":{"isSerializedDate":true,"string":"Thu Oct 20 2011 15:23:47 GMT+0200 (W. Europe Daylight Time)"},"590":{"date":{"__isSmartRef__":true,"id":591},"author":"sebastian.stamm","message":"onclick brings to front"},"591":{"isSerializedDate":true,"string":"Thu Oct 20 2011 14:43:14 GMT+0200 (W. Europe Daylight Time)"},"592":{"date":{"__isSmartRef__":true,"id":593},"author":"conrad.calmez","message":"fix bug now for REAL"},"593":{"isSerializedDate":true,"string":"Thu Oct 20 2011 13:52:00 GMT+0200 (W. Europe Daylight Time)"},"594":{"date":{"__isSmartRef__":true,"id":595},"author":"sebastian.stamm","message":"will generate new DB-IDs again"},"595":{"isSerializedDate":true,"string":"Thu Oct 20 2011 13:43:55 GMT+0200 (W. Europe Daylight Time)"},"596":{"date":{"__isSmartRef__":true,"id":597},"author":"conrad.calmez","message":"moved comparison of serialized objects to here"},"597":{"isSerializedDate":true,"string":"Thu Oct 20 2011 13:30:12 GMT+0200 (W. Europe Daylight Time)"},"598":{"date":{"__isSmartRef__":true,"id":599},"author":"sebastian.stamm","message":"UserStories can not be dropped onto something (except the world)"},"599":{"isSerializedDate":true,"string":"Thu Oct 20 2011 12:34:10 GMT+0200 (W. Europe Daylight Time)"},"600":{"date":{"__isSmartRef__":true,"id":601},"author":"athomschke","message":"Some styling"},"601":{"isSerializedDate":true,"string":"Thu Oct 20 2011 10:00:26 GMT+0200 (W. Europe Daylight Time)"},"602":{"date":{"__isSmartRef__":true,"id":603},"author":"benjamin.siegmund","message":"dropping disabled, use enableDropping() to enable it for further editing"},"603":{"isSerializedDate":true,"string":"Wed Oct 19 2011 17:48:43 GMT+0200 (W. Europe Daylight Time)"},"604":{"date":{"__isSmartRef__":true,"id":605},"author":"athomschke","message":"set originalProperties on publish"},"605":{"isSerializedDate":true,"string":"Wed Oct 19 2011 17:02:45 GMT+0200 (W. Europe Daylight Time)"},"606":{"date":{"__isSmartRef__":true,"id":607},"author":"athomschke","message":"gets the originalProperties by serializing itself now"},"607":{"isSerializedDate":true,"string":"Wed Oct 19 2011 15:36:46 GMT+0200 (W. Europe Daylight Time)"},"608":{"date":{"__isSmartRef__":true,"id":609},"author":"conrad.calmez","message":"foo test bar"},"609":{"isSerializedDate":true,"string":"Wed Oct 19 2011 14:58:27 GMT+0200 (W. Europe Daylight Time)"},"610":{"date":{"__isSmartRef__":true,"id":611},"author":"athomschke","message":"moved request at setSerializedProperties to refresh all button"},"611":{"isSerializedDate":true,"string":"Wed Oct 19 2011 15:30:03 GMT+0200 (W. Europe Daylight Time)"},"612":{"date":{"__isSmartRef__":true,"id":613},"author":"conrad.calmez","message":"connection on DropDownList hidden."},"613":{"isSerializedDate":true,"string":"Wed Oct 19 2011 16:34:00 GMT+0200 (W. Europe Daylight Time)"},"614":{"date":{"__isSmartRef__":true,"id":615},"author":"athomschke","message":"set originalProperties on publish"},"615":{"isSerializedDate":true,"string":"Wed Oct 19 2011 17:03:48 GMT+0200 (W. Europe Daylight Time)"},"616":{"date":{"__isSmartRef__":true,"id":617},"author":"benjamin.siegmund","message":"Publishing conflict is now shown as alert"},"617":{"isSerializedDate":true,"string":"Thu Oct 20 2011 09:40:00 GMT+0200 (W. Europe Daylight Time)"},"618":{"date":{"__isSmartRef__":true,"id":619},"author":"conrad.calmez","message":"delete button moved down in order to not confuse w/ object delete"},"619":{"isSerializedDate":true,"string":"Thu Oct 20 2011 12:01:39 GMT+0200 (W. Europe Daylight Time)"},"620":{"date":{"__isSmartRef__":true,"id":621},"author":"conrad.calmez","message":"changed fill color of DropDownList to gray again."},"621":{"isSerializedDate":true,"string":"Thu Oct 20 2011 12:02:48 GMT+0200 (W. Europe Daylight Time)"},"622":{"date":{"__isSmartRef__":true,"id":623},"author":"conrad.calmez","message":"refactored responisbility of serializeAsString method"},"623":{"isSerializedDate":true,"string":"Thu Oct 20 2011 13:18:58 GMT+0200 (W. Europe Daylight Time)"},"624":{"date":{"__isSmartRef__":true,"id":625},"author":"sebastian.stamm","message":"does not generate a new DB-ID if it already has one"},"625":{"isSerializedDate":true,"string":"Thu Oct 20 2011 13:35:46 GMT+0200 (W. Europe Daylight Time)"},"626":{"date":{"__isSmartRef__":true,"id":627},"author":"conrad.calmez","message":"bug fix in test to serialize"},"627":{"isSerializedDate":true,"string":"Thu Oct 20 2011 13:48:54 GMT+0200 (W. Europe Daylight Time)"},"628":{"date":{"__isSmartRef__":true,"id":629},"author":"conrad.calmez","message":"reworked serializeAsString method"},"629":{"isSerializedDate":true,"string":"Thu Oct 20 2011 14:08:14 GMT+0200 (W. Europe Daylight Time)"},"630":{"date":{"__isSmartRef__":true,"id":631},"author":"sebastian.stamm","message":"prepare for (hopefully) final DB-ID bug fix"},"631":{"isSerializedDate":true,"string":"Thu Oct 20 2011 14:54:57 GMT+0200 (W. Europe Daylight Time)"},"632":{"date":{"__isSmartRef__":true,"id":633},"author":"sebastian.stamm","message":"you can successfully click on the text fields now"},"633":{"isSerializedDate":true,"string":"Thu Oct 20 2011 16:00:41 GMT+0200 (W. Europe Daylight Time)"},"634":{"date":{"__isSmartRef__":true,"id":635},"author":"sebastian.stamm","message":"serializePropertyAsString added"},"635":{"isSerializedDate":true,"string":"Thu Oct 20 2011 18:25:46 GMT+0200 (W. Europe Daylight Time)"},"636":{"date":{"__isSmartRef__":true,"id":637},"author":"sebastian.stamm","message":"bugfix in serialization of properties"},"637":{"isSerializedDate":true,"string":"Thu Oct 20 2011 18:28:29 GMT+0200 (W. Europe Daylight Time)"},"638":{"date":{"__isSmartRef__":true,"id":639},"author":"sebastian.stamm","message":"another bugfix for serializing properties"},"639":{"isSerializedDate":true,"string":"Thu Oct 20 2011 18:30:07 GMT+0200 (W. Europe Daylight Time)"},"640":{"date":{"__isSmartRef__":true,"id":641},"author":"sebastian.stamm","message":"bug should be finally fixed now..."},"641":{"isSerializedDate":true,"string":"Thu Oct 20 2011 18:34:03 GMT+0200 (W. Europe Daylight Time)"},"642":{"date":{"__isSmartRef__":true,"id":643},"author":"sebastian.stamm","message":"well, it wasn't, it is fixed now, i hope"},"643":{"isSerializedDate":true,"string":"Thu Oct 20 2011 18:44:46 GMT+0200 (W. Europe Daylight Time)"},"644":{"date":{"__isSmartRef__":true,"id":645},"author":"sebastian.stamm","message":"one fixed, one made, now fixed again"},"645":{"isSerializedDate":true,"string":"Thu Oct 20 2011 18:46:11 GMT+0200 (W. Europe Daylight Time)"},"646":{"date":{"__isSmartRef__":true,"id":647},"author":"sebastian.stamm","message":"i'll just stop saying I fixed it"},"647":{"isSerializedDate":true,"string":"Thu Oct 20 2011 18:53:33 GMT+0200 (W. Europe Daylight Time)"},"648":{"date":{"__isSmartRef__":true,"id":649},"author":"sebastian.stamm","message":"fixed the fix"},"649":{"isSerializedDate":true,"string":"Fri Oct 21 2011 11:51:38 GMT+0200 (W. Europe Daylight Time)"},"650":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"651":{"morph":{"__isSmartRef__":true,"id":14},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"652":{"x":490,"y":295,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"653":{"adjustForNewBounds":true},"654":{"serialize":{"__isSmartRef__":true,"id":655},"filterTitle":{"__isSmartRef__":true,"id":657},"filterDescription":{"__isSmartRef__":true,"id":659},"filterTitleColor":{"__isSmartRef__":true,"id":661},"filterDescriptionColor":{"__isSmartRef__":true,"id":663},"filterPublishButtonColor":{"__isSmartRef__":true,"id":665},"publishUserStory":{"__isSmartRef__":true,"id":667},"onrestore":{"__isSmartRef__":true,"id":669},"deleteUserStory":{"__isSmartRef__":true,"id":671},"setSerializedProperties":{"__isSmartRef__":true,"id":673},"onShutdown":{"__isSmartRef__":true,"id":675},"dropOn":{"__isSmartRef__":true,"id":677},"serializeAsString":{"__isSmartRef__":true,"id":679},"compareToSerialized":{"__isSmartRef__":true,"id":681},"onClick":{"__isSmartRef__":true,"id":683},"onCreateFromPartsBin":{"__isSmartRef__":true,"id":685},"onMouseDown":{"__isSmartRef__":true,"id":687},"serializePropertyAsString":{"__isSmartRef__":true,"id":689},"makeSerialization":{"__isSmartRef__":true,"id":691}},"655":{"time":{"__isSmartRef__":true,"id":656},"user":"sebastian.stamm"},"656":{"isSerializedDate":true,"string":"Fri Oct 21 2011 14:57:21 GMT+0200 (W. Europe Daylight Time)"},"657":{"time":{"__isSmartRef__":true,"id":658},"user":"conrad.calmez"},"658":{"isSerializedDate":true,"string":"Wed Oct 19 2011 12:04:28 GMT+0200 (W. Europe Daylight Time)"},"659":{"time":{"__isSmartRef__":true,"id":660},"user":"conrad.calmez"},"660":{"isSerializedDate":true,"string":"Wed Oct 19 2011 12:04:02 GMT+0200 (W. Europe Daylight Time)"},"661":{"time":{"__isSmartRef__":true,"id":662},"user":"conrad.calmez"},"662":{"isSerializedDate":true,"string":"Wed Oct 19 2011 11:59:26 GMT+0200 (W. Europe Daylight Time)"},"663":{"time":{"__isSmartRef__":true,"id":664},"user":"conrad.calmez"},"664":{"isSerializedDate":true,"string":"Wed Oct 19 2011 11:59:07 GMT+0200 (W. Europe Daylight Time)"},"665":{"time":{"__isSmartRef__":true,"id":666},"user":"athomschke"},"666":{"isSerializedDate":true,"string":"Tue Oct 18 2011 14:48:50 GMT+0200 (W. Europe Daylight Time)"},"667":{"time":{"__isSmartRef__":true,"id":668},"user":"sebastian.stamm"},"668":{"isSerializedDate":true,"string":"Thu Oct 20 2011 16:29:49 GMT+0200 (W. Europe Daylight Time)"},"669":{"time":{"__isSmartRef__":true,"id":670},"user":"sebastian.stamm"},"670":{"isSerializedDate":true,"string":"Thu Oct 20 2011 14:54:07 GMT+0200 (W. Europe Daylight Time)"},"671":{"time":{"__isSmartRef__":true,"id":672},"user":"benjamin.siegmund"},"672":{"isSerializedDate":true,"string":"Wed Oct 19 2011 10:25:32 GMT+0200 (W. Europe Daylight Time)"},"673":{"time":{"__isSmartRef__":true,"id":674},"user":"athomschke"},"674":{"isSerializedDate":true,"string":"Wed Oct 19 2011 15:36:04 GMT+0200 (W. Europe Daylight Time)"},"675":{"time":{"__isSmartRef__":true,"id":676},"user":"benjamin.siegmund"},"676":{"isSerializedDate":true,"string":"Wed Oct 19 2011 10:25:03 GMT+0200 (W. Europe Daylight Time)"},"677":{"time":{"__isSmartRef__":true,"id":678},"user":"sebastian.stamm"},"678":{"isSerializedDate":true,"string":"Thu Oct 20 2011 12:33:06 GMT+0200 (W. Europe Daylight Time)"},"679":{"time":{"__isSmartRef__":true,"id":680},"user":"sebastian.stamm"},"680":{"isSerializedDate":true,"string":"Thu Oct 20 2011 17:19:35 GMT+0200 (W. Europe Daylight Time)"},"681":{"time":{"__isSmartRef__":true,"id":682},"user":"sebastian.stamm"},"682":{"isSerializedDate":true,"string":"Fri Oct 21 2011 14:50:57 GMT+0200 (W. Europe Daylight Time)"},"683":{"time":{"__isSmartRef__":true,"id":684},"user":"sebastian.stamm"},"684":{"isSerializedDate":true,"string":"Thu Oct 20 2011 14:42:30 GMT+0200 (W. Europe Daylight Time)"},"685":{"time":{"__isSmartRef__":true,"id":686},"user":"sebastian.stamm"},"686":{"isSerializedDate":true,"string":"Thu Oct 20 2011 17:18:09 GMT+0200 (W. Europe Daylight Time)"},"687":{"time":{"__isSmartRef__":true,"id":688},"user":"sebastian.stamm"},"688":{"isSerializedDate":true,"string":"Fri Oct 21 2011 11:50:33 GMT+0200 (W. Europe Daylight Time)"},"689":{"time":{"__isSmartRef__":true,"id":690},"user":"sebastian.stamm"},"690":{"isSerializedDate":true,"string":"Fri Oct 21 2011 11:58:48 GMT+0200 (W. Europe Daylight Time)"},"691":{"time":{"__isSmartRef__":true,"id":692},"user":"sebastian.stamm"},"692":{"isSerializedDate":true,"string":"Fri Oct 21 2011 14:55:47 GMT+0200 (W. Europe Daylight Time)"},"693":{"x":327,"y":-32,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"694":{"title":"Title","description":"Ein schöner Text","position":{"__isSmartRef__":true,"id":695},"extent":{"__isSmartRef__":true,"id":696},"borderColor":{"__isSmartRef__":true,"id":697},"borderWidth":1,"color":{"__isSmartRef__":true,"id":698},"titleColor":{"__isSmartRef__":true,"id":699},"descriptionColor":{"__isSmartRef__":true,"id":700},"status":0,"_id":"a96fcc542c7c941948c9b0a117502612","_rev":"1-1fd2ad18a8156299fe20a7329f5edf34","type":"task"},"695":{"x":46,"y":592},"696":{"x":490,"y":295},"697":{"r":0,"g":0,"b":0},"698":{"r":0.839,"g":0.839,"b":0.839},"699":{"r":1,"g":1,"b":1},"700":{"r":1,"g":1,"b":1},"701":{"x":58,"y":588,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"702":{"serialize":{"__isSmartRef__":true,"id":703},"filterTitle":{"__isSmartRef__":true,"id":706},"filterDescription":{"__isSmartRef__":true,"id":709},"filterTitleColor":{"__isSmartRef__":true,"id":712},"filterDescriptionColor":{"__isSmartRef__":true,"id":715},"publishUserStory":{"__isSmartRef__":true,"id":718},"deleteUserStory":{"__isSmartRef__":true,"id":721},"setSerializedProperties":{"__isSmartRef__":true,"id":724},"onShutdown":{"__isSmartRef__":true,"id":727},"dropOn":{"__isSmartRef__":true,"id":730},"serializeAsString":{"__isSmartRef__":true,"id":737},"compareToSerialized":{"__isSmartRef__":true,"id":740},"onCreateFromPartsBin":{"__isSmartRef__":true,"id":743},"onMouseDown":{"__isSmartRef__":true,"id":746},"serializePropertyAsString":{"__isSmartRef__":true,"id":753},"makeSerialization":{"__isSmartRef__":true,"id":756}},"703":{"varMapping":{"__isSmartRef__":true,"id":704},"source":"function serialize() {\n return this.serialization || this.makeSerialization();\n}","funcProperties":{"__isSmartRef__":true,"id":705},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"704":{"this":{"__isSmartRef__":true,"id":14}},"705":{},"706":{"varMapping":{"__isSmartRef__":true,"id":707},"source":"function filterTitle() {\n return this.get('TitlePane').textString;\n}","funcProperties":{"__isSmartRef__":true,"id":708},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"707":{"this":{"__isSmartRef__":true,"id":14}},"708":{},"709":{"varMapping":{"__isSmartRef__":true,"id":710},"source":"function filterDescription() {\n return this.get('DescriptionPane').textString;\n}","funcProperties":{"__isSmartRef__":true,"id":711},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"710":{"this":{"__isSmartRef__":true,"id":14}},"711":{},"712":{"varMapping":{"__isSmartRef__":true,"id":713},"source":"function filterTitleColor() {\n return this.get('TitlePane').shape.getFill();\n}","funcProperties":{"__isSmartRef__":true,"id":714},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"713":{"this":{"__isSmartRef__":true,"id":14}},"714":{},"715":{"varMapping":{"__isSmartRef__":true,"id":716},"source":"function filterDescriptionColor() {\n return this.get('DescriptionPane').shape.getFill();\n}","funcProperties":{"__isSmartRef__":true,"id":717},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"716":{"this":{"__isSmartRef__":true,"id":14}},"717":{},"718":{"varMapping":{"__isSmartRef__":true,"id":719},"source":"function publishUserStory() {\n\n module('apps.CouchDB').load(true);\n var db = new CouchDB('lively_tasks');\n var newtask = this.serialize();\n var result = db.save(newtask);\n\n if(result.error==\"conflict\"){\n alert(\"There are changes to this Task, please refresh before publishing\");\n }else{\n this.databaseRev = result.rev;\n alertOK('task published');\n this.originalProperties = newtask;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":720},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"719":{"this":{"__isSmartRef__":true,"id":14}},"720":{},"721":{"varMapping":{"__isSmartRef__":true,"id":722},"source":"function deleteUserStory() {\n module('apps.CouchDB').load(true)\n var db = new CouchDB('lively_tasks')\n var docs = db.allDocs()\n var that=this;\n var myRow = docs.rows.select(function(ea) {return ea.id == that.databaseID})\n var myTask = myRow.collect(function(ea) { return db.open(ea.id) })\n\n myTask.each(function (ea) {\n db.deleteDoc(ea);\n alert(\"task deleted\");\n })\n this.remove();\n}","funcProperties":{"__isSmartRef__":true,"id":723},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"722":{"this":{"__isSmartRef__":true,"id":14}},"723":{},"724":{"varMapping":{"__isSmartRef__":true,"id":725},"source":"function setSerializedProperties(props) {\n this.onShutdown();\n this.get('TitlePane').textString = props.title;\n this.get('DescriptionPane').textString = props.description;\n this.setPosition(pt(props.position.x, props.position.y));\n this.setExtent(pt(props.extent.x, props.extent.y));\n this.shape.setBorderColor(Color.rgb(props.borderColor.r*255, props.borderColor.g*255, props.borderColor.b*255)); \n this.shape.setBorderWidth(props.borderWidth);\n this.shape.setFill(Color.rgb(props.color.r*255, props.color.g*255, props.color.b*255));\n this.submorphs[2].shape.setFill(Color.rgb(props.titleColor.r*255, props.titleColor.g*255, props.titleColor.b*255));\n this.submorphs[1].shape.setFill(Color.rgb(props.descriptionColor.r*255, props.descriptionColor.g*255, props.descriptionColor.b*255));\n this.databaseID = props._id;\n this.databaseRev = props._rev;\n this.get('DropDownList').selectAt(props.status);\n this.get('DropDownList').fill(props.status);\n\n this.originalProperties = this.serialize();\n}","funcProperties":{"__isSmartRef__":true,"id":726},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"725":{"this":{"__isSmartRef__":true,"id":14}},"726":{},"727":{"varMapping":{"__isSmartRef__":true,"id":728},"source":"function onShutdown() {\n module('apps.CouchDB').load(true)\n var db = new CouchDB('lively_tasks')\n var docs = db.allDocs()\n var that=this;\n var myRow = docs.rows.select(function(ea) {return ea.id == that.databaseID})\n var myTask = myRow.collect(function(ea) { return db.open(ea.id) })\n\n myTask.each(function (ea) {\n if(ea.type!='task') {\n db.deleteDoc(ea);\n alert(\"deleting temporary userstory\");\n }\n })\n}","funcProperties":{"__isSmartRef__":true,"id":729},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"728":{"this":{"__isSmartRef__":true,"id":14}},"729":{},"730":{"varMapping":{"__isSmartRef__":true,"id":731},"source":"function dropOn(morph) {\n // UserStories can not be dropped on anything except the world\n while(morph.owner) morph = morph.owner;\n morph.addMorph(this);\n}","funcProperties":{"__isSmartRef__":true,"id":736},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"731":{"this":{"__isSmartRef__":true,"id":14},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":732}},"732":{"$super":{"__isSmartRef__":true,"id":733}},"733":{"varMapping":{"__isSmartRef__":true,"id":734},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":735},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"734":{"obj":{"__isSmartRef__":true,"id":14},"name":"dropOn"},"735":{},"736":{},"737":{"varMapping":{"__isSmartRef__":true,"id":738},"source":"function serializeAsString() {\n // FIXME: cleanup code\n\n var text, serializedObject;\n if (typeof this.status == 'number') {\n serializedObject = this;\n }\n else {\n serializedObject = this.serialize();\n }\n\ttext = \"Title: \" + serializedObject.title + \"\\n\" +\n\t\"Description: \" + serializedObject.description + \"\\n\" +\n\t\"Position: (\" + serializedObject.position.x + \", \" +\n serializedObject.position.y + \")\\n\" +\n\t\"Status: \" + serializedObject.status + \"\\n\" +\n\t\"Extent: (\" + serializedObject.extent.x + \", \" +\n serializedObject.extent.y + \")\\n\" +\n\t\"Border Width: \" + serializedObject.borderWidth + \"\\n\" +\n\t\"Color (r,g,b): (\" + serializedObject.color.r + \", \" +\n serializedObject.color.g + \", \" +\n serializedObject.color.b + \")\\n\" +\n\t\"Border Color (r,g,b): (\" + serializedObject.borderColor.r + \", \" +\n serializedObject.borderColor.g + \", \" +\n serializedObject.borderColor.b + \")\\n\" +\n\t\"Title Color (r,g,b): (\" + serializedObject.titleColor.r + \", \" +\n serializedObject.titleColor.g + \", \" +\n serializedObject.titleColor.b + \")\\n\" +\n\t\"Description Color (r,g,b): (\" + serializedObject.descriptionColor.r + \", \" +\n serializedObject.descriptionColor.g + \", \" +\n serializedObject.descriptionColor.b + \")\";\n\treturn text;\n}","funcProperties":{"__isSmartRef__":true,"id":739},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"738":{"this":{"__isSmartRef__":true,"id":14}},"739":{},"740":{"varMapping":{"__isSmartRef__":true,"id":741},"source":"function compareToSerialized(serializedObject) {\n var serializedMe;\n serializedMe = this.serialize();\n if(\n serializedMe.title == serializedObject.title &&\n serializedMe.description == serializedObject.description &&\n serializedMe.position.x == serializedObject.position.x &&\n serializedMe.position.y == serializedObject.position.y && \n serializedMe.extent.x == serializedObject.extent.x &&\n serializedMe.extent.y == serializedObject.extent.y &&\n serializedMe.borderColor.r == serializedObject.borderColor.r &&\n serializedMe.borderColor.g == serializedObject.borderColor.g &&\n serializedMe.borderColor.b == serializedObject.borderColor.b &&\n serializedMe.borderWidth == serializedObject.borderWidth &&\n serializedMe.color.r == serializedObject.color.r &&\n serializedMe.color.g == serializedObject.color.g &&\n serializedMe.color.b == serializedObject.color.b &&\n serializedMe.titleColor.r == serializedObject.titleColor.r &&\n serializedMe.titleColor.g == serializedObject.titleColor.g &&\n serializedMe.titleColor.b == serializedObject.titleColor.b &&\n serializedMe.descriptionColor.r == serializedObject.descriptionColor.r &&\n serializedMe.descriptionColor.g == serializedObject.descriptionColor.g &&\n serializedMe.descriptionColor.b == serializedObject.descriptionColor.b &&\n serializedMe.status == serializedObject.status &&\n serializedMe._id == serializedObject._id &&\n serializedMe._rev == serializedObject._rev &&\n serializedMe.type == serializedObject.type\n ) {\n return true;\n }\n return false;\n}","funcProperties":{"__isSmartRef__":true,"id":742},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"741":{"this":{"__isSmartRef__":true,"id":14}},"742":{},"743":{"varMapping":{"__isSmartRef__":true,"id":744},"source":"function onCreateFromPartsBin() {\n module('apps.CouchDB').load(true);\n var db = new CouchDB('lively_tasks');\n var newtask = {\n title: \"\",\n description: \"\"\n };\n var result = db.save(newtask);\n this.databaseID = result.id;\n this.databaseRev = result.rev;\n alertOK(\"new Task created\");\n}","funcProperties":{"__isSmartRef__":true,"id":745},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"744":{"this":{"__isSmartRef__":true,"id":14}},"745":{},"746":{"varMapping":{"__isSmartRef__":true,"id":747},"source":"function onMouseDown(evt) {\n if(!(this.owner && this.owner.topMorph() === this))\n this.bringToFront();\n}","funcProperties":{"__isSmartRef__":true,"id":752},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"747":{"this":{"__isSmartRef__":true,"id":14},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":748}},"748":{"$super":{"__isSmartRef__":true,"id":749}},"749":{"varMapping":{"__isSmartRef__":true,"id":750},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":751},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"750":{"obj":{"__isSmartRef__":true,"id":14},"name":"onMouseDown"},"751":{},"752":{},"753":{"varMapping":{"__isSmartRef__":true,"id":754},"source":"function serializePropertyAsString(property,serializedObject) {\n if(!serializedObject) {\n serializedObject = this.serialize();\n }\n\n if(serializedObject[property] != null) {\n var result = serializedObject[property];\n if(result && typeof result === \"object\"){\n var temp = \"(\";\n for (var element in result){\n if(result.hasOwnProperty(element)){\n temp += result[element]+\",\";\n }\n }\n result = temp.substring(0,temp.length-1)+\")\";\n }\n return String(result);\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":755},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"754":{"this":{"__isSmartRef__":true,"id":14}},"755":{},"756":{"varMapping":{"__isSmartRef__":true,"id":757},"source":"function makeSerialization() {\n this.serialization = {\n title: this.filterTitle(),\n description: this.filterDescription(),\n position: {x:this.getPosition().x, y: this.getPosition().y},\n extent: {x:this.getExtent().x, y: this.getExtent().y},\n borderColor: {r: this.shape.getBorderColor().r, g: this.shape.getBorderColor().g, b: this.shape.getBorderColor().b},\n borderWidth: this.shape.getBorderWidth(),\n color: {r: this.shape.getFill().r, g: this.shape.getFill().g, b: this.shape.getFill().b},\n titleColor: {r: this.filterTitleColor().r, g: this.filterTitleColor().g, b: this.filterTitleColor().b},\n descriptionColor: {r: this.filterDescriptionColor().r, g: this.filterDescriptionColor().g, b: this.filterDescriptionColor().b},\n status: this.get('DropDownList').selectedLineNo,\n _id: this.databaseID,\n _rev: this.databaseRev,\n type: \"task\"\n }\n return this.serialization;\n}","funcProperties":{"__isSmartRef__":true,"id":758},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"757":{"this":{"__isSmartRef__":true,"id":14}},"758":{},"759":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"760":{"morph":{"__isSmartRef__":true,"id":1},"index":1,"connectedMagnet":{"__isSmartRef__":true,"id":13},"marker":{"__isSmartRef__":true,"id":761},"markerDirection":"prev","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"761":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":762},"id":18445,"renderContextTable":{"__isSmartRef__":true,"id":772},"eventHandler":{"__isSmartRef__":true,"id":773},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":774},"owner":null,"isBeingDragged":false,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"controlPoints":[{"__isSmartRef__":true,"id":775},{"__isSmartRef__":true,"id":776},{"__isSmartRef__":true,"id":777},{"__isSmartRef__":true,"id":778}],"_Rotation":0,"_Scale":1,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.Path"},"762":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":763},{"__isSmartRef__":true,"id":764},{"__isSmartRef__":true,"id":765},{"__isSmartRef__":true,"id":766}],"renderContextTable":{"__isSmartRef__":true,"id":767},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":768},"_Extent":{"__isSmartRef__":true,"id":769},"_Padding":{"__isSmartRef__":true,"id":770},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":9},"_Fill":{"__isSmartRef__":true,"id":771},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"763":{"isAbsolute":true,"x":-20,"y":48,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"764":{"isAbsolute":true,"x":18,"y":61,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"765":{"isAbsolute":true,"x":47,"y":1,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"766":{"isAbsolute":true,"x":-4,"y":-4,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"767":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"768":{"x":-20,"y":-4,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"769":{"x":67,"y":65,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"770":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"771":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"772":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"773":{"morph":{"__isSmartRef__":true,"id":761},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"774":{"x":0.5,"y":0.5,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"775":{"morph":{"__isSmartRef__":true,"id":761},"index":0,"connectedMagnet":null,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"776":{"morph":{"__isSmartRef__":true,"id":761},"index":1,"connectedMagnet":null,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"777":{"morph":{"__isSmartRef__":true,"id":761},"index":2,"connectedMagnet":null,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"778":{"morph":{"__isSmartRef__":true,"id":761},"index":3,"connectedMagnet":null,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"779":{"x":60,"y":587,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"780":{"morphMenuItems":{"__isSmartRef__":true,"id":781}},"781":{"varMapping":{"__isSmartRef__":true,"id":782},"source":"function morphMenuItems() {\n var visualConnector = this, con = this.con, world = this.world();\n var items = [\n ['edit converter', function() {\n var source = con.converterString || 'function converter(value) {\\n return value\\n}',\n editor = new lively.morphic.Text(new Rectangle(0,0, 400, 200), source);\n editor.doitContext = con;\n connect(editor, 'savedTextString', con, 'converterString', {updater:\n function($upd, source) { this.targetObj.converter = null; $upd(source) }});\n connect(editor, 'savedTextString', world, 'alertOK', {converter: \n function() { return 'setting new converter' }})\n editor.applyStyle({syntaxHighlighting: true, fontFamily: 'Courier', resizeWidth: true, resizeHeight: true});\n var title = con.targetObj.name && con.sourceObj.name ?\n 'Editor for ' + con.targetObj.name + ' -> ' + con.sourceObj.name :\n 'Editor for converter function';\n var window = world.addFramedMorph(editor, title)\n window.align(window.bounds().topCenter(), visualConnector.bounds().bottomCenter())\n }],\n ['hide', function() {\n visualConnector.disconnectFromMagnets();\n visualConnector.remove();\n }],\n ['disconnect', function() {\n alertOK('Disconnected ' + visualConnector.con);\n visualConnector.con.visualDisconnect();\n }],\n ['cancel', function() {}],\n ];\n return items;\n }","funcProperties":{"__isSmartRef__":true,"id":787},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"782":{"this":{"__isSmartRef__":true,"id":1},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":783}},"783":{"$super":{"__isSmartRef__":true,"id":784}},"784":{"varMapping":{"__isSmartRef__":true,"id":785},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":786},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"785":{"obj":{"__isSmartRef__":true,"id":1},"name":"morphMenuItems"},"786":{},"787":{},"788":{"submorphs":[],"scripts":[],"id":3333,"shape":{"__isSmartRef__":true,"id":789},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":795},"_MaxTextWidth":266.75637932592974,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":796},"showsHalos":false,"_FontSize":25,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"title1","partsBinMetaInfo":{"__isSmartRef__":true,"id":797},"_TextColor":{"__isSmartRef__":true,"id":798},"textChunks":[{"__isSmartRef__":true,"id":799}],"priorExtent":{"__isSmartRef__":true,"id":801},"priorSelectionRange":[15,15],"charsReplaced":"Exploratory Authoring of Active Web Content\nin a Mobile EnvironmentBP 2012 H1","lastFindLoc":77,"prevScroll":[0,0],"renderContextTable":{"__isSmartRef__":true,"id":802},"eventHandler":{"__isSmartRef__":true,"id":803},"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":266.75637932592974,"_MinTextHeight":null,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"previousSelection":[0,17],"distanceToDragEvent":{"__isSmartRef__":true,"id":804},"owner":{"__isSmartRef__":true,"id":0},"_Rotation":0,"_Scale":1.003006010015021,"_Align":"left","_ClipMode":"visible","isCopyMorphRef":true,"morphRefId":4,"isBeingDragged":false,"__LivelyClassName__":"lively.morphic.Text"},"789":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":790},"_Extent":{"__isSmartRef__":true,"id":791},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":792},"renderContextTable":{"__isSmartRef__":true,"id":793},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":794},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"790":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"791":{"x":266.75637932592974,"y":39,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"792":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"793":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"794":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"795":{"x":21.115064612447924,"y":41.95297859660546,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"796":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"797":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"798":{"r":0,"g":0.309,"b":0.595,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"799":{"style":{"__isSmartRef__":true,"id":800},"chunkOwner":{"__isSmartRef__":true,"id":788},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"Stories and Tasks","__LivelyClassName__":"lively.morphic.TextChunk"},"800":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"801":{"x":266.75637932592974,"y":39,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"802":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"803":{"morph":{"__isSmartRef__":true,"id":788},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"804":{"x":663.8849353875521,"y":-27.952978596605462,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"805":{"submorphs":[{"__isSmartRef__":true,"id":806}],"scripts":[],"id":496,"shape":{"__isSmartRef__":true,"id":821},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":true,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":837},"lighterFill":{"__isSmartRef__":true,"id":825},"label":{"__isSmartRef__":true,"id":806},"name":"Button2","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":846},"attributeConnections":[{"__isSmartRef__":true,"id":847}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","priorExtent":{"__isSmartRef__":true,"id":919},"renderContextTable":{"__isSmartRef__":true,"id":920},"eventHandler":{"__isSmartRef__":true,"id":921},"distanceToDragEvent":{"__isSmartRef__":true,"id":922},"_Position":{"__isSmartRef__":true,"id":923},"owner":{"__isSmartRef__":true,"id":0},"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Button"},"806":{"submorphs":[],"scripts":[],"id":497,"shape":{"__isSmartRef__":true,"id":807},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":813},"_MaxTextWidth":101,"_MaxTextHeight":null,"textStyle":null,"padding":{"__isSmartRef__":true,"id":814},"_Padding":{"__isSmartRef__":true,"id":815},"owner":{"__isSmartRef__":true,"id":805},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":816},"textChunks":[{"__isSmartRef__":true,"id":817}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":819},"eventHandler":{"__isSmartRef__":true,"id":820},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":101,"_MinTextHeight":null,"__LivelyClassName__":"lively.morphic.Text"},"807":{"position":{"__isSmartRef__":true,"id":808},"_Extent":{"__isSmartRef__":true,"id":809},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":810},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":811},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":812},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"808":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"809":{"x":101,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"810":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"811":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"812":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"813":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"814":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"815":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"816":{"x":101,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"817":{"style":{"__isSmartRef__":true,"id":818},"chunkOwner":{"__isSmartRef__":true,"id":806},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"button","__LivelyClassName__":"lively.morphic.TextChunk"},"818":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"819":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"820":{"morph":{"__isSmartRef__":true,"id":806},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"821":{"position":{"__isSmartRef__":true,"id":822},"_Extent":{"__isSmartRef__":true,"id":823},"_BorderWidth":1.1840000000000002,"_BorderColor":{"__isSmartRef__":true,"id":824},"_Fill":{"__isSmartRef__":true,"id":825},"_BorderRadius":5.2,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":835},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":836},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"822":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"823":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"824":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"825":{"stops":[{"__isSmartRef__":true,"id":826},{"__isSmartRef__":true,"id":828},{"__isSmartRef__":true,"id":830},{"__isSmartRef__":true,"id":832}],"vector":{"__isSmartRef__":true,"id":834},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"826":{"offset":0,"color":{"__isSmartRef__":true,"id":827}},"827":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"828":{"offset":0.4,"color":{"__isSmartRef__":true,"id":829}},"829":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"830":{"offset":0.6,"color":{"__isSmartRef__":true,"id":831}},"831":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"832":{"offset":1,"color":{"__isSmartRef__":true,"id":833}},"833":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"834":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"835":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"836":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"837":{"stops":[{"__isSmartRef__":true,"id":838},{"__isSmartRef__":true,"id":840},{"__isSmartRef__":true,"id":842},{"__isSmartRef__":true,"id":844}],"vector":{"__isSmartRef__":true,"id":834},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"838":{"offset":0,"color":{"__isSmartRef__":true,"id":839}},"839":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"840":{"offset":0.4,"color":{"__isSmartRef__":true,"id":841}},"841":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"842":{"offset":0.6,"color":{"__isSmartRef__":true,"id":843}},"843":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"844":{"offset":1,"color":{"__isSmartRef__":true,"id":845}},"845":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"846":{"partsSpaceName":"PartsBin/Inputs","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"847":{"sourceObj":{"__isSmartRef__":true,"id":805},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":848},"targetMethodName":"onFire","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":918},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"848":{"submorphs":[],"scripts":[],"id":162,"shape":{"__isSmartRef__":true,"id":849},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"Rectangle","partsBinMetaInfo":{"__isSmartRef__":true,"id":857},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":860},"eventHandler":{"__isSmartRef__":true,"id":861},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"priorExtent":{"__isSmartRef__":true,"id":862},"isBeingDragged":false,"_Position":{"__isSmartRef__":true,"id":863},"_PivotPoint":{"__isSmartRef__":true,"id":864},"prevScroll":[0,0],"owner":null,"lastUpdate":1323349697373,"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":865},"__LivelyClassName__":"lively.morphic.Box"},"849":{"position":{"__isSmartRef__":true,"id":850},"_Extent":{"__isSmartRef__":true,"id":851},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":852},"_Fill":{"__isSmartRef__":true,"id":853},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":854},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":855},"_Position":{"__isSmartRef__":true,"id":856},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"850":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"851":{"x":501,"y":325,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"852":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"853":{"r":0,"g":0,"b":0.8,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"854":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"855":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"856":{"x":-4,"y":-3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"857":{"partsSpaceName":"PartsBin/BP2012","__SourceModuleName__":"Global.lively.PartsBin","comment":"A simple box morph. A really blue one. Its amazing what you can build out of simple boxes.... Who needs stars when you got blue rectangles!","migrationLevel":4,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":858}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"858":{"date":{"__isSmartRef__":true,"id":859},"author":"sstamm","message":"initial commit","id":"EA978182-4DB0-4062-9ACB-1EFF37F783AE"},"859":{"isSerializedDate":true,"string":"Thu Dec 08 2011 13:36:09 GMT+0100 (W. Europe Standard Time)"},"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"},"861":{"morph":{"__isSmartRef__":true,"id":848},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"862":{"x":502,"y":324,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"863":{"x":562,"y":139,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"864":{"x":100,"y":100,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"865":{"onTouchStart":{"__isSmartRef__":true,"id":866},"onFire":{"__isSmartRef__":true,"id":874},"registerForEvent":{"__isSmartRef__":true,"id":878},"onTouchEnd":{"__isSmartRef__":true,"id":886},"onTouchMove":{"__isSmartRef__":true,"id":894},"updateVelocity":{"__isSmartRef__":true,"id":902},"flicking":{"__isSmartRef__":true,"id":906},"updateAngularVelocity":{"__isSmartRef__":true,"id":910},"snapRotation":{"__isSmartRef__":true,"id":914}},"866":{"varMapping":{"__isSmartRef__":true,"id":867},"source":"function onTouchStart(evt) {\n evt.preventDefault();\n var allTouches = evt.targetTouches;\n\n this.lastUpdate = new Date().valueOf();\n if(allTouches.length==1) {\n this.originalTouchPosition = pt(allTouches[0].pageX,allTouches[0].pageY);\n this.originalPosition = this.getPosition();\n this.lastTouch = pt(allTouches[0].pageX,allTouches[0].pageY);\n\n }\n \n if(allTouches.length==2) {\n this.setOrigin(this.getExtent().scaleBy(0.5));\n this.originalScale = this.getScale();\n this.originalRotation = this.getRotation();\n this.lastRotation = 0;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":872},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"867":{"this":{"__isSmartRef__":true,"id":848},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":868}},"868":{"$super":{"__isSmartRef__":true,"id":869}},"869":{"varMapping":{"__isSmartRef__":true,"id":870},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":871},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"870":{"obj":{"__isSmartRef__":true,"id":848},"name":"onTouchStart"},"871":{},"872":{"timestamp":{"__isSmartRef__":true,"id":873},"user":"sstamm","tags":[]},"873":{"isSerializedDate":true,"string":"Thu Dec 08 2011 11:39:24 GMT+0100 (W. Europe Standard Time)"},"874":{"varMapping":{"__isSmartRef__":true,"id":875},"source":"function onFire() {\n if(this.onTouchStart) {\n this.registerForEvent('touchstart', this, 'onTouchStart', true);\n }\n if(this.onTouchMove) {\n this.registerForEvent('touchmove', this, 'onTouchMove', true);\n }\n if(this.onTouchEnd) {\n this.registerForEvent('touchend', this, 'onTouchEnd', true);\n }\n if(this.onTouchCancel) {\n this.registerForEvent('touchcancel', this, 'onTouchCancel', true);\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":876},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"875":{"this":{"__isSmartRef__":true,"id":848}},"876":{"timestamp":{"__isSmartRef__":true,"id":877},"user":"sstamm","tags":[]},"877":{"isSerializedDate":true,"string":"Mon Dec 05 2011 16:12:17 GMT+0100 (W. Europe Standard Time)"},"878":{"varMapping":{"__isSmartRef__":true,"id":879},"source":"function registerForEvent(type, target, targetMethodName, handleOnCapture) {\n if (!this.eventHandler) {\n this.addEventHandler();\n }\n var existing = this.eventHandler.dispatchTable[type];\n if (!existing) {\n var eventSpec = {\n type: type,\n target: target,\n targetMethodName: targetMethodName,\n handleOnCapture: handleOnCapture ? true : false // some browsers need t/f\n };\n this.renderContext().registerHandlerForEvent(this.eventHandler, eventSpec);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":884},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"879":{"this":{"__isSmartRef__":true,"id":848},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":880}},"880":{"$super":{"__isSmartRef__":true,"id":881}},"881":{"varMapping":{"__isSmartRef__":true,"id":882},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":883},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"882":{"obj":{"__isSmartRef__":true,"id":848},"name":"registerForEvent"},"883":{},"884":{"timestamp":{"__isSmartRef__":true,"id":885},"user":"sebastian.stamm","tags":[]},"885":{"isSerializedDate":true,"string":"Fri Nov 25 2011 13:37:29 GMT+0100 (W. Europe Standard Time)"},"886":{"varMapping":{"__isSmartRef__":true,"id":887},"source":"function onTouchEnd(evt) {\n var allTouches = evt.targetTouches;\n\n if(allTouches.length==0) {\n this.lastUpdate = new Date().valueOf();\n window.setTimeout(this.flicking.bind(this),10);\n }\n\n if(allTouches.length==1) {\n this.originalTouchPosition = pt(allTouches[0].pageX,allTouches[0].pageY);\n this.originalPosition = this.getPosition();\n }\n \n if(allTouches.length==2) {\n this.setOrigin(this.getExtent().scaleBy(0.5));\n this.originalScale = this.getScale();\n this.originalRotation = this.getRotation();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":892},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"887":{"this":{"__isSmartRef__":true,"id":848},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":888}},"888":{"$super":{"__isSmartRef__":true,"id":889}},"889":{"varMapping":{"__isSmartRef__":true,"id":890},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":891},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"890":{"obj":{"__isSmartRef__":true,"id":848},"name":"onTouchEnd"},"891":{},"892":{"timestamp":{"__isSmartRef__":true,"id":893},"user":"sstamm","tags":[]},"893":{"isSerializedDate":true,"string":"Thu Dec 08 2011 14:08:18 GMT+0100 (W. Europe Standard Time)"},"894":{"varMapping":{"__isSmartRef__":true,"id":895},"source":"function onTouchMove(evt) {\n\n\n var allTouches = evt.targetTouches;\n\n if(allTouches.length==1) {\n var touchPosition = pt(allTouches[0].pageX,allTouches[0].pageY);\n\n // keep the current velocity up to date to make flicking possible\n this.updateVelocity(touchPosition);\n\n this.setPosition(\n this.originalPosition.addPt(\n touchPosition.subPt(this.originalTouchPosition)\n )\n );\n \n }\n\n if(allTouches.length==2) {\n this.updateAngularVelocity(evt.rotation/180*Math.PI);\n this.setScale(evt.scale*this.originalScale);\n var realRotation = this.snapRotation(this.originalRotation+evt.rotation/180*Math.PI);\n this.setRotation(realRotation);\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":900},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"895":{"this":{"__isSmartRef__":true,"id":848},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":896}},"896":{"$super":{"__isSmartRef__":true,"id":897}},"897":{"varMapping":{"__isSmartRef__":true,"id":898},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":899},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"898":{"obj":{"__isSmartRef__":true,"id":848},"name":"onTouchMove"},"899":{},"900":{"timestamp":{"__isSmartRef__":true,"id":901},"user":"sstamm","tags":[]},"901":{"isSerializedDate":true,"string":"Tue Dec 20 2011 16:46:36 GMT+0100 (W. Europe Standard Time)"},"902":{"varMapping":{"__isSmartRef__":true,"id":903},"source":"function updateVelocity(newPosition) {\n \n var now = new Date().valueOf();\n var timeDelta = now - this.lastUpdate;\n \n var positionDelta = this.lastTouch.subPt(newPosition);\n// positionDelta = Math.sqrt(Math.pow(positionDelta.x,2)+Math.pow(positionDelta.x,2));\n\n this.lastTouch = newPosition;\n this.lastUpdate = now;\n this.velocity = positionDelta.scaleBy(-10/timeDelta);\n\n}","funcProperties":{"__isSmartRef__":true,"id":904},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"903":{"this":{"__isSmartRef__":true,"id":848}},"904":{"timestamp":{"__isSmartRef__":true,"id":905},"user":"sstamm","tags":[]},"905":{"isSerializedDate":true,"string":"Thu Dec 08 2011 11:15:12 GMT+0100 (W. Europe Standard Time)"},"906":{"varMapping":{"__isSmartRef__":true,"id":907},"source":"function flicking() {\n var now = new Date().valueOf();\n\n var delta = now - this.lastUpdate;\n\n this.velocity = this.velocity.scaleBy(Math.pow(0.99,delta));\n this.stepAndBounce();\n this.lastUpdate = now;\n if(Math.pow(this.velocity.x,2)+Math.pow(this.velocity.y,2)>0.05) {\n window.setTimeout(this.flicking.bind(this),10);\n }\n\n}","funcProperties":{"__isSmartRef__":true,"id":908},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"907":{"this":{"__isSmartRef__":true,"id":848}},"908":{"timestamp":{"__isSmartRef__":true,"id":909},"user":"sstamm","tags":[]},"909":{"isSerializedDate":true,"string":"Thu Dec 08 2011 14:11:42 GMT+0100 (W. Europe Standard Time)"},"910":{"varMapping":{"__isSmartRef__":true,"id":911},"source":"function updateAngularVelocity(newRotation) {\n var now = new Date().valueOf();\n var timeDelta = now - this.lastUpdate;\n \n var angleDelta = this.lastRotation-newRotation;\n// positionDelta = Math.sqrt(Math.pow(positionDelta.x,2)+Math.pow(positionDelta.x,2));\n\n this.lastRotation = newRotation;\n this.lastUpdate = now;\n //this.angularVelocity = 10*angleDelta;\n\n}","funcProperties":{"__isSmartRef__":true,"id":912},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"911":{"this":{"__isSmartRef__":true,"id":848}},"912":{"timestamp":{"__isSmartRef__":true,"id":913},"user":"sstamm","tags":[]},"913":{"isSerializedDate":true,"string":"Thu Dec 08 2011 11:44:50 GMT+0100 (W. Europe Standard Time)"},"914":{"varMapping":{"__isSmartRef__":true,"id":915},"source":"function snapRotation(rotation) {\n \n// map values to [0;2*PI]\n rotation %= 2*Math.PI;\n rotation += 2*Math.PI;\n rotation %= 2*Math.PI;\n \n var d = rotation%(Math.PI/2);\n if(d>Math.PI/4) {\n d-=Math.PI/2;\n }\n\n if(Math.abs(d)