latest)\n latest = t;\n }, this)\n return latest\n}","funcProperties":{"__isSmartRef__":true,"id":104},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"103":{"this":{"__isSmartRef__":true,"id":60}},"104":{"timestamp":{"__isSmartRef__":true,"id":105},"user":"jenslincke"},"105":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"106":{"submorphs":[{"__isSmartRef__":true,"id":107}],"scripts":[],"id":"AEB219F5-1E6C-47E4-A992-6B6388102C45","shape":{"__isSmartRef__":true,"id":120},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":121},"lighterFill":{"__isSmartRef__":true,"id":126},"label":{"__isSmartRef__":true,"id":107},"name":"ToggleButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":131},"attributeConnections":[{"__isSmartRef__":true,"id":139},{"__isSmartRef__":true,"id":140}],"doNotSerialize":["$$fire","$$toggle"],"doNotCopyProperties":["$$fire","$$toggle"],"eventHandler":{"__isSmartRef__":true,"id":142},"derivationIds":[2588,"C96F474C-1F3A-4E42-844C-DD2EB76BDD7E","E36FA68D-6317-416A-99FA-0ED81E4193DA","06258075-AC5A-4CAB-A248-A66D3213816C","64801999-DFCE-4F54-974F-D68137E3178F","F7C108D2-C3FC-40BB-A7D2-C1E634F45107","096E44FC-0DC9-44C1-BFD5-17009B6482BC","00FFDED2-AB2D-4727-AC3D-2A3277BB0C11","D668A88D-7478-4356-845F-C91C0AA09852","73D645C4-502E-4CA1-BCFC-D7BF41AC2CC5","FD1ACFEB-984C-4BC5-BF01-DADB7D99571A","A1443BEE-BDD3-42D7-BBA9-ED94DAB58416","AB7854B1-85E4-43A2-97DA-DF3D89FB1F6E","C7B3A6EC-B093-44DF-83B6-CC7BD0529D7A","CAEAF7F9-DA32-4879-BB14-5B8DC852E81A","574C476E-4159-4297-9D08-303935E5FB76","DFC9F78E-2115-41C1-AC28-22F49623E8E0","25B278B5-069F-4376-9E5B-CC571CCDF39A","0EE2C9B7-91E5-4F83-977B-6C3AFF188ADF","7A983BB8-5129-4284-9C7F-605CB6F5DA30","745DE16E-6C57-4032-9A79-F60840696C16","19B0AB44-F6E2-431B-9EFF-5CC52B59437B"],"_ClipMode":"visible","isPressed":false,"isToggled":false,"connections":{"__isSmartRef__":true,"id":143},"moved":true,"prevScroll":[0,0],"_PreviousBorderWidth":1,"owner":{"__isSmartRef__":true,"id":30},"_Rotation":0,"_Scale":0.7,"magnets":[{"__isSmartRef__":true,"id":147},{"__isSmartRef__":true,"id":148},{"__isSmartRef__":true,"id":149},{"__isSmartRef__":true,"id":150},{"__isSmartRef__":true,"id":151},{"__isSmartRef__":true,"id":152},{"__isSmartRef__":true,"id":153},{"__isSmartRef__":true,"id":154}],"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":155},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(158.0,6.0)","distanceToDragEvent":"lively.pt(35.0,-12.0)"},"107":{"submorphs":[],"scripts":[],"id":"6AE5428C-7512-4985-A0FA-7C69E96E84B8","shape":{"__isSmartRef__":true,"id":108},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":105,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":106},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":109}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":111},"_HandStyle":"default","_PointerEvents":"none","derivationIds":[2589,"44787449-DE07-40ED-B4D3-89A4A185AE29","F4BC3D0F-FF03-4EFC-B727-951442606730","277CDAEF-77E0-49F1-BD6F-1630D7ECC2E1","18C6D32F-6FC9-4BBD-9369-B33B5262D0BD","C47E37F8-5CF6-47A9-AFA1-A40A7AE84D49","263E0226-70CD-4FB4-8940-803DB41B14A4","BFDCA5F8-21BA-4D32-AB32-A2675F69B893","E05B45DC-5392-4CEE-8A8A-CDB9A6FEA02B","FC050265-3D45-4634-9BEC-325E0875CEF9","324C8FEE-5A64-42C3-8BD4-B19FDACFB256","0942A07F-7C9D-4202-A685-2680EB821A68","DA7A5615-6213-428E-BA6A-669FB082C23C","B227CE1E-6264-4FAB-85DB-C162F1003E9D","00345519-1674-4EB9-A990-0028D7D21A37","772EEB4C-729A-4A8E-BB81-7FB200FE81A8","7653280F-CD83-4BBF-9295-C6C867FC8A5A","A1F0F516-B851-4432-BD14-C8AD6250CCA0","E873A53D-3674-4F9F-9F1F-BE66111138DF","146D6FA1-67E9-4425-B1D6-DB0030692367","81AB586F-8E09-427C-8167-50D394AB01A8","DB330729-6325-479C-931E-AD32FE700763"],"_MinTextWidth":105,"_MinTextHeight":null,"_WordBreak":"break-all","_FontSize":10,"magnets":[{"__isSmartRef__":true,"id":112},{"__isSmartRef__":true,"id":113},{"__isSmartRef__":true,"id":114},{"__isSmartRef__":true,"id":115},{"__isSmartRef__":true,"id":116},{"__isSmartRef__":true,"id":117},{"__isSmartRef__":true,"id":118},{"__isSmartRef__":true,"id":119}],"__serializedExpressions__":["_Position","padding","_Padding","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"108":{"_BorderWidth":0,"_Fill":null,"_ClipMode":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(70.0,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"109":{"style":{"__isSmartRef__":true,"id":110},"chunkOwner":{"__isSmartRef__":true,"id":107},"_id":"_486","storedString":"enabled","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"110":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"111":{"morph":{"__isSmartRef__":true,"id":107},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"112":{"morph":{"__isSmartRef__":true,"id":107},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(1198.0,31.0)"},"113":{"morph":{"__isSmartRef__":true,"id":107},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(1222.5,31.0)"},"114":{"morph":{"__isSmartRef__":true,"id":107},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(1247.0,31.0)"},"115":{"morph":{"__isSmartRef__":true,"id":107},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(1247.0,38.7)"},"116":{"morph":{"__isSmartRef__":true,"id":107},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(1247.0,46.4)"},"117":{"morph":{"__isSmartRef__":true,"id":107},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(1222.5,46.4)"},"118":{"morph":{"__isSmartRef__":true,"id":107},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(1198.0,46.4)"},"119":{"morph":{"__isSmartRef__":true,"id":107},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(1198.0,38.7)"},"120":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":121},"_BorderRadius":5.2,"_ClipMode":"visible","_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":true,"_BorderStylingMode":true,"__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(70.0,22.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"121":{"stops":[{"__isSmartRef__":true,"id":122},{"__isSmartRef__":true,"id":123},{"__isSmartRef__":true,"id":124},{"__isSmartRef__":true,"id":125}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"122":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"123":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"124":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"125":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"126":{"stops":[{"__isSmartRef__":true,"id":127},{"__isSmartRef__":true,"id":128},{"__isSmartRef__":true,"id":129},{"__isSmartRef__":true,"id":130}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"127":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"128":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"129":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"130":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"131":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":4,"partName":"ToggleButton","comment":"A toggle button:\n- emits, toggle, enable, disable on pressed.\n- changes label","changes":[{"__isSmartRef__":true,"id":132},{"__isSmartRef__":true,"id":134},{"__isSmartRef__":true,"id":136}],"lastModifiedDate":{"__isSmartRef__":true,"id":138},"revisionOnLoad":200633,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"132":{"date":{"__isSmartRef__":true,"id":133},"author":"jenslincke","message":"no comment","id":"497F3947-290E-4A97-A50D-3A5A7A186919"},"133":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"134":{"date":{"__isSmartRef__":true,"id":135},"author":"jenslincke","message":"no comment","id":"02AB5A6F-7748-4A48-8C36-D334F97FC321"},"135":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"136":{"date":{"__isSmartRef__":true,"id":137},"author":"jenslincke","message":"no comment","id":"7471CE07-F2C0-4149-9684-90E843DB8DCE"},"137":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"138":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"139":{"sourceObj":{"__isSmartRef__":true,"id":106},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":106},"targetMethodName":"onFire","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"140":{"sourceObj":{"__isSmartRef__":true,"id":106},"sourceAttrName":"toggle","targetObj":{"__isSmartRef__":true,"id":30},"targetMethodName":"isActive","varMapping":{"__isSmartRef__":true,"id":141},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"141":{"source":{"__isSmartRef__":true,"id":106},"target":{"__isSmartRef__":true,"id":30}},"142":{"morph":{"__isSmartRef__":true,"id":106},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"143":{"enable":{"__isSmartRef__":true,"id":144},"disable":{"__isSmartRef__":true,"id":145},"toggle":{"__isSmartRef__":true,"id":146}},"144":{},"145":{},"146":{},"147":{"morph":{"__isSmartRef__":true,"id":106},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(1198.0,31.0)"},"148":{"morph":{"__isSmartRef__":true,"id":106},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(1222.5,31.0)"},"149":{"morph":{"__isSmartRef__":true,"id":106},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(1247.0,31.0)"},"150":{"morph":{"__isSmartRef__":true,"id":106},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(1247.0,38.7)"},"151":{"morph":{"__isSmartRef__":true,"id":106},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(1247.0,46.4)"},"152":{"morph":{"__isSmartRef__":true,"id":106},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(1222.5,46.4)"},"153":{"morph":{"__isSmartRef__":true,"id":106},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(1198.0,46.4)"},"154":{"morph":{"__isSmartRef__":true,"id":106},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(1198.0,38.7)"},"155":{"onFire":{"__isSmartRef__":true,"id":156},"reset":{"__isSmartRef__":true,"id":160}},"156":{"varMapping":{"__isSmartRef__":true,"id":157},"source":"function onFire() {\n\t\n if (this.isToggled) {\n this.setLabel(\"enabled\")\n lively.bindings.signal(this, 'enable', true)\n lively.bindings.signal(this, 'toggle', true)\n } else {\n this.setLabel(\"disabled\")\n lively.bindings.signal(this, 'disable', true)\n lively.bindings.signal(this, 'toggle', false)\n }\n this.isToggled = !this.isToggled;\n}","funcProperties":{"__isSmartRef__":true,"id":158},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"157":{"this":{"__isSmartRef__":true,"id":106}},"158":{"timestamp":{"__isSmartRef__":true,"id":159},"user":"jenslincke","tags":[]},"159":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"160":{"varMapping":{"__isSmartRef__":true,"id":161},"source":"function reset() {\n this.connections = {\"enable\": { }, \"disable\": { }, \"toggle\": { }}\n}","funcProperties":{"__isSmartRef__":true,"id":162},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"161":{"this":{"__isSmartRef__":true,"id":106}},"162":{"timestamp":{"__isSmartRef__":true,"id":163},"user":"jenslincke","tags":[]},"163":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"164":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"_StrokeOpacity":1,"__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(207.0,60.1)","_BorderColor":"Color.rgb(172,172,172)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"165":{"comment":"A morph hierarchy visualization with bundle view simulation of attribute connections.\nExample formats:\nHeading:\n #, ##, ##,\nLists:\n -, \nURLs:\n [Evaluation/Worlds]\nDoits:\n [PartsBin/Inputs/Button] \n","migrationLevel":4,"partName":"Formatter","changes":[{"__isSmartRef__":true,"id":166},{"__isSmartRef__":true,"id":168},{"__isSmartRef__":true,"id":170},{"__isSmartRef__":true,"id":172},{"__isSmartRef__":true,"id":174},{"__isSmartRef__":true,"id":176},{"__isSmartRef__":true,"id":178},{"__isSmartRef__":true,"id":180},{"__isSmartRef__":true,"id":182},{"__isSmartRef__":true,"id":184},{"__isSmartRef__":true,"id":186},{"__isSmartRef__":true,"id":188},{"__isSmartRef__":true,"id":190},{"__isSmartRef__":true,"id":192},{"__isSmartRef__":true,"id":194},{"__isSmartRef__":true,"id":196},{"__isSmartRef__":true,"id":198},{"__isSmartRef__":true,"id":200},{"__isSmartRef__":true,"id":202},{"__isSmartRef__":true,"id":204},{"__isSmartRef__":true,"id":206},{"__isSmartRef__":true,"id":208},{"__isSmartRef__":true,"id":210},{"__isSmartRef__":true,"id":212},{"__isSmartRef__":true,"id":214},{"__isSmartRef__":true,"id":216},{"__isSmartRef__":true,"id":218},{"__isSmartRef__":true,"id":220},{"__isSmartRef__":true,"id":222},{"__isSmartRef__":true,"id":224},{"__isSmartRef__":true,"id":226},{"__isSmartRef__":true,"id":228},{"__isSmartRef__":true,"id":230},{"__isSmartRef__":true,"id":232},{"__isSmartRef__":true,"id":234},{"__isSmartRef__":true,"id":236},{"__isSmartRef__":true,"id":238},{"__isSmartRef__":true,"id":240},{"__isSmartRef__":true,"id":242},{"__isSmartRef__":true,"id":244},{"__isSmartRef__":true,"id":246},{"__isSmartRef__":true,"id":248},{"__isSmartRef__":true,"id":250},{"__isSmartRef__":true,"id":252},{"__isSmartRef__":true,"id":254},{"__isSmartRef__":true,"id":256},{"__isSmartRef__":true,"id":258},{"__isSmartRef__":true,"id":260},{"__isSmartRef__":true,"id":262},{"__isSmartRef__":true,"id":264},{"__isSmartRef__":true,"id":266},{"__isSmartRef__":true,"id":268},{"__isSmartRef__":true,"id":270},{"__isSmartRef__":true,"id":272},{"__isSmartRef__":true,"id":274},{"__isSmartRef__":true,"id":276},{"__isSmartRef__":true,"id":278},{"__isSmartRef__":true,"id":280},{"__isSmartRef__":true,"id":282}],"lastModifiedDate":{"__isSmartRef__":true,"id":284},"revisionOnLoad":205121,"partsSpaceName":"PartsBin/Jens/","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"166":{"date":{"__isSmartRef__":true,"id":167},"author":"jenslincke","message":"no comment","id":"B2833A8B-AE64-4DBD-B301-CE1088DF777A"},"167":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"168":{"date":{"__isSmartRef__":true,"id":169},"author":"jenslincke","message":"no comment","id":"FE4951E1-DBBD-45E1-8C8F-172CE4636B3C"},"169":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"170":{"date":{"__isSmartRef__":true,"id":171},"author":"jenslincke","message":"format citatated text in italics","id":"986705D7-3CD3-41C8-8AFF-36E9FE04A01A"},"171":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"172":{"date":{"__isSmartRef__":true,"id":173},"author":"jenslincke","message":"no comment","id":"911CF15E-6826-410E-AB61-CAE759E411AE"},"173":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"174":{"date":{"__isSmartRef__":true,"id":175},"author":"jenslincke","message":"no comment","id":"C07F91F1-FA58-4FAF-A7E8-DA04EB5D0F94"},"175":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"176":{"date":{"__isSmartRef__":true,"id":177},"author":"jenslincke","message":"no comment","id":"EDCC686C-126C-4523-8DC6-53817DD09673"},"177":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"178":{"date":{"__isSmartRef__":true,"id":179},"author":"jenslincke","message":"create page option, when following a link....","id":"003BCEA5-BE0C-4F90-A0A6-2FE8E3988057"},"179":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"180":{"date":{"__isSmartRef__":true,"id":181},"author":"jenslincke","message":"added creation of links to excerpts","id":"F7938E66-25E5-425F-9EEA-BC95819F3DD7"},"181":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"182":{"date":{"__isSmartRef__":true,"id":183},"author":"jenslincke","message":"no comment","id":"17C8A220-198C-4FC2-8CD2-2FFBFA193E3C"},"183":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"184":{"date":{"__isSmartRef__":true,"id":185},"author":"jenslincke","message":"no comment","id":"3CD68CC9-6FD9-412B-841C-3ECAE1BD12E6"},"185":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"186":{"date":{"__isSmartRef__":true,"id":187},"author":"jenslincke","message":"no comment","id":"FBBB3489-5BB0-4D6B-8C11-92D47A4D6C99"},"187":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"188":{"date":{"__isSmartRef__":true,"id":189},"author":"jenslincke","message":"no comment","id":"F71349C1-A74C-4AEF-B969-B6D3C92E07BE"},"189":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"190":{"date":{"__isSmartRef__":true,"id":191},"author":"jenslincke","message":"no comment","id":"EA270A92-A1A5-4FBA-89BB-D7BA1B6E49AD"},"191":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"192":{"date":{"__isSmartRef__":true,"id":193},"author":"jenslincke","message":"no comment","id":"3120B4F3-B8A2-4F2E-9793-547541BC4094"},"193":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"194":{"date":{"__isSmartRef__":true,"id":195},"author":"jenslincke","message":"layout","id":"34775C1C-7640-4A30-AD86-A5EB6945AA56"},"195":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"196":{"date":{"__isSmartRef__":true,"id":197},"author":"jenslincke","message":"no comment","id":"F9ED2AC4-98DC-4D7C-B9F5-01BED2619E8D"},"197":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"198":{"date":{"__isSmartRef__":true,"id":199},"author":"jenslincke","message":"no comment","id":"85068BB7-69E2-4265-A445-912DC98878A4"},"199":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"200":{"date":{"__isSmartRef__":true,"id":201},"author":"jenslincke","message":"no comment","id":"467FD050-EC26-4BA6-8480-17DB06F89C3D"},"201":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"202":{"date":{"__isSmartRef__":true,"id":203},"author":"jenslincke","message":"no comment","id":"874C31E7-EDDA-4583-8328-023A41910997"},"203":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"204":{"date":{"__isSmartRef__":true,"id":205},"author":"jenslincke","message":"more smoother delays....","id":"7B41794F-6219-42B1-9622-7A74AAB39DE7"},"205":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"206":{"date":{"__isSmartRef__":true,"id":207},"author":"jenslincke","message":"no comment","id":"69E07BCF-C0B2-42AF-883B-C3499482C513"},"207":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"208":{"date":{"__isSmartRef__":true,"id":209},"author":"jenslincke","message":"more hacks","id":"D627A82C-02CE-434C-BDE1-E2995108CDFB"},"209":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"210":{"date":{"__isSmartRef__":true,"id":211},"author":"jenslincke","message":"added fancy preview part and drag it out behavior!","id":"5DA6D4F8-847D-44FD-A1B2-2FE1607753A3"},"211":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"212":{"date":{"__isSmartRef__":true,"id":213},"author":"jenslincke","message":"removed logging","id":"B1ECB66A-62EB-4B40-AD28-4189AF04FAC2"},"213":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"214":{"date":{"__isSmartRef__":true,"id":215},"author":"jenslincke","message":"added ","id":"F15E32CE-83AA-44EB-8648-2930AFE1BD24"},"215":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"216":{"date":{"__isSmartRef__":true,"id":217},"author":"jenslincke","message":"adjust formatting for longer date print string under windows","id":"BCC989FA-3F5F-4958-AA2C-EC41D70E95EC"},"217":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"218":{"date":{"__isSmartRef__":true,"id":219},"author":"jenslincke","message":"no comment","id":"2DF7A585-CA70-4A3F-B651-3D3FAEC83992"},"219":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"220":{"date":{"__isSmartRef__":true,"id":221},"author":"jenslincke","message":"forgot new line","id":"3E39F5D1-9323-47D6-9D4B-A137B69CDEF9"},"221":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"222":{"date":{"__isSmartRef__":true,"id":223},"author":"jenslincke","message":"fixed hyperlink detection once and for all","id":"37234D72-3F50-4193-81EB-065791ADD196"},"223":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"224":{"date":{"__isSmartRef__":true,"id":225},"author":"jenslincke","message":"more url characters... should I look up what is actually allowed? No, I just update the regex every time!","id":"194E122C-7DFA-4AAE-A532-59107405FA48"},"225":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"226":{"date":{"__isSmartRef__":true,"id":227},"author":"jenslincke","message":"no comment","id":"E27B69E3-6E70-4599-9E87-2EDA8556BD02"},"227":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"228":{"date":{"__isSmartRef__":true,"id":229},"author":"jenslincke","message":"also create links for https:// ...","id":"563A198B-D7FD-49C6-B3D6-16B1C08B81E7"},"229":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"230":{"date":{"__isSmartRef__":true,"id":231},"author":"jenslincke","message":"fixed regex for hyperlinks","id":"C185A4DE-AC2A-4ECF-A031-1D9A88D6E5E5"},"231":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"232":{"date":{"__isSmartRef__":true,"id":233},"author":"jenslincke","message":"detect links...","id":"B23B1D23-E7B3-4D75-B45C-6DCA8A9B1082"},"233":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"234":{"date":{"__isSmartRef__":true,"id":235},"author":"jenslincke","message":"formatting does not include last newline","id":"3BB94A92-CE2F-4321-8555-9EFD675DD7C3"},"235":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"236":{"date":{"__isSmartRef__":true,"id":237},"author":"jenslincke","message":"some cleanup and removal of alert","id":"A60DACAC-F8A6-4086-BA0D-2C928481BA45"},"237":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"238":{"date":{"__isSmartRef__":true,"id":239},"author":"jenslincke","message":"no comment","id":"C79B033C-F702-4453-87D8-AA4393BC65D6"},"239":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"240":{"date":{"__isSmartRef__":true,"id":241},"author":"jenslincke","message":"no comment","id":"33475713-FEB1-4822-8736-773D8C69C299"},"241":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"242":{"date":{"__isSmartRef__":true,"id":243},"author":"jenslincke","message":"added hypertext recocnition for notes and excerpts","id":"F6C0EE1C-D944-4965-8DF3-38AE6BF9327E"},"243":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"244":{"date":{"__isSmartRef__":true,"id":245},"author":"jenslincke","message":"no comment","id":"676176DD-9D7D-4664-967C-DEAC93654136"},"245":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"246":{"date":{"__isSmartRef__":true,"id":247},"author":"jenslincke","message":"no comment","id":"B4AFCA0A-D381-4521-BA14-FA8B5B86C76A"},"247":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"248":{"date":{"__isSmartRef__":true,"id":249},"author":"jenslincke","message":"no comment","id":"70CE5D81-5B84-4B1D-9159-D13B85BAE00A"},"249":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"250":{"date":{"__isSmartRef__":true,"id":251},"author":"jenslincke","message":"no comment","id":"AEB2F41B-2C88-4BBA-8875-93CD17CBA1C8"},"251":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"252":{"date":{"__isSmartRef__":true,"id":253},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"253":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"254":{"date":{"__isSmartRef__":true,"id":255},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"255":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"256":{"date":{"__isSmartRef__":true,"id":257},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"257":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"258":{"date":{"__isSmartRef__":true,"id":259},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"259":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"260":{"date":{"__isSmartRef__":true,"id":261},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"261":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"262":{"date":{"__isSmartRef__":true,"id":263},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"263":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"264":{"date":{"__isSmartRef__":true,"id":265},"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8"},"265":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"266":{"date":{"__isSmartRef__":true,"id":267},"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205"},"267":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"268":{"date":{"__isSmartRef__":true,"id":269},"author":"jenslincke","message":"no comment","id":"A4B86A7E-A398-4C29-BEE0-4AA045ABABD2"},"269":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"270":{"date":{"__isSmartRef__":true,"id":271},"author":"jenslincke","message":"added legend","id":"7ADA3049-56C1-4D32-874B-F664A79DDB20"},"271":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"272":{"date":{"__isSmartRef__":true,"id":273},"author":"jenslincke","message":"added links to modules such as:\n \n module(\"lively.experimental.MorphAccessor\")\n","id":"3FB1C502-E4FA-4058-9190-8BC27D5F92E1"},"273":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"274":{"date":{"__isSmartRef__":true,"id":275},"author":"jenslincke","message":"no comment","id":"9EC96A0F-CF43-4AB2-A6BB-E8D15050282A"},"275":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"276":{"date":{"__isSmartRef__":true,"id":277},"author":"jenslincke","message":"no comment","id":"D3F2CCA3-EFB1-4ED8-A629-1DB74CB32DB7"},"277":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"278":{"date":{"__isSmartRef__":true,"id":279},"author":"jenslincke","message":"no comment","id":"EBED5B29-F807-4EAE-903D-95AF30547123"},"279":{"isSerializedDate":true,"string":"Sun Feb 02 2014 15:08:31 GMT+0100 (CET)"},"280":{"date":{"__isSmartRef__":true,"id":281},"author":"jenslincke","message":"no comment","id":"3D9F9551-72F9-4747-BCD5-54698E16567F"},"281":{"isSerializedDate":true,"string":"Mon Feb 03 2014 10:43:17 GMT+0100 (CET)"},"282":{"date":{"__isSmartRef__":true,"id":283},"author":"jenslincke","message":"no comment","id":"B63578A1-7303-4AE9-B1D3-DF493BE0F35F"},"283":{"isSerializedDate":true,"string":"Mon Feb 03 2014 10:43:30 GMT+0100 (CET)"},"284":{"isSerializedDate":true,"string":"Mon Feb 03 2014 10:39:24 GMT+0100 (CET)"},"285":{"morph":{"__isSmartRef__":true,"id":30},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"286":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":287}},"287":{"test01IsMorph":{"__isSmartRef__":true,"id":288}},"288":{"varMapping":{"__isSmartRef__":true,"id":289},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":290},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"289":{"this":{"__isSmartRef__":true,"id":286}},"290":{},"291":{"ScriptAdded":{"__isSmartRef__":true,"id":292}},"292":{},"293":{"sourceObj":{"__isSmartRef__":true,"id":30},"sourceAttrName":"ScriptAdded","targetObj":{"__isSmartRef__":true,"id":60},"targetMethodName":"updateText","varMapping":{"__isSmartRef__":true,"id":294},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"294":{"source":{"__isSmartRef__":true,"id":30},"target":{"__isSmartRef__":true,"id":60}},"295":{"morph":{"__isSmartRef__":true,"id":30},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(1040.0,25.0)"},"296":{"morph":{"__isSmartRef__":true,"id":30},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(1143.5,25.0)"},"297":{"morph":{"__isSmartRef__":true,"id":30},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(1247.0,25.0)"},"298":{"morph":{"__isSmartRef__":true,"id":30},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(1247.0,55.0)"},"299":{"morph":{"__isSmartRef__":true,"id":30},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(1247.0,85.1)"},"300":{"morph":{"__isSmartRef__":true,"id":30},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(1143.5,85.1)"},"301":{"morph":{"__isSmartRef__":true,"id":30},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(1040.0,85.1)"},"302":{"morph":{"__isSmartRef__":true,"id":30},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(1040.0,55.0)"},"303":{"onrestore":{"__isSmartRef__":true,"id":304},"formatAllMorphsInMainColumn":{"__isSmartRef__":true,"id":312},"formatTextMorph":{"__isSmartRef__":true,"id":316},"addScript":{"__isSmartRef__":true,"id":320},"emphasizeRegexFunc":{"__isSmartRef__":true,"id":328},"reset":{"__isSmartRef__":true,"id":332},"hidePart":{"__isSmartRef__":true,"id":336},"showPart":{"__isSmartRef__":true,"id":340},"followCitation":{"__isSmartRef__":true,"id":344},"followURL":{"__isSmartRef__":true,"id":348},"formatLinks":{"__isSmartRef__":true,"id":352},"browseModule":{"__isSmartRef__":true,"id":356}},"304":{"varMapping":{"__isSmartRef__":true,"id":305},"source":"function onrestore() {\n this.formatAllMorphsInMainColumn.bind(this).delay(1)\n}","funcProperties":{"__isSmartRef__":true,"id":310},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"305":{"this":{"__isSmartRef__":true,"id":30},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":306}},"306":{"$super":{"__isSmartRef__":true,"id":307}},"307":{"varMapping":{"__isSmartRef__":true,"id":308},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":309},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"308":{"obj":{"__isSmartRef__":true,"id":30},"name":"onrestore"},"309":{},"310":{"timestamp":{"__isSmartRef__":true,"id":311},"user":"jenslincke","tags":[]},"311":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"312":{"varMapping":{"__isSmartRef__":true,"id":313},"source":"function formatAllMorphsInMainColumn() {\n this.get('CheapWorldLayout').findMorphsToLayout().select(function(ea) {\n return ea.textString && ea.format // want's automatic formatting\n }).each(function(ea) {\n this.formatTextMorph(ea)\n }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":314},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"313":{"this":{"__isSmartRef__":true,"id":30}},"314":{"timestamp":{"__isSmartRef__":true,"id":315},"user":"jenslincke","tags":[]},"315":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"316":{"varMapping":{"__isSmartRef__":true,"id":317},"source":"function formatTextMorph(morph) {\n\n if (!this.isActive) return\n\n morph.emphasizeAll({color: Color.darkGray, fontSize: 12, uri: undefined, italics: 'normal'})\n morph.textChunks.each(function(ea) {\n if (ea.style.doit && ea.style.doit.isAutoformat) {\n ea.styleText({doit: ''})\n }\n })\n this.emphasizeRegexFunc(morph, /(?:^|\\n)(# .*)/g, {fontSize: 20, color: CrayonColors.ocean})\n this.emphasizeRegexFunc(morph, /(?:^|\\n)(## .*)/g, {fontSize: 16, color: CrayonColors.ocean})\n this.emphasizeRegexFunc(morph, /(?:^|\\n)([A-Z]+)\\:/g, {fontSize: 12, color: Color.black})\n this.emphasizeRegexFunc(morph, /(?:^|\\n)(\\*.*)/g, {fontSize: 12, color: Color.red.darker(1)})\n this.emphasizeRegexFunc(morph, /(?:^|\\n)(\\%.*)/g, {fontSize: 10, color: Color.green.darker(2)})\n this.emphasizeRegexFunc(morph, /(?:^|\\n)([ \\t]*☐)/g, {color: Color.black})\n this.emphasizeRegexFunc(morph, /(?:^|\\n)([ \\t]*✔)/g, {color: Color.green.darker(1)})\n this.emphasizeRegexFunc(morph, /(@done( ?\\([^)]+\\))?)/g, {fontSize: 8, color: Color.gray})\n this.emphasizeRegexFunc(morph, /(@time( ?\\([^)]+\\))?)/g, {fontSize: 8, color: CrayonColors.ocean})\n this.emphasizeRegexFunc(morph, /(@due( ?\\([^)]+\\))?)/g, {fontSize: 8, color: Color.red})\n\n this.emphasizeRegexFunc(morph, /(\"[^\"]*\")/g, {color: CrayonColors.tin, italics: 'italic'})\n\n\n this.formatLinks(morph)\n \n morph.emphasizeRegex(/(?:^|\\n)- .*/g, {color: Color.darkGray, fontSize: 12})\n morph.emphasizeRegex(/(?:^|\\n) - .*/g, {color: Color.darkGray, fontSize: 12})\n morph.emphasizeRegex(/(?:^|\\n) - .*/g, {color: Color.darkGray, fontSize: 10})\n morph.emphasizeRegex(/(?:^|\\n) - .*/g, {color: Color.darkGray, fontSize: 10})\n\n var self= this;\n morph.textChunks.each(function(ea) {\n if (ea.style.doit && ea.style.doit.isAutoformat && ea.style.doit.context && ea.style.doit.context.partName) {\n $(ea.chunkNode).mouseenter(function(data) {\n var partName = ea.style.doit.context.partName;\n var partSpace = ea.style.doit.context.partSpace\n self.lastTextChunk = ea;\n self.showPart.bind(self).curry(ea, partName, partSpace).delay(1)\n })\n $(ea.chunkNode).mouseout(function(data) {\n self.hidePartTarget = ea\n self.hidePart.bind(self).curry(ea).delay(1)\n })\n }\n })\n\n\n\n}","funcProperties":{"__isSmartRef__":true,"id":318},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"317":{"this":{"__isSmartRef__":true,"id":30}},"318":{"timestamp":{"__isSmartRef__":true,"id":319},"user":"jenslincke","tags":[]},"319":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"320":{"varMapping":{"__isSmartRef__":true,"id":321},"source":"function addScript(s){\n\n var r = $super(s);\n try {\n // and now for some immediate feedback\n this.formatAllMorphsInMainColumn()\n } catch(e) {\n // ignore\n }\n lively.bindings.signal(this, 'ScriptAdded', s)\n return r\n}","funcProperties":{"__isSmartRef__":true,"id":326},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"321":{"this":{"__isSmartRef__":true,"id":30},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":322}},"322":{"$super":{"__isSmartRef__":true,"id":323}},"323":{"varMapping":{"__isSmartRef__":true,"id":324},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":325},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"324":{"obj":{"__isSmartRef__":true,"id":30},"name":"addScript"},"325":{},"326":{"timestamp":{"__isSmartRef__":true,"id":327},"user":"jenslincke","tags":[]},"327":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"328":{"varMapping":{"__isSmartRef__":true,"id":329},"source":"function emphasizeRegexFunc(text, re, styleOrFunc, boundsArgs) {\n // special version of emphasizeRegex\n var m, counter = 0, string = text.textString;\n while ((m = re.exec(string))) {\n counter++; if (counter > 5000) throw new Error('emphasizeRegex endless loop?');\n var bounds\n if (!boundsArgs && m[1]) {\n var m1index = m[0].indexOf(m[1])\n bounds = [m1index, m[0].length - (m1index + m[1].length)]\n // alert(\"bounds \" + bounds + \" \" + m[0])\n } else {\n bounds = boundsArgs || [0,0]\n }\n var from = m.index, to = m.index + m[0].length,\n chunks = text.sliceTextChunks(from + bounds[0], to + bounds[1]);\n for (var i = 0; i < chunks.length; i++) {\n var style = Object.isFunction(styleOrFunc) ? styleOrFunc(m, chunks) : styleOrFunc;\n chunks[i].styleText(style);\n }\n }\n text.coalesceChunks();\n}","funcProperties":{"__isSmartRef__":true,"id":330},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"329":{"this":{"__isSmartRef__":true,"id":30}},"330":{"timestamp":{"__isSmartRef__":true,"id":331},"user":"jenslincke","tags":[]},"331":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"332":{"varMapping":{"__isSmartRef__":true,"id":333},"source":"function reset() {\n this.connections = {ScriptAdded: {}}\n}","funcProperties":{"__isSmartRef__":true,"id":334},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"333":{"this":{"__isSmartRef__":true,"id":30}},"334":{"timestamp":{"__isSmartRef__":true,"id":335},"user":"jenslincke","tags":[]},"335":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"336":{"varMapping":{"__isSmartRef__":true,"id":337},"source":"function hidePart(textChunk) {\n\n if (this.lastTextChunk !== textChunk) return;\n this.lastTextChunk = null;\n delete this.hidePartTarget\n\n if (!this.showsPart) return;\n this.showsPart.remove()\n delete this.showsPart\n\n}","funcProperties":{"__isSmartRef__":true,"id":338},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"337":{"this":{"__isSmartRef__":true,"id":30}},"338":{"timestamp":{"__isSmartRef__":true,"id":339},"user":"jenslincke","tags":[]},"339":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"340":{"varMapping":{"__isSmartRef__":true,"id":341},"source":"function showPart(textChunk, partName, partSpace) {\n // alert(\"show \" + partName)\n if (this.lastTextChunk !== textChunk) return;\n\n if (this.hidePartTarget === textChunk) return; // don't bother with showing, we are hiding already\n if (this.showsPart) {\n this.showsPart.remove()\n };\n var container = lively.PartsBin.getPartItem(partName, partSpace).asPartsBinItem()\n container.isEpiMorph = true;\n container.openInWorld();\n container.setPosition(textChunk.bounds().bottomLeft())\n\n this.showsPart = container\n}","funcProperties":{"__isSmartRef__":true,"id":342},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"341":{"this":{"__isSmartRef__":true,"id":30}},"342":{"timestamp":{"__isSmartRef__":true,"id":343},"user":"jenslincke","tags":[]},"343":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"344":{"varMapping":{"__isSmartRef__":true,"id":345},"source":"function followCitation(key) {\n var template = URL.root.withFilename(\"users/jenslincke/thesis/excerpts/template.xhtml\")\n var uri = URL.root.withFilename(\"users/jenslincke/thesis/excerpts/\" + key + \".xhtml\")\n if (uri.asWebResource().exists())\n window.open(uri)\n else {\n $world.confirm(\"no excerpt found for: \" + key +\". Create one?\", function(bool) {\n if (bool) {\n var content = template.asWebResource().get().content\n uri.asWebResource().put(content)\n window.open(uri)\n }\n })\n }\n}","funcProperties":{"__isSmartRef__":true,"id":346},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"345":{"this":{"__isSmartRef__":true,"id":30}},"346":{"timestamp":{"__isSmartRef__":true,"id":347},"user":"jenslincke","tags":[]},"347":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"348":{"varMapping":{"__isSmartRef__":true,"id":349},"source":"function followURL(uri) {\n uri = new URL(uri)\n var template = uri.withFilename(\"template.xhtml\")\n if (uri.asWebResource().exists())\n window.open(uri)\n else {\n $world.confirm(\"\" + uri.filename() +\" does not exist. Create world?\", function(bool) {\n if (bool) {\n var content = template.asWebResource().get().content\n uri.asWebResource().put(content)\n window.open(uri)\n }\n })\n }\n}","funcProperties":{"__isSmartRef__":true,"id":350},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"349":{"this":{"__isSmartRef__":true,"id":30}},"350":{"timestamp":{"__isSmartRef__":true,"id":351},"user":"jenslincke","tags":[]},"351":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"352":{"varMapping":{"__isSmartRef__":true,"id":353},"source":"function formatLinks(morph) {\n // m.emphasizeRegex(/(?:^|\\n) [^*]*/g, {fontSize: 12, fontFamily: 'Courier'})\n this.emphasizeRegexFunc(morph, /\\[([a-zA-Z][a-zA-Z\\/.\\-0-9_]+?)\\]/g, function(m) {\n var uri;\n if (m[1].match(/^(documentation)|(projects)|(demos)|(draft)|(users)/)) {\n uri = URL.root.withFilename(\"\" + m[1] + \".xhtml\")};\n\n if (m[1].match(/^(notes)|(WriteFirst)|(Evaluation)/)) {\n uri = URL.root.withFilename(\"users/jenslincke/thesis/\" + m[1] + \".xhtml\")\n return {doit: {\n isAutoformat: true, \n code: 'this.followURL(\"'+ uri+'\")', \n context: this}}\n\n };\n\n if (m[1].match(/^[A-Z][a-z]+[0-9][0-9][0-9][0-9][A-Z]+/)) {\n return {doit: {\n isAutoformat: true, \n code: 'this.followCitation(\"'+ m[1]+'\")', \n context: this}}\n };\n // alert(\"found \" + m[1] + \" uri\" + uri)\n return { uri: uri}\n }.bind(this), [1,-1]);\n\n // format Module references\n var addModuleLink = function(m) {\n return { doit: {\n isAutoformat: true,\n code: 'this.browseModule(\"'+ m[1]+'\")',\n context: this}}\n }.bind(this)\n this.emphasizeRegexFunc(morph, /module\\(\"([^\"]+)\"\\)/g , addModuleLink,[8,-2]);\n this.emphasizeRegexFunc(morph, /module\\('([^']+)'\\)/g , addModuleLink,[8,-2]);\n\n // format PartsBin reference\n this.emphasizeRegexFunc(morph, /\\[(PartsBin\\/[A-Za-z]+)\\/([A-Za-z]+)\\]/g, function(m) {\n return { doit: {isAutoformat: true, \n code: \n 'm = $world.openPartItem(this.partName, this.partSpace); ' + \n '$world.hands.first().addMorph(m); m.setPosition(pt(0,0))', \n context: {partName: m[2], partSpace: m[1]}} }\n }, [1,-1]);\n\n // format hyperlinks\n this.emphasizeRegexFunc(morph, /\\[?(https?:\\/\\/[^ \\n\\]]*)\\]?/g, function(m) {\n var uri;\n return { uri: m[1]}\n }, [0,0])\n}","funcProperties":{"__isSmartRef__":true,"id":354},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"353":{"this":{"__isSmartRef__":true,"id":30}},"354":{"timestamp":{"__isSmartRef__":true,"id":355},"user":"jenslincke","tags":[]},"355":{"isSerializedDate":true,"string":"Sun Feb 02 2014 15:08:08 GMT+0100 (CET)"},"356":{"varMapping":{"__isSmartRef__":true,"id":357},"source":"function browseModule(str) {\n // this.browseModule(\"lively.experimental.MorphAccessor\")\n var url = new URL(module(str).uri())\n var moduleNode = lively.ide.startSourceControl().addModule(url.relativePathFrom(URL.codeBase))\n moduleNode.ast().browseIt()\n}","funcProperties":{"__isSmartRef__":true,"id":358},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"357":{"this":{"__isSmartRef__":true,"id":30}},"358":{"timestamp":{"__isSmartRef__":true,"id":359},"user":"jenslincke","tags":[]},"359":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"360":{"_id":"_102","style":{"__isSmartRef__":true,"id":361},"chunkOwner":{"__isSmartRef__":true,"id":1},"storedString":"') from ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"361":{"fontSize":12,"italics":"normal","__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(102,102,102)"},"362":{"_id":"_103","style":{"__isSmartRef__":true,"id":363},"chunkOwner":{"__isSmartRef__":true,"id":1},"storedString":"https://code.google.com/p/google-diff-match-patch/.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"363":{"fontSize":12,"italics":"normal","__serializedExpressions__":["color"],"uri":"https://code.google.com/p/google-diff-match-patch/.","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(102,102,102)"},"364":{"_id":"_104","style":{"__isSmartRef__":true,"id":365},"chunkOwner":{"__isSmartRef__":true,"id":1},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"365":{"fontSize":12,"italics":"normal","__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(102,102,102)"},"366":{"morph":{"__isSmartRef__":true,"id":1},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"367":{"submorphs":[],"scripts":[],"id":"C820D212-8673-4C50-B493-42F96589B629","shape":{"__isSmartRef__":true,"id":368},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":760.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":10,"name":"FormattedText","partsBinMetaInfo":{"__isSmartRef__":true,"id":369},"textChunks":[{"__isSmartRef__":true,"id":389},{"__isSmartRef__":true,"id":391},{"__isSmartRef__":true,"id":393},{"__isSmartRef__":true,"id":726},{"__isSmartRef__":true,"id":728},{"__isSmartRef__":true,"id":732},{"__isSmartRef__":true,"id":734},{"__isSmartRef__":true,"id":736},{"__isSmartRef__":true,"id":738},{"__isSmartRef__":true,"id":740},{"__isSmartRef__":true,"id":742},{"__isSmartRef__":true,"id":744},{"__isSmartRef__":true,"id":746},{"__isSmartRef__":true,"id":748},{"__isSmartRef__":true,"id":750},{"__isSmartRef__":true,"id":752}],"charsReplaced":"☐ learned how to \"diff\" and \"merge\" text using google's diff-match-patch library (again)","lastFindLoc":599,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":754},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","5848BD12-8F39-45F4-958F-07FC46FFCFCE","0ABC6C08-95DC-4245-8CFC-E599FD742FFA","E02EF097-B86E-4AF8-8DB0-AFC2238E7ABE","35F430A4-DBFD-42A9-BE94-EC9541B33C42","6DE6010F-07F9-4F36-8B2B-E938F5BC0708","0023C079-3F7A-4183-8230-3980112CCF39","91F5886F-4DED-4A4A-8B0A-FE9A237AF402","4ACADCBE-CD82-408E-81CA-16C6FCA3E95B","5E292C6D-8B70-4873-88AB-4C7753ECAAC2","64D920D3-5FB8-41BD-8FA0-2B3889568A3D","CD25651F-088A-44AD-8474-43C1E3195E52","0841CDA0-32B2-4F05-9E7B-E3067623F917","D5030EC1-9068-464F-9B02-2FB7F65107FD"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":760.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"isCopyMorphRef":true,"morphRefId":1,"splittedFrom":{"__isSmartRef__":true,"id":755},"lastSearchString":"","lastSearchIndex":0,"searchHighlights":[],"behaviorGroups":["MarkdownFormat"],"lastKeyStrokeTime":null,"_Rotation":0,"_Scale":1,"magnets":[{"__isSmartRef__":true,"id":782},{"__isSmartRef__":true,"id":783},{"__isSmartRef__":true,"id":784},{"__isSmartRef__":true,"id":785},{"__isSmartRef__":true,"id":786},{"__isSmartRef__":true,"id":787},{"__isSmartRef__":true,"id":788},{"__isSmartRef__":true,"id":789}],"priorSelectionRange":[529,529],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":790},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(36.1,111.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(525.3,-11.8)"},"368":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-2.1,1.0)","_Extent":"lively.pt(749.5,215.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"369":{"migrationLevel":4,"comment":"a text morph, that asks a formatter for formatting itself","partName":"FormattedText","changes":[{"__isSmartRef__":true,"id":370},{"__isSmartRef__":true,"id":372},{"__isSmartRef__":true,"id":374},{"__isSmartRef__":true,"id":376},{"__isSmartRef__":true,"id":378},{"__isSmartRef__":true,"id":380},{"__isSmartRef__":true,"id":382},{"__isSmartRef__":true,"id":384},{"__isSmartRef__":true,"id":386}],"revisionOnLoad":204530,"partsSpaceName":"PartsBin/Jens/","lastModifiedDate":{"__isSmartRef__":true,"id":388},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"370":{"date":{"__isSmartRef__":true,"id":371},"author":"jenslincke","message":"no comment","id":"9E579B1A-B8C1-461B-B356-4DCA099EA532"},"371":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"372":{"date":{"__isSmartRef__":true,"id":373},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"373":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"374":{"date":{"__isSmartRef__":true,"id":375},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"375":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"376":{"date":{"__isSmartRef__":true,"id":377},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"377":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"378":{"date":{"__isSmartRef__":true,"id":379},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"379":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"380":{"date":{"__isSmartRef__":true,"id":381},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"381":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"382":{"date":{"__isSmartRef__":true,"id":383},"author":"jenslincke","message":"no comment","id":"FD1BEF70-78AD-4414-9DD3-3838BBF70035"},"383":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"384":{"date":{"__isSmartRef__":true,"id":385},"author":"jenslincke","message":"no comment","id":"32F69C14-56E7-453C-A7AE-51E8D2859A33"},"385":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"386":{"date":{"__isSmartRef__":true,"id":387},"author":"jenslincke","message":"no comment","id":"10B7B86E-F04E-4EF5-93EF-1855D8C8373E"},"387":{"isSerializedDate":true,"string":"Mon Jan 27 2014 14:08:41 GMT+0100 (CET)"},"388":{"isSerializedDate":true,"string":"Mon Jan 27 2014 14:07:36 GMT+0100 (CET)"},"389":{"style":{"__isSmartRef__":true,"id":390},"chunkOwner":{"__isSmartRef__":true,"id":367},"_id":"_134936","storedString":"# Journal","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"390":{"fontSize":20,"italics":"normal","__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,79,152)"},"391":{"_id":"_616","style":{"__isSmartRef__":true,"id":392},"chunkOwner":{"__isSmartRef__":true,"id":367},"storedString":"\n\n- I evolved the simple new button of [","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"392":{"fontSize":12,"italics":"normal","__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(102,102,102)"},"393":{"_id":"_627","style":{"__isSmartRef__":true,"id":394},"chunkOwner":{"__isSmartRef__":true,"id":367},"storedString":"WriteFirst/index","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"394":{"fontSize":12,"italics":"normal","doit":{"__isSmartRef__":true,"id":395},"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(102,102,102)"},"395":{"isAutoformat":true,"code":"this.followURL(\"http://lively-kernel.org/repository/webwerkstatt/users/jenslincke/thesis/WriteFirst/index.xhtml\")","context":{"__isSmartRef__":true,"id":396}},"396":{"submorphs":[{"__isSmartRef__":true,"id":397},{"__isSmartRef__":true,"id":426},{"__isSmartRef__":true,"id":472}],"scripts":[],"id":"48C4A9E1-6402-430B-AD65-5C2AA31C8079","shape":{"__isSmartRef__":true,"id":530},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"Formatter","partsBinMetaInfo":{"__isSmartRef__":true,"id":531},"eventHandler":{"__isSmartRef__":true,"id":651},"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","FE91EA31-D8AE-461B-8A49-95DA5FBAE5B4","F38439A3-2F4E-4AC2-BF73-2633C00B1393","6748F5B5-2284-4748-A6EE-F1A261CBAD0B","BBAFB862-93AE-4F89-BCFF-9F1C67B7FE4C","7EC17E78-593A-4CC8-B7E3-859BCBBFE785","BD8BECDB-A9A1-4009-B433-C925F0AFCCFC","60EEC9BB-C633-4D94-91E3-6DA6FE53260C","61245879-6BB3-4DB2-A981-13FEFBC0690C","C2101192-5BA5-4707-9A73-E76BBEE3E728","326511FA-DA13-41EE-A295-1D9453585285","ED406134-93ED-475B-8A7C-2945C9F2CBE7","6A436784-FF02-451B-8393-B11F4D871D36","BC1C47C3-71DF-466A-B97A-83209D6584EE","BFF17E9A-328D-4697-848B-7A647E395BAC","0E2A8DC1-4D7F-404D-8852-A4C853EC5665","59DC87BB-0A7B-44A0-BCB4-BA5EBE9D0523","A1451A64-B67C-46E9-8695-846C5A15311D","8DA03179-8886-4623-9CC1-539D47E62E73","8B4BBAE9-F211-402D-B937-60C13DC8198E","643A38BD-7760-4E8D-A559-0F7F90AB302F","8D7AA1C6-943D-4A31-8CB7-F69731F5F4BB","B3F4964F-0DF3-4BD9-93A9-CA9A848A40A0","355257BD-1D2F-428B-B2C8-CAD0A6400CA1","18805E4A-C471-4EF0-AA4C-BCCCAFBF0059","2041833A-0803-4694-A462-A5FBB9CCF270","1FC304ED-9BDE-435A-B4DD-53707DAA0EEF","0A2A0424-D549-4F97-973E-C6A5D73A1A5D","01C14E3E-D50E-4E94-BC50-EF4A2952F362","F5268ADD-DCDD-432C-A940-26808CC830D7","B342A01A-FCA1-468F-AF9E-F2DF06118FAA","C17748DB-DE2A-414A-8828-2906A30DB2E7","A5B22D0C-330E-447D-89E7-22CF8D2806B5","EAFEF25E-5A36-4505-BA86-0B64FEA87F75","7DAF625D-E0B5-4830-B769-C198B53A78F1","D03C08C5-B123-4FBF-81D9-85D609E82966","D4999342-2616-44A2-8C2A-81035273A0FE","914BFB00-9B6A-4485-99E0-4F7008CD53D6","9CB16393-E177-4947-B450-9EE3FB594422"],"partTests":{"__isSmartRef__":true,"id":652},"_ClipMode":"visible","moved":true,"#startLetters":"formatAllMorphsInM","isLockOwner":true,"isBeingDragged":false,"prevScroll":[0,0],"connections":{"__isSmartRef__":true,"id":657},"attributeConnections":[{"__isSmartRef__":true,"id":659}],"doNotSerialize":["$$ScriptAdded"],"doNotCopyProperties":["$$ScriptAdded"],"lastTextChunk":null,"isActive":true,"draggingEnabled":false,"grabbingEnabled":false,"_Rotation":0,"_Scale":1,"isCopyMorphRef":true,"morphRefId":1,"magnets":[{"__isSmartRef__":true,"id":661},{"__isSmartRef__":true,"id":662},{"__isSmartRef__":true,"id":663},{"__isSmartRef__":true,"id":664},{"__isSmartRef__":true,"id":665},{"__isSmartRef__":true,"id":666},{"__isSmartRef__":true,"id":667},{"__isSmartRef__":true,"id":668}],"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":669},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","withoutLayers":["Global.lively.morphic.GrabbingLayer"],"_Position":"lively.pt(1040.0,25.0)","distanceToDragEvent":"lively.pt(144.0,-7.0)"},"397":{"submorphs":[],"scripts":[],"id":"F2B219DF-CCDC-4B53-83D2-939B5075B177","shape":{"__isSmartRef__":true,"id":398},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":14,"name":"Text2","partsBinMetaInfo":{"__isSmartRef__":true,"id":399},"textChunks":[{"__isSmartRef__":true,"id":415}],"charsReplaced":"Some Text","lastFindLoc":9,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":417},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","F55BA3EA-22CD-48D6-B41A-B854EB9BFC64","CDD26262-32FF-4710-BEE0-4BA0C7EEABB9","3C96DEFC-98EC-4776-903C-F7665129EFE7","C9D9C11A-03C6-497D-9B50-AE83D2EF3E52","57709E31-C611-4398-BCF5-76958C49628D","EF9B4E38-09CF-4E88-A1A0-10C1E99404C0","B80B8D09-1321-4366-981C-FB57506D07BE","488CBCEC-EDAC-431B-8607-893D9B94E92D","22304054-9794-46E4-96AA-7C166329C288","936AF3B0-87CC-494B-B38E-B4EE4FFE62F6","6125A594-2D7F-4B3B-949D-BA5D290FE245","9FB9F9AA-1AAA-47CD-BF15-6F2725D031B6","B80931E7-AC5E-4FAD-B285-9DD4A085899A","86915E69-88F9-4C44-BBFA-53AC4C8AF1E3","E5743CA5-61A0-40A7-991E-410B66DF9BA6","F0F4CE6D-C62B-434F-9F9E-2E84CD2D12C9","5586722F-18A3-421E-8D16-207CFAC4E563","7D25A254-316A-4990-9961-34E6B7C8AF22","6429C36E-77E7-4EA5-BDB8-AEB56B42BB48","0B70107F-B681-49F0-BE54-2AF2751286B7","EE541B9C-20E6-4368-BA6E-65DBEB642395","67C96C86-0E46-474C-ACB5-F832713F1D66","ED235E43-74E2-44DF-A475-BAAF164760D0","01F832E9-AF58-4D13-9A2E-B03A36F82CEE","E87C4F24-8CB9-4EE8-8E15-EEC0CB915083","60E16C41-6092-4664-9C7C-D8F296DBA453","E6BC51D2-B8BC-4C3C-8261-841FD97E03FF","801FF08E-25BF-4A9C-8788-00F4B5026D42","38D955EE-AE4E-4686-81A8-A34DDCC6603D","403CD3A6-A3ED-4673-80C2-10542E030F5E","9FBB5EA7-7D70-493A-824C-61007A5E4BD2","1F967CC9-AD20-409F-BE58-E186FADD0F12"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":396},"isLockOwner":false,"previousSelection":[7,7],"draggingEnabled":false,"_Rotation":0,"_Scale":1,"magnets":[{"__isSmartRef__":true,"id":418},{"__isSmartRef__":true,"id":419},{"__isSmartRef__":true,"id":420},{"__isSmartRef__":true,"id":421},{"__isSmartRef__":true,"id":422},{"__isSmartRef__":true,"id":423},{"__isSmartRef__":true,"id":424},{"__isSmartRef__":true,"id":425}],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(4.6,3.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(66.4,-9.0)"},"398":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(100.7,26.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"399":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":400},{"__isSmartRef__":true,"id":402},{"__isSmartRef__":true,"id":404},{"__isSmartRef__":true,"id":406},{"__isSmartRef__":true,"id":408},{"__isSmartRef__":true,"id":410},{"__isSmartRef__":true,"id":412}],"lastModifiedDate":{"__isSmartRef__":true,"id":414},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"400":{"date":{"__isSmartRef__":true,"id":401},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"401":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"402":{"date":{"__isSmartRef__":true,"id":403},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"403":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"404":{"date":{"__isSmartRef__":true,"id":405},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"405":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"406":{"date":{"__isSmartRef__":true,"id":407},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"407":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"408":{"date":{"__isSmartRef__":true,"id":409},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"409":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"410":{"date":{"__isSmartRef__":true,"id":411},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"411":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"412":{"date":{"__isSmartRef__":true,"id":413},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"413":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"414":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"415":{"style":{"__isSmartRef__":true,"id":416},"morph":{"__isSmartRef__":true,"id":397},"chunkOwner":{"__isSmartRef__":true,"id":397},"storedString":"Formatter","_id":"_100","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"416":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(146,146,146)"},"417":{"morph":{"__isSmartRef__":true,"id":397},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"418":{"morph":{"__isSmartRef__":true,"id":397},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(1044.6,28.0)"},"419":{"morph":{"__isSmartRef__":true,"id":397},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(1094.9,28.0)"},"420":{"morph":{"__isSmartRef__":true,"id":397},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(1145.3,28.0)"},"421":{"morph":{"__isSmartRef__":true,"id":397},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(1145.3,41.0)"},"422":{"morph":{"__isSmartRef__":true,"id":397},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(1145.3,54.0)"},"423":{"morph":{"__isSmartRef__":true,"id":397},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(1094.9,54.0)"},"424":{"morph":{"__isSmartRef__":true,"id":397},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(1044.6,54.0)"},"425":{"morph":{"__isSmartRef__":true,"id":397},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(1044.6,41.0)"},"426":{"submorphs":[],"scripts":[],"id":"CA58A564-262C-400D-9BDD-C061912760F0","shape":{"__isSmartRef__":true,"id":427},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":5,"name":"VersionLabel","partsBinMetaInfo":{"__isSmartRef__":true,"id":428},"textChunks":[{"__isSmartRef__":true,"id":444}],"charsReplaced":"foo!?","lastFindLoc":5,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":446},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","DE7C6514-2635-46F0-B977-010AF2CA158A","C1038641-97C2-4250-810D-54A1028A1C6E","B3A30A07-1B69-45B4-84E0-955858FCDA2D","9CF2E8B9-2601-4263-A1C9-6633EAE8503B","1EF1CB51-4B4D-46FD-806E-D0DBF1A56D57","F38B25E2-0F26-49B4-81BF-38E2C0B3AD93","D6193C51-207E-4E07-8F5E-DF300D39EDB5","0100F042-0D69-40B5-8152-3499D33D6F85","26DE6FC0-8B4B-4986-AC4A-93F20B7C7B28","32CF1677-0DE7-4E57-AA37-CB94AB45A737","352353A9-2B46-40D4-9BC6-07F70D1B5D8A","11BC9434-E8C9-4FCB-9DF2-5D085F7D87A0","579A5E92-2C98-472C-9061-9C16060B835B","99C0518D-25A9-44FE-BB7B-01F038ACCA7C","FEB90AB9-68A6-4141-8F82-94094BCD0048","C81ADDF2-D919-4184-A5DE-ACB8D369F3E9","2C60F55F-DB72-4E5B-9ECE-04586DBEC92C","2B63DCFE-C814-4B7A-9172-EBE6BD721650","45A5A93C-7556-4467-B123-9F354C43B8FA","7981127D-77AB-449C-AB43-1F7CAC6B1FEB","12241BBE-EC90-4C23-A62F-95DAE3B58061","6708160E-E5BD-421E-9598-6C83E6260C50","F0EE07FD-3EE9-42D2-B02F-F1A050487A0B","1AD3ED74-FE01-426F-BA17-F76E2EE11264","3F3F1A08-EC0D-43A2-9B5A-DC6ACB3D4962","B9039E73-AC98-4890-AA8E-A7588AAA55A8","ED709A8A-A888-45D5-900D-CA2DDD5D15DC","4326AA2F-C5E0-46D7-947B-C924BB091339","19CEDD1D-04C4-4F46-932B-5CDD3F79358F"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":396},"draggingEnabled":false,"previousSelection":[0,0],"_Rotation":0,"_Scale":1,"magnets":[{"__isSmartRef__":true,"id":447},{"__isSmartRef__":true,"id":448},{"__isSmartRef__":true,"id":449},{"__isSmartRef__":true,"id":450},{"__isSmartRef__":true,"id":451},{"__isSmartRef__":true,"id":452},{"__isSmartRef__":true,"id":453},{"__isSmartRef__":true,"id":454}],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":455},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(5.4,26.3)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(137.6,-12.3)"},"427":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(200.1,11.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"428":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":429},{"__isSmartRef__":true,"id":431},{"__isSmartRef__":true,"id":433},{"__isSmartRef__":true,"id":435},{"__isSmartRef__":true,"id":437},{"__isSmartRef__":true,"id":439},{"__isSmartRef__":true,"id":441}],"revisionOnLoad":193597,"lastModifiedDate":{"__isSmartRef__":true,"id":443},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"429":{"date":{"__isSmartRef__":true,"id":430},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"430":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"431":{"date":{"__isSmartRef__":true,"id":432},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"432":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"433":{"date":{"__isSmartRef__":true,"id":434},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"434":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"435":{"date":{"__isSmartRef__":true,"id":436},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"436":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"437":{"date":{"__isSmartRef__":true,"id":438},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"438":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"439":{"date":{"__isSmartRef__":true,"id":440},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"440":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"441":{"date":{"__isSmartRef__":true,"id":442},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"442":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"443":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"444":{"style":{"__isSmartRef__":true,"id":445},"chunkOwner":{"__isSmartRef__":true,"id":426},"_id":"_33","storedString":"Sun Feb 02 2014 15:08:08 GMT+0100 (CET)","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"445":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"446":{"morph":{"__isSmartRef__":true,"id":426},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"447":{"morph":{"__isSmartRef__":true,"id":426},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(1045.4,51.3)"},"448":{"morph":{"__isSmartRef__":true,"id":426},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(1145.5,51.3)"},"449":{"morph":{"__isSmartRef__":true,"id":426},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(1245.5,51.3)"},"450":{"morph":{"__isSmartRef__":true,"id":426},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(1245.5,56.8)"},"451":{"morph":{"__isSmartRef__":true,"id":426},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(1245.5,62.3)"},"452":{"morph":{"__isSmartRef__":true,"id":426},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(1145.5,62.3)"},"453":{"morph":{"__isSmartRef__":true,"id":426},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(1045.4,62.3)"},"454":{"morph":{"__isSmartRef__":true,"id":426},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(1045.4,56.8)"},"455":{"onrestore":{"__isSmartRef__":true,"id":456},"updateText":{"__isSmartRef__":true,"id":464},"lastModifiedScriptOfOwner":{"__isSmartRef__":true,"id":468}},"456":{"varMapping":{"__isSmartRef__":true,"id":457},"source":"function onrestore() {\n this.updateText.bind(this).delay(1)\n}","funcProperties":{"__isSmartRef__":true,"id":462},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"457":{"this":{"__isSmartRef__":true,"id":426},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":458}},"458":{"$super":{"__isSmartRef__":true,"id":459}},"459":{"varMapping":{"__isSmartRef__":true,"id":460},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":461},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"460":{"obj":{"__isSmartRef__":true,"id":426},"name":"onrestore"},"461":{},"462":{"timestamp":{"__isSmartRef__":true,"id":463},"user":"jenslincke","tags":[]},"463":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"464":{"varMapping":{"__isSmartRef__":true,"id":465},"source":"function updateText() {\n this.textString = this.lastModifiedScriptOfOwner()\n}","funcProperties":{"__isSmartRef__":true,"id":466},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"465":{"this":{"__isSmartRef__":true,"id":426}},"466":{"timestamp":{"__isSmartRef__":true,"id":467},"user":"jenslincke","tags":[]},"467":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"468":{"varMapping":{"__isSmartRef__":true,"id":469},"source":"function lastModifiedScriptOfOwner() {\n // this.lastModifiedScriptOfOwner()\n var latest;\n Functions.own(this.owner).each(function(ea) {\n var t = this.owner[ea].timestamp;\n if (!latest || t > latest)\n latest = t;\n }, this)\n return latest\n}","funcProperties":{"__isSmartRef__":true,"id":470},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"469":{"this":{"__isSmartRef__":true,"id":426}},"470":{"timestamp":{"__isSmartRef__":true,"id":471},"user":"jenslincke"},"471":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"472":{"submorphs":[{"__isSmartRef__":true,"id":473}],"scripts":[],"id":"19B0AB44-F6E2-431B-9EFF-5CC52B59437B","shape":{"__isSmartRef__":true,"id":486},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":487},"lighterFill":{"__isSmartRef__":true,"id":492},"label":{"__isSmartRef__":true,"id":473},"name":"ToggleButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":497},"attributeConnections":[{"__isSmartRef__":true,"id":505},{"__isSmartRef__":true,"id":506}],"doNotSerialize":["$$fire","$$toggle"],"doNotCopyProperties":["$$fire","$$toggle"],"eventHandler":{"__isSmartRef__":true,"id":508},"derivationIds":[2588,"C96F474C-1F3A-4E42-844C-DD2EB76BDD7E","E36FA68D-6317-416A-99FA-0ED81E4193DA","06258075-AC5A-4CAB-A248-A66D3213816C","64801999-DFCE-4F54-974F-D68137E3178F","F7C108D2-C3FC-40BB-A7D2-C1E634F45107","096E44FC-0DC9-44C1-BFD5-17009B6482BC","00FFDED2-AB2D-4727-AC3D-2A3277BB0C11","D668A88D-7478-4356-845F-C91C0AA09852","73D645C4-502E-4CA1-BCFC-D7BF41AC2CC5","FD1ACFEB-984C-4BC5-BF01-DADB7D99571A","A1443BEE-BDD3-42D7-BBA9-ED94DAB58416","AB7854B1-85E4-43A2-97DA-DF3D89FB1F6E","C7B3A6EC-B093-44DF-83B6-CC7BD0529D7A","CAEAF7F9-DA32-4879-BB14-5B8DC852E81A","574C476E-4159-4297-9D08-303935E5FB76","DFC9F78E-2115-41C1-AC28-22F49623E8E0","25B278B5-069F-4376-9E5B-CC571CCDF39A","0EE2C9B7-91E5-4F83-977B-6C3AFF188ADF","7A983BB8-5129-4284-9C7F-605CB6F5DA30","745DE16E-6C57-4032-9A79-F60840696C16"],"_ClipMode":"visible","isPressed":false,"isToggled":false,"connections":{"__isSmartRef__":true,"id":509},"moved":true,"prevScroll":[0,0],"_PreviousBorderWidth":1,"owner":{"__isSmartRef__":true,"id":396},"_Rotation":0,"_Scale":0.7,"magnets":[{"__isSmartRef__":true,"id":513},{"__isSmartRef__":true,"id":514},{"__isSmartRef__":true,"id":515},{"__isSmartRef__":true,"id":516},{"__isSmartRef__":true,"id":517},{"__isSmartRef__":true,"id":518},{"__isSmartRef__":true,"id":519},{"__isSmartRef__":true,"id":520}],"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":521},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(158.0,6.0)","distanceToDragEvent":"lively.pt(35.0,-12.0)"},"473":{"submorphs":[],"scripts":[],"id":"DB330729-6325-479C-931E-AD32FE700763","shape":{"__isSmartRef__":true,"id":474},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":105,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":472},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":475}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":477},"_HandStyle":"default","_PointerEvents":"none","derivationIds":[2589,"44787449-DE07-40ED-B4D3-89A4A185AE29","F4BC3D0F-FF03-4EFC-B727-951442606730","277CDAEF-77E0-49F1-BD6F-1630D7ECC2E1","18C6D32F-6FC9-4BBD-9369-B33B5262D0BD","C47E37F8-5CF6-47A9-AFA1-A40A7AE84D49","263E0226-70CD-4FB4-8940-803DB41B14A4","BFDCA5F8-21BA-4D32-AB32-A2675F69B893","E05B45DC-5392-4CEE-8A8A-CDB9A6FEA02B","FC050265-3D45-4634-9BEC-325E0875CEF9","324C8FEE-5A64-42C3-8BD4-B19FDACFB256","0942A07F-7C9D-4202-A685-2680EB821A68","DA7A5615-6213-428E-BA6A-669FB082C23C","B227CE1E-6264-4FAB-85DB-C162F1003E9D","00345519-1674-4EB9-A990-0028D7D21A37","772EEB4C-729A-4A8E-BB81-7FB200FE81A8","7653280F-CD83-4BBF-9295-C6C867FC8A5A","A1F0F516-B851-4432-BD14-C8AD6250CCA0","E873A53D-3674-4F9F-9F1F-BE66111138DF","146D6FA1-67E9-4425-B1D6-DB0030692367","81AB586F-8E09-427C-8167-50D394AB01A8"],"_MinTextWidth":105,"_MinTextHeight":null,"_WordBreak":"break-all","_FontSize":10,"magnets":[{"__isSmartRef__":true,"id":478},{"__isSmartRef__":true,"id":479},{"__isSmartRef__":true,"id":480},{"__isSmartRef__":true,"id":481},{"__isSmartRef__":true,"id":482},{"__isSmartRef__":true,"id":483},{"__isSmartRef__":true,"id":484},{"__isSmartRef__":true,"id":485}],"__serializedExpressions__":["_Position","padding","_Padding","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"474":{"_BorderWidth":0,"_Fill":null,"_ClipMode":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(70.0,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"475":{"style":{"__isSmartRef__":true,"id":476},"chunkOwner":{"__isSmartRef__":true,"id":473},"_id":"_486","storedString":"enabled","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"476":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"477":{"morph":{"__isSmartRef__":true,"id":473},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"478":{"morph":{"__isSmartRef__":true,"id":473},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(1198.0,31.0)"},"479":{"morph":{"__isSmartRef__":true,"id":473},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(1222.5,31.0)"},"480":{"morph":{"__isSmartRef__":true,"id":473},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(1247.0,31.0)"},"481":{"morph":{"__isSmartRef__":true,"id":473},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(1247.0,38.7)"},"482":{"morph":{"__isSmartRef__":true,"id":473},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(1247.0,46.4)"},"483":{"morph":{"__isSmartRef__":true,"id":473},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(1222.5,46.4)"},"484":{"morph":{"__isSmartRef__":true,"id":473},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(1198.0,46.4)"},"485":{"morph":{"__isSmartRef__":true,"id":473},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(1198.0,38.7)"},"486":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":487},"_BorderRadius":5.2,"_ClipMode":"visible","_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":true,"_BorderStylingMode":true,"__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(70.0,22.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"487":{"stops":[{"__isSmartRef__":true,"id":488},{"__isSmartRef__":true,"id":489},{"__isSmartRef__":true,"id":490},{"__isSmartRef__":true,"id":491}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"488":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"489":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"490":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"491":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"492":{"stops":[{"__isSmartRef__":true,"id":493},{"__isSmartRef__":true,"id":494},{"__isSmartRef__":true,"id":495},{"__isSmartRef__":true,"id":496}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"493":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"494":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"495":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"496":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"497":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":4,"partName":"ToggleButton","comment":"A toggle button:\n- emits, toggle, enable, disable on pressed.\n- changes label","changes":[{"__isSmartRef__":true,"id":498},{"__isSmartRef__":true,"id":500},{"__isSmartRef__":true,"id":502}],"lastModifiedDate":{"__isSmartRef__":true,"id":504},"revisionOnLoad":200633,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"498":{"date":{"__isSmartRef__":true,"id":499},"author":"jenslincke","message":"no comment","id":"497F3947-290E-4A97-A50D-3A5A7A186919"},"499":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"500":{"date":{"__isSmartRef__":true,"id":501},"author":"jenslincke","message":"no comment","id":"02AB5A6F-7748-4A48-8C36-D334F97FC321"},"501":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"502":{"date":{"__isSmartRef__":true,"id":503},"author":"jenslincke","message":"no comment","id":"7471CE07-F2C0-4149-9684-90E843DB8DCE"},"503":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"504":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"505":{"sourceObj":{"__isSmartRef__":true,"id":472},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":472},"targetMethodName":"onFire","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"506":{"sourceObj":{"__isSmartRef__":true,"id":472},"sourceAttrName":"toggle","targetObj":{"__isSmartRef__":true,"id":396},"targetMethodName":"isActive","varMapping":{"__isSmartRef__":true,"id":507},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"507":{"source":{"__isSmartRef__":true,"id":472},"target":{"__isSmartRef__":true,"id":396}},"508":{"morph":{"__isSmartRef__":true,"id":472},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"509":{"enable":{"__isSmartRef__":true,"id":510},"disable":{"__isSmartRef__":true,"id":511},"toggle":{"__isSmartRef__":true,"id":512}},"510":{},"511":{},"512":{},"513":{"morph":{"__isSmartRef__":true,"id":472},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(1198.0,31.0)"},"514":{"morph":{"__isSmartRef__":true,"id":472},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(1222.5,31.0)"},"515":{"morph":{"__isSmartRef__":true,"id":472},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(1247.0,31.0)"},"516":{"morph":{"__isSmartRef__":true,"id":472},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(1247.0,38.7)"},"517":{"morph":{"__isSmartRef__":true,"id":472},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(1247.0,46.4)"},"518":{"morph":{"__isSmartRef__":true,"id":472},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(1222.5,46.4)"},"519":{"morph":{"__isSmartRef__":true,"id":472},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(1198.0,46.4)"},"520":{"morph":{"__isSmartRef__":true,"id":472},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(1198.0,38.7)"},"521":{"onFire":{"__isSmartRef__":true,"id":522},"reset":{"__isSmartRef__":true,"id":526}},"522":{"varMapping":{"__isSmartRef__":true,"id":523},"source":"function onFire() {\n\t\n if (this.isToggled) {\n this.setLabel(\"enabled\")\n lively.bindings.signal(this, 'enable', true)\n lively.bindings.signal(this, 'toggle', true)\n } else {\n this.setLabel(\"disabled\")\n lively.bindings.signal(this, 'disable', true)\n lively.bindings.signal(this, 'toggle', false)\n }\n this.isToggled = !this.isToggled;\n}","funcProperties":{"__isSmartRef__":true,"id":524},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"523":{"this":{"__isSmartRef__":true,"id":472}},"524":{"timestamp":{"__isSmartRef__":true,"id":525},"user":"jenslincke","tags":[]},"525":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"526":{"varMapping":{"__isSmartRef__":true,"id":527},"source":"function reset() {\n this.connections = {\"enable\": { }, \"disable\": { }, \"toggle\": { }}\n}","funcProperties":{"__isSmartRef__":true,"id":528},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"527":{"this":{"__isSmartRef__":true,"id":472}},"528":{"timestamp":{"__isSmartRef__":true,"id":529},"user":"jenslincke","tags":[]},"529":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"530":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"_StrokeOpacity":1,"__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(207.0,60.1)","_BorderColor":"Color.rgb(172,172,172)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"531":{"comment":"A morph hierarchy visualization with bundle view simulation of attribute connections.\nExample formats:\nHeading:\n #, ##, ##,\nLists:\n -, \nURLs:\n [Evaluation/Worlds]\nDoits:\n [PartsBin/Inputs/Button] \n","migrationLevel":4,"partName":"Formatter","changes":[{"__isSmartRef__":true,"id":532},{"__isSmartRef__":true,"id":534},{"__isSmartRef__":true,"id":536},{"__isSmartRef__":true,"id":538},{"__isSmartRef__":true,"id":540},{"__isSmartRef__":true,"id":542},{"__isSmartRef__":true,"id":544},{"__isSmartRef__":true,"id":546},{"__isSmartRef__":true,"id":548},{"__isSmartRef__":true,"id":550},{"__isSmartRef__":true,"id":552},{"__isSmartRef__":true,"id":554},{"__isSmartRef__":true,"id":556},{"__isSmartRef__":true,"id":558},{"__isSmartRef__":true,"id":560},{"__isSmartRef__":true,"id":562},{"__isSmartRef__":true,"id":564},{"__isSmartRef__":true,"id":566},{"__isSmartRef__":true,"id":568},{"__isSmartRef__":true,"id":570},{"__isSmartRef__":true,"id":572},{"__isSmartRef__":true,"id":574},{"__isSmartRef__":true,"id":576},{"__isSmartRef__":true,"id":578},{"__isSmartRef__":true,"id":580},{"__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}],"lastModifiedDate":{"__isSmartRef__":true,"id":650},"revisionOnLoad":205121,"partsSpaceName":"PartsBin/Jens/","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"532":{"date":{"__isSmartRef__":true,"id":533},"author":"jenslincke","message":"no comment","id":"B2833A8B-AE64-4DBD-B301-CE1088DF777A"},"533":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"534":{"date":{"__isSmartRef__":true,"id":535},"author":"jenslincke","message":"no comment","id":"FE4951E1-DBBD-45E1-8C8F-172CE4636B3C"},"535":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"536":{"date":{"__isSmartRef__":true,"id":537},"author":"jenslincke","message":"format citatated text in italics","id":"986705D7-3CD3-41C8-8AFF-36E9FE04A01A"},"537":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"538":{"date":{"__isSmartRef__":true,"id":539},"author":"jenslincke","message":"no comment","id":"911CF15E-6826-410E-AB61-CAE759E411AE"},"539":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"540":{"date":{"__isSmartRef__":true,"id":541},"author":"jenslincke","message":"no comment","id":"C07F91F1-FA58-4FAF-A7E8-DA04EB5D0F94"},"541":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"542":{"date":{"__isSmartRef__":true,"id":543},"author":"jenslincke","message":"no comment","id":"EDCC686C-126C-4523-8DC6-53817DD09673"},"543":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"544":{"date":{"__isSmartRef__":true,"id":545},"author":"jenslincke","message":"create page option, when following a link....","id":"003BCEA5-BE0C-4F90-A0A6-2FE8E3988057"},"545":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"546":{"date":{"__isSmartRef__":true,"id":547},"author":"jenslincke","message":"added creation of links to excerpts","id":"F7938E66-25E5-425F-9EEA-BC95819F3DD7"},"547":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"548":{"date":{"__isSmartRef__":true,"id":549},"author":"jenslincke","message":"no comment","id":"17C8A220-198C-4FC2-8CD2-2FFBFA193E3C"},"549":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"550":{"date":{"__isSmartRef__":true,"id":551},"author":"jenslincke","message":"no comment","id":"3CD68CC9-6FD9-412B-841C-3ECAE1BD12E6"},"551":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"552":{"date":{"__isSmartRef__":true,"id":553},"author":"jenslincke","message":"no comment","id":"FBBB3489-5BB0-4D6B-8C11-92D47A4D6C99"},"553":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"554":{"date":{"__isSmartRef__":true,"id":555},"author":"jenslincke","message":"no comment","id":"F71349C1-A74C-4AEF-B969-B6D3C92E07BE"},"555":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"556":{"date":{"__isSmartRef__":true,"id":557},"author":"jenslincke","message":"no comment","id":"EA270A92-A1A5-4FBA-89BB-D7BA1B6E49AD"},"557":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"558":{"date":{"__isSmartRef__":true,"id":559},"author":"jenslincke","message":"no comment","id":"3120B4F3-B8A2-4F2E-9793-547541BC4094"},"559":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"560":{"date":{"__isSmartRef__":true,"id":561},"author":"jenslincke","message":"layout","id":"34775C1C-7640-4A30-AD86-A5EB6945AA56"},"561":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"562":{"date":{"__isSmartRef__":true,"id":563},"author":"jenslincke","message":"no comment","id":"F9ED2AC4-98DC-4D7C-B9F5-01BED2619E8D"},"563":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"564":{"date":{"__isSmartRef__":true,"id":565},"author":"jenslincke","message":"no comment","id":"85068BB7-69E2-4265-A445-912DC98878A4"},"565":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"566":{"date":{"__isSmartRef__":true,"id":567},"author":"jenslincke","message":"no comment","id":"467FD050-EC26-4BA6-8480-17DB06F89C3D"},"567":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"568":{"date":{"__isSmartRef__":true,"id":569},"author":"jenslincke","message":"no comment","id":"874C31E7-EDDA-4583-8328-023A41910997"},"569":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"570":{"date":{"__isSmartRef__":true,"id":571},"author":"jenslincke","message":"more smoother delays....","id":"7B41794F-6219-42B1-9622-7A74AAB39DE7"},"571":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"572":{"date":{"__isSmartRef__":true,"id":573},"author":"jenslincke","message":"no comment","id":"69E07BCF-C0B2-42AF-883B-C3499482C513"},"573":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"574":{"date":{"__isSmartRef__":true,"id":575},"author":"jenslincke","message":"more hacks","id":"D627A82C-02CE-434C-BDE1-E2995108CDFB"},"575":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"576":{"date":{"__isSmartRef__":true,"id":577},"author":"jenslincke","message":"added fancy preview part and drag it out behavior!","id":"5DA6D4F8-847D-44FD-A1B2-2FE1607753A3"},"577":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"578":{"date":{"__isSmartRef__":true,"id":579},"author":"jenslincke","message":"removed logging","id":"B1ECB66A-62EB-4B40-AD28-4189AF04FAC2"},"579":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"580":{"date":{"__isSmartRef__":true,"id":581},"author":"jenslincke","message":"added ","id":"F15E32CE-83AA-44EB-8648-2930AFE1BD24"},"581":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"582":{"date":{"__isSmartRef__":true,"id":583},"author":"jenslincke","message":"adjust formatting for longer date print string under windows","id":"BCC989FA-3F5F-4958-AA2C-EC41D70E95EC"},"583":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"584":{"date":{"__isSmartRef__":true,"id":585},"author":"jenslincke","message":"no comment","id":"2DF7A585-CA70-4A3F-B651-3D3FAEC83992"},"585":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"586":{"date":{"__isSmartRef__":true,"id":587},"author":"jenslincke","message":"forgot new line","id":"3E39F5D1-9323-47D6-9D4B-A137B69CDEF9"},"587":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"588":{"date":{"__isSmartRef__":true,"id":589},"author":"jenslincke","message":"fixed hyperlink detection once and for all","id":"37234D72-3F50-4193-81EB-065791ADD196"},"589":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"590":{"date":{"__isSmartRef__":true,"id":591},"author":"jenslincke","message":"more url characters... should I look up what is actually allowed? No, I just update the regex every time!","id":"194E122C-7DFA-4AAE-A532-59107405FA48"},"591":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"592":{"date":{"__isSmartRef__":true,"id":593},"author":"jenslincke","message":"no comment","id":"E27B69E3-6E70-4599-9E87-2EDA8556BD02"},"593":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"594":{"date":{"__isSmartRef__":true,"id":595},"author":"jenslincke","message":"also create links for https:// ...","id":"563A198B-D7FD-49C6-B3D6-16B1C08B81E7"},"595":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"596":{"date":{"__isSmartRef__":true,"id":597},"author":"jenslincke","message":"fixed regex for hyperlinks","id":"C185A4DE-AC2A-4ECF-A031-1D9A88D6E5E5"},"597":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"598":{"date":{"__isSmartRef__":true,"id":599},"author":"jenslincke","message":"detect links...","id":"B23B1D23-E7B3-4D75-B45C-6DCA8A9B1082"},"599":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"600":{"date":{"__isSmartRef__":true,"id":601},"author":"jenslincke","message":"formatting does not include last newline","id":"3BB94A92-CE2F-4321-8555-9EFD675DD7C3"},"601":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"602":{"date":{"__isSmartRef__":true,"id":603},"author":"jenslincke","message":"some cleanup and removal of alert","id":"A60DACAC-F8A6-4086-BA0D-2C928481BA45"},"603":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"604":{"date":{"__isSmartRef__":true,"id":605},"author":"jenslincke","message":"no comment","id":"C79B033C-F702-4453-87D8-AA4393BC65D6"},"605":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"606":{"date":{"__isSmartRef__":true,"id":607},"author":"jenslincke","message":"no comment","id":"33475713-FEB1-4822-8736-773D8C69C299"},"607":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"608":{"date":{"__isSmartRef__":true,"id":609},"author":"jenslincke","message":"added hypertext recocnition for notes and excerpts","id":"F6C0EE1C-D944-4965-8DF3-38AE6BF9327E"},"609":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"610":{"date":{"__isSmartRef__":true,"id":611},"author":"jenslincke","message":"no comment","id":"676176DD-9D7D-4664-967C-DEAC93654136"},"611":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"612":{"date":{"__isSmartRef__":true,"id":613},"author":"jenslincke","message":"no comment","id":"B4AFCA0A-D381-4521-BA14-FA8B5B86C76A"},"613":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"614":{"date":{"__isSmartRef__":true,"id":615},"author":"jenslincke","message":"no comment","id":"70CE5D81-5B84-4B1D-9159-D13B85BAE00A"},"615":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"616":{"date":{"__isSmartRef__":true,"id":617},"author":"jenslincke","message":"no comment","id":"AEB2F41B-2C88-4BBA-8875-93CD17CBA1C8"},"617":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"618":{"date":{"__isSmartRef__":true,"id":619},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"619":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"620":{"date":{"__isSmartRef__":true,"id":621},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"621":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"622":{"date":{"__isSmartRef__":true,"id":623},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"623":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"624":{"date":{"__isSmartRef__":true,"id":625},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"625":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"626":{"date":{"__isSmartRef__":true,"id":627},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"627":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"628":{"date":{"__isSmartRef__":true,"id":629},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"629":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"630":{"date":{"__isSmartRef__":true,"id":631},"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8"},"631":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"632":{"date":{"__isSmartRef__":true,"id":633},"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205"},"633":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"634":{"date":{"__isSmartRef__":true,"id":635},"author":"jenslincke","message":"no comment","id":"A4B86A7E-A398-4C29-BEE0-4AA045ABABD2"},"635":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"636":{"date":{"__isSmartRef__":true,"id":637},"author":"jenslincke","message":"added legend","id":"7ADA3049-56C1-4D32-874B-F664A79DDB20"},"637":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"638":{"date":{"__isSmartRef__":true,"id":639},"author":"jenslincke","message":"added links to modules such as:\n \n module(\"lively.experimental.MorphAccessor\")\n","id":"3FB1C502-E4FA-4058-9190-8BC27D5F92E1"},"639":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"640":{"date":{"__isSmartRef__":true,"id":641},"author":"jenslincke","message":"no comment","id":"9EC96A0F-CF43-4AB2-A6BB-E8D15050282A"},"641":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"642":{"date":{"__isSmartRef__":true,"id":643},"author":"jenslincke","message":"no comment","id":"D3F2CCA3-EFB1-4ED8-A629-1DB74CB32DB7"},"643":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"644":{"date":{"__isSmartRef__":true,"id":645},"author":"jenslincke","message":"no comment","id":"EBED5B29-F807-4EAE-903D-95AF30547123"},"645":{"isSerializedDate":true,"string":"Sun Feb 02 2014 15:08:31 GMT+0100 (CET)"},"646":{"date":{"__isSmartRef__":true,"id":647},"author":"jenslincke","message":"no comment","id":"3D9F9551-72F9-4747-BCD5-54698E16567F"},"647":{"isSerializedDate":true,"string":"Mon Feb 03 2014 10:43:17 GMT+0100 (CET)"},"648":{"date":{"__isSmartRef__":true,"id":649},"author":"jenslincke","message":"no comment","id":"B63578A1-7303-4AE9-B1D3-DF493BE0F35F"},"649":{"isSerializedDate":true,"string":"Mon Feb 03 2014 10:43:30 GMT+0100 (CET)"},"650":{"isSerializedDate":true,"string":"Mon Feb 03 2014 10:39:24 GMT+0100 (CET)"},"651":{"morph":{"__isSmartRef__":true,"id":396},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"652":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":653}},"653":{"test01IsMorph":{"__isSmartRef__":true,"id":654}},"654":{"varMapping":{"__isSmartRef__":true,"id":655},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":656},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"655":{"this":{"__isSmartRef__":true,"id":652}},"656":{},"657":{"ScriptAdded":{"__isSmartRef__":true,"id":658}},"658":{},"659":{"sourceObj":{"__isSmartRef__":true,"id":396},"sourceAttrName":"ScriptAdded","targetObj":{"__isSmartRef__":true,"id":426},"targetMethodName":"updateText","varMapping":{"__isSmartRef__":true,"id":660},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"660":{"source":{"__isSmartRef__":true,"id":396},"target":{"__isSmartRef__":true,"id":426}},"661":{"morph":{"__isSmartRef__":true,"id":396},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(1040.0,25.0)"},"662":{"morph":{"__isSmartRef__":true,"id":396},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(1143.5,25.0)"},"663":{"morph":{"__isSmartRef__":true,"id":396},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(1247.0,25.0)"},"664":{"morph":{"__isSmartRef__":true,"id":396},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(1247.0,55.0)"},"665":{"morph":{"__isSmartRef__":true,"id":396},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(1247.0,85.1)"},"666":{"morph":{"__isSmartRef__":true,"id":396},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(1143.5,85.1)"},"667":{"morph":{"__isSmartRef__":true,"id":396},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(1040.0,85.1)"},"668":{"morph":{"__isSmartRef__":true,"id":396},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(1040.0,55.0)"},"669":{"onrestore":{"__isSmartRef__":true,"id":670},"formatAllMorphsInMainColumn":{"__isSmartRef__":true,"id":678},"formatTextMorph":{"__isSmartRef__":true,"id":682},"addScript":{"__isSmartRef__":true,"id":686},"emphasizeRegexFunc":{"__isSmartRef__":true,"id":694},"reset":{"__isSmartRef__":true,"id":698},"hidePart":{"__isSmartRef__":true,"id":702},"showPart":{"__isSmartRef__":true,"id":706},"followCitation":{"__isSmartRef__":true,"id":710},"followURL":{"__isSmartRef__":true,"id":714},"formatLinks":{"__isSmartRef__":true,"id":718},"browseModule":{"__isSmartRef__":true,"id":722}},"670":{"varMapping":{"__isSmartRef__":true,"id":671},"source":"function onrestore() {\n this.formatAllMorphsInMainColumn.bind(this).delay(1)\n}","funcProperties":{"__isSmartRef__":true,"id":676},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"671":{"this":{"__isSmartRef__":true,"id":396},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":672}},"672":{"$super":{"__isSmartRef__":true,"id":673}},"673":{"varMapping":{"__isSmartRef__":true,"id":674},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":675},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"674":{"obj":{"__isSmartRef__":true,"id":396},"name":"onrestore"},"675":{},"676":{"timestamp":{"__isSmartRef__":true,"id":677},"user":"jenslincke","tags":[]},"677":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"678":{"varMapping":{"__isSmartRef__":true,"id":679},"source":"function formatAllMorphsInMainColumn() {\n this.get('CheapWorldLayout').findMorphsToLayout().select(function(ea) {\n return ea.textString && ea.format // want's automatic formatting\n }).each(function(ea) {\n this.formatTextMorph(ea)\n }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":680},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"679":{"this":{"__isSmartRef__":true,"id":396}},"680":{"timestamp":{"__isSmartRef__":true,"id":681},"user":"jenslincke","tags":[]},"681":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"682":{"varMapping":{"__isSmartRef__":true,"id":683},"source":"function formatTextMorph(morph) {\n\n if (!this.isActive) return\n\n morph.emphasizeAll({color: Color.darkGray, fontSize: 12, uri: undefined, italics: 'normal'})\n morph.textChunks.each(function(ea) {\n if (ea.style.doit && ea.style.doit.isAutoformat) {\n ea.styleText({doit: ''})\n }\n })\n this.emphasizeRegexFunc(morph, /(?:^|\\n)(# .*)/g, {fontSize: 20, color: CrayonColors.ocean})\n this.emphasizeRegexFunc(morph, /(?:^|\\n)(## .*)/g, {fontSize: 16, color: CrayonColors.ocean})\n this.emphasizeRegexFunc(morph, /(?:^|\\n)([A-Z]+)\\:/g, {fontSize: 12, color: Color.black})\n this.emphasizeRegexFunc(morph, /(?:^|\\n)(\\*.*)/g, {fontSize: 12, color: Color.red.darker(1)})\n this.emphasizeRegexFunc(morph, /(?:^|\\n)(\\%.*)/g, {fontSize: 10, color: Color.green.darker(2)})\n this.emphasizeRegexFunc(morph, /(?:^|\\n)([ \\t]*☐)/g, {color: Color.black})\n this.emphasizeRegexFunc(morph, /(?:^|\\n)([ \\t]*✔)/g, {color: Color.green.darker(1)})\n this.emphasizeRegexFunc(morph, /(@done( ?\\([^)]+\\))?)/g, {fontSize: 8, color: Color.gray})\n this.emphasizeRegexFunc(morph, /(@time( ?\\([^)]+\\))?)/g, {fontSize: 8, color: CrayonColors.ocean})\n this.emphasizeRegexFunc(morph, /(@due( ?\\([^)]+\\))?)/g, {fontSize: 8, color: Color.red})\n\n this.emphasizeRegexFunc(morph, /(\"[^\"]*\")/g, {color: CrayonColors.tin, italics: 'italic'})\n\n\n this.formatLinks(morph)\n \n morph.emphasizeRegex(/(?:^|\\n)- .*/g, {color: Color.darkGray, fontSize: 12})\n morph.emphasizeRegex(/(?:^|\\n) - .*/g, {color: Color.darkGray, fontSize: 12})\n morph.emphasizeRegex(/(?:^|\\n) - .*/g, {color: Color.darkGray, fontSize: 10})\n morph.emphasizeRegex(/(?:^|\\n) - .*/g, {color: Color.darkGray, fontSize: 10})\n\n var self= this;\n morph.textChunks.each(function(ea) {\n if (ea.style.doit && ea.style.doit.isAutoformat && ea.style.doit.context && ea.style.doit.context.partName) {\n $(ea.chunkNode).mouseenter(function(data) {\n var partName = ea.style.doit.context.partName;\n var partSpace = ea.style.doit.context.partSpace\n self.lastTextChunk = ea;\n self.showPart.bind(self).curry(ea, partName, partSpace).delay(1)\n })\n $(ea.chunkNode).mouseout(function(data) {\n self.hidePartTarget = ea\n self.hidePart.bind(self).curry(ea).delay(1)\n })\n }\n })\n\n\n\n}","funcProperties":{"__isSmartRef__":true,"id":684},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"683":{"this":{"__isSmartRef__":true,"id":396}},"684":{"timestamp":{"__isSmartRef__":true,"id":685},"user":"jenslincke","tags":[]},"685":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"686":{"varMapping":{"__isSmartRef__":true,"id":687},"source":"function addScript(s){\n\n var r = $super(s);\n try {\n // and now for some immediate feedback\n this.formatAllMorphsInMainColumn()\n } catch(e) {\n // ignore\n }\n lively.bindings.signal(this, 'ScriptAdded', s)\n return r\n}","funcProperties":{"__isSmartRef__":true,"id":692},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"687":{"this":{"__isSmartRef__":true,"id":396},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":688}},"688":{"$super":{"__isSmartRef__":true,"id":689}},"689":{"varMapping":{"__isSmartRef__":true,"id":690},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":691},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"690":{"obj":{"__isSmartRef__":true,"id":396},"name":"addScript"},"691":{},"692":{"timestamp":{"__isSmartRef__":true,"id":693},"user":"jenslincke","tags":[]},"693":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"694":{"varMapping":{"__isSmartRef__":true,"id":695},"source":"function emphasizeRegexFunc(text, re, styleOrFunc, boundsArgs) {\n // special version of emphasizeRegex\n var m, counter = 0, string = text.textString;\n while ((m = re.exec(string))) {\n counter++; if (counter > 5000) throw new Error('emphasizeRegex endless loop?');\n var bounds\n if (!boundsArgs && m[1]) {\n var m1index = m[0].indexOf(m[1])\n bounds = [m1index, m[0].length - (m1index + m[1].length)]\n // alert(\"bounds \" + bounds + \" \" + m[0])\n } else {\n bounds = boundsArgs || [0,0]\n }\n var from = m.index, to = m.index + m[0].length,\n chunks = text.sliceTextChunks(from + bounds[0], to + bounds[1]);\n for (var i = 0; i < chunks.length; i++) {\n var style = Object.isFunction(styleOrFunc) ? styleOrFunc(m, chunks) : styleOrFunc;\n chunks[i].styleText(style);\n }\n }\n text.coalesceChunks();\n}","funcProperties":{"__isSmartRef__":true,"id":696},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"695":{"this":{"__isSmartRef__":true,"id":396}},"696":{"timestamp":{"__isSmartRef__":true,"id":697},"user":"jenslincke","tags":[]},"697":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"698":{"varMapping":{"__isSmartRef__":true,"id":699},"source":"function reset() {\n this.connections = {ScriptAdded: {}}\n}","funcProperties":{"__isSmartRef__":true,"id":700},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"699":{"this":{"__isSmartRef__":true,"id":396}},"700":{"timestamp":{"__isSmartRef__":true,"id":701},"user":"jenslincke","tags":[]},"701":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"702":{"varMapping":{"__isSmartRef__":true,"id":703},"source":"function hidePart(textChunk) {\n\n if (this.lastTextChunk !== textChunk) return;\n this.lastTextChunk = null;\n delete this.hidePartTarget\n\n if (!this.showsPart) return;\n this.showsPart.remove()\n delete this.showsPart\n\n}","funcProperties":{"__isSmartRef__":true,"id":704},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"703":{"this":{"__isSmartRef__":true,"id":396}},"704":{"timestamp":{"__isSmartRef__":true,"id":705},"user":"jenslincke","tags":[]},"705":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"706":{"varMapping":{"__isSmartRef__":true,"id":707},"source":"function showPart(textChunk, partName, partSpace) {\n // alert(\"show \" + partName)\n if (this.lastTextChunk !== textChunk) return;\n\n if (this.hidePartTarget === textChunk) return; // don't bother with showing, we are hiding already\n if (this.showsPart) {\n this.showsPart.remove()\n };\n var container = lively.PartsBin.getPartItem(partName, partSpace).asPartsBinItem()\n container.isEpiMorph = true;\n container.openInWorld();\n container.setPosition(textChunk.bounds().bottomLeft())\n\n this.showsPart = container\n}","funcProperties":{"__isSmartRef__":true,"id":708},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"707":{"this":{"__isSmartRef__":true,"id":396}},"708":{"timestamp":{"__isSmartRef__":true,"id":709},"user":"jenslincke","tags":[]},"709":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"710":{"varMapping":{"__isSmartRef__":true,"id":711},"source":"function followCitation(key) {\n var template = URL.root.withFilename(\"users/jenslincke/thesis/excerpts/template.xhtml\")\n var uri = URL.root.withFilename(\"users/jenslincke/thesis/excerpts/\" + key + \".xhtml\")\n if (uri.asWebResource().exists())\n window.open(uri)\n else {\n $world.confirm(\"no excerpt found for: \" + key +\". Create one?\", function(bool) {\n if (bool) {\n var content = template.asWebResource().get().content\n uri.asWebResource().put(content)\n window.open(uri)\n }\n })\n }\n}","funcProperties":{"__isSmartRef__":true,"id":712},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"711":{"this":{"__isSmartRef__":true,"id":396}},"712":{"timestamp":{"__isSmartRef__":true,"id":713},"user":"jenslincke","tags":[]},"713":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"714":{"varMapping":{"__isSmartRef__":true,"id":715},"source":"function followURL(uri) {\n uri = new URL(uri)\n var template = uri.withFilename(\"template.xhtml\")\n if (uri.asWebResource().exists())\n window.open(uri)\n else {\n $world.confirm(\"\" + uri.filename() +\" does not exist. Create world?\", function(bool) {\n if (bool) {\n var content = template.asWebResource().get().content\n uri.asWebResource().put(content)\n window.open(uri)\n }\n })\n }\n}","funcProperties":{"__isSmartRef__":true,"id":716},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"715":{"this":{"__isSmartRef__":true,"id":396}},"716":{"timestamp":{"__isSmartRef__":true,"id":717},"user":"jenslincke","tags":[]},"717":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"718":{"varMapping":{"__isSmartRef__":true,"id":719},"source":"function formatLinks(morph) {\n // m.emphasizeRegex(/(?:^|\\n) [^*]*/g, {fontSize: 12, fontFamily: 'Courier'})\n this.emphasizeRegexFunc(morph, /\\[([a-zA-Z][a-zA-Z\\/.\\-0-9_]+?)\\]/g, function(m) {\n var uri;\n if (m[1].match(/^(documentation)|(projects)|(demos)|(draft)|(users)/)) {\n uri = URL.root.withFilename(\"\" + m[1] + \".xhtml\")};\n\n if (m[1].match(/^(notes)|(WriteFirst)|(Evaluation)/)) {\n uri = URL.root.withFilename(\"users/jenslincke/thesis/\" + m[1] + \".xhtml\")\n return {doit: {\n isAutoformat: true, \n code: 'this.followURL(\"'+ uri+'\")', \n context: this}}\n\n };\n\n if (m[1].match(/^[A-Z][a-z]+[0-9][0-9][0-9][0-9][A-Z]+/)) {\n return {doit: {\n isAutoformat: true, \n code: 'this.followCitation(\"'+ m[1]+'\")', \n context: this}}\n };\n // alert(\"found \" + m[1] + \" uri\" + uri)\n return { uri: uri}\n }.bind(this), [1,-1]);\n\n // format Module references\n var addModuleLink = function(m) {\n return { doit: {\n isAutoformat: true,\n code: 'this.browseModule(\"'+ m[1]+'\")',\n context: this}}\n }.bind(this)\n this.emphasizeRegexFunc(morph, /module\\(\"([^\"]+)\"\\)/g , addModuleLink,[8,-2]);\n this.emphasizeRegexFunc(morph, /module\\('([^']+)'\\)/g , addModuleLink,[8,-2]);\n\n // format PartsBin reference\n this.emphasizeRegexFunc(morph, /\\[(PartsBin\\/[A-Za-z]+)\\/([A-Za-z]+)\\]/g, function(m) {\n return { doit: {isAutoformat: true, \n code: \n 'm = $world.openPartItem(this.partName, this.partSpace); ' + \n '$world.hands.first().addMorph(m); m.setPosition(pt(0,0))', \n context: {partName: m[2], partSpace: m[1]}} }\n }, [1,-1]);\n\n // format hyperlinks\n this.emphasizeRegexFunc(morph, /\\[?(https?:\\/\\/[^ \\n\\]]*)\\]?/g, function(m) {\n var uri;\n return { uri: m[1]}\n }, [0,0])\n}","funcProperties":{"__isSmartRef__":true,"id":720},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"719":{"this":{"__isSmartRef__":true,"id":396}},"720":{"timestamp":{"__isSmartRef__":true,"id":721},"user":"jenslincke","tags":[]},"721":{"isSerializedDate":true,"string":"Sun Feb 02 2014 15:08:08 GMT+0100 (CET)"},"722":{"varMapping":{"__isSmartRef__":true,"id":723},"source":"function browseModule(str) {\n // this.browseModule(\"lively.experimental.MorphAccessor\")\n var url = new URL(module(str).uri())\n var moduleNode = lively.ide.startSourceControl().addModule(url.relativePathFrom(URL.codeBase))\n moduleNode.ast().browseIt()\n}","funcProperties":{"__isSmartRef__":true,"id":724},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"723":{"this":{"__isSmartRef__":true,"id":396}},"724":{"timestamp":{"__isSmartRef__":true,"id":725},"user":"jenslincke","tags":[]},"725":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"726":{"_id":"_628","style":{"__isSmartRef__":true,"id":727},"chunkOwner":{"__isSmartRef__":true,"id":367},"storedString":"] into a [","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"727":{"fontSize":12,"italics":"normal","__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(102,102,102)"},"728":{"_id":"_631","style":{"__isSmartRef__":true,"id":729},"chunkOwner":{"__isSmartRef__":true,"id":367},"storedString":"PartsBin/Jens/TemplateCloner","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"729":{"fontSize":12,"italics":"normal","doit":{"__isSmartRef__":true,"id":730},"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(102,102,102)"},"730":{"isAutoformat":true,"code":"m = $world.openPartItem(this.partName, this.partSpace); $world.hands.first().addMorph(m); m.setPosition(pt(0,0))","context":{"__isSmartRef__":true,"id":731}},"731":{"partName":"TemplateCloner","partSpace":"PartsBin/Jens"},"732":{"_id":"_632","style":{"__isSmartRef__":true,"id":733},"chunkOwner":{"__isSmartRef__":true,"id":367},"storedString":"], that does update all the parts in the world before saving it as a new world. This way it is assured when creating a new world, the latest parts are used the authors of the parts don't have to manually go through all the template worlds and update the parts in them. This may conflict with local changes in template worlds that are not handled through the ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"733":{"fontSize":12,"italics":"normal","__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(102,102,102)"},"734":{"_id":"_621","style":{"__isSmartRef__":true,"id":735},"chunkOwner":{"__isSmartRef__":true,"id":367},"storedString":"\"migrateFrom\"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"735":{"fontSize":12,"italics":"italic","__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(102,102,102)"},"736":{"_id":"_622","style":{"__isSmartRef__":true,"id":737},"chunkOwner":{"__isSmartRef__":true,"id":367},"storedString":" approach. \n\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"737":{"fontSize":12,"italics":"normal","__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(102,102,102)"},"738":{"_id":"_617","style":{"__isSmartRef__":true,"id":739},"chunkOwner":{"__isSmartRef__":true,"id":367},"storedString":"✔","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"739":{"fontSize":12,"italics":"normal","__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,102,0)"},"740":{"_id":"_618","style":{"__isSmartRef__":true,"id":741},"chunkOwner":{"__isSmartRef__":true,"id":367},"storedString":" learned how to ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"741":{"fontSize":12,"italics":"normal","__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(102,102,102)"},"742":{"_id":"_623","style":{"__isSmartRef__":true,"id":743},"chunkOwner":{"__isSmartRef__":true,"id":367},"storedString":"\"diff\"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"743":{"fontSize":12,"italics":"italic","__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(145,145,145)"},"744":{"_id":"_624","style":{"__isSmartRef__":true,"id":745},"chunkOwner":{"__isSmartRef__":true,"id":367},"storedString":" and ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"745":{"fontSize":12,"italics":"normal","__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(102,102,102)"},"746":{"_id":"_625","style":{"__isSmartRef__":true,"id":747},"chunkOwner":{"__isSmartRef__":true,"id":367},"storedString":"\"merge\"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"747":{"fontSize":12,"italics":"italic","__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(145,145,145)"},"748":{"_id":"_626","style":{"__isSmartRef__":true,"id":749},"chunkOwner":{"__isSmartRef__":true,"id":367},"storedString":" text using google's diff-match-patch library (again) ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"749":{"fontSize":12,"italics":"normal","__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(102,102,102)"},"750":{"_id":"_619","style":{"__isSmartRef__":true,"id":751},"chunkOwner":{"__isSmartRef__":true,"id":367},"storedString":"@done (14-02-04 16:18)","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"751":{"fontSize":8,"italics":"normal","__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(204,204,204)"},"752":{"_id":"_620","style":{"__isSmartRef__":true,"id":753},"chunkOwner":{"__isSmartRef__":true,"id":367},"storedString":"\n\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"753":{"fontSize":12,"italics":"normal","__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(102,102,102)"},"754":{"morph":{"__isSmartRef__":true,"id":367},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"755":{"submorphs":[],"scripts":[],"id":"0ABC6C08-95DC-4245-8CFC-E599FD742FFA","shape":{"__isSmartRef__":true,"id":756},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":760.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":18,"name":"Text3","partsBinMetaInfo":{"__isSmartRef__":true,"id":757},"textChunks":[{"__isSmartRef__":true,"id":768},{"__isSmartRef__":true,"id":770}],"charsReplaced":"\n# IntroductionHello\n# Creating Active Content in Webwerkstatt\n\n## Scripting Objects on a Website\n\n## Parts and PartBin\n\n## Cloning and Derivation History\n\n# Developing Tools as Active Content\n\n## Active Content vs. Base System\n\n## Base System Tools\n\n## Tools as Parts\n\n## Metacircularity\n \n## Diffing and Merging Parts\n\n# Example: Development of the ScriptEditor\n\n## Bootstrapping the Script Editor\n \n## Evolving the Script Editor\n\n## Script Editor Branches \n\n# Evaluation: User Created Tools in Webwerkstatt\n\n# Related Work\n\n* [Miller2008CSA]\n\n# Conclusion\n\n\n","lastFindLoc":20,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":772},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","5848BD12-8F39-45F4-958F-07FC46FFCFCE"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":760.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"_Rotation":0,"_Scale":1,"isCopyMorphRef":true,"morphRefId":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":773},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(41.0,643.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(86.0,-18.0)"},"756":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(768.7,150.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"757":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":758},{"__isSmartRef__":true,"id":760},{"__isSmartRef__":true,"id":762},{"__isSmartRef__":true,"id":764},{"__isSmartRef__":true,"id":766}],"revisionOnLoad":160159,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"758":{"date":{"__isSmartRef__":true,"id":759},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"759":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"760":{"date":{"__isSmartRef__":true,"id":761},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"761":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"762":{"date":{"__isSmartRef__":true,"id":763},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"763":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"764":{"date":{"__isSmartRef__":true,"id":765},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"765":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"766":{"date":{"__isSmartRef__":true,"id":767},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"767":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"768":{"style":{"__isSmartRef__":true,"id":769},"chunkOwner":{"__isSmartRef__":true,"id":755},"_id":"_27961","storedString":"11:33\n12:58\nOutline\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"769":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"770":{"_id":"_27963","style":{"__isSmartRef__":true,"id":771},"chunkOwner":{"__isSmartRef__":true,"id":755},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"771":{"__serializedExpressions__":["color"],"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(102,102,102)"},"772":{"morph":{"__isSmartRef__":true,"id":755},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"773":{"doSave":{"__isSmartRef__":true,"id":774}},"774":{"varMapping":{"__isSmartRef__":true,"id":775},"source":"function doSave() {\n $world.saveWorld()\n}","funcProperties":{"__isSmartRef__":true,"id":780},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"775":{"this":{"__isSmartRef__":true,"id":755},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":776}},"776":{"$super":{"__isSmartRef__":true,"id":777}},"777":{"varMapping":{"__isSmartRef__":true,"id":778},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":779},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"778":{"obj":{"__isSmartRef__":true,"id":755},"name":"doSave"},"779":{},"780":{"timestamp":{"__isSmartRef__":true,"id":781},"user":"jenslincke","tags":[]},"781":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"782":{"morph":{"__isSmartRef__":true,"id":367},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(34.0,112.0)"},"783":{"morph":{"__isSmartRef__":true,"id":367},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(408.8,112.0)"},"784":{"morph":{"__isSmartRef__":true,"id":367},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(783.5,112.0)"},"785":{"morph":{"__isSmartRef__":true,"id":367},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(783.5,210.5)"},"786":{"morph":{"__isSmartRef__":true,"id":367},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(783.5,309.0)"},"787":{"morph":{"__isSmartRef__":true,"id":367},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(408.8,309.0)"},"788":{"morph":{"__isSmartRef__":true,"id":367},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(34.0,309.0)"},"789":{"morph":{"__isSmartRef__":true,"id":367},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(34.0,210.5)"},"790":{"doSave":{"__isSmartRef__":true,"id":791},"format":{"__isSmartRef__":true,"id":799},"onKeyUp":{"__isSmartRef__":true,"id":803},"delayedFormat":{"__isSmartRef__":true,"id":811},"migrateFrom":{"__isSmartRef__":true,"id":815}},"791":{"varMapping":{"__isSmartRef__":true,"id":792},"source":"function doSave() {\n $world.saveWorld()\n}","funcProperties":{"__isSmartRef__":true,"id":797},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"792":{"this":{"__isSmartRef__":true,"id":367},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":793}},"793":{"$super":{"__isSmartRef__":true,"id":794}},"794":{"varMapping":{"__isSmartRef__":true,"id":795},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":796},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"795":{"obj":{"__isSmartRef__":true,"id":367},"name":"doSave"},"796":{},"797":{"timestamp":{"__isSmartRef__":true,"id":798},"user":"jenslincke","tags":[]},"798":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"799":{"varMapping":{"__isSmartRef__":true,"id":800},"source":"function format() {\n var formatter = this.get('Formatter')\n if (!formatter || !formatter.formatTextMorph )\n return;\n var r = this.getSelectionRange()\n formatter.formatTextMorph(this)\n if (r) {\n this.setSelectionRange(r[0],r[1])\n this.fit()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":801},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"800":{"this":{"__isSmartRef__":true,"id":367}},"801":{"timestamp":{"__isSmartRef__":true,"id":802},"user":"jenslincke","tags":[]},"802":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"803":{"varMapping":{"__isSmartRef__":true,"id":804},"source":"function onKeyUp(evt) {\n var r = $super(evt)\n this.lastKeyStrokeTime = Date.now()\n this.delayedFormat()\n return r\n}","funcProperties":{"__isSmartRef__":true,"id":809},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"804":{"this":{"__isSmartRef__":true,"id":367},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":805}},"805":{"$super":{"__isSmartRef__":true,"id":806}},"806":{"varMapping":{"__isSmartRef__":true,"id":807},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":808},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"807":{"obj":{"__isSmartRef__":true,"id":367},"name":"onKeyUp"},"808":{},"809":{"timestamp":{"__isSmartRef__":true,"id":810},"user":"jenslincke","tags":[]},"810":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"811":{"varMapping":{"__isSmartRef__":true,"id":812},"source":"function delayedFormat() {\n if (! this.lastKeyStrokeTime) return; // it was handled already\n var delta = Date.now() - this.lastKeyStrokeTime;\n if (delta > 500) {\n this.format()\n this.lastKeyStrokeTime = null;\n } else {\n this.delayedFormat.bind(this).delay(0.1)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":813},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"812":{"this":{"__isSmartRef__":true,"id":367}},"813":{"timestamp":{"__isSmartRef__":true,"id":814},"user":"jenslincke","tags":[]},"814":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"815":{"varMapping":{"__isSmartRef__":true,"id":816},"source":"function migrateFrom(other) {\n this.textString = other.textString\n this.format()\n}","funcProperties":{"__isSmartRef__":true,"id":817},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"816":{"this":{"__isSmartRef__":true,"id":367}},"817":{"timestamp":{"__isSmartRef__":true,"id":818},"user":"jenslincke","tags":[]},"818":{"isSerializedDate":true,"string":"Mon Jan 27 2014 14:08:36 GMT+0100 (CET)"},"819":{"morph":{"__isSmartRef__":true,"id":1},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(34.0,321.0)"},"820":{"morph":{"__isSmartRef__":true,"id":1},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(408.8,321.0)"},"821":{"morph":{"__isSmartRef__":true,"id":1},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(783.5,321.0)"},"822":{"morph":{"__isSmartRef__":true,"id":1},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(783.5,347.5)"},"823":{"morph":{"__isSmartRef__":true,"id":1},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(783.5,374.0)"},"824":{"morph":{"__isSmartRef__":true,"id":1},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(408.8,374.0)"},"825":{"morph":{"__isSmartRef__":true,"id":1},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(34.0,374.0)"},"826":{"morph":{"__isSmartRef__":true,"id":1},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(34.0,347.5)"},"827":{"doSave":{"__isSmartRef__":true,"id":828},"format":{"__isSmartRef__":true,"id":836},"onKeyUp":{"__isSmartRef__":true,"id":840},"delayedFormat":{"__isSmartRef__":true,"id":848},"migrateFrom":{"__isSmartRef__":true,"id":852}},"828":{"varMapping":{"__isSmartRef__":true,"id":829},"source":"function doSave() {\n $world.saveWorld()\n}","funcProperties":{"__isSmartRef__":true,"id":834},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"829":{"this":{"__isSmartRef__":true,"id":1},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":830}},"830":{"$super":{"__isSmartRef__":true,"id":831}},"831":{"varMapping":{"__isSmartRef__":true,"id":832},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":833},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"832":{"obj":{"__isSmartRef__":true,"id":1},"name":"doSave"},"833":{},"834":{"timestamp":{"__isSmartRef__":true,"id":835},"user":"jenslincke","tags":[]},"835":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"836":{"varMapping":{"__isSmartRef__":true,"id":837},"source":"function format() {\n var formatter = this.get('Formatter')\n if (!formatter || !formatter.formatTextMorph )\n return;\n var r = this.getSelectionRange()\n formatter.formatTextMorph(this)\n if (r) {\n this.setSelectionRange(r[0],r[1])\n this.fit()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":838},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"837":{"this":{"__isSmartRef__":true,"id":1}},"838":{"timestamp":{"__isSmartRef__":true,"id":839},"user":"jenslincke","tags":[]},"839":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"840":{"varMapping":{"__isSmartRef__":true,"id":841},"source":"function onKeyUp(evt) {\n var r = $super(evt)\n this.lastKeyStrokeTime = Date.now()\n this.delayedFormat()\n return r\n}","funcProperties":{"__isSmartRef__":true,"id":846},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"841":{"this":{"__isSmartRef__":true,"id":1},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":842}},"842":{"$super":{"__isSmartRef__":true,"id":843}},"843":{"varMapping":{"__isSmartRef__":true,"id":844},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":845},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"844":{"obj":{"__isSmartRef__":true,"id":1},"name":"onKeyUp"},"845":{},"846":{"timestamp":{"__isSmartRef__":true,"id":847},"user":"jenslincke","tags":[]},"847":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"848":{"varMapping":{"__isSmartRef__":true,"id":849},"source":"function delayedFormat() {\n if (! this.lastKeyStrokeTime) return; // it was handled already\n var delta = Date.now() - this.lastKeyStrokeTime;\n if (delta > 500) {\n this.format()\n this.lastKeyStrokeTime = null;\n } else {\n this.delayedFormat.bind(this).delay(0.1)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":850},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"849":{"this":{"__isSmartRef__":true,"id":1}},"850":{"timestamp":{"__isSmartRef__":true,"id":851},"user":"jenslincke","tags":[]},"851":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"852":{"varMapping":{"__isSmartRef__":true,"id":853},"source":"function migrateFrom(other) {\n this.textString = other.textString\n this.format()\n}","funcProperties":{"__isSmartRef__":true,"id":854},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"853":{"this":{"__isSmartRef__":true,"id":1}},"854":{"timestamp":{"__isSmartRef__":true,"id":855},"user":"jenslincke","tags":[]},"855":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"856":{"submorphs":[],"scripts":[{"__isSmartRef__":true,"id":857}],"id":"976B7352-E769-4F68-BFDF-37DE183B1DF9","shape":{"__isSmartRef__":true,"id":858},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"CheapWorldLayout","partsBinMetaInfo":{"__isSmartRef__":true,"id":859},"eventHandler":{"__isSmartRef__":true,"id":893},"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","FE91EA31-D8AE-461B-8A49-95DA5FBAE5B4","F38439A3-2F4E-4AC2-BF73-2633C00B1393","6748F5B5-2284-4748-A6EE-F1A261CBAD0B","BBAFB862-93AE-4F89-BCFF-9F1C67B7FE4C","7EC17E78-593A-4CC8-B7E3-859BCBBFE785","BAE1478B-CB11-41E8-A432-8728CEA1E8B9","2EF4FF97-F02E-411E-AF1A-7151C9D582FA","3BDF678D-D961-43BA-939C-471EB892052F","00EA2971-F34B-4A4A-9862-9E232C36D082","208CB01E-E1F6-4F05-9D28-FA2C18DC1347","57AFF9A8-76B6-45A0-8582-329FD27C90C5","3AB13E2C-FA1C-49FF-B9E0-105037BD7EC9","4DE72229-4E03-45A3-88C6-E2A01AD99CCB"],"partTests":{"__isSmartRef__":true,"id":894},"_ClipMode":"visible","moved":true,"isBeingDragged":false,"isLayouting":true,"prevScroll":[0,0],"grabbingEnabled":false,"magnets":[{"__isSmartRef__":true,"id":899},{"__isSmartRef__":true,"id":900},{"__isSmartRef__":true,"id":901},{"__isSmartRef__":true,"id":902},{"__isSmartRef__":true,"id":903},{"__isSmartRef__":true,"id":904},{"__isSmartRef__":true,"id":905},{"__isSmartRef__":true,"id":906}],"isMetaTool":true,"#startLetters":"regis","draggingEnabled":true,"eventsAreDisabled":false,"_HandStyle":"default","_PointerEvents":"auto","morphsToMove":null,"_Rotation":0,"_Scale":1,"owner":{"__isSmartRef__":true,"id":0},"__serializedExpressions__":["_Position","distanceToDragEvent","prevDragPos"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":907},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(21.0,26.0)","distanceToDragEvent":"lively.pt(269.0,-13.0)","prevDragPos":"lively.pt(224.0,26.0)"},"857":{"target":{"__isSmartRef__":true,"id":856},"selector":"layoutWorld","args":[],"stopped":false,"tickTime":500,"suspended":false,"__LivelyClassName__":"lively.morphic.TargetScript","__SourceModuleName__":"Global.lively.morphic.Core"},"858":{"_BorderWidth":0,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":0.4523,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(397.0,12.0)","_BorderColor":"Color.rgb(159,159,159)","_Fill":"Color.rgb(204,204,204)","_Padding":"lively.rect(0,0,0,0)"},"859":{"comment":"A very direct and cheap world layouting:\n\n- layouts all the morphs on the left ( < 100px) in vertical order\n","migrationLevel":4,"partName":"CheapWorldLayout","changes":[{"__isSmartRef__":true,"id":860},{"__isSmartRef__":true,"id":862},{"__isSmartRef__":true,"id":864},{"__isSmartRef__":true,"id":866},{"__isSmartRef__":true,"id":868},{"__isSmartRef__":true,"id":870},{"__isSmartRef__":true,"id":872},{"__isSmartRef__":true,"id":874},{"__isSmartRef__":true,"id":876},{"__isSmartRef__":true,"id":878},{"__isSmartRef__":true,"id":880},{"__isSmartRef__":true,"id":882},{"__isSmartRef__":true,"id":884},{"__isSmartRef__":true,"id":886},{"__isSmartRef__":true,"id":888},{"__isSmartRef__":true,"id":890}],"lastModifiedDate":{"__isSmartRef__":true,"id":892},"revisionOnLoad":200894,"partsSpaceName":"PartsBin/Jens/","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"860":{"date":{"__isSmartRef__":true,"id":861},"author":"jenslincke","message":"fixes origin bug","id":"6D65B2EB-4222-4AC5-8244-5D3581FCE017"},"861":{"isSerializedDate":true,"string":"Thu Mar 14 2013 23:03:58 GMT+0100 (CET)"},"862":{"date":{"__isSmartRef__":true,"id":863},"author":"jenslincke","message":"no comment","id":"2EDE0A52-4B4A-4971-8005-F20EBD8737F7"},"863":{"isSerializedDate":true,"string":"Wed Dec 12 2012 11:09:39 GMT+0100 (CET)"},"864":{"date":{"__isSmartRef__":true,"id":865},"author":"jenslincke","message":"no comment","id":"BC03E03B-5F5A-4955-8F8E-A6CC8426C612"},"865":{"isSerializedDate":true,"string":"Wed Dec 12 2012 11:05:45 GMT+0100 (CET)"},"866":{"date":{"__isSmartRef__":true,"id":867},"author":"jenslincke","message":"no comment","id":"6AD89AC6-0BAE-4B1C-8C60-664562056C10"},"867":{"isSerializedDate":true,"string":"Thu Dec 06 2012 13:53:14 GMT+0100 (CET)"},"868":{"date":{"__isSmartRef__":true,"id":869},"author":"jenslincke","message":"no comment","id":"EA1B8910-1E9A-4884-A9B5-44DAE3DC4178"},"869":{"isSerializedDate":true,"string":"Thu Dec 06 2012 13:28:30 GMT+0100 (CET)"},"870":{"date":{"__isSmartRef__":true,"id":871},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"871":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (CEST)"},"872":{"date":{"__isSmartRef__":true,"id":873},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"873":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (CEST)"},"874":{"date":{"__isSmartRef__":true,"id":875},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"875":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"876":{"date":{"__isSmartRef__":true,"id":877},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"877":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"878":{"date":{"__isSmartRef__":true,"id":879},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"879":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"880":{"date":{"__isSmartRef__":true,"id":881},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"881":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"882":{"date":{"__isSmartRef__":true,"id":883},"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8"},"883":{"isSerializedDate":true,"string":"Mon Jun 18 2012 19:35:08 GMT+0200 (CEST)"},"884":{"date":{"__isSmartRef__":true,"id":885},"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205"},"885":{"isSerializedDate":true,"string":"Thu Nov 22 2012 10:35:51 GMT+0100 (CET)"},"886":{"date":{"__isSmartRef__":true,"id":887},"author":"jenslincke","message":"no comment","id":"BDAAAA01-CAD5-49DE-8600-140BED885FE1"},"887":{"isSerializedDate":true,"string":"Wed Dec 05 2012 17:59:50 GMT+0100 (CET)"},"888":{"date":{"__isSmartRef__":true,"id":889},"author":"jenslincke","message":"no comment","id":"D84CC710-005C-4B1F-AD64-DCD4DF6B563E"},"889":{"isSerializedDate":true,"string":"Thu Mar 14 2013 23:12:02 GMT+0100 (CET)"},"890":{"date":{"__isSmartRef__":true,"id":891},"author":"jenslincke","message":"no comment","id":"94090062-9157-4AA9-96F2-492EAD3602BE"},"891":{"isSerializedDate":true,"string":"Wed Oct 02 2013 10:35:55 GMT+0200 (CEST)"},"892":{"isSerializedDate":true,"string":"Wed Oct 02 2013 10:33:09 GMT+0200 (CEST)"},"893":{"morph":{"__isSmartRef__":true,"id":856},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"894":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":895}},"895":{"test01IsMorph":{"__isSmartRef__":true,"id":896}},"896":{"varMapping":{"__isSmartRef__":true,"id":897},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":898},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"897":{"this":{"__isSmartRef__":true,"id":894}},"898":{},"899":{"morph":{"__isSmartRef__":true,"id":856},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(34.0,31.0)"},"900":{"morph":{"__isSmartRef__":true,"id":856},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(232.5,31.0)"},"901":{"morph":{"__isSmartRef__":true,"id":856},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(431.0,31.0)"},"902":{"morph":{"__isSmartRef__":true,"id":856},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(431.0,37.0)"},"903":{"morph":{"__isSmartRef__":true,"id":856},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(431.0,43.0)"},"904":{"morph":{"__isSmartRef__":true,"id":856},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(232.5,43.0)"},"905":{"morph":{"__isSmartRef__":true,"id":856},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(34.0,43.0)"},"906":{"morph":{"__isSmartRef__":true,"id":856},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(34.0,37.0)"},"907":{"layoutWorld":{"__isSmartRef__":true,"id":908},"startLayouting":{"__isSmartRef__":true,"id":912},"stopLayouting":{"__isSmartRef__":true,"id":916},"reset":{"__isSmartRef__":true,"id":920},"onDragStart":{"__isSmartRef__":true,"id":924},"onDrag":{"__isSmartRef__":true,"id":932},"onDragEnd":{"__isSmartRef__":true,"id":940},"findMorphsToLayout":{"__isSmartRef__":true,"id":948},"toggleLayouting":{"__isSmartRef__":true,"id":952},"onDoubleClick":{"__isSmartRef__":true,"id":956}},"908":{"varMapping":{"__isSmartRef__":true,"id":909},"source":"function layoutWorld() {\n var space = pt(0,this.getExtent().y);\n this.findMorphsToLayout().inject(this.bounds().bottomLeft().addPt(space),\n function(lastPos, ea) {\n ea.align(ea.bounds().topLeft(), lastPos);\n return ea.bounds().bottomLeft().addPt(space)\n }, this)\n var halos = this.world().currentHaloTarget &&\n this.world().currentHaloTarget.halos;\n if (halos)\n halos.invoke('alignAtTarget')\n}","funcProperties":{"__isSmartRef__":true,"id":910},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"909":{"this":{"__isSmartRef__":true,"id":856}},"910":{"timestamp":{"__isSmartRef__":true,"id":911},"user":"jenslincke","tags":[]},"911":{"isSerializedDate":true,"string":"Tue Mar 05 2013 18:13:04 GMT+0100 (CET)"},"912":{"varMapping":{"__isSmartRef__":true,"id":913},"source":"function startLayouting() {\n this.isLayouting = true;\n this.startStepping(500, \"layoutWorld\")\n}","funcProperties":{"__isSmartRef__":true,"id":914},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"913":{"this":{"__isSmartRef__":true,"id":856}},"914":{"timestamp":{"__isSmartRef__":true,"id":915},"user":"jenslincke","tags":[]},"915":{"isSerializedDate":true,"string":"Thu Dec 06 2012 12:02:28 GMT+0100 (CET)"},"916":{"varMapping":{"__isSmartRef__":true,"id":917},"source":"function stopLayouting() {\n this.isLayouting = false;\n this.stopStepping()\n}","funcProperties":{"__isSmartRef__":true,"id":918},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"917":{"this":{"__isSmartRef__":true,"id":856}},"918":{"timestamp":{"__isSmartRef__":true,"id":919},"user":"jenslincke","tags":[]},"919":{"isSerializedDate":true,"string":"Thu Dec 06 2012 12:01:10 GMT+0100 (CET)"},"920":{"varMapping":{"__isSmartRef__":true,"id":921},"source":"function reset() {\n this.isMetaTool = true\n this.enableDragging();\n\n\n // this.registerForMouseEvents()\n \n}","funcProperties":{"__isSmartRef__":true,"id":922},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"921":{"this":{"__isSmartRef__":true,"id":856}},"922":{"timestamp":{"__isSmartRef__":true,"id":923},"user":"jenslincke","tags":[]},"923":{"isSerializedDate":true,"string":"Wed Dec 12 2012 10:41:59 GMT+0100 (CET)"},"924":{"varMapping":{"__isSmartRef__":true,"id":925},"source":"function onDragStart(evt) {\n this.prevDragPos = evt.getPosition();\n this.morphsToMove = this.findMorphsToLayout();\n}","funcProperties":{"__isSmartRef__":true,"id":930},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"925":{"this":{"__isSmartRef__":true,"id":856},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":926}},"926":{"$super":{"__isSmartRef__":true,"id":927}},"927":{"varMapping":{"__isSmartRef__":true,"id":928},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":929},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"928":{"obj":{"__isSmartRef__":true,"id":856},"name":"onDragStart"},"929":{},"930":{"timestamp":{"__isSmartRef__":true,"id":931},"user":"jenslincke","tags":[]},"931":{"isSerializedDate":true,"string":"Wed Dec 12 2012 10:44:54 GMT+0100 (CET)"},"932":{"varMapping":{"__isSmartRef__":true,"id":933},"source":"function onDrag(evt) {\n var delta = evt.getPosition().subPt(this.prevDragPos)\n this.moveBy(delta)\n this.prevDragPos = evt.getPosition();\n this.morphsToMove.forEach(function(ea) {\n ea.moveBy(delta)\n })\n}","funcProperties":{"__isSmartRef__":true,"id":938},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"933":{"this":{"__isSmartRef__":true,"id":856},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":934}},"934":{"$super":{"__isSmartRef__":true,"id":935}},"935":{"varMapping":{"__isSmartRef__":true,"id":936},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":937},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"936":{"obj":{"__isSmartRef__":true,"id":856},"name":"onDrag"},"937":{},"938":{"timestamp":{"__isSmartRef__":true,"id":939},"user":"jenslincke","tags":[]},"939":{"isSerializedDate":true,"string":"Wed Dec 12 2012 10:45:21 GMT+0100 (CET)"},"940":{"varMapping":{"__isSmartRef__":true,"id":941},"source":"function onDragEnd() {\n this.morphsToMove = null;\n}","funcProperties":{"__isSmartRef__":true,"id":946},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"941":{"this":{"__isSmartRef__":true,"id":856},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":942}},"942":{"$super":{"__isSmartRef__":true,"id":943}},"943":{"varMapping":{"__isSmartRef__":true,"id":944},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":945},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"944":{"obj":{"__isSmartRef__":true,"id":856},"name":"onDragEnd"},"945":{},"946":{"timestamp":{"__isSmartRef__":true,"id":947},"user":"jenslincke","tags":[]},"947":{"isSerializedDate":true,"string":"Wed Dec 12 2012 10:44:37 GMT+0100 (CET)"},"948":{"varMapping":{"__isSmartRef__":true,"id":949},"source":"function findMorphsToLayout() {\n var target = this.owner;\n var halos = this.world().currentHaloTarget && this.world().currentHaloTarget.halos;\n // check if dragging etc...\n if (halos && halos.detect(function(ea) {\n return ea.infoLabel && ea.infoLabel.owner\n })){\n return [];\n }\n return target.submorphs.select(function(ea) {\n return (ea.bounds().topLeft().x <= this.bounds().right()) &&\n (this.bounds().left() - 100 <= ea.bounds().left()) &&\n (this.bounds().top() <= ea.bounds().top()) \n }, this).reject(function(ea) {\n return ea.isEpiMorph || (ea instanceof lively.morphic.HandMorph) \n || ea == this\n || ea.isMetaTool\n || ea instanceof lively.morphic.Window\n }, this).sortBy(function(ea) {\n return ea.bounds().topLeft().y\n })\n}","funcProperties":{"__isSmartRef__":true,"id":950},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"949":{"this":{"__isSmartRef__":true,"id":856}},"950":{"timestamp":{"__isSmartRef__":true,"id":951},"user":"jenslincke","tags":[]},"951":{"isSerializedDate":true,"string":"Thu Mar 14 2013 23:11:41 GMT+0100 (CET)"},"952":{"varMapping":{"__isSmartRef__":true,"id":953},"source":"function toggleLayouting() {\n if (this.isLayouting) {\n this.stopLayouting()\n this.setFill(Color.red)\n } else {\n this.startLayouting()\n this.setFill(Color.gray)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":954},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"953":{"this":{"__isSmartRef__":true,"id":856}},"954":{"timestamp":{"__isSmartRef__":true,"id":955},"user":"jenslincke","tags":[]},"955":{"isSerializedDate":true,"string":"Wed Dec 12 2012 11:04:24 GMT+0100 (CET)"},"956":{"varMapping":{"__isSmartRef__":true,"id":957},"source":"function onDoubleClick(evt) {\n \n if (evt.isLeftMouseButtonDown()) {\n this.toggleLayouting()\n }\n}","funcProperties":{"__isSmartRef__":true,"id":958},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"957":{"this":{"__isSmartRef__":true,"id":856}},"958":{"timestamp":{"__isSmartRef__":true,"id":959},"user":"jenslincke","tags":[]},"959":{"isSerializedDate":true,"string":"Wed Oct 02 2013 10:35:20 GMT+0200 (CEST)"},"960":{"submorphs":[{"__isSmartRef__":true,"id":961},{"__isSmartRef__":true,"id":1038},{"__isSmartRef__":true,"id":1698},{"__isSmartRef__":true,"id":1381},{"__isSmartRef__":true,"id":2334},{"__isSmartRef__":true,"id":1118},{"__isSmartRef__":true,"id":1300},{"__isSmartRef__":true,"id":1199},{"__isSmartRef__":true,"id":3276},{"__isSmartRef__":true,"id":3324},{"__isSmartRef__":true,"id":1083},{"__isSmartRef__":true,"id":2379},{"__isSmartRef__":true,"id":1244},{"__isSmartRef__":true,"id":1426},{"__isSmartRef__":true,"id":1006},{"__isSmartRef__":true,"id":3356},{"__isSmartRef__":true,"id":3374},{"__isSmartRef__":true,"id":1163},{"__isSmartRef__":true,"id":1345},{"__isSmartRef__":true,"id":3392},{"__isSmartRef__":true,"id":3413},{"__isSmartRef__":true,"id":3426},{"__isSmartRef__":true,"id":3447},{"__isSmartRef__":true,"id":3468}],"scripts":[],"id":"4049F3EF-8828-4F69-A726-009391954E1D","shape":{"__isSmartRef__":true,"id":3489},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3490},"isCopyMorphRef":true,"morphRefId":1,"eventHandler":{"__isSmartRef__":true,"id":3512},"derivationIds":[3313,"7EBAFB0C-EEBA-4569-9C95-FEFAA980E71F","07B984B7-8103-477B-8015-0273F9C93657","EC1FC34D-A380-47ED-94D9-B1A13E7B0A20"],"_ClipMode":"visible","moved":true,"prevScroll":[0,0],"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"isFixed":false,"fixedScale":0.998003992015968,"isLockOwner":false,"_Rotation":0,"_Scale":0.998003992015968,"attributeConnections":[{"__isSmartRef__":true,"id":1286},{"__isSmartRef__":true,"id":1288},{"__isSmartRef__":true,"id":1290},{"__isSmartRef__":true,"id":1292},{"__isSmartRef__":true,"id":2105},{"__isSmartRef__":true,"id":2107},{"__isSmartRef__":true,"id":2109},{"__isSmartRef__":true,"id":2111},{"__isSmartRef__":true,"id":2422},{"__isSmartRef__":true,"id":2424},{"__isSmartRef__":true,"id":2426},{"__isSmartRef__":true,"id":2428},{"__isSmartRef__":true,"id":1469},{"__isSmartRef__":true,"id":1471},{"__isSmartRef__":true,"id":1473},{"__isSmartRef__":true,"id":1475},{"__isSmartRef__":true,"id":2829},{"__isSmartRef__":true,"id":2831},{"__isSmartRef__":true,"id":2833},{"__isSmartRef__":true,"id":2835},{"__isSmartRef__":true,"id":1661},{"__isSmartRef__":true,"id":1663},{"__isSmartRef__":true,"id":1665},{"__isSmartRef__":true,"id":1667},{"__isSmartRef__":true,"id":1684},{"__isSmartRef__":true,"id":1686},{"__isSmartRef__":true,"id":1688},{"__isSmartRef__":true,"id":1690},{"__isSmartRef__":true,"id":2320},{"__isSmartRef__":true,"id":2322},{"__isSmartRef__":true,"id":2324},{"__isSmartRef__":true,"id":2326},{"__isSmartRef__":true,"id":2614},{"__isSmartRef__":true,"id":2616},{"__isSmartRef__":true,"id":2618},{"__isSmartRef__":true,"id":2620},{"__isSmartRef__":true,"id":2637},{"__isSmartRef__":true,"id":2639},{"__isSmartRef__":true,"id":2641},{"__isSmartRef__":true,"id":2643},{"__isSmartRef__":true,"id":2852},{"__isSmartRef__":true,"id":2854},{"__isSmartRef__":true,"id":2856},{"__isSmartRef__":true,"id":2858},{"__isSmartRef__":true,"id":1913},{"__isSmartRef__":true,"id":1915},{"__isSmartRef__":true,"id":1917},{"__isSmartRef__":true,"id":1919},{"__isSmartRef__":true,"id":3070},{"__isSmartRef__":true,"id":3072},{"__isSmartRef__":true,"id":3074},{"__isSmartRef__":true,"id":3076},{"__isSmartRef__":true,"id":2875},{"__isSmartRef__":true,"id":2877},{"__isSmartRef__":true,"id":2879},{"__isSmartRef__":true,"id":2881},{"__isSmartRef__":true,"id":2128},{"__isSmartRef__":true,"id":2130},{"__isSmartRef__":true,"id":2132},{"__isSmartRef__":true,"id":2134},{"__isSmartRef__":true,"id":3093},{"__isSmartRef__":true,"id":3095},{"__isSmartRef__":true,"id":3097},{"__isSmartRef__":true,"id":3099}],"doNotSerialize":["$$_Position","$$_Scale","$$_Rotation","$$owner"],"doNotCopyProperties":["$$_Position","$$_Scale","$$_Rotation","$$owner"],"name":"DiffExample","magnets":[{"__isSmartRef__":true,"id":3513},{"__isSmartRef__":true,"id":3514},{"__isSmartRef__":true,"id":3515},{"__isSmartRef__":true,"id":3516},{"__isSmartRef__":true,"id":3517},{"__isSmartRef__":true,"id":3518},{"__isSmartRef__":true,"id":3519},{"__isSmartRef__":true,"id":3520}],"_PreviousBorderWidth":1,"owner":{"__isSmartRef__":true,"id":0},"__serializedExpressions__":["_Position","distanceToDragEvent","fixedPosition"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3521},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","withLayers":["Global.lively.morphic.GrabbingLayer"],"_Position":"lively.pt(21.0,169.0)","distanceToDragEvent":"lively.pt(621.0,-13.0)","fixedPosition":"lively.pt(34.0,368.0)"},"961":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":962},"id":"AE4B92C9-3C72-48CE-87AB-8013FBDDD430","eventHandler":{"__isSmartRef__":true,"id":965},"__layered_droppingEnabled__":false,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":966},{"__isSmartRef__":true,"id":967}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":968},"name":"Connector7","derivationIds":[731,"5E6BD741-9C99-47B9-95C1-7A028178DB17","A8D5C37A-F23F-47FE-8DE2-211CE4484A4F","F722069B-8602-4E8D-BE3F-92A1E0C0EF28","D5ED19F9-968E-4C7E-9936-69F2735A813F","A9E370BC-F208-425C-BFFC-F8D6BB52E11F","4E431641-D056-46CB-B2A8-6626382EF423","5E9FF80A-8869-4D30-9A4C-37023352650B","1E262BB0-B5EB-43C7-AEEF-1721047BD34B","3AC3D636-420C-4F13-820E-C9305261C874","014B85BE-2960-474C-BA9C-7428E21F6D51","A1EDB105-2F3D-4448-AE9E-91A87BE1A9AB","4238A9AF-D49B-4B76-A31C-B50EF24C2AE3","F218405D-EC22-448F-9F4E-8A023F38A2F2","DF372334-FE86-4CA1-A61A-F6DBDFF21DB6","EE1893C0-855C-49AB-932B-86E42ACE320F","AF75DCF2-49F1-45FB-9383-C84651A0F391","5CD7B250-EF36-4F92-B17A-419B00C709C0","9BA1EB61-AAB3-4A9F-9BE2-EDEF1BCBBA9C","C78D9A1D-4AD1-4CDC-A976-1268516AEF1F","01837651-D010-4734-9146-BF2229F27A03","F845A43A-FA6C-4B04-B5B9-680A3531BC6F","349259E1-B6EE-4AB3-86FA-4ABCA93D8E15"],"_ClipMode":"visible","controlPointsHalos":[],"prevScroll":[0,0],"grabbingEnabled":false,"moved":true,"#startLetters":"accep","update":{"__isSmartRef__":true,"id":1004},"isCopyMorphRef":true,"morphRefId":1,"selectedMorphHighlights":[],"lastOverTime":null,"lastKeyStrokeTime":null,"fromMorph":{"__isSmartRef__":true,"id":1006},"toMorph":{"__isSmartRef__":true,"id":1244},"selectedMorph":{"__isSmartRef__":true,"id":1006},"owner":{"__isSmartRef__":true,"id":960},"_Rotation":0,"_Scale":1.002,"__serializedExpressions__":["distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3115},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","distanceToDragEvent":"lively.pt(151.0,-12.3)","_Position":"lively.pt(450.5,375.4)"},"962":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":963},{"__isSmartRef__":true,"id":964}],"_ClipMode":"visible","_BorderWidth":5,"_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":true,"_BorderStylingMode":false,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-277.9,-28.6)","_Extent":"lively.pt(555.9,57.2)","_BorderColor":"Color.rgb(161,161,161)"},"963":{"isAbsolute":true,"x":275.94999999999993,"y":26.579366697125238,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"964":{"isAbsolute":true,"x":-274.94999999999993,"y":-25.579366697125238,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"965":{"morph":{"__isSmartRef__":true,"id":961},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"966":{"morph":{"__isSmartRef__":true,"id":961},"index":0,"connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"967":{"morph":{"__isSmartRef__":true,"id":961},"index":1,"connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"968":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Jens/","comment":"Yes, I think I got it again: Powerful and nice connectors.\nThis time 100 % Part only!","partName":"Connector","lastModifiedDate":{"__isSmartRef__":true,"id":969},"changes":[{"__isSmartRef__":true,"id":970},{"__isSmartRef__":true,"id":972},{"__isSmartRef__":true,"id":974},{"__isSmartRef__":true,"id":976},{"__isSmartRef__":true,"id":978},{"__isSmartRef__":true,"id":980},{"__isSmartRef__":true,"id":982},{"__isSmartRef__":true,"id":984},{"__isSmartRef__":true,"id":986},{"__isSmartRef__":true,"id":988},{"__isSmartRef__":true,"id":990},{"__isSmartRef__":true,"id":992},{"__isSmartRef__":true,"id":994},{"__isSmartRef__":true,"id":996},{"__isSmartRef__":true,"id":998},{"__isSmartRef__":true,"id":1000},{"__isSmartRef__":true,"id":1002}],"revisionOnLoad":204084,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"969":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"970":{"date":{"__isSmartRef__":true,"id":971},"author":"jenslincke","message":"no comment","id":"D7359A4C-CE5D-4BB6-91CF-D47E8CD9DC8D"},"971":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"972":{"date":{"__isSmartRef__":true,"id":973},"author":"jenslincke","message":"no comment","id":"0DB540E7-E5AF-4800-BBD5-932B86D501BE"},"973":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"974":{"date":{"__isSmartRef__":true,"id":975},"author":"jenslincke","message":"no comment","id":"3AE4DB59-853F-4DB2-A99D-2822B27C73F2"},"975":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"976":{"date":{"__isSmartRef__":true,"id":977},"author":"jenslincke","message":"no comment","id":"DD1ABC51-1DCC-4B97-BDB4-355D28118CE9"},"977":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"978":{"date":{"__isSmartRef__":true,"id":979},"author":"jenslincke","message":"no comment","id":"92FDE03B-DE85-4805-84B6-3B6DA90E6348"},"979":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"980":{"date":{"__isSmartRef__":true,"id":981},"author":"jenslincke","message":"no comment","id":"3F64B004-21CC-4E77-82A4-642B296327F0"},"981":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"982":{"date":{"__isSmartRef__":true,"id":983},"author":"jenslincke","message":"no comment","id":"6E97D136-9F49-4570-8EC9-BFF3786EEA8D"},"983":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"984":{"date":{"__isSmartRef__":true,"id":985},"author":"jenslincke","message":"no comment","id":"A022B160-32B3-4AD2-A005-0A7B11B80584"},"985":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"986":{"date":{"__isSmartRef__":true,"id":987},"author":"jenslincke","message":"no comment","id":"B3F0BD32-A3D2-4AAB-97D5-8FB7637C6A9A"},"987":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"988":{"date":{"__isSmartRef__":true,"id":989},"author":"jenslincke","message":"no comment","id":"D8953E55-38AD-480A-8B9C-E4A86C90D48E"},"989":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"990":{"date":{"__isSmartRef__":true,"id":991},"author":"jenslincke","message":"no comment","id":"E9F9AE91-A058-465E-8F58-5CC00A962D0C"},"991":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"992":{"date":{"__isSmartRef__":true,"id":993},"author":"jenslincke","message":"no comment","id":"ED70FB47-8AA0-4D4E-8D90-FF99454C924B"},"993":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"994":{"date":{"__isSmartRef__":true,"id":995},"author":"jenslincke","message":"no comment","id":"28165CED-C8C5-4B8E-9655-645E3F5099BB"},"995":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"996":{"date":{"__isSmartRef__":true,"id":997},"author":"jenslincke","message":"no comment","id":"117C964B-9768-48F2-8EC8-D4328478198F"},"997":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"998":{"date":{"__isSmartRef__":true,"id":999},"author":"jenslincke","message":"no comment","id":"79159460-DFFB-462D-AFC9-EECD3539A1A9"},"999":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1000":{"date":{"__isSmartRef__":true,"id":1001},"author":"jenslincke","message":"no comment","id":"3D5067AE-5BA0-4317-837F-59F8F61B8B24"},"1001":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1002":{"date":{"__isSmartRef__":true,"id":1003},"author":"jenslincke","message":"fixed scaling issues","id":"97E95E76-A88F-44AB-A6E9-6BA5DCC4045D"},"1003":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1004":{"d":1,"a":1,"f":906.1,"e":107.8,"c":0,"b":0,"matrix_":{"__isSmartRef__":true,"id":1005},"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1005":{"a":1,"b":0,"c":0,"d":1,"e":107.8,"f":906.1,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1006":{"submorphs":[{"__isSmartRef__":true,"id":1007}],"scripts":[],"id":"82ED2070-17D8-4B7F-8EC8-E61AF3311893","shape":{"__isSmartRef__":true,"id":1031},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_MaxTextWidth":394.84879006641484,"_MaxTextHeight":193.9335840422932,"textChunks":[{"__isSmartRef__":true,"id":1032}],"layout":{"__isSmartRef__":true,"id":1034},"showsHalos":false,"charsReplaced":"drei","lastFindLoc":18,"savedTextString":"Hello Welt","attributeConnections":[{"__isSmartRef__":true,"id":1035},{"__isSmartRef__":true,"id":1037},{"__isSmartRef__":true,"id":3062},{"__isSmartRef__":true,"id":3064},{"__isSmartRef__":true,"id":3066},{"__isSmartRef__":true,"id":3068},{"__isSmartRef__":true,"id":3083},{"__isSmartRef__":true,"id":3085},{"__isSmartRef__":true,"id":3087},{"__isSmartRef__":true,"id":3089},{"__isSmartRef__":true,"id":3091}],"doNotSerialize":["$$name","$$_Position","$$_Scale","$$_Rotation","$$owner"],"doNotCopyProperties":["$$name","$$_Position","$$_Scale","$$_Rotation","$$owner"],"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3106},"derivationIds":[3322,"225828F0-5F33-4C44-8D12-512AF1842054","9D5CA418-971D-4CA0-BA24-B79EC9098C17","E7E404FC-D8BC-4D23-9075-09EAA184F433","DBAE6E63-2262-48D2-81C2-25D62BB2C9ED","54A9FE9E-AB1F-4A7B-9046-19506B11EE11"],"_WordBreak":"break-all","isBeingDragged":false,"_FontSize":null,"name":"TextD","isLockOwner":false,"draggingEnabled":false,"_Scale":1.002,"_Rotation":0,"owner":{"__isSmartRef__":true,"id":960},"magnets":[{"__isSmartRef__":true,"id":3107},{"__isSmartRef__":true,"id":3108},{"__isSmartRef__":true,"id":3109},{"__isSmartRef__":true,"id":3110},{"__isSmartRef__":true,"id":3111},{"__isSmartRef__":true,"id":3112},{"__isSmartRef__":true,"id":3113},{"__isSmartRef__":true,"id":3114}],"isCopyMorphRef":true,"morphRefId":1,"__serializedExpressions__":["_Padding","distanceToDragEvent","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(2,1,0,0)","distanceToDragEvent":"lively.pt(108.9,-21.9)","_Position":"lively.pt(726.5,353.6)"},"1007":{"submorphs":[],"scripts":[],"id":"862EB446-1886-4BC4-80D5-31F19F7C83FB","shape":{"__isSmartRef__":true,"id":1008},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":180.8018403394826,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":9,"name":"NameLabel","partsBinMetaInfo":{"__isSmartRef__":true,"id":1009},"textChunks":[{"__isSmartRef__":true,"id":1011}],"charsReplaced":"Grr","lastFindLoc":-3,"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":1013},{"__isSmartRef__":true,"id":1014}],"doNotSerialize":["$$owner","$$savedTextString"],"doNotCopyProperties":["$$owner","$$savedTextString"],"isInputLine":true,"savedTextString":"TopLeft","eventHandler":{"__isSmartRef__":true,"id":1015},"owner":{"__isSmartRef__":true,"id":1006},"derivationIds":[7027,"C492960F-3ECC-4233-B8D1-F5B21D020A2B","DE1D87CC-02EB-4C78-B589-1AE6A076EED4","3E9F2334-CEAA-4ADD-AACB-FC78B83FD93E","81B73009-044B-40EC-A3E4-13F623C1D8A2","AA91484C-4E1D-425F-A042-9E63F635AA4D"],"_WhiteSpaceHandling":"pre-wrap","_ClipMode":"visible","moved":true,"oldOwner":{"__isSmartRef__":true,"id":1006},"isLockOwner":false,"_Rotation":0,"_Scale":1,"magnets":[{"__isSmartRef__":true,"id":1016},{"__isSmartRef__":true,"id":1017},{"__isSmartRef__":true,"id":1018},{"__isSmartRef__":true,"id":1019},{"__isSmartRef__":true,"id":1020},{"__isSmartRef__":true,"id":1021},{"__isSmartRef__":true,"id":1022},{"__isSmartRef__":true,"id":1023}],"__serializedExpressions__":["_Position","textColor","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1024},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.9,-14.8)","textColor":"Color.rgb(0,0,0)","distanceToDragEvent":"lively.pt(51.0,-9.1)"},"1008":{"fill":null,"_BorderWidth":0,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(75.8,14.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"1009":{"partsSpaceName":"PartsBin/Widgets/","migrationLevel":2,"comment":"Label that shows the name of a morph. Updates automatically.","partName":"NameLabel","lastModifiedDate":{"__isSmartRef__":true,"id":1010},"revisionOnLoad":140039,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1010":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1011":{"style":{"__isSmartRef__":true,"id":1012},"chunkOwner":{"__isSmartRef__":true,"id":1007},"_id":"_9140","storedString":"TextD","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1012":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1013":{"sourceObj":{"__isSmartRef__":true,"id":1007},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":1007},"targetMethodName":"updateLabel","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1014":{"sourceObj":{"__isSmartRef__":true,"id":1007},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":1007},"targetMethodName":"renameOwner","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1015":{"morph":{"__isSmartRef__":true,"id":1007},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1016":{"morph":{"__isSmartRef__":true,"id":1007},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(783.0,679.1)"},"1017":{"morph":{"__isSmartRef__":true,"id":1007},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(820.8,679.1)"},"1018":{"morph":{"__isSmartRef__":true,"id":1007},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(858.6,679.1)"},"1019":{"morph":{"__isSmartRef__":true,"id":1007},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(858.6,686.1)"},"1020":{"morph":{"__isSmartRef__":true,"id":1007},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(858.6,693.0)"},"1021":{"morph":{"__isSmartRef__":true,"id":1007},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(820.8,693.0)"},"1022":{"morph":{"__isSmartRef__":true,"id":1007},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(783.0,693.0)"},"1023":{"morph":{"__isSmartRef__":true,"id":1007},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(783.0,686.1)"},"1024":{"updateLabel":{"__isSmartRef__":true,"id":1025},"renameOwner":{"__isSmartRef__":true,"id":1028}},"1025":{"varMapping":{"__isSmartRef__":true,"id":1026},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tif (this.oldOwner)\n\t\t\tdisconnect(this.oldOwner, 'name', this, 'updateLabel')\n\t\tif (this.owner)\n\t\t\tconnect(this.owner, 'name', this, 'updateLabel')\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar name = (this.owner ? this.owner.name : \"no owner\")\n\tif (this.textString != name)\n\tthis.setTextString(name)\n}","funcProperties":{"__isSmartRef__":true,"id":1027},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1026":{"this":{"__isSmartRef__":true,"id":1007}},"1027":{},"1028":{"varMapping":{"__isSmartRef__":true,"id":1029},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":1030},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1029":{"this":{"__isSmartRef__":true,"id":1007}},"1030":{},"1031":{"_BorderWidth":2,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(152.5,111.1)","_BorderColor":"Color.rgb(165,165,165)","_Fill":"Color.rgb(238,243,209)","_Padding":"lively.rect(0,0,0,0)"},"1032":{"style":{"__isSmartRef__":true,"id":1033},"chunkOwner":{"__isSmartRef__":true,"id":1006},"_id":"_86","storedString":"one\ntwo trees\nthree houses\nfour","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1033":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1034":{"resizeWidth":true,"resizeHeight":true},"1035":{"sourceObj":{"__isSmartRef__":true,"id":1006},"sourceAttrName":"name","targetObj":{"__isSmartRef__":true,"id":1007},"targetMethodName":"updateLabel","varMapping":{"__isSmartRef__":true,"id":1036},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1036":{"source":{"__isSmartRef__":true,"id":1006},"target":{"__isSmartRef__":true,"id":1007}},"1037":{"sourceObj":{"__isSmartRef__":true,"id":1006},"sourceAttrName":"globalTransform","targetObj":{"__isSmartRef__":true,"id":1038},"targetMethodName":"updatePosition","varMapping":{"__isSmartRef__":true,"id":3061},"converterString":"function (value) { return this.sourceObj }","dependendConnections":[{"__isSmartRef__":true,"id":3062},{"__isSmartRef__":true,"id":3064},{"__isSmartRef__":true,"id":3066},{"__isSmartRef__":true,"id":3068},{"__isSmartRef__":true,"id":3070},{"__isSmartRef__":true,"id":3072},{"__isSmartRef__":true,"id":3074},{"__isSmartRef__":true,"id":3076}],"oldTransform":{"__isSmartRef__":true,"id":3078},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3080},"__LivelyClassName__":"lively.morphic.GeometryTransformConnection","__SourceModuleName__":"Global.lively.bindings.GeometryBindings"},"1038":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1039},"id":"60FE025A-D806-4561-8169-5EC714C928CE","eventHandler":{"__isSmartRef__":true,"id":1042},"__layered_droppingEnabled__":false,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":1043},{"__isSmartRef__":true,"id":1044}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1045},"name":"Connector6","derivationIds":[731,"5E6BD741-9C99-47B9-95C1-7A028178DB17","A8D5C37A-F23F-47FE-8DE2-211CE4484A4F","F722069B-8602-4E8D-BE3F-92A1E0C0EF28","D5ED19F9-968E-4C7E-9936-69F2735A813F","A9E370BC-F208-425C-BFFC-F8D6BB52E11F","4E431641-D056-46CB-B2A8-6626382EF423","5E9FF80A-8869-4D30-9A4C-37023352650B","1E262BB0-B5EB-43C7-AEEF-1721047BD34B","3AC3D636-420C-4F13-820E-C9305261C874","014B85BE-2960-474C-BA9C-7428E21F6D51","A1EDB105-2F3D-4448-AE9E-91A87BE1A9AB","4238A9AF-D49B-4B76-A31C-B50EF24C2AE3","F218405D-EC22-448F-9F4E-8A023F38A2F2","DF372334-FE86-4CA1-A61A-F6DBDFF21DB6","EE1893C0-855C-49AB-932B-86E42ACE320F","AF75DCF2-49F1-45FB-9383-C84651A0F391","5CD7B250-EF36-4F92-B17A-419B00C709C0","9BA1EB61-AAB3-4A9F-9BE2-EDEF1BCBBA9C","C78D9A1D-4AD1-4CDC-A976-1268516AEF1F","B68E9470-53A7-4685-9CBE-3CAA243D8E73","6FA0FFBF-2056-41B1-8097-BA87F89F2C7B"],"_ClipMode":"visible","controlPointsHalos":[],"prevScroll":[0,0],"grabbingEnabled":false,"moved":true,"#startLetters":"accep","update":{"__isSmartRef__":true,"id":1081},"isCopyMorphRef":true,"morphRefId":1,"selectedMorphHighlights":[],"lastOverTime":null,"lastKeyStrokeTime":null,"fromMorph":{"__isSmartRef__":true,"id":1006},"toMorph":{"__isSmartRef__":true,"id":1083},"selectedMorph":{"__isSmartRef__":true,"id":1083},"owner":{"__isSmartRef__":true,"id":960},"_Rotation":0,"_Scale":1.002,"__serializedExpressions__":["distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2900},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","distanceToDragEvent":"lively.pt(151.0,-12.3)","_Position":"lively.pt(715.0,352.7)"},"1039":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1040},{"__isSmartRef__":true,"id":1041}],"_ClipMode":"visible","_BorderWidth":5,"_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":true,"_BorderStylingMode":false,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-13.5,-9.6)","_Extent":"lively.pt(27.0,19.1)","_BorderColor":"Color.rgb(161,161,161)"},"1040":{"isAbsolute":true,"x":11.5,"y":7.558453473132431,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1041":{"isAbsolute":true,"x":-10.5,"y":-6.558453473132431,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1042":{"morph":{"__isSmartRef__":true,"id":1038},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1043":{"morph":{"__isSmartRef__":true,"id":1038},"index":0,"connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1044":{"morph":{"__isSmartRef__":true,"id":1038},"index":1,"connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1045":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Jens/","comment":"Yes, I think I got it again: Powerful and nice connectors.\nThis time 100 % Part only!","partName":"Connector","lastModifiedDate":{"__isSmartRef__":true,"id":1046},"changes":[{"__isSmartRef__":true,"id":1047},{"__isSmartRef__":true,"id":1049},{"__isSmartRef__":true,"id":1051},{"__isSmartRef__":true,"id":1053},{"__isSmartRef__":true,"id":1055},{"__isSmartRef__":true,"id":1057},{"__isSmartRef__":true,"id":1059},{"__isSmartRef__":true,"id":1061},{"__isSmartRef__":true,"id":1063},{"__isSmartRef__":true,"id":1065},{"__isSmartRef__":true,"id":1067},{"__isSmartRef__":true,"id":1069},{"__isSmartRef__":true,"id":1071},{"__isSmartRef__":true,"id":1073},{"__isSmartRef__":true,"id":1075},{"__isSmartRef__":true,"id":1077},{"__isSmartRef__":true,"id":1079}],"revisionOnLoad":204084,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1046":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1047":{"date":{"__isSmartRef__":true,"id":1048},"author":"jenslincke","message":"no comment","id":"D7359A4C-CE5D-4BB6-91CF-D47E8CD9DC8D"},"1048":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1049":{"date":{"__isSmartRef__":true,"id":1050},"author":"jenslincke","message":"no comment","id":"0DB540E7-E5AF-4800-BBD5-932B86D501BE"},"1050":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1051":{"date":{"__isSmartRef__":true,"id":1052},"author":"jenslincke","message":"no comment","id":"3AE4DB59-853F-4DB2-A99D-2822B27C73F2"},"1052":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1053":{"date":{"__isSmartRef__":true,"id":1054},"author":"jenslincke","message":"no comment","id":"DD1ABC51-1DCC-4B97-BDB4-355D28118CE9"},"1054":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1055":{"date":{"__isSmartRef__":true,"id":1056},"author":"jenslincke","message":"no comment","id":"92FDE03B-DE85-4805-84B6-3B6DA90E6348"},"1056":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1057":{"date":{"__isSmartRef__":true,"id":1058},"author":"jenslincke","message":"no comment","id":"3F64B004-21CC-4E77-82A4-642B296327F0"},"1058":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1059":{"date":{"__isSmartRef__":true,"id":1060},"author":"jenslincke","message":"no comment","id":"6E97D136-9F49-4570-8EC9-BFF3786EEA8D"},"1060":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1061":{"date":{"__isSmartRef__":true,"id":1062},"author":"jenslincke","message":"no comment","id":"A022B160-32B3-4AD2-A005-0A7B11B80584"},"1062":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1063":{"date":{"__isSmartRef__":true,"id":1064},"author":"jenslincke","message":"no comment","id":"B3F0BD32-A3D2-4AAB-97D5-8FB7637C6A9A"},"1064":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1065":{"date":{"__isSmartRef__":true,"id":1066},"author":"jenslincke","message":"no comment","id":"D8953E55-38AD-480A-8B9C-E4A86C90D48E"},"1066":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1067":{"date":{"__isSmartRef__":true,"id":1068},"author":"jenslincke","message":"no comment","id":"E9F9AE91-A058-465E-8F58-5CC00A962D0C"},"1068":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1069":{"date":{"__isSmartRef__":true,"id":1070},"author":"jenslincke","message":"no comment","id":"ED70FB47-8AA0-4D4E-8D90-FF99454C924B"},"1070":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1071":{"date":{"__isSmartRef__":true,"id":1072},"author":"jenslincke","message":"no comment","id":"28165CED-C8C5-4B8E-9655-645E3F5099BB"},"1072":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1073":{"date":{"__isSmartRef__":true,"id":1074},"author":"jenslincke","message":"no comment","id":"117C964B-9768-48F2-8EC8-D4328478198F"},"1074":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1075":{"date":{"__isSmartRef__":true,"id":1076},"author":"jenslincke","message":"no comment","id":"79159460-DFFB-462D-AFC9-EECD3539A1A9"},"1076":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1077":{"date":{"__isSmartRef__":true,"id":1078},"author":"jenslincke","message":"no comment","id":"3D5067AE-5BA0-4317-837F-59F8F61B8B24"},"1078":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1079":{"date":{"__isSmartRef__":true,"id":1080},"author":"jenslincke","message":"fixed scaling issues","id":"97E95E76-A88F-44AB-A6E9-6BA5DCC4045D"},"1080":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1081":{"d":1,"a":1,"f":906.1,"e":107.8,"c":0,"b":0,"matrix_":{"__isSmartRef__":true,"id":1082},"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1082":{"a":1,"b":0,"c":0,"d":1,"e":107.8,"f":906.1,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1083":{"submorphs":[{"__isSmartRef__":true,"id":1084}],"scripts":[],"id":"FF5F3E62-F706-4196-8DAF-905EDE556BBF","shape":{"__isSmartRef__":true,"id":1108},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monospace","_MaxTextWidth":840.9565744975525,"_MaxTextHeight":105.11122875287208,"textChunks":[{"__isSmartRef__":true,"id":1109}],"layout":{"__isSmartRef__":true,"id":1111},"showsHalos":false,"name":"PatchesSource","prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1112},"derivationIds":[3321,"FD5BBFA3-B21B-4DD7-9FAA-1F4EAF47F242","D7B51406-D9FB-4997-AE49-E977324E8EB3","76A91CBF-D041-42B8-AF28-8AD931F65D02","F8D4EBEF-32FF-4E5A-8CF8-51E42ECE040E","4487811C-87A5-44E0-BDAA-CC9CB0070192"],"_WordBreak":"break-all","isBeingDragged":false,"_FontSize":9,"savedTextString":"[[0,\"eins\\nzwei\\n\"],[-1,\"HALLO\"],[1,\"drei\"],[0,\"\\nvier\\nH\"],[-1,\"a\"],[1,\"e\"],[0,\"llo\\none\\n...\\n5\\nvier\\n\"],[-1,\"Hallo\"],[1,\"Bon jour\"],[0,\"\\none\\ntwo\\nthree\\nfour\"],[-1,\"\\n\"]]","previousSelection":[98,98],"isLockOwner":false,"draggingEnabled":false,"attributeConnections":[{"__isSmartRef__":true,"id":1113},{"__isSmartRef__":true,"id":1115},{"__isSmartRef__":true,"id":1117},{"__isSmartRef__":true,"id":2821},{"__isSmartRef__":true,"id":2823},{"__isSmartRef__":true,"id":2825},{"__isSmartRef__":true,"id":2827},{"__isSmartRef__":true,"id":2842},{"__isSmartRef__":true,"id":2844},{"__isSmartRef__":true,"id":2846},{"__isSmartRef__":true,"id":2848},{"__isSmartRef__":true,"id":2850},{"__isSmartRef__":true,"id":2865},{"__isSmartRef__":true,"id":2867},{"__isSmartRef__":true,"id":2869},{"__isSmartRef__":true,"id":2871},{"__isSmartRef__":true,"id":2873}],"doNotSerialize":["$$textString","$$name","$$_Position","$$_Scale","$$_Rotation","$$owner"],"doNotCopyProperties":["$$textString","$$name","$$_Position","$$_Scale","$$_Rotation","$$owner"],"charsReplaced":"","lastFindLoc":101,"_PreviousBorderWidth":0,"isCopyMorphRef":true,"morphRefId":2,"_Scale":1.002,"_Rotation":0,"owner":{"__isSmartRef__":true,"id":960},"magnets":[{"__isSmartRef__":true,"id":2888},{"__isSmartRef__":true,"id":2889},{"__isSmartRef__":true,"id":2890},{"__isSmartRef__":true,"id":2891},{"__isSmartRef__":true,"id":2892},{"__isSmartRef__":true,"id":2893},{"__isSmartRef__":true,"id":2894},{"__isSmartRef__":true,"id":2895}],"__serializedExpressions__":["_Padding","distanceToDragEvent","_Position"],"textString":"@@ -1,15 +1,21 @@\n one%0Atwo\n+ trees\n %0Athree%0Af\n@@ -6,13 +6,20 @@\n wo%0Athree\n+ houses\n %0Afour\n","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2896},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(2,1,0,0)","distanceToDragEvent":"lively.pt(129.0,-36.2)","_Position":"lively.pt(519.5,198.0)"},"1084":{"submorphs":[],"scripts":[],"id":"FF7A8D97-3405-4B84-B244-8F2C59C7DC27","shape":{"__isSmartRef__":true,"id":1085},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":180.8018403394826,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":9,"name":"NameLabel1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1086},"textChunks":[{"__isSmartRef__":true,"id":1088}],"charsReplaced":"Grr","lastFindLoc":-3,"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":1090},{"__isSmartRef__":true,"id":1091}],"doNotSerialize":["$$owner","$$savedTextString"],"doNotCopyProperties":["$$owner","$$savedTextString"],"isInputLine":true,"savedTextString":"TopLeft","eventHandler":{"__isSmartRef__":true,"id":1092},"derivationIds":[7027,"C492960F-3ECC-4233-B8D1-F5B21D020A2B","5BA65412-4427-4418-B8D5-7933B34DF534","7FFAA682-0262-490F-BBC0-AA36245644FB","01D0E96F-F219-40CC-913B-E212E80CB730","4DB54A69-3EE3-4EF7-9A34-2E6DD67D88E0"],"_WhiteSpaceHandling":"pre-wrap","_ClipMode":"visible","moved":true,"oldOwner":{"__isSmartRef__":true,"id":1083},"isLockOwner":false,"owner":{"__isSmartRef__":true,"id":1083},"_Rotation":0,"_Scale":1,"magnets":[{"__isSmartRef__":true,"id":1093},{"__isSmartRef__":true,"id":1094},{"__isSmartRef__":true,"id":1095},{"__isSmartRef__":true,"id":1096},{"__isSmartRef__":true,"id":1097},{"__isSmartRef__":true,"id":1098},{"__isSmartRef__":true,"id":1099},{"__isSmartRef__":true,"id":1100}],"__serializedExpressions__":["_Position","textColor","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1101},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-2.0,-18.0)","textColor":"Color.rgb(0,0,0)","distanceToDragEvent":"lively.pt(60.0,-13.1)"},"1085":{"fill":null,"_BorderWidth":0,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(75.8,14.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"1086":{"partsSpaceName":"PartsBin/Widgets/","migrationLevel":2,"comment":"Label that shows the name of a morph. Updates automatically.","partName":"NameLabel","lastModifiedDate":{"__isSmartRef__":true,"id":1087},"revisionOnLoad":140039,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1087":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1088":{"style":{"__isSmartRef__":true,"id":1089},"chunkOwner":{"__isSmartRef__":true,"id":1084},"_id":"_52203","storedString":"PatchesSource","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1089":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1090":{"sourceObj":{"__isSmartRef__":true,"id":1084},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":1084},"targetMethodName":"updateLabel","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1091":{"sourceObj":{"__isSmartRef__":true,"id":1084},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":1084},"targetMethodName":"renameOwner","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1092":{"morph":{"__isSmartRef__":true,"id":1084},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1093":{"morph":{"__isSmartRef__":true,"id":1084},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(520.0,626.1)"},"1094":{"morph":{"__isSmartRef__":true,"id":1084},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(557.8,626.1)"},"1095":{"morph":{"__isSmartRef__":true,"id":1084},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(595.6,626.1)"},"1096":{"morph":{"__isSmartRef__":true,"id":1084},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(595.6,633.1)"},"1097":{"morph":{"__isSmartRef__":true,"id":1084},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(595.6,640.1)"},"1098":{"morph":{"__isSmartRef__":true,"id":1084},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(557.8,640.1)"},"1099":{"morph":{"__isSmartRef__":true,"id":1084},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(520.0,640.1)"},"1100":{"morph":{"__isSmartRef__":true,"id":1084},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(520.0,633.1)"},"1101":{"updateLabel":{"__isSmartRef__":true,"id":1102},"renameOwner":{"__isSmartRef__":true,"id":1105}},"1102":{"varMapping":{"__isSmartRef__":true,"id":1103},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tif (this.oldOwner)\n\t\t\tdisconnect(this.oldOwner, 'name', this, 'updateLabel')\n\t\tif (this.owner)\n\t\t\tconnect(this.owner, 'name', this, 'updateLabel')\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar name = (this.owner ? this.owner.name : \"no owner\")\n\tif (this.textString != name)\n\tthis.setTextString(name)\n}","funcProperties":{"__isSmartRef__":true,"id":1104},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1103":{"this":{"__isSmartRef__":true,"id":1084}},"1104":{},"1105":{"varMapping":{"__isSmartRef__":true,"id":1106},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":1107},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1106":{"this":{"__isSmartRef__":true,"id":1084}},"1107":{},"1108":{"_BorderWidth":0,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":true,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(185.0,177.5)","_BorderColor":"Color.rgb(225,225,225)","_Fill":"Color.rgb(0,204,0)","_Padding":"lively.rect(0,0,0,0)"},"1109":{"style":{"__isSmartRef__":true,"id":1110},"chunkOwner":{"__isSmartRef__":true,"id":1083},"_id":"_85","storedString":"@@ -1,15 +1,21 @@\n one%0Atwo\n+ trees\n %0Athree%0Af\n@@ -6,13 +6,20 @@\n wo%0Athree\n+ houses\n %0Afour\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1110":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1111":{"resizeWidth":true,"resizeHeight":true},"1112":{"morph":{"__isSmartRef__":true,"id":1083},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1113":{"sourceObj":{"__isSmartRef__":true,"id":1083},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":960},"targetMethodName":"applyPatches","varMapping":{"__isSmartRef__":true,"id":1114},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1114":{"source":{"__isSmartRef__":true,"id":1083},"target":{"__isSmartRef__":true,"id":960}},"1115":{"sourceObj":{"__isSmartRef__":true,"id":1083},"sourceAttrName":"name","targetObj":{"__isSmartRef__":true,"id":1084},"targetMethodName":"updateLabel","varMapping":{"__isSmartRef__":true,"id":1116},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1116":{"source":{"__isSmartRef__":true,"id":1083},"target":{"__isSmartRef__":true,"id":1084}},"1117":{"sourceObj":{"__isSmartRef__":true,"id":1083},"sourceAttrName":"globalTransform","targetObj":{"__isSmartRef__":true,"id":1118},"targetMethodName":"updatePosition","varMapping":{"__isSmartRef__":true,"id":2820},"converterString":"function (value) { return this.sourceObj }","dependendConnections":[{"__isSmartRef__":true,"id":2821},{"__isSmartRef__":true,"id":2823},{"__isSmartRef__":true,"id":2825},{"__isSmartRef__":true,"id":2827},{"__isSmartRef__":true,"id":2829},{"__isSmartRef__":true,"id":2831},{"__isSmartRef__":true,"id":2833},{"__isSmartRef__":true,"id":2835}],"oldTransform":{"__isSmartRef__":true,"id":2837},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2839},"__LivelyClassName__":"lively.morphic.GeometryTransformConnection","__SourceModuleName__":"Global.lively.bindings.GeometryBindings"},"1118":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1119},"id":"FB67629C-9B97-44BD-A217-2118AD0DE0CC","eventHandler":{"__isSmartRef__":true,"id":1122},"__layered_droppingEnabled__":false,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":1123},{"__isSmartRef__":true,"id":1124}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1125},"name":"Connector3","derivationIds":[731,"5E6BD741-9C99-47B9-95C1-7A028178DB17","A8D5C37A-F23F-47FE-8DE2-211CE4484A4F","F722069B-8602-4E8D-BE3F-92A1E0C0EF28","D5ED19F9-968E-4C7E-9936-69F2735A813F","A9E370BC-F208-425C-BFFC-F8D6BB52E11F","4E431641-D056-46CB-B2A8-6626382EF423","5E9FF80A-8869-4D30-9A4C-37023352650B","1E262BB0-B5EB-43C7-AEEF-1721047BD34B","3AC3D636-420C-4F13-820E-C9305261C874","014B85BE-2960-474C-BA9C-7428E21F6D51","A1EDB105-2F3D-4448-AE9E-91A87BE1A9AB","4238A9AF-D49B-4B76-A31C-B50EF24C2AE3","F218405D-EC22-448F-9F4E-8A023F38A2F2","DF372334-FE86-4CA1-A61A-F6DBDFF21DB6","EE1893C0-855C-49AB-932B-86E42ACE320F","AF75DCF2-49F1-45FB-9383-C84651A0F391","5CD7B250-EF36-4F92-B17A-419B00C709C0","2FAF788C-F9E2-45EE-B4E1-9125BC5FA6BA","C32FD68B-0D48-4F45-879C-E24CB76122DE"],"_ClipMode":"visible","controlPointsHalos":[],"prevScroll":[0,0],"grabbingEnabled":false,"moved":true,"#startLetters":"accep","update":{"__isSmartRef__":true,"id":1161},"isCopyMorphRef":true,"morphRefId":1,"selectedMorphHighlights":[],"lastOverTime":null,"lastKeyStrokeTime":null,"fromMorph":{"__isSmartRef__":true,"id":1083},"toMorph":{"__isSmartRef__":true,"id":1163},"owner":{"__isSmartRef__":true,"id":960},"_Rotation":0,"_Scale":1.002,"selectedMorph":{"__isSmartRef__":true,"id":1163},"__serializedExpressions__":["distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2659},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","distanceToDragEvent":"lively.pt(151.0,-12.3)","_Position":"lively.pt(488.2,270.7)"},"1119":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1120},{"__isSmartRef__":true,"id":1121}],"_ClipMode":"visible","_BorderWidth":5,"_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":true,"_BorderStylingMode":false,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-33.2,-6.4)","_Extent":"lively.pt(66.5,12.7)","_BorderColor":"Color.rgb(161,161,161)"},"1120":{"isAbsolute":true,"x":31.24999999999997,"y":4.374282877316858,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1121":{"isAbsolute":true,"x":-30.24999999999997,"y":-3.3742828773168583,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1122":{"morph":{"__isSmartRef__":true,"id":1118},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1123":{"morph":{"__isSmartRef__":true,"id":1118},"index":0,"connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1124":{"morph":{"__isSmartRef__":true,"id":1118},"index":1,"connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1125":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Jens/","comment":"Yes, I think I got it again: Powerful and nice connectors.\nThis time 100 % Part only!","partName":"Connector","lastModifiedDate":{"__isSmartRef__":true,"id":1126},"changes":[{"__isSmartRef__":true,"id":1127},{"__isSmartRef__":true,"id":1129},{"__isSmartRef__":true,"id":1131},{"__isSmartRef__":true,"id":1133},{"__isSmartRef__":true,"id":1135},{"__isSmartRef__":true,"id":1137},{"__isSmartRef__":true,"id":1139},{"__isSmartRef__":true,"id":1141},{"__isSmartRef__":true,"id":1143},{"__isSmartRef__":true,"id":1145},{"__isSmartRef__":true,"id":1147},{"__isSmartRef__":true,"id":1149},{"__isSmartRef__":true,"id":1151},{"__isSmartRef__":true,"id":1153},{"__isSmartRef__":true,"id":1155},{"__isSmartRef__":true,"id":1157},{"__isSmartRef__":true,"id":1159}],"revisionOnLoad":204084,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1126":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1127":{"date":{"__isSmartRef__":true,"id":1128},"author":"jenslincke","message":"no comment","id":"D7359A4C-CE5D-4BB6-91CF-D47E8CD9DC8D"},"1128":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1129":{"date":{"__isSmartRef__":true,"id":1130},"author":"jenslincke","message":"no comment","id":"0DB540E7-E5AF-4800-BBD5-932B86D501BE"},"1130":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1131":{"date":{"__isSmartRef__":true,"id":1132},"author":"jenslincke","message":"no comment","id":"3AE4DB59-853F-4DB2-A99D-2822B27C73F2"},"1132":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1133":{"date":{"__isSmartRef__":true,"id":1134},"author":"jenslincke","message":"no comment","id":"DD1ABC51-1DCC-4B97-BDB4-355D28118CE9"},"1134":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1135":{"date":{"__isSmartRef__":true,"id":1136},"author":"jenslincke","message":"no comment","id":"92FDE03B-DE85-4805-84B6-3B6DA90E6348"},"1136":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1137":{"date":{"__isSmartRef__":true,"id":1138},"author":"jenslincke","message":"no comment","id":"3F64B004-21CC-4E77-82A4-642B296327F0"},"1138":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1139":{"date":{"__isSmartRef__":true,"id":1140},"author":"jenslincke","message":"no comment","id":"6E97D136-9F49-4570-8EC9-BFF3786EEA8D"},"1140":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1141":{"date":{"__isSmartRef__":true,"id":1142},"author":"jenslincke","message":"no comment","id":"A022B160-32B3-4AD2-A005-0A7B11B80584"},"1142":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1143":{"date":{"__isSmartRef__":true,"id":1144},"author":"jenslincke","message":"no comment","id":"B3F0BD32-A3D2-4AAB-97D5-8FB7637C6A9A"},"1144":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1145":{"date":{"__isSmartRef__":true,"id":1146},"author":"jenslincke","message":"no comment","id":"D8953E55-38AD-480A-8B9C-E4A86C90D48E"},"1146":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1147":{"date":{"__isSmartRef__":true,"id":1148},"author":"jenslincke","message":"no comment","id":"E9F9AE91-A058-465E-8F58-5CC00A962D0C"},"1148":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1149":{"date":{"__isSmartRef__":true,"id":1150},"author":"jenslincke","message":"no comment","id":"ED70FB47-8AA0-4D4E-8D90-FF99454C924B"},"1150":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1151":{"date":{"__isSmartRef__":true,"id":1152},"author":"jenslincke","message":"no comment","id":"28165CED-C8C5-4B8E-9655-645E3F5099BB"},"1152":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1153":{"date":{"__isSmartRef__":true,"id":1154},"author":"jenslincke","message":"no comment","id":"117C964B-9768-48F2-8EC8-D4328478198F"},"1154":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1155":{"date":{"__isSmartRef__":true,"id":1156},"author":"jenslincke","message":"no comment","id":"79159460-DFFB-462D-AFC9-EECD3539A1A9"},"1156":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1157":{"date":{"__isSmartRef__":true,"id":1158},"author":"jenslincke","message":"no comment","id":"3D5067AE-5BA0-4317-837F-59F8F61B8B24"},"1158":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1159":{"date":{"__isSmartRef__":true,"id":1160},"author":"jenslincke","message":"fixed scaling issues","id":"97E95E76-A88F-44AB-A6E9-6BA5DCC4045D"},"1160":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1161":{"d":1,"a":1,"f":906.1,"e":107.8,"c":0,"b":0,"matrix_":{"__isSmartRef__":true,"id":1162},"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1162":{"a":1,"b":0,"c":0,"d":1,"e":107.8,"f":906.1,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1163":{"submorphs":[{"__isSmartRef__":true,"id":1164}],"scripts":[],"id":"C0AF06B1-A138-4C5D-A957-3564508917C7","shape":{"__isSmartRef__":true,"id":1188},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_MaxTextWidth":394.84879006641484,"_MaxTextHeight":193.9335840422932,"textChunks":[{"__isSmartRef__":true,"id":1189},{"__isSmartRef__":true,"id":1191},{"__isSmartRef__":true,"id":1193}],"layout":{"__isSmartRef__":true,"id":1195},"showsHalos":false,"charsReplaced":"drei","lastFindLoc":18,"savedTextString":"Hello Welt","attributeConnections":[{"__isSmartRef__":true,"id":1196},{"__isSmartRef__":true,"id":1198},{"__isSmartRef__":true,"id":2312},{"__isSmartRef__":true,"id":2314},{"__isSmartRef__":true,"id":2316},{"__isSmartRef__":true,"id":2318},{"__isSmartRef__":true,"id":2333},{"__isSmartRef__":true,"id":2606},{"__isSmartRef__":true,"id":2608},{"__isSmartRef__":true,"id":2610},{"__isSmartRef__":true,"id":2612},{"__isSmartRef__":true,"id":2627},{"__isSmartRef__":true,"id":2629},{"__isSmartRef__":true,"id":2631},{"__isSmartRef__":true,"id":2633},{"__isSmartRef__":true,"id":2635}],"doNotSerialize":["$$name","$$_Position","$$_Scale","$$_Rotation","$$owner"],"doNotCopyProperties":["$$name","$$_Position","$$_Scale","$$_Rotation","$$owner"],"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2650},"derivationIds":[3322,"225828F0-5F33-4C44-8D12-512AF1842054","B492D751-72E9-4542-AC4B-9B0BFBEEC00B","614836F0-DA7B-428C-B6C2-757C0FA1840B","5D668DD9-0D0D-419F-814C-F3347B8A4178"],"_WordBreak":"break-all","isBeingDragged":false,"_FontSize":null,"name":"TextBDiff","isLockOwner":false,"draggingEnabled":false,"isCopyMorphRef":true,"morphRefId":2,"_Scale":1.002,"_Rotation":0,"owner":{"__isSmartRef__":true,"id":960},"magnets":[{"__isSmartRef__":true,"id":2651},{"__isSmartRef__":true,"id":2652},{"__isSmartRef__":true,"id":2653},{"__isSmartRef__":true,"id":2654},{"__isSmartRef__":true,"id":2655},{"__isSmartRef__":true,"id":2656},{"__isSmartRef__":true,"id":2657},{"__isSmartRef__":true,"id":2658}],"__serializedExpressions__":["_Padding","distanceToDragEvent","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(2,1,0,0)","distanceToDragEvent":"lively.pt(99.8,-26.8)","_Position":"lively.pt(312.8,210.3)"},"1164":{"submorphs":[],"scripts":[],"id":"B1A1E6C6-7CF4-4752-A278-7CEDA2FCEBB8","shape":{"__isSmartRef__":true,"id":1165},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":180.8018403394826,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":9,"name":"NameLabel","partsBinMetaInfo":{"__isSmartRef__":true,"id":1166},"textChunks":[{"__isSmartRef__":true,"id":1168}],"charsReplaced":"Grr","lastFindLoc":-3,"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":1170},{"__isSmartRef__":true,"id":1171}],"doNotSerialize":["$$owner","$$savedTextString"],"doNotCopyProperties":["$$owner","$$savedTextString"],"isInputLine":true,"savedTextString":"TopLeft","eventHandler":{"__isSmartRef__":true,"id":1172},"owner":{"__isSmartRef__":true,"id":1163},"derivationIds":[7027,"C492960F-3ECC-4233-B8D1-F5B21D020A2B","5BA65412-4427-4418-B8D5-7933B34DF534","78133D25-D66C-4B2B-9CA7-2C351E96C1E2","6B77F895-FF89-4BDC-A1A2-6055FD71C8CD"],"_WhiteSpaceHandling":"pre-wrap","_ClipMode":"visible","moved":true,"oldOwner":{"__isSmartRef__":true,"id":1163},"isLockOwner":false,"_Rotation":0,"_Scale":1,"priorSelectionRange":[5,5],"magnets":[{"__isSmartRef__":true,"id":1173},{"__isSmartRef__":true,"id":1174},{"__isSmartRef__":true,"id":1175},{"__isSmartRef__":true,"id":1176},{"__isSmartRef__":true,"id":1177},{"__isSmartRef__":true,"id":1178},{"__isSmartRef__":true,"id":1179},{"__isSmartRef__":true,"id":1180}],"__serializedExpressions__":["_Position","textColor","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1181},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.9,-14.8)","textColor":"Color.rgb(0,0,0)","distanceToDragEvent":"lively.pt(51.0,-9.1)"},"1165":{"fill":null,"_BorderWidth":0,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(75.8,14.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"1166":{"partsSpaceName":"PartsBin/Widgets/","migrationLevel":2,"comment":"Label that shows the name of a morph. Updates automatically.","partName":"NameLabel","lastModifiedDate":{"__isSmartRef__":true,"id":1167},"revisionOnLoad":140039,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1167":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1168":{"style":{"__isSmartRef__":true,"id":1169},"chunkOwner":{"__isSmartRef__":true,"id":1164},"_id":"_22673","storedString":"TextBDiff","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1169":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1170":{"sourceObj":{"__isSmartRef__":true,"id":1164},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":1164},"targetMethodName":"updateLabel","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1171":{"sourceObj":{"__isSmartRef__":true,"id":1164},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":1164},"targetMethodName":"renameOwner","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1172":{"morph":{"__isSmartRef__":true,"id":1164},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1173":{"morph":{"__isSmartRef__":true,"id":1164},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(453.0,427.1)"},"1174":{"morph":{"__isSmartRef__":true,"id":1164},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(490.9,427.1)"},"1175":{"morph":{"__isSmartRef__":true,"id":1164},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(528.7,427.1)"},"1176":{"morph":{"__isSmartRef__":true,"id":1164},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(528.7,434.1)"},"1177":{"morph":{"__isSmartRef__":true,"id":1164},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(528.7,441.1)"},"1178":{"morph":{"__isSmartRef__":true,"id":1164},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(490.9,441.1)"},"1179":{"morph":{"__isSmartRef__":true,"id":1164},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(453.0,441.1)"},"1180":{"morph":{"__isSmartRef__":true,"id":1164},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(453.0,434.1)"},"1181":{"updateLabel":{"__isSmartRef__":true,"id":1182},"renameOwner":{"__isSmartRef__":true,"id":1185}},"1182":{"varMapping":{"__isSmartRef__":true,"id":1183},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tif (this.oldOwner)\n\t\t\tdisconnect(this.oldOwner, 'name', this, 'updateLabel')\n\t\tif (this.owner)\n\t\t\tconnect(this.owner, 'name', this, 'updateLabel')\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar name = (this.owner ? this.owner.name : \"no owner\")\n\tif (this.textString != name)\n\tthis.setTextString(name)\n}","funcProperties":{"__isSmartRef__":true,"id":1184},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1183":{"this":{"__isSmartRef__":true,"id":1164}},"1184":{},"1185":{"varMapping":{"__isSmartRef__":true,"id":1186},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":1187},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1186":{"this":{"__isSmartRef__":true,"id":1164}},"1187":{},"1188":{"_BorderWidth":2,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(145.2,95.8)","_BorderColor":"Color.rgb(165,165,165)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"1189":{"style":{"__isSmartRef__":true,"id":1190},"chunkOwner":{"__isSmartRef__":true,"id":1163},"_id":"_79","storedString":"one\ntwo","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1190":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1191":{"_id":"_80","style":{"__isSmartRef__":true,"id":1192},"chunkOwner":{"__isSmartRef__":true,"id":1163},"storedString":" trees","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1192":{"color":"green","textDecoration":"underline","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1193":{"_id":"_81","style":{"__isSmartRef__":true,"id":1194},"chunkOwner":{"__isSmartRef__":true,"id":1163},"storedString":"\nthree\nfour","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1194":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1195":{"resizeWidth":true,"resizeHeight":true},"1196":{"sourceObj":{"__isSmartRef__":true,"id":1163},"sourceAttrName":"name","targetObj":{"__isSmartRef__":true,"id":1164},"targetMethodName":"updateLabel","varMapping":{"__isSmartRef__":true,"id":1197},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1197":{"source":{"__isSmartRef__":true,"id":1163},"target":{"__isSmartRef__":true,"id":1164}},"1198":{"sourceObj":{"__isSmartRef__":true,"id":1163},"sourceAttrName":"globalTransform","targetObj":{"__isSmartRef__":true,"id":1199},"targetMethodName":"updatePosition","varMapping":{"__isSmartRef__":true,"id":2311},"converterString":"function (value) { return this.sourceObj }","dependendConnections":[{"__isSmartRef__":true,"id":2312},{"__isSmartRef__":true,"id":2314},{"__isSmartRef__":true,"id":2316},{"__isSmartRef__":true,"id":2318},{"__isSmartRef__":true,"id":2320},{"__isSmartRef__":true,"id":2322},{"__isSmartRef__":true,"id":2324},{"__isSmartRef__":true,"id":2326}],"oldTransform":{"__isSmartRef__":true,"id":2328},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2330},"__LivelyClassName__":"lively.morphic.GeometryTransformConnection","__SourceModuleName__":"Global.lively.bindings.GeometryBindings"},"1199":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1200},"id":"E33192E3-861A-4C2E-9037-E97106892FA7","eventHandler":{"__isSmartRef__":true,"id":1203},"__layered_droppingEnabled__":false,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":1204},{"__isSmartRef__":true,"id":1205}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1206},"name":"Connector1","derivationIds":[731,"5E6BD741-9C99-47B9-95C1-7A028178DB17","A8D5C37A-F23F-47FE-8DE2-211CE4484A4F","F722069B-8602-4E8D-BE3F-92A1E0C0EF28","D5ED19F9-968E-4C7E-9936-69F2735A813F","A9E370BC-F208-425C-BFFC-F8D6BB52E11F","4E431641-D056-46CB-B2A8-6626382EF423","5E9FF80A-8869-4D30-9A4C-37023352650B","1E262BB0-B5EB-43C7-AEEF-1721047BD34B","3AC3D636-420C-4F13-820E-C9305261C874","014B85BE-2960-474C-BA9C-7428E21F6D51","A1EDB105-2F3D-4448-AE9E-91A87BE1A9AB","4238A9AF-D49B-4B76-A31C-B50EF24C2AE3","F218405D-EC22-448F-9F4E-8A023F38A2F2","DF372334-FE86-4CA1-A61A-F6DBDFF21DB6","EE1893C0-855C-49AB-932B-86E42ACE320F","AF75DCF2-49F1-45FB-9383-C84651A0F391","34601FFB-B066-4F62-B446-6CED5F01D672","A5E27AAE-79D9-4510-984C-0F918F6D72F9","F5F808D9-7A02-4E20-84B3-75C5677D8B1E"],"_ClipMode":"visible","controlPointsHalos":[],"prevScroll":[0,0],"grabbingEnabled":false,"moved":true,"#startLetters":"accep","update":{"__isSmartRef__":true,"id":1242},"isCopyMorphRef":true,"morphRefId":1,"selectedMorphHighlights":[],"lastOverTime":null,"lastKeyStrokeTime":null,"fromMorph":{"__isSmartRef__":true,"id":1244},"toMorph":{"__isSmartRef__":true,"id":1163},"owner":{"__isSmartRef__":true,"id":960},"_Rotation":0,"_Scale":1.002,"selectedMorph":{"__isSmartRef__":true,"id":1163},"__serializedExpressions__":["distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2150},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","distanceToDragEvent":"lively.pt(151.0,-12.3)","_Position":"lively.pt(243.7,297.9)"},"1200":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1201},{"__isSmartRef__":true,"id":1202}],"_ClipMode":"visible","_BorderWidth":5,"_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":true,"_BorderStylingMode":false,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-71.1,-22.0)","_Extent":"lively.pt(142.2,44.0)","_BorderColor":"Color.rgb(161,161,161)"},"1201":{"isAbsolute":true,"x":-68.09999999999998,"y":20.00666666666669,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1202":{"isAbsolute":true,"x":69.09999999999998,"y":-19.00666666666669,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1203":{"morph":{"__isSmartRef__":true,"id":1199},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1204":{"morph":{"__isSmartRef__":true,"id":1199},"index":0,"connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1205":{"morph":{"__isSmartRef__":true,"id":1199},"index":1,"connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1206":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Jens/","comment":"Yes, I think I got it again: Powerful and nice connectors.\nThis time 100 % Part only!","partName":"Connector","lastModifiedDate":{"__isSmartRef__":true,"id":1207},"changes":[{"__isSmartRef__":true,"id":1208},{"__isSmartRef__":true,"id":1210},{"__isSmartRef__":true,"id":1212},{"__isSmartRef__":true,"id":1214},{"__isSmartRef__":true,"id":1216},{"__isSmartRef__":true,"id":1218},{"__isSmartRef__":true,"id":1220},{"__isSmartRef__":true,"id":1222},{"__isSmartRef__":true,"id":1224},{"__isSmartRef__":true,"id":1226},{"__isSmartRef__":true,"id":1228},{"__isSmartRef__":true,"id":1230},{"__isSmartRef__":true,"id":1232},{"__isSmartRef__":true,"id":1234},{"__isSmartRef__":true,"id":1236},{"__isSmartRef__":true,"id":1238},{"__isSmartRef__":true,"id":1240}],"revisionOnLoad":204084,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1207":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1208":{"date":{"__isSmartRef__":true,"id":1209},"author":"jenslincke","message":"no comment","id":"D7359A4C-CE5D-4BB6-91CF-D47E8CD9DC8D"},"1209":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1210":{"date":{"__isSmartRef__":true,"id":1211},"author":"jenslincke","message":"no comment","id":"0DB540E7-E5AF-4800-BBD5-932B86D501BE"},"1211":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1212":{"date":{"__isSmartRef__":true,"id":1213},"author":"jenslincke","message":"no comment","id":"3AE4DB59-853F-4DB2-A99D-2822B27C73F2"},"1213":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1214":{"date":{"__isSmartRef__":true,"id":1215},"author":"jenslincke","message":"no comment","id":"DD1ABC51-1DCC-4B97-BDB4-355D28118CE9"},"1215":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1216":{"date":{"__isSmartRef__":true,"id":1217},"author":"jenslincke","message":"no comment","id":"92FDE03B-DE85-4805-84B6-3B6DA90E6348"},"1217":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1218":{"date":{"__isSmartRef__":true,"id":1219},"author":"jenslincke","message":"no comment","id":"3F64B004-21CC-4E77-82A4-642B296327F0"},"1219":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1220":{"date":{"__isSmartRef__":true,"id":1221},"author":"jenslincke","message":"no comment","id":"6E97D136-9F49-4570-8EC9-BFF3786EEA8D"},"1221":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1222":{"date":{"__isSmartRef__":true,"id":1223},"author":"jenslincke","message":"no comment","id":"A022B160-32B3-4AD2-A005-0A7B11B80584"},"1223":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1224":{"date":{"__isSmartRef__":true,"id":1225},"author":"jenslincke","message":"no comment","id":"B3F0BD32-A3D2-4AAB-97D5-8FB7637C6A9A"},"1225":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1226":{"date":{"__isSmartRef__":true,"id":1227},"author":"jenslincke","message":"no comment","id":"D8953E55-38AD-480A-8B9C-E4A86C90D48E"},"1227":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1228":{"date":{"__isSmartRef__":true,"id":1229},"author":"jenslincke","message":"no comment","id":"E9F9AE91-A058-465E-8F58-5CC00A962D0C"},"1229":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1230":{"date":{"__isSmartRef__":true,"id":1231},"author":"jenslincke","message":"no comment","id":"ED70FB47-8AA0-4D4E-8D90-FF99454C924B"},"1231":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1232":{"date":{"__isSmartRef__":true,"id":1233},"author":"jenslincke","message":"no comment","id":"28165CED-C8C5-4B8E-9655-645E3F5099BB"},"1233":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1234":{"date":{"__isSmartRef__":true,"id":1235},"author":"jenslincke","message":"no comment","id":"117C964B-9768-48F2-8EC8-D4328478198F"},"1235":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1236":{"date":{"__isSmartRef__":true,"id":1237},"author":"jenslincke","message":"no comment","id":"79159460-DFFB-462D-AFC9-EECD3539A1A9"},"1237":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1238":{"date":{"__isSmartRef__":true,"id":1239},"author":"jenslincke","message":"no comment","id":"3D5067AE-5BA0-4317-837F-59F8F61B8B24"},"1239":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1240":{"date":{"__isSmartRef__":true,"id":1241},"author":"jenslincke","message":"fixed scaling issues","id":"97E95E76-A88F-44AB-A6E9-6BA5DCC4045D"},"1241":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1242":{"d":1,"a":1,"f":906.1,"e":107.8,"c":0,"b":0,"matrix_":{"__isSmartRef__":true,"id":1243},"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1243":{"a":1,"b":0,"c":0,"d":1,"e":107.8,"f":906.1,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1244":{"submorphs":[{"__isSmartRef__":true,"id":1245}],"scripts":[],"id":"C3CD3FAB-7D15-4C9A-98DB-5AA08489F60A","shape":{"__isSmartRef__":true,"id":1269},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_MaxTextWidth":394.84879006641484,"_MaxTextHeight":193.9335840422932,"textChunks":[{"__isSmartRef__":true,"id":1270}],"layout":{"__isSmartRef__":true,"id":1272},"showsHalos":false,"charsReplaced":"","lastFindLoc":8,"savedTextString":"Hello Welt","attributeConnections":[{"__isSmartRef__":true,"id":1273},{"__isSmartRef__":true,"id":1274},{"__isSmartRef__":true,"id":1276},{"__isSmartRef__":true,"id":1278},{"__isSmartRef__":true,"id":1280},{"__isSmartRef__":true,"id":1282},{"__isSmartRef__":true,"id":1284},{"__isSmartRef__":true,"id":1299},{"__isSmartRef__":true,"id":2097},{"__isSmartRef__":true,"id":2099},{"__isSmartRef__":true,"id":2101},{"__isSmartRef__":true,"id":2103},{"__isSmartRef__":true,"id":2118},{"__isSmartRef__":true,"id":2120},{"__isSmartRef__":true,"id":2122},{"__isSmartRef__":true,"id":2124},{"__isSmartRef__":true,"id":2126}],"doNotSerialize":["$$textString","$$name","$$_Position","$$_Scale","$$_Rotation","$$owner"],"doNotCopyProperties":["$$textString","$$name","$$_Position","$$_Scale","$$_Rotation","$$owner"],"prevScroll":[0,134],"eventHandler":{"__isSmartRef__":true,"id":2141},"derivationIds":[3322,"225828F0-5F33-4C44-8D12-512AF1842054","48B23F21-69E9-4E9A-81BF-3D9C12A6520C","3F697FDB-1BBD-4885-BCD6-6986E24D4A1C","24476821-29AA-42DC-AA9B-633AE990C00B"],"_WordBreak":"break-all","isBeingDragged":false,"_FontSize":null,"name":"TextA","owner":{"__isSmartRef__":true,"id":960},"isLockOwner":false,"_Rotation":0,"_Scale":1.002,"draggingEnabled":false,"magnets":[{"__isSmartRef__":true,"id":2142},{"__isSmartRef__":true,"id":2143},{"__isSmartRef__":true,"id":2144},{"__isSmartRef__":true,"id":2145},{"__isSmartRef__":true,"id":2146},{"__isSmartRef__":true,"id":2147},{"__isSmartRef__":true,"id":2148},{"__isSmartRef__":true,"id":2149}],"__serializedExpressions__":["_Padding","_Position","distanceToDragEvent"],"textString":"one\ntwo\nthree\nfour","__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(2,1,0,0)","_Position":"lively.pt(7.2,301.4)","distanceToDragEvent":"lively.pt(110.8,-23.8)"},"1245":{"submorphs":[],"scripts":[],"id":"F561ACC9-4DB2-4A3E-9DF0-6CFAA0DC6988","shape":{"__isSmartRef__":true,"id":1246},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":180.8018403394826,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":9,"name":"NameLabel","partsBinMetaInfo":{"__isSmartRef__":true,"id":1247},"textChunks":[{"__isSmartRef__":true,"id":1249}],"charsReplaced":"Grr","lastFindLoc":-3,"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":1251},{"__isSmartRef__":true,"id":1252}],"doNotSerialize":["$$owner","$$savedTextString"],"doNotCopyProperties":["$$owner","$$savedTextString"],"isInputLine":true,"savedTextString":"TopLeft","eventHandler":{"__isSmartRef__":true,"id":1253},"owner":{"__isSmartRef__":true,"id":1244},"derivationIds":[7027,"C492960F-3ECC-4233-B8D1-F5B21D020A2B","7AD04BE5-0526-44EF-8CA7-B420F647BA49","0A9E979E-0A23-45A9-B264-98BB85194BEB","ADEB4D33-1F7C-4D8B-B039-E4A70B419D58"],"_WhiteSpaceHandling":"pre-wrap","_ClipMode":"visible","moved":true,"oldOwner":{"__isSmartRef__":true,"id":1244},"previousSelection":[0,11],"isLockOwner":false,"_Rotation":0,"_Scale":1,"magnets":[{"__isSmartRef__":true,"id":1254},{"__isSmartRef__":true,"id":1255},{"__isSmartRef__":true,"id":1256},{"__isSmartRef__":true,"id":1257},{"__isSmartRef__":true,"id":1258},{"__isSmartRef__":true,"id":1259},{"__isSmartRef__":true,"id":1260},{"__isSmartRef__":true,"id":1261}],"__serializedExpressions__":["_Position","textColor","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1262},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.9,-14.8)","textColor":"Color.rgb(0,0,0)","distanceToDragEvent":"lively.pt(51.0,-9.1)"},"1246":{"fill":null,"_BorderWidth":0,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(75.8,14.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"1247":{"partsSpaceName":"PartsBin/Widgets/","migrationLevel":2,"comment":"Label that shows the name of a morph. Updates automatically.","partName":"NameLabel","lastModifiedDate":{"__isSmartRef__":true,"id":1248},"revisionOnLoad":140039,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1248":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1249":{"style":{"__isSmartRef__":true,"id":1250},"chunkOwner":{"__isSmartRef__":true,"id":1245},"_id":"_8891","storedString":"TextA","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1250":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1251":{"sourceObj":{"__isSmartRef__":true,"id":1245},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":1245},"targetMethodName":"updateLabel","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1252":{"sourceObj":{"__isSmartRef__":true,"id":1245},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":1245},"targetMethodName":"renameOwner","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1253":{"morph":{"__isSmartRef__":true,"id":1245},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1254":{"morph":{"__isSmartRef__":true,"id":1245},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(67.1,669.0)"},"1255":{"morph":{"__isSmartRef__":true,"id":1245},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(104.9,669.0)"},"1256":{"morph":{"__isSmartRef__":true,"id":1245},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(142.7,669.0)"},"1257":{"morph":{"__isSmartRef__":true,"id":1245},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(142.7,676.0)"},"1258":{"morph":{"__isSmartRef__":true,"id":1245},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(142.7,683.0)"},"1259":{"morph":{"__isSmartRef__":true,"id":1245},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(104.9,683.0)"},"1260":{"morph":{"__isSmartRef__":true,"id":1245},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(67.1,683.0)"},"1261":{"morph":{"__isSmartRef__":true,"id":1245},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(67.1,676.0)"},"1262":{"updateLabel":{"__isSmartRef__":true,"id":1263},"renameOwner":{"__isSmartRef__":true,"id":1266}},"1263":{"varMapping":{"__isSmartRef__":true,"id":1264},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tif (this.oldOwner)\n\t\t\tdisconnect(this.oldOwner, 'name', this, 'updateLabel')\n\t\tif (this.owner)\n\t\t\tconnect(this.owner, 'name', this, 'updateLabel')\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar name = (this.owner ? this.owner.name : \"no owner\")\n\tif (this.textString != name)\n\tthis.setTextString(name)\n}","funcProperties":{"__isSmartRef__":true,"id":1265},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1264":{"this":{"__isSmartRef__":true,"id":1245}},"1265":{},"1266":{"varMapping":{"__isSmartRef__":true,"id":1267},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":1268},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1267":{"this":{"__isSmartRef__":true,"id":1245}},"1268":{},"1269":{"_BorderWidth":2,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(168.4,80.8)","_BorderColor":"Color.rgb(165,165,165)","_Fill":"Color.rgb(238,243,209)","_Padding":"lively.rect(0,0,0,0)"},"1270":{"style":{"__isSmartRef__":true,"id":1271},"chunkOwner":{"__isSmartRef__":true,"id":1244},"_id":"_13","storedString":"one\ntwo\nthree\nfour","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1271":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1272":{"resizeWidth":true,"resizeHeight":true},"1273":{"sourceObj":{"__isSmartRef__":true,"id":1244},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":960},"targetMethodName":"updateDiff","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1274":{"sourceObj":{"__isSmartRef__":true,"id":1244},"sourceAttrName":"name","targetObj":{"__isSmartRef__":true,"id":1245},"targetMethodName":"updateLabel","varMapping":{"__isSmartRef__":true,"id":1275},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1275":{"source":{"__isSmartRef__":true,"id":1244},"target":{"__isSmartRef__":true,"id":1245}},"1276":{"sourceObj":{"__isSmartRef__":true,"id":1244},"sourceAttrName":"globalTransform","targetObj":{"__isSmartRef__":true,"id":1199},"targetMethodName":"updatePosition","varMapping":{"__isSmartRef__":true,"id":1277},"converterString":"function (value) { return this.sourceObj }","dependendConnections":[{"__isSmartRef__":true,"id":1278},{"__isSmartRef__":true,"id":1280},{"__isSmartRef__":true,"id":1282},{"__isSmartRef__":true,"id":1284},{"__isSmartRef__":true,"id":1286},{"__isSmartRef__":true,"id":1288},{"__isSmartRef__":true,"id":1290},{"__isSmartRef__":true,"id":1292}],"oldTransform":{"__isSmartRef__":true,"id":1294},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1296},"__LivelyClassName__":"lively.morphic.GeometryTransformConnection","__SourceModuleName__":"Global.lively.bindings.GeometryBindings"},"1277":{"source":{"__isSmartRef__":true,"id":1244},"target":{"__isSmartRef__":true,"id":1199}},"1278":{"sourceObj":{"__isSmartRef__":true,"id":1244},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":1276},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":1279},"dependedBy":{"__isSmartRef__":true,"id":1276},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1279":{"source":{"__isSmartRef__":true,"id":1244},"target":{"__isSmartRef__":true,"id":1276}},"1280":{"sourceObj":{"__isSmartRef__":true,"id":1244},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":1276},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":1281},"dependedBy":{"__isSmartRef__":true,"id":1276},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1281":{"source":{"__isSmartRef__":true,"id":1244},"target":{"__isSmartRef__":true,"id":1276}},"1282":{"sourceObj":{"__isSmartRef__":true,"id":1244},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":1276},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":1283},"dependedBy":{"__isSmartRef__":true,"id":1276},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1283":{"source":{"__isSmartRef__":true,"id":1244},"target":{"__isSmartRef__":true,"id":1276}},"1284":{"sourceObj":{"__isSmartRef__":true,"id":1244},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":1276},"targetMethodName":"updateOwners","varMapping":{"__isSmartRef__":true,"id":1285},"dependedBy":{"__isSmartRef__":true,"id":1276},"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1285":{"source":{"__isSmartRef__":true,"id":1244},"target":{"__isSmartRef__":true,"id":1276}},"1286":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":1276},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":1287},"dependedBy":{"__isSmartRef__":true,"id":1276},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1287":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":1276}},"1288":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":1276},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":1289},"dependedBy":{"__isSmartRef__":true,"id":1276},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1289":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":1276}},"1290":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":1276},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":1291},"dependedBy":{"__isSmartRef__":true,"id":1276},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1291":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":1276}},"1292":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":1276},"targetMethodName":"updateOwners","varMapping":{"__isSmartRef__":true,"id":1293},"dependedBy":{"__isSmartRef__":true,"id":1276},"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1293":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":1276}},"1294":{"d":0.998003992015968,"a":0.998003992015968,"f":469.7984031936127,"e":28.18562874251497,"c":0,"b":0,"matrix_":{"__isSmartRef__":true,"id":1295},"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1295":{"a":0.998003992015968,"b":0,"c":0,"d":0.998003992015968,"e":28.18562874251497,"f":469.7984031936127,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1296":{"converter":{"__isSmartRef__":true,"id":1297}},"1297":{"varMapping":{"__isSmartRef__":true,"id":1277},"source":"function (value) { return this.sourceObj }","funcProperties":{"__isSmartRef__":true,"id":1298},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1298":{},"1299":{"sourceObj":{"__isSmartRef__":true,"id":1244},"sourceAttrName":"globalTransform","targetObj":{"__isSmartRef__":true,"id":1300},"targetMethodName":"updatePosition","varMapping":{"__isSmartRef__":true,"id":2096},"converterString":"function (value) { return this.sourceObj }","dependendConnections":[{"__isSmartRef__":true,"id":2097},{"__isSmartRef__":true,"id":2099},{"__isSmartRef__":true,"id":2101},{"__isSmartRef__":true,"id":2103},{"__isSmartRef__":true,"id":2105},{"__isSmartRef__":true,"id":2107},{"__isSmartRef__":true,"id":2109},{"__isSmartRef__":true,"id":2111}],"oldTransform":{"__isSmartRef__":true,"id":2113},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2115},"__LivelyClassName__":"lively.morphic.GeometryTransformConnection","__SourceModuleName__":"Global.lively.bindings.GeometryBindings"},"1300":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1301},"id":"5310FCD7-4C00-4657-B754-ECB6A456C53A","eventHandler":{"__isSmartRef__":true,"id":1304},"__layered_droppingEnabled__":false,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":1305},{"__isSmartRef__":true,"id":1306}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1307},"name":"Connector2","derivationIds":[731,"5E6BD741-9C99-47B9-95C1-7A028178DB17","A8D5C37A-F23F-47FE-8DE2-211CE4484A4F","F722069B-8602-4E8D-BE3F-92A1E0C0EF28","D5ED19F9-968E-4C7E-9936-69F2735A813F","A9E370BC-F208-425C-BFFC-F8D6BB52E11F","4E431641-D056-46CB-B2A8-6626382EF423","5E9FF80A-8869-4D30-9A4C-37023352650B","1E262BB0-B5EB-43C7-AEEF-1721047BD34B","3AC3D636-420C-4F13-820E-C9305261C874","014B85BE-2960-474C-BA9C-7428E21F6D51","A1EDB105-2F3D-4448-AE9E-91A87BE1A9AB","4238A9AF-D49B-4B76-A31C-B50EF24C2AE3","F218405D-EC22-448F-9F4E-8A023F38A2F2","DF372334-FE86-4CA1-A61A-F6DBDFF21DB6","EE1893C0-855C-49AB-932B-86E42ACE320F","AF75DCF2-49F1-45FB-9383-C84651A0F391","9DD0A289-EEB7-49AA-8E17-E07D714FF611","652E2DD3-3E0E-4D8F-B6DA-B6EEA2CE85EB","9E31C588-A364-4A46-8F9E-979A3F19A8C0"],"_ClipMode":"visible","controlPointsHalos":[],"prevScroll":[0,0],"grabbingEnabled":false,"moved":true,"#startLetters":"accep","update":{"__isSmartRef__":true,"id":1343},"isCopyMorphRef":true,"morphRefId":1,"selectedMorphHighlights":[],"lastOverTime":null,"lastKeyStrokeTime":null,"fromMorph":{"__isSmartRef__":true,"id":1244},"toMorph":{"__isSmartRef__":true,"id":1345},"owner":{"__isSmartRef__":true,"id":960},"_Rotation":0,"_Scale":1.002,"selectedMorph":{"__isSmartRef__":true,"id":1345},"__serializedExpressions__":["distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1935},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","distanceToDragEvent":"lively.pt(151.0,-12.3)","_Position":"lively.pt(245.2,396.1)"},"1301":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1302},{"__isSmartRef__":true,"id":1303}],"_ClipMode":"visible","_BorderWidth":5,"_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":true,"_BorderStylingMode":false,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-72.6,-27.4)","_Extent":"lively.pt(145.2,54.8)","_BorderColor":"Color.rgb(161,161,161)"},"1302":{"isAbsolute":true,"x":-69.59999999999998,"y":-24.379503522307914,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1303":{"isAbsolute":true,"x":70.59999999999998,"y":25.379503522307914,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1304":{"morph":{"__isSmartRef__":true,"id":1300},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1305":{"morph":{"__isSmartRef__":true,"id":1300},"index":0,"connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1306":{"morph":{"__isSmartRef__":true,"id":1300},"index":1,"connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1307":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Jens/","comment":"Yes, I think I got it again: Powerful and nice connectors.\nThis time 100 % Part only!","partName":"Connector","lastModifiedDate":{"__isSmartRef__":true,"id":1308},"changes":[{"__isSmartRef__":true,"id":1309},{"__isSmartRef__":true,"id":1311},{"__isSmartRef__":true,"id":1313},{"__isSmartRef__":true,"id":1315},{"__isSmartRef__":true,"id":1317},{"__isSmartRef__":true,"id":1319},{"__isSmartRef__":true,"id":1321},{"__isSmartRef__":true,"id":1323},{"__isSmartRef__":true,"id":1325},{"__isSmartRef__":true,"id":1327},{"__isSmartRef__":true,"id":1329},{"__isSmartRef__":true,"id":1331},{"__isSmartRef__":true,"id":1333},{"__isSmartRef__":true,"id":1335},{"__isSmartRef__":true,"id":1337},{"__isSmartRef__":true,"id":1339},{"__isSmartRef__":true,"id":1341}],"revisionOnLoad":204084,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1308":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1309":{"date":{"__isSmartRef__":true,"id":1310},"author":"jenslincke","message":"no comment","id":"D7359A4C-CE5D-4BB6-91CF-D47E8CD9DC8D"},"1310":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1311":{"date":{"__isSmartRef__":true,"id":1312},"author":"jenslincke","message":"no comment","id":"0DB540E7-E5AF-4800-BBD5-932B86D501BE"},"1312":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1313":{"date":{"__isSmartRef__":true,"id":1314},"author":"jenslincke","message":"no comment","id":"3AE4DB59-853F-4DB2-A99D-2822B27C73F2"},"1314":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1315":{"date":{"__isSmartRef__":true,"id":1316},"author":"jenslincke","message":"no comment","id":"DD1ABC51-1DCC-4B97-BDB4-355D28118CE9"},"1316":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1317":{"date":{"__isSmartRef__":true,"id":1318},"author":"jenslincke","message":"no comment","id":"92FDE03B-DE85-4805-84B6-3B6DA90E6348"},"1318":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1319":{"date":{"__isSmartRef__":true,"id":1320},"author":"jenslincke","message":"no comment","id":"3F64B004-21CC-4E77-82A4-642B296327F0"},"1320":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1321":{"date":{"__isSmartRef__":true,"id":1322},"author":"jenslincke","message":"no comment","id":"6E97D136-9F49-4570-8EC9-BFF3786EEA8D"},"1322":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1323":{"date":{"__isSmartRef__":true,"id":1324},"author":"jenslincke","message":"no comment","id":"A022B160-32B3-4AD2-A005-0A7B11B80584"},"1324":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1325":{"date":{"__isSmartRef__":true,"id":1326},"author":"jenslincke","message":"no comment","id":"B3F0BD32-A3D2-4AAB-97D5-8FB7637C6A9A"},"1326":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1327":{"date":{"__isSmartRef__":true,"id":1328},"author":"jenslincke","message":"no comment","id":"D8953E55-38AD-480A-8B9C-E4A86C90D48E"},"1328":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1329":{"date":{"__isSmartRef__":true,"id":1330},"author":"jenslincke","message":"no comment","id":"E9F9AE91-A058-465E-8F58-5CC00A962D0C"},"1330":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1331":{"date":{"__isSmartRef__":true,"id":1332},"author":"jenslincke","message":"no comment","id":"ED70FB47-8AA0-4D4E-8D90-FF99454C924B"},"1332":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1333":{"date":{"__isSmartRef__":true,"id":1334},"author":"jenslincke","message":"no comment","id":"28165CED-C8C5-4B8E-9655-645E3F5099BB"},"1334":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1335":{"date":{"__isSmartRef__":true,"id":1336},"author":"jenslincke","message":"no comment","id":"117C964B-9768-48F2-8EC8-D4328478198F"},"1336":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1337":{"date":{"__isSmartRef__":true,"id":1338},"author":"jenslincke","message":"no comment","id":"79159460-DFFB-462D-AFC9-EECD3539A1A9"},"1338":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1339":{"date":{"__isSmartRef__":true,"id":1340},"author":"jenslincke","message":"no comment","id":"3D5067AE-5BA0-4317-837F-59F8F61B8B24"},"1340":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1341":{"date":{"__isSmartRef__":true,"id":1342},"author":"jenslincke","message":"fixed scaling issues","id":"97E95E76-A88F-44AB-A6E9-6BA5DCC4045D"},"1342":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1343":{"d":1,"a":1,"f":906.1,"e":107.8,"c":0,"b":0,"matrix_":{"__isSmartRef__":true,"id":1344},"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1344":{"a":1,"b":0,"c":0,"d":1,"e":107.8,"f":906.1,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1345":{"submorphs":[{"__isSmartRef__":true,"id":1346}],"scripts":[],"id":"A26C7CF2-5AB0-47C2-85EE-EDFCD1CC66F9","shape":{"__isSmartRef__":true,"id":1370},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_MaxTextWidth":394.84879006641484,"_MaxTextHeight":193.9335840422932,"textChunks":[{"__isSmartRef__":true,"id":1371},{"__isSmartRef__":true,"id":1373},{"__isSmartRef__":true,"id":1375}],"layout":{"__isSmartRef__":true,"id":1377},"showsHalos":false,"charsReplaced":"drei","lastFindLoc":18,"savedTextString":"Hello Welt","attributeConnections":[{"__isSmartRef__":true,"id":1378},{"__isSmartRef__":true,"id":1380},{"__isSmartRef__":true,"id":1653},{"__isSmartRef__":true,"id":1655},{"__isSmartRef__":true,"id":1657},{"__isSmartRef__":true,"id":1659},{"__isSmartRef__":true,"id":1674},{"__isSmartRef__":true,"id":1676},{"__isSmartRef__":true,"id":1678},{"__isSmartRef__":true,"id":1680},{"__isSmartRef__":true,"id":1682},{"__isSmartRef__":true,"id":1697},{"__isSmartRef__":true,"id":1905},{"__isSmartRef__":true,"id":1907},{"__isSmartRef__":true,"id":1909},{"__isSmartRef__":true,"id":1911}],"doNotSerialize":["$$name","$$_Position","$$_Scale","$$_Rotation","$$owner"],"doNotCopyProperties":["$$name","$$_Position","$$_Scale","$$_Rotation","$$owner"],"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":1926},"derivationIds":[3322,"225828F0-5F33-4C44-8D12-512AF1842054","9D5CA418-971D-4CA0-BA24-B79EC9098C17","32C08AA3-7A9B-4D30-8D92-1CB3D07CAF23","E39D0244-4FEC-4D30-A271-EBFF5C462C04","BABB053A-C239-4F33-ACA9-2818FE537F4D"],"_WordBreak":"break-all","isBeingDragged":false,"_FontSize":null,"name":"TextCDiff","isLockOwner":false,"draggingEnabled":false,"_Scale":1.002,"_Rotation":0,"owner":{"__isSmartRef__":true,"id":960},"magnets":[{"__isSmartRef__":true,"id":1927},{"__isSmartRef__":true,"id":1928},{"__isSmartRef__":true,"id":1929},{"__isSmartRef__":true,"id":1930},{"__isSmartRef__":true,"id":1931},{"__isSmartRef__":true,"id":1932},{"__isSmartRef__":true,"id":1933},{"__isSmartRef__":true,"id":1934}],"isCopyMorphRef":true,"morphRefId":2,"__serializedExpressions__":["_Padding","distanceToDragEvent","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(2,1,0,0)","distanceToDragEvent":"lively.pt(99.8,-28.9)","_Position":"lively.pt(315.8,403.7)"},"1346":{"submorphs":[],"scripts":[],"id":"3B6D0C00-7919-4A63-827E-348E36034486","shape":{"__isSmartRef__":true,"id":1347},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":180.8018403394826,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":9,"name":"NameLabel","partsBinMetaInfo":{"__isSmartRef__":true,"id":1348},"textChunks":[{"__isSmartRef__":true,"id":1350}],"charsReplaced":"Grr","lastFindLoc":-3,"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":1352},{"__isSmartRef__":true,"id":1353}],"doNotSerialize":["$$owner","$$savedTextString"],"doNotCopyProperties":["$$owner","$$savedTextString"],"isInputLine":true,"savedTextString":"TopLeft","eventHandler":{"__isSmartRef__":true,"id":1354},"owner":{"__isSmartRef__":true,"id":1345},"derivationIds":[7027,"C492960F-3ECC-4233-B8D1-F5B21D020A2B","DE1D87CC-02EB-4C78-B589-1AE6A076EED4","70B7EB52-DD57-468E-98C6-7B536E2C9F2C","12B9F06A-C169-44EF-9EA2-16031499E594","A2917031-0A59-4618-9780-4733DF50B343"],"_WhiteSpaceHandling":"pre-wrap","_ClipMode":"visible","moved":true,"oldOwner":{"__isSmartRef__":true,"id":1345},"previousSelection":[0,11],"isLockOwner":false,"_Rotation":0,"_Scale":1,"magnets":[{"__isSmartRef__":true,"id":1355},{"__isSmartRef__":true,"id":1356},{"__isSmartRef__":true,"id":1357},{"__isSmartRef__":true,"id":1358},{"__isSmartRef__":true,"id":1359},{"__isSmartRef__":true,"id":1360},{"__isSmartRef__":true,"id":1361},{"__isSmartRef__":true,"id":1362}],"__serializedExpressions__":["_Position","textColor","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1363},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.9,-14.8)","textColor":"Color.rgb(0,0,0)","distanceToDragEvent":"lively.pt(51.0,-9.1)"},"1347":{"fill":null,"_BorderWidth":0,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(75.8,14.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"1348":{"partsSpaceName":"PartsBin/Widgets/","migrationLevel":2,"comment":"Label that shows the name of a morph. Updates automatically.","partName":"NameLabel","lastModifiedDate":{"__isSmartRef__":true,"id":1349},"revisionOnLoad":140039,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1349":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1350":{"style":{"__isSmartRef__":true,"id":1351},"chunkOwner":{"__isSmartRef__":true,"id":1346},"_id":"_22952","storedString":"TextCDiff","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1351":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1352":{"sourceObj":{"__isSmartRef__":true,"id":1346},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":1346},"targetMethodName":"updateLabel","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1353":{"sourceObj":{"__isSmartRef__":true,"id":1346},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":1346},"targetMethodName":"renameOwner","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1354":{"morph":{"__isSmartRef__":true,"id":1346},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1355":{"morph":{"__isSmartRef__":true,"id":1346},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(459.0,929.0)"},"1356":{"morph":{"__isSmartRef__":true,"id":1346},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(496.9,929.0)"},"1357":{"morph":{"__isSmartRef__":true,"id":1346},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(534.7,929.0)"},"1358":{"morph":{"__isSmartRef__":true,"id":1346},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(534.7,936.0)"},"1359":{"morph":{"__isSmartRef__":true,"id":1346},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(534.7,943.0)"},"1360":{"morph":{"__isSmartRef__":true,"id":1346},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(496.9,943.0)"},"1361":{"morph":{"__isSmartRef__":true,"id":1346},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(459.0,943.0)"},"1362":{"morph":{"__isSmartRef__":true,"id":1346},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(459.0,936.0)"},"1363":{"updateLabel":{"__isSmartRef__":true,"id":1364},"renameOwner":{"__isSmartRef__":true,"id":1367}},"1364":{"varMapping":{"__isSmartRef__":true,"id":1365},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tif (this.oldOwner)\n\t\t\tdisconnect(this.oldOwner, 'name', this, 'updateLabel')\n\t\tif (this.owner)\n\t\t\tconnect(this.owner, 'name', this, 'updateLabel')\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar name = (this.owner ? this.owner.name : \"no owner\")\n\tif (this.textString != name)\n\tthis.setTextString(name)\n}","funcProperties":{"__isSmartRef__":true,"id":1366},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1365":{"this":{"__isSmartRef__":true,"id":1346}},"1366":{},"1367":{"varMapping":{"__isSmartRef__":true,"id":1368},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":1369},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1368":{"this":{"__isSmartRef__":true,"id":1346}},"1369":{},"1370":{"_BorderWidth":2,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(147.4,87.8)","_BorderColor":"Color.rgb(165,165,165)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"1371":{"style":{"__isSmartRef__":true,"id":1372},"chunkOwner":{"__isSmartRef__":true,"id":1345},"_id":"_82","storedString":"one\ntwo\nthree","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1372":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1373":{"_id":"_83","style":{"__isSmartRef__":true,"id":1374},"chunkOwner":{"__isSmartRef__":true,"id":1345},"storedString":" houses","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1374":{"color":"green","textDecoration":"underline","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1375":{"_id":"_84","style":{"__isSmartRef__":true,"id":1376},"chunkOwner":{"__isSmartRef__":true,"id":1345},"storedString":"\nfour","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1376":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1377":{"resizeWidth":true,"resizeHeight":true},"1378":{"sourceObj":{"__isSmartRef__":true,"id":1345},"sourceAttrName":"name","targetObj":{"__isSmartRef__":true,"id":1346},"targetMethodName":"updateLabel","varMapping":{"__isSmartRef__":true,"id":1379},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1379":{"source":{"__isSmartRef__":true,"id":1345},"target":{"__isSmartRef__":true,"id":1346}},"1380":{"sourceObj":{"__isSmartRef__":true,"id":1345},"sourceAttrName":"globalTransform","targetObj":{"__isSmartRef__":true,"id":1381},"targetMethodName":"updatePosition","varMapping":{"__isSmartRef__":true,"id":1652},"converterString":"function (value) { return this.sourceObj }","dependendConnections":[{"__isSmartRef__":true,"id":1653},{"__isSmartRef__":true,"id":1655},{"__isSmartRef__":true,"id":1657},{"__isSmartRef__":true,"id":1659},{"__isSmartRef__":true,"id":1661},{"__isSmartRef__":true,"id":1663},{"__isSmartRef__":true,"id":1665},{"__isSmartRef__":true,"id":1667}],"oldTransform":{"__isSmartRef__":true,"id":1669},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1671},"__LivelyClassName__":"lively.morphic.GeometryTransformConnection","__SourceModuleName__":"Global.lively.bindings.GeometryBindings"},"1381":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1382},"id":"02241060-A6DF-4D6B-9E21-A970CD5E0670","eventHandler":{"__isSmartRef__":true,"id":1385},"__layered_droppingEnabled__":false,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":1386},{"__isSmartRef__":true,"id":1387}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1388},"name":"Connector","derivationIds":[731,"5E6BD741-9C99-47B9-95C1-7A028178DB17","A8D5C37A-F23F-47FE-8DE2-211CE4484A4F","F722069B-8602-4E8D-BE3F-92A1E0C0EF28","D5ED19F9-968E-4C7E-9936-69F2735A813F","A9E370BC-F208-425C-BFFC-F8D6BB52E11F","4E431641-D056-46CB-B2A8-6626382EF423","5E9FF80A-8869-4D30-9A4C-37023352650B","1E262BB0-B5EB-43C7-AEEF-1721047BD34B","3AC3D636-420C-4F13-820E-C9305261C874","014B85BE-2960-474C-BA9C-7428E21F6D51","A1EDB105-2F3D-4448-AE9E-91A87BE1A9AB","4238A9AF-D49B-4B76-A31C-B50EF24C2AE3","F218405D-EC22-448F-9F4E-8A023F38A2F2","DF372334-FE86-4CA1-A61A-F6DBDFF21DB6","EE1893C0-855C-49AB-932B-86E42ACE320F","AF75DCF2-49F1-45FB-9383-C84651A0F391","F5764E78-D817-439B-9909-98232E4E29C2","FB173BE7-F72C-42E9-83E9-712ED5763A07"],"_ClipMode":"visible","controlPointsHalos":[],"prevScroll":[0,0],"grabbingEnabled":false,"moved":true,"#startLetters":"accep","update":{"__isSmartRef__":true,"id":1424},"isCopyMorphRef":true,"morphRefId":1,"selectedMorphHighlights":[],"lastOverTime":null,"lastKeyStrokeTime":null,"fromMorph":{"__isSmartRef__":true,"id":1426},"toMorph":{"__isSmartRef__":true,"id":1345},"owner":{"__isSmartRef__":true,"id":960},"_Rotation":0,"_Scale":1.002,"selectedMorph":{"__isSmartRef__":true,"id":1345},"__serializedExpressions__":["distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1491},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","distanceToDragEvent":"lively.pt(151.0,-12.3)","_Position":"lively.pt(281.3,490.1)"},"1382":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1383},{"__isSmartRef__":true,"id":1384}],"_ClipMode":"visible","_BorderWidth":5,"_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":true,"_BorderStylingMode":false,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-36.5,-16.1)","_Extent":"lively.pt(73.0,32.2)","_BorderColor":"Color.rgb(161,161,161)"},"1383":{"isAbsolute":true,"x":-33.5,"y":14.090529247910865,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1384":{"isAbsolute":true,"x":34.5,"y":-13.090529247910865,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1385":{"morph":{"__isSmartRef__":true,"id":1381},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1386":{"morph":{"__isSmartRef__":true,"id":1381},"index":0,"connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1387":{"morph":{"__isSmartRef__":true,"id":1381},"index":1,"connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1388":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Jens/","comment":"Yes, I think I got it again: Powerful and nice connectors.\nThis time 100 % Part only!","partName":"Connector","lastModifiedDate":{"__isSmartRef__":true,"id":1389},"changes":[{"__isSmartRef__":true,"id":1390},{"__isSmartRef__":true,"id":1392},{"__isSmartRef__":true,"id":1394},{"__isSmartRef__":true,"id":1396},{"__isSmartRef__":true,"id":1398},{"__isSmartRef__":true,"id":1400},{"__isSmartRef__":true,"id":1402},{"__isSmartRef__":true,"id":1404},{"__isSmartRef__":true,"id":1406},{"__isSmartRef__":true,"id":1408},{"__isSmartRef__":true,"id":1410},{"__isSmartRef__":true,"id":1412},{"__isSmartRef__":true,"id":1414},{"__isSmartRef__":true,"id":1416},{"__isSmartRef__":true,"id":1418},{"__isSmartRef__":true,"id":1420},{"__isSmartRef__":true,"id":1422}],"revisionOnLoad":204084,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1389":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1390":{"date":{"__isSmartRef__":true,"id":1391},"author":"jenslincke","message":"no comment","id":"D7359A4C-CE5D-4BB6-91CF-D47E8CD9DC8D"},"1391":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1392":{"date":{"__isSmartRef__":true,"id":1393},"author":"jenslincke","message":"no comment","id":"0DB540E7-E5AF-4800-BBD5-932B86D501BE"},"1393":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1394":{"date":{"__isSmartRef__":true,"id":1395},"author":"jenslincke","message":"no comment","id":"3AE4DB59-853F-4DB2-A99D-2822B27C73F2"},"1395":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1396":{"date":{"__isSmartRef__":true,"id":1397},"author":"jenslincke","message":"no comment","id":"DD1ABC51-1DCC-4B97-BDB4-355D28118CE9"},"1397":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1398":{"date":{"__isSmartRef__":true,"id":1399},"author":"jenslincke","message":"no comment","id":"92FDE03B-DE85-4805-84B6-3B6DA90E6348"},"1399":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1400":{"date":{"__isSmartRef__":true,"id":1401},"author":"jenslincke","message":"no comment","id":"3F64B004-21CC-4E77-82A4-642B296327F0"},"1401":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1402":{"date":{"__isSmartRef__":true,"id":1403},"author":"jenslincke","message":"no comment","id":"6E97D136-9F49-4570-8EC9-BFF3786EEA8D"},"1403":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1404":{"date":{"__isSmartRef__":true,"id":1405},"author":"jenslincke","message":"no comment","id":"A022B160-32B3-4AD2-A005-0A7B11B80584"},"1405":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1406":{"date":{"__isSmartRef__":true,"id":1407},"author":"jenslincke","message":"no comment","id":"B3F0BD32-A3D2-4AAB-97D5-8FB7637C6A9A"},"1407":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1408":{"date":{"__isSmartRef__":true,"id":1409},"author":"jenslincke","message":"no comment","id":"D8953E55-38AD-480A-8B9C-E4A86C90D48E"},"1409":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1410":{"date":{"__isSmartRef__":true,"id":1411},"author":"jenslincke","message":"no comment","id":"E9F9AE91-A058-465E-8F58-5CC00A962D0C"},"1411":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1412":{"date":{"__isSmartRef__":true,"id":1413},"author":"jenslincke","message":"no comment","id":"ED70FB47-8AA0-4D4E-8D90-FF99454C924B"},"1413":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1414":{"date":{"__isSmartRef__":true,"id":1415},"author":"jenslincke","message":"no comment","id":"28165CED-C8C5-4B8E-9655-645E3F5099BB"},"1415":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1416":{"date":{"__isSmartRef__":true,"id":1417},"author":"jenslincke","message":"no comment","id":"117C964B-9768-48F2-8EC8-D4328478198F"},"1417":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1418":{"date":{"__isSmartRef__":true,"id":1419},"author":"jenslincke","message":"no comment","id":"79159460-DFFB-462D-AFC9-EECD3539A1A9"},"1419":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1420":{"date":{"__isSmartRef__":true,"id":1421},"author":"jenslincke","message":"no comment","id":"3D5067AE-5BA0-4317-837F-59F8F61B8B24"},"1421":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1422":{"date":{"__isSmartRef__":true,"id":1423},"author":"jenslincke","message":"fixed scaling issues","id":"97E95E76-A88F-44AB-A6E9-6BA5DCC4045D"},"1423":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1424":{"d":1,"a":1,"f":906.1,"e":107.8,"c":0,"b":0,"matrix_":{"__isSmartRef__":true,"id":1425},"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1425":{"a":1,"b":0,"c":0,"d":1,"e":107.8,"f":906.1,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1426":{"submorphs":[{"__isSmartRef__":true,"id":1427}],"scripts":[],"id":"C2566F6A-1819-435B-9EDF-2C4E516786F9","shape":{"__isSmartRef__":true,"id":1451},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_MaxTextWidth":394.84879006641484,"_MaxTextHeight":193.9335840422932,"textChunks":[{"__isSmartRef__":true,"id":1452}],"layout":{"__isSmartRef__":true,"id":1454},"showsHalos":false,"charsReplaced":"","lastFindLoc":1,"savedTextString":"Hello Welt","attributeConnections":[{"__isSmartRef__":true,"id":1455},{"__isSmartRef__":true,"id":1457},{"__isSmartRef__":true,"id":1459},{"__isSmartRef__":true,"id":1461},{"__isSmartRef__":true,"id":1463},{"__isSmartRef__":true,"id":1465},{"__isSmartRef__":true,"id":1467}],"doNotSerialize":["$$name","$$textString","$$_Position","$$_Scale","$$_Rotation","$$owner"],"doNotCopyProperties":["$$name","$$textString","$$_Position","$$_Scale","$$_Rotation","$$owner"],"prevScroll":[0,134],"eventHandler":{"__isSmartRef__":true,"id":1482},"derivationIds":[3322,"225828F0-5F33-4C44-8D12-512AF1842054","9D5CA418-971D-4CA0-BA24-B79EC9098C17","73AAC730-6668-4C46-A034-862518A7255E","619FAD28-3B9E-453C-9039-1011183958E5"],"_WordBreak":"break-all","isBeingDragged":false,"_FontSize":null,"name":"TextC","owner":{"__isSmartRef__":true,"id":960},"isLockOwner":false,"_Rotation":0,"_Scale":1.002,"draggingEnabled":false,"magnets":[{"__isSmartRef__":true,"id":1483},{"__isSmartRef__":true,"id":1484},{"__isSmartRef__":true,"id":1485},{"__isSmartRef__":true,"id":1486},{"__isSmartRef__":true,"id":1487},{"__isSmartRef__":true,"id":1488},{"__isSmartRef__":true,"id":1489},{"__isSmartRef__":true,"id":1490}],"__serializedExpressions__":["_Padding","_Position","distanceToDragEvent"],"textString":"one\ntwo\nthree houses\nfour","__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(2,1,0,0)","_Position":"lively.pt(100.4,489.8)","distanceToDragEvent":"lively.pt(103.8,-26.8)"},"1427":{"submorphs":[],"scripts":[],"id":"84031CFD-96F4-4BDE-8B9F-6EBD65E66416","shape":{"__isSmartRef__":true,"id":1428},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":180.8018403394826,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":9,"name":"NameLabel","partsBinMetaInfo":{"__isSmartRef__":true,"id":1429},"textChunks":[{"__isSmartRef__":true,"id":1431}],"charsReplaced":"Grr","lastFindLoc":-3,"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":1433},{"__isSmartRef__":true,"id":1434}],"doNotSerialize":["$$owner","$$savedTextString"],"doNotCopyProperties":["$$owner","$$savedTextString"],"isInputLine":true,"savedTextString":"TopLeft","eventHandler":{"__isSmartRef__":true,"id":1435},"owner":{"__isSmartRef__":true,"id":1426},"derivationIds":[7027,"C492960F-3ECC-4233-B8D1-F5B21D020A2B","DE1D87CC-02EB-4C78-B589-1AE6A076EED4","6DF9B3A4-5BF7-4E1C-B312-B4083968956E","BE016253-AE17-40DF-9E4B-2BC09328BB86"],"_WhiteSpaceHandling":"pre-wrap","_ClipMode":"visible","moved":true,"oldOwner":{"__isSmartRef__":true,"id":1426},"previousSelection":[0,11],"isLockOwner":false,"_Rotation":0,"_Scale":1,"magnets":[{"__isSmartRef__":true,"id":1436},{"__isSmartRef__":true,"id":1437},{"__isSmartRef__":true,"id":1438},{"__isSmartRef__":true,"id":1439},{"__isSmartRef__":true,"id":1440},{"__isSmartRef__":true,"id":1441},{"__isSmartRef__":true,"id":1442},{"__isSmartRef__":true,"id":1443}],"__serializedExpressions__":["_Position","textColor","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1444},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.9,-14.8)","textColor":"Color.rgb(0,0,0)","distanceToDragEvent":"lively.pt(51.0,-9.1)"},"1428":{"fill":null,"_BorderWidth":0,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(75.8,14.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"1429":{"partsSpaceName":"PartsBin/Widgets/","migrationLevel":2,"comment":"Label that shows the name of a morph. Updates automatically.","partName":"NameLabel","lastModifiedDate":{"__isSmartRef__":true,"id":1430},"revisionOnLoad":140039,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1430":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1431":{"style":{"__isSmartRef__":true,"id":1432},"chunkOwner":{"__isSmartRef__":true,"id":1427},"_id":"_9108","storedString":"TextC","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1432":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1433":{"sourceObj":{"__isSmartRef__":true,"id":1427},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":1427},"targetMethodName":"updateLabel","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1434":{"sourceObj":{"__isSmartRef__":true,"id":1427},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":1427},"targetMethodName":"renameOwner","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1435":{"morph":{"__isSmartRef__":true,"id":1427},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1436":{"morph":{"__isSmartRef__":true,"id":1427},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(264.0,922.1)"},"1437":{"morph":{"__isSmartRef__":true,"id":1427},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(301.9,922.1)"},"1438":{"morph":{"__isSmartRef__":true,"id":1427},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(339.7,922.1)"},"1439":{"morph":{"__isSmartRef__":true,"id":1427},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(339.7,929.0)"},"1440":{"morph":{"__isSmartRef__":true,"id":1427},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(339.7,936.0)"},"1441":{"morph":{"__isSmartRef__":true,"id":1427},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(301.9,936.0)"},"1442":{"morph":{"__isSmartRef__":true,"id":1427},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(264.0,936.0)"},"1443":{"morph":{"__isSmartRef__":true,"id":1427},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(264.0,929.0)"},"1444":{"updateLabel":{"__isSmartRef__":true,"id":1445},"renameOwner":{"__isSmartRef__":true,"id":1448}},"1445":{"varMapping":{"__isSmartRef__":true,"id":1446},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tif (this.oldOwner)\n\t\t\tdisconnect(this.oldOwner, 'name', this, 'updateLabel')\n\t\tif (this.owner)\n\t\t\tconnect(this.owner, 'name', this, 'updateLabel')\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar name = (this.owner ? this.owner.name : \"no owner\")\n\tif (this.textString != name)\n\tthis.setTextString(name)\n}","funcProperties":{"__isSmartRef__":true,"id":1447},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1446":{"this":{"__isSmartRef__":true,"id":1427}},"1447":{},"1448":{"varMapping":{"__isSmartRef__":true,"id":1449},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":1450},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1449":{"this":{"__isSmartRef__":true,"id":1427}},"1450":{},"1451":{"_BorderWidth":2,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(147.4,87.8)","_BorderColor":"Color.rgb(165,165,165)","_Fill":"Color.rgb(238,243,209)","_Padding":"lively.rect(0,0,0,0)"},"1452":{"style":{"__isSmartRef__":true,"id":1453},"chunkOwner":{"__isSmartRef__":true,"id":1426},"_id":"_19","storedString":"one\ntwo\nthree houses\nfour","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1453":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1454":{"resizeWidth":true,"resizeHeight":true},"1455":{"sourceObj":{"__isSmartRef__":true,"id":1426},"sourceAttrName":"name","targetObj":{"__isSmartRef__":true,"id":1427},"targetMethodName":"updateLabel","varMapping":{"__isSmartRef__":true,"id":1456},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1456":{"source":{"__isSmartRef__":true,"id":1426},"target":{"__isSmartRef__":true,"id":1427}},"1457":{"sourceObj":{"__isSmartRef__":true,"id":1426},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":960},"targetMethodName":"updateDiff","varMapping":{"__isSmartRef__":true,"id":1458},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1458":{"source":{"__isSmartRef__":true,"id":1426},"target":{"__isSmartRef__":true,"id":960}},"1459":{"sourceObj":{"__isSmartRef__":true,"id":1426},"sourceAttrName":"globalTransform","targetObj":{"__isSmartRef__":true,"id":1381},"targetMethodName":"updatePosition","varMapping":{"__isSmartRef__":true,"id":1460},"converterString":"function (value) { return this.sourceObj }","dependendConnections":[{"__isSmartRef__":true,"id":1461},{"__isSmartRef__":true,"id":1463},{"__isSmartRef__":true,"id":1465},{"__isSmartRef__":true,"id":1467},{"__isSmartRef__":true,"id":1469},{"__isSmartRef__":true,"id":1471},{"__isSmartRef__":true,"id":1473},{"__isSmartRef__":true,"id":1475}],"oldTransform":{"__isSmartRef__":true,"id":1477},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1479},"__LivelyClassName__":"lively.morphic.GeometryTransformConnection","__SourceModuleName__":"Global.lively.bindings.GeometryBindings"},"1460":{"source":{"__isSmartRef__":true,"id":1426},"target":{"__isSmartRef__":true,"id":1381}},"1461":{"sourceObj":{"__isSmartRef__":true,"id":1426},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":1459},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":1462},"dependedBy":{"__isSmartRef__":true,"id":1459},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1462":{"source":{"__isSmartRef__":true,"id":1426},"target":{"__isSmartRef__":true,"id":1459}},"1463":{"sourceObj":{"__isSmartRef__":true,"id":1426},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":1459},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":1464},"dependedBy":{"__isSmartRef__":true,"id":1459},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1464":{"source":{"__isSmartRef__":true,"id":1426},"target":{"__isSmartRef__":true,"id":1459}},"1465":{"sourceObj":{"__isSmartRef__":true,"id":1426},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":1459},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":1466},"dependedBy":{"__isSmartRef__":true,"id":1459},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1466":{"source":{"__isSmartRef__":true,"id":1426},"target":{"__isSmartRef__":true,"id":1459}},"1467":{"sourceObj":{"__isSmartRef__":true,"id":1426},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":1459},"targetMethodName":"updateOwners","varMapping":{"__isSmartRef__":true,"id":1468},"dependedBy":{"__isSmartRef__":true,"id":1459},"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1468":{"source":{"__isSmartRef__":true,"id":1426},"target":{"__isSmartRef__":true,"id":1459}},"1469":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":1459},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":1470},"dependedBy":{"__isSmartRef__":true,"id":1459},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1470":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":1459}},"1471":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":1459},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":1472},"dependedBy":{"__isSmartRef__":true,"id":1459},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1472":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":1459}},"1473":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":1459},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":1474},"dependedBy":{"__isSmartRef__":true,"id":1459},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1474":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":1459}},"1475":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":1459},"targetMethodName":"updateOwners","varMapping":{"__isSmartRef__":true,"id":1476},"dependedBy":{"__isSmartRef__":true,"id":1459},"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1476":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":1459}},"1477":{"d":0.998003992015968,"a":0.998003992015968,"f":657.8223552894211,"e":121.1996007984032,"c":0,"b":0,"matrix_":{"__isSmartRef__":true,"id":1478},"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1478":{"a":0.998003992015968,"b":0,"c":0,"d":0.998003992015968,"e":121.1996007984032,"f":657.8223552894211,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1479":{"converter":{"__isSmartRef__":true,"id":1480}},"1480":{"varMapping":{"__isSmartRef__":true,"id":1460},"source":"function (value) { return this.sourceObj }","funcProperties":{"__isSmartRef__":true,"id":1481},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1481":{},"1482":{"morph":{"__isSmartRef__":true,"id":1426},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1483":{"morph":{"__isSmartRef__":true,"id":1426},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(263.1,936.8)"},"1484":{"morph":{"__isSmartRef__":true,"id":1426},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(336.7,936.8)"},"1485":{"morph":{"__isSmartRef__":true,"id":1426},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(410.3,936.8)"},"1486":{"morph":{"__isSmartRef__":true,"id":1426},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(410.3,980.6)"},"1487":{"morph":{"__isSmartRef__":true,"id":1426},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(410.3,1024.5)"},"1488":{"morph":{"__isSmartRef__":true,"id":1426},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(336.7,1024.5)"},"1489":{"morph":{"__isSmartRef__":true,"id":1426},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(263.1,1024.5)"},"1490":{"morph":{"__isSmartRef__":true,"id":1426},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(263.1,980.6)"},"1491":{"connect":{"__isSmartRef__":true,"id":1492},"updatePosition":{"__isSmartRef__":true,"id":1496},"updateControlPoint":{"__isSmartRef__":true,"id":1500},"disconnectMorph":{"__isSmartRef__":true,"id":1504},"connectMorph":{"__isSmartRef__":true,"id":1508},"onMouseOver":{"__isSmartRef__":true,"id":1512},"onMouseOut":{"__isSmartRef__":true,"id":1516},"makeHandle":{"__isSmartRef__":true,"id":1524},"showFromHandle":{"__isSmartRef__":true,"id":1528},"showToHandle":{"__isSmartRef__":true,"id":1532},"reset":{"__isSmartRef__":true,"id":1536},"onDragInHandle":{"__isSmartRef__":true,"id":1540},"onDragStartInHandle":{"__isSmartRef__":true,"id":1544},"onDragEndInHandle":{"__isSmartRef__":true,"id":1548},"connectFrom":{"__isSmartRef__":true,"id":1552},"connectTo":{"__isSmartRef__":true,"id":1556},"hideToHandle":{"__isSmartRef__":true,"id":1560},"hideFromHandle":{"__isSmartRef__":true,"id":1564},"updateIntersection":{"__isSmartRef__":true,"id":1568},"lineIntersect":{"__isSmartRef__":true,"id":1572},"intersectMorphLinePoints":{"__isSmartRef__":true,"id":1576},"intersectMorph":{"__isSmartRef__":true,"id":1580},"globalShapePathFromMorph":{"__isSmartRef__":true,"id":1584},"remove":{"__isSmartRef__":true,"id":1588},"migrateFrom":{"__isSmartRef__":true,"id":1596},"copy":{"__isSmartRef__":true,"id":1600},"disconnectAll":{"__isSmartRef__":true,"id":1608},"resumeSteppingAll":{"__isSmartRef__":true,"id":1612},"delayedHideHandles":{"__isSmartRef__":true,"id":1620},"hideHandles":{"__isSmartRef__":true,"id":1624},"grabByHand":{"__isSmartRef__":true,"id":1628},"onMouseDownEntry":{"__isSmartRef__":true,"id":1632},"distanceToPoint":{"__isSmartRef__":true,"id":1640},"dropOn":{"__isSmartRef__":true,"id":1644}},"1492":{"varMapping":{"__isSmartRef__":true,"id":1493},"source":"function connect(morphA, morphB) {\n this.connectFrom(morphA)\n this.connectTo(morphB)\n this.updatePosition()\n}","funcProperties":{"__isSmartRef__":true,"id":1494},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1493":{"this":{"__isSmartRef__":true,"id":1381}},"1494":{"timestamp":{"__isSmartRef__":true,"id":1495},"user":"jenslincke","tags":[]},"1495":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1496":{"varMapping":{"__isSmartRef__":true,"id":1497},"source":"function updatePosition(sourceMorph) {\n\n // some self healing code\n if (sourceMorph && sourceMorph !== this.toMorph && sourceMorph !== this.fromMorph) {\n this.disconnectMorph(sourceMorph)\n }\n try {\n this.updateControlPoint(this.controlPoints[0], this.fromMorph)\n this.updateControlPoint(this.controlPoints[1], this.toMorph)\n this.updateIntersection(this.fromMorph, this.controlPoints[0])\n this.updateIntersection(this.toMorph, this.controlPoints[1])\n } catch(e) {\n console.log(\"ERROR \" +this+\".updatePosition(\" + sourceMorph + \")\")\n }\n\n this.adjustOrigin(this.bounds().extent().scaleBy(0.5))\n}","funcProperties":{"__isSmartRef__":true,"id":1498},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1497":{"this":{"__isSmartRef__":true,"id":1381}},"1498":{"timestamp":{"__isSmartRef__":true,"id":1499},"user":"jenslincke","tags":[]},"1499":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1500":{"varMapping":{"__isSmartRef__":true,"id":1501},"source":"function updateControlPoint(cp, morph) {\n if (!cp || !morph) return;\n try {\n var pos = morph.worldPoint(morph.shape.bounds().center())\n } catch(e) {};\n if (pos)\n cp.setGlobalPos(pos)\n}","funcProperties":{"__isSmartRef__":true,"id":1502},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1501":{"this":{"__isSmartRef__":true,"id":1381}},"1502":{"timestamp":{"__isSmartRef__":true,"id":1503},"user":"jenslincke","tags":[]},"1503":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1504":{"varMapping":{"__isSmartRef__":true,"id":1505},"source":"function disconnectMorph(morph) {\n if (!morph) return;\n lively.bindings.disconnect(morph, 'globalTransform', this, 'updatePosition')\n}","funcProperties":{"__isSmartRef__":true,"id":1506},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1505":{"this":{"__isSmartRef__":true,"id":1381}},"1506":{"timestamp":{"__isSmartRef__":true,"id":1507},"user":"jenslincke","tags":[]},"1507":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1508":{"varMapping":{"__isSmartRef__":true,"id":1509},"source":"function connectMorph(morph) {\n if (morph)\n lively.bindings.connect(morph, 'globalTransform', this, 'updatePosition', {\n converter: function(value) { return this.sourceObj }\n })\n}","funcProperties":{"__isSmartRef__":true,"id":1510},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1509":{"this":{"__isSmartRef__":true,"id":1381}},"1510":{"timestamp":{"__isSmartRef__":true,"id":1511},"user":"jenslincke","tags":[]},"1511":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1512":{"varMapping":{"__isSmartRef__":true,"id":1513},"source":"function onMouseOver(evt) {\n this.lastOverTime = Date.now()\n var p = evt.getPosition()\n var cp1 = this.controlPoints[0].getGlobalPos();\n if (p.dist(cp1) < 20) {\n this.showFromHandle()\n } else {\n this.hideFromHandle()\n }\n var cp2 = this.controlPoints[1].getGlobalPos();\n if (p.dist(cp2) < 20) {\n this.showToHandle()\n } else {\n this.hideToHandle()\n }\n \n this.delayedHideHandles()\n}","funcProperties":{"__isSmartRef__":true,"id":1514},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1513":{"this":{"__isSmartRef__":true,"id":1381}},"1514":{"timestamp":{"__isSmartRef__":true,"id":1515},"user":"jenslincke","tags":[]},"1515":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1516":{"varMapping":{"__isSmartRef__":true,"id":1517},"source":"function onMouseOut(evt) {\n // this.hideFromHandle()\n // this.hideToHandle()\n}","funcProperties":{"__isSmartRef__":true,"id":1522},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1517":{"this":{"__isSmartRef__":true,"id":1381},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1518}},"1518":{"$super":{"__isSmartRef__":true,"id":1519}},"1519":{"varMapping":{"__isSmartRef__":true,"id":1520},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1521},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1520":{"obj":{"__isSmartRef__":true,"id":1381},"name":"onMouseOut"},"1521":{},"1522":{"timestamp":{"__isSmartRef__":true,"id":1523},"user":"jenslincke","tags":[]},"1523":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1524":{"varMapping":{"__isSmartRef__":true,"id":1525},"source":"function makeHandle() {\n var m = lively.morphic.Morph.makeRectangle(0,0,10,10);\n m.disableGrabbing()\n m.enableDragging()\n m.connector = this;\n // move real behavior to a place which is easier to develop\n // do not use bind, because we like late binding \n m.addScript(function onDragStart(evt) {\n this.connector.onDragStartInHandle(this, evt)\n })\n m.addScript(function onDrag(evt) {\n this.connector.onDragInHandle(this, evt)\n })\n m.addScript(function onDragEnd(evt) {\n this.connector.onDragEndInHandle(this, evt)\n })\n m.isEpiMorph = true;\n return m\n}","funcProperties":{"__isSmartRef__":true,"id":1526},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1525":{"this":{"__isSmartRef__":true,"id":1381}},"1526":{"timestamp":{"__isSmartRef__":true,"id":1527},"user":"jenslincke","tags":[]},"1527":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1528":{"varMapping":{"__isSmartRef__":true,"id":1529},"source":"function showFromHandle() {\n if (!this.fromHandle) {\n this.fromHandle = this.makeHandle();\n this.fromHandle.setFill(Color.red)\n this.fromHandle.isFromHandle = true;\n }\n this.fromHandle.openInWorld();\n this.fromHandle.controlPoint = this.controlPoints[0];\n this.fromHandle.setPosition(this.controlPoints[0].getGlobalPos().subPt(pt(5,5)))\n return this.fromHandle\n}","funcProperties":{"__isSmartRef__":true,"id":1530},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1529":{"this":{"__isSmartRef__":true,"id":1381}},"1530":{"timestamp":{"__isSmartRef__":true,"id":1531},"user":"jenslincke","tags":[]},"1531":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1532":{"varMapping":{"__isSmartRef__":true,"id":1533},"source":"function showToHandle() {\n if (!this.toHandle) {\n this.toHandle = this.makeHandle();\n this.toHandle.setFill(Color.red)\n this.toHandle.isToHandle = true;\n\n }\n this.toHandle.openInWorld();\n this.toHandle.controlPoint = this.controlPoints[1];\n this.toHandle.setPosition(this.controlPoints[1].getGlobalPos().subPt(pt(5,5)))\n return this.toHandle\n}","funcProperties":{"__isSmartRef__":true,"id":1534},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1533":{"this":{"__isSmartRef__":true,"id":1381}},"1534":{"timestamp":{"__isSmartRef__":true,"id":1535},"user":"jenslincke","tags":[]},"1535":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1536":{"varMapping":{"__isSmartRef__":true,"id":1537},"source":"function reset() {\n if (this.fromHandle) {\n this.fromHandle.remove()\n delete this.fromHandle\n }\n if (this.toHandle) {\n this.toHandle.remove()\n delete this.toHandle\n }\n \n this.droppingEnabled = false\n // this.controlPoints[1].setPos(pt(200,200))\n}","funcProperties":{"__isSmartRef__":true,"id":1538},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1537":{"this":{"__isSmartRef__":true,"id":1381}},"1538":{"timestamp":{"__isSmartRef__":true,"id":1539},"user":"jenslincke","tags":[]},"1539":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1540":{"varMapping":{"__isSmartRef__":true,"id":1541},"source":"function onDragInHandle(handle, evt) {\n this.lastOverTime = Date.now()\n var pos = handle.getPositionInWorld();\n var delta = evt.hand.getPosition().subPt(pos);\n handle.moveBy(delta)\n pos = handle.getPositionInWorld();\n if (handle.controlPoint)\n handle.controlPoint.setGlobalPos(pos.addPt(pt(5,5)))\n var morphs = this.owner.morphsContainingPoint(pos)\n morphs = morphs.reject(function(ea) {\n return ea.isWorld || (ea === handle) || (ea === this) || \n (ea === this.owner)\n }, this)\n if (this.selectedMorphHighlights) \n this.selectedMorphHighlights.invoke('remove')\n this.selectedMorph = morphs.first();\n this.selectedMorphHighlights = show(this.selectedMorph)\n handle.startPos = evt.getPosition();\n}","funcProperties":{"__isSmartRef__":true,"id":1542},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1541":{"this":{"__isSmartRef__":true,"id":1381}},"1542":{"timestamp":{"__isSmartRef__":true,"id":1543},"user":"jenslincke","tags":[]},"1543":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1544":{"varMapping":{"__isSmartRef__":true,"id":1545},"source":"function onDragStartInHandle(handle, evt) {\n handle.startPos = evt.getPosition()\n}","funcProperties":{"__isSmartRef__":true,"id":1546},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1545":{"this":{"__isSmartRef__":true,"id":1381}},"1546":{"timestamp":{"__isSmartRef__":true,"id":1547},"user":"jenslincke","tags":[]},"1547":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1548":{"varMapping":{"__isSmartRef__":true,"id":1549},"source":"function onDragEndInHandle(handle, evt) {\n if (this.selectedMorphHighlights) \n this.selectedMorphHighlights.invoke('remove')\n \n if (handle.isFromHandle) this.connectFrom(this.selectedMorph)\n if (handle.isToHandle) this.connectTo(this.selectedMorph)\n this.delayedHideHandles()\n this.updatePosition()\n}","funcProperties":{"__isSmartRef__":true,"id":1550},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1549":{"this":{"__isSmartRef__":true,"id":1381}},"1550":{"timestamp":{"__isSmartRef__":true,"id":1551},"user":"jenslincke","tags":[]},"1551":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1552":{"varMapping":{"__isSmartRef__":true,"id":1553},"source":"function connectFrom(morph) {\n if (morph && morph === this.toMorph) return; // not allowed\n\n this.disconnectMorph(this.fromMorph)\n this.fromMorph = morph;\n this.connectMorph(this.fromMorph)\n}","funcProperties":{"__isSmartRef__":true,"id":1554},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1553":{"this":{"__isSmartRef__":true,"id":1381}},"1554":{"timestamp":{"__isSmartRef__":true,"id":1555},"user":"jenslincke","tags":[]},"1555":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1556":{"varMapping":{"__isSmartRef__":true,"id":1557},"source":"function connectTo(morph) {\n\n if (morph && morph === this.fromMorph) return; // not allowed\n\n this.disconnectMorph(this.toMorph)\n this.toMorph = morph;\n this.connectMorph(this.toMorph)\n}","funcProperties":{"__isSmartRef__":true,"id":1558},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1557":{"this":{"__isSmartRef__":true,"id":1381}},"1558":{"timestamp":{"__isSmartRef__":true,"id":1559},"user":"jenslincke","tags":[]},"1559":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1560":{"varMapping":{"__isSmartRef__":true,"id":1561},"source":"function hideToHandle() {\n if (this.toHandle) this.toHandle.remove();\n}","funcProperties":{"__isSmartRef__":true,"id":1562},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1561":{"this":{"__isSmartRef__":true,"id":1381}},"1562":{"timestamp":{"__isSmartRef__":true,"id":1563},"user":"jenslincke","tags":[]},"1563":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1564":{"varMapping":{"__isSmartRef__":true,"id":1565},"source":"function hideFromHandle() {\n if (this.fromHandle) this.fromHandle.remove()\n}","funcProperties":{"__isSmartRef__":true,"id":1566},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1565":{"this":{"__isSmartRef__":true,"id":1381}},"1566":{"timestamp":{"__isSmartRef__":true,"id":1567},"user":"jenslincke","tags":[]},"1567":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1568":{"varMapping":{"__isSmartRef__":true,"id":1569},"source":"function updateIntersection(morph, cp) {\n if (!morph) return;\n var intersection = this.intersectMorph(morph)[0];\n if (intersection) {\n cp.setGlobalPos(intersection);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1570},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1569":{"this":{"__isSmartRef__":true,"id":1381}},"1570":{"timestamp":{"__isSmartRef__":true,"id":1571},"user":"jenslincke","tags":[]},"1571":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1572":{"varMapping":{"__isSmartRef__":true,"id":1573},"source":"function lineIntersect(a1, a2, b1, b2){\n // inspired by http://stackoverflow.com/questions/3746274/line-intersection-with-aabb-rectangle\n var b = a2.subPt(a1);\n var d = b2.subPt(b1);\n var bDotDPerp = b.x * d.y - b.y * d.x;\n\n // if b dot d == 0, it means the lines are parallel so have infinite intersection points\n if (bDotDPerp == 0)\n return null;\n\n var c = b1.subPt(a1);\n var t = (c.x * d.y - c.y * d.x) / bDotDPerp;\n if (t < 0 || t > 1)\n return null;\n\n var u = (c.x * b.y - c.y * b.x) / bDotDPerp;\n if (u < 0 || u > 1)\n return null;\n\n return a1.addPt(b.scaleBy(t));\n}","funcProperties":{"__isSmartRef__":true,"id":1574},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1573":{"this":{"__isSmartRef__":true,"id":1381}},"1574":{"timestamp":{"__isSmartRef__":true,"id":1575},"user":"jenslincke","tags":[]},"1575":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1576":{"varMapping":{"__isSmartRef__":true,"id":1577},"source":"function intersectMorphLinePoints(morph, a1, a2) {\n var points = this.globalShapePathFromMorph(morph);\n var intersections = [];\n points.inject(points.last(), function(last, ea) {\n var p = this.lineIntersect(a1, a2, last, ea)\n if (p) intersections.push(p)\n return ea\n }, this)\n return intersections\n}","funcProperties":{"__isSmartRef__":true,"id":1578},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1577":{"this":{"__isSmartRef__":true,"id":1381}},"1578":{"timestamp":{"__isSmartRef__":true,"id":1579},"user":"jenslincke","tags":[]},"1579":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1580":{"varMapping":{"__isSmartRef__":true,"id":1581},"source":"function intersectMorph(morph) {\n var line = this;\n return this.intersectMorphLinePoints(morph,\n line.controlPoints[0].getGlobalPos(), line.controlPoints[1].getGlobalPos())\n}","funcProperties":{"__isSmartRef__":true,"id":1582},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1581":{"this":{"__isSmartRef__":true,"id":1381}},"1582":{"timestamp":{"__isSmartRef__":true,"id":1583},"user":"jenslincke","tags":[]},"1583":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1584":{"varMapping":{"__isSmartRef__":true,"id":1585},"source":"function globalShapePathFromMorph(morph) {\n var b = morph.shape.bounds();\n var p1 = morph.worldPoint(b.topLeft()),\n p2 = morph.worldPoint(b.topRight()),\n p3 = morph.worldPoint(b.bottomRight()),\n p4 = morph.worldPoint(b.bottomLeft());\n return [p1, p2, p3, p4]\n}","funcProperties":{"__isSmartRef__":true,"id":1586},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1585":{"this":{"__isSmartRef__":true,"id":1381}},"1586":{"timestamp":{"__isSmartRef__":true,"id":1587},"user":"jenslincke","tags":[]},"1587":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1588":{"varMapping":{"__isSmartRef__":true,"id":1589},"source":"function remove() {\n \n this.disconnectMorph(this.fromMorph)\n this.disconnectMorph(this.toMorph)\n return $super()\n}","funcProperties":{"__isSmartRef__":true,"id":1594},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1589":{"this":{"__isSmartRef__":true,"id":1381},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1590}},"1590":{"$super":{"__isSmartRef__":true,"id":1591}},"1591":{"varMapping":{"__isSmartRef__":true,"id":1592},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1593},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1592":{"obj":{"__isSmartRef__":true,"id":1381},"name":"remove"},"1593":{},"1594":{"timestamp":{"__isSmartRef__":true,"id":1595},"user":"jenslincke","tags":[]},"1595":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1596":{"varMapping":{"__isSmartRef__":true,"id":1597},"source":"function migrateFrom(other) {\n\n this.disconnectMorph(this.fromMorph)\n this.disconnectMorph(this.toMorph)\n\n this.connectFrom(other.fromMorph)\n this.connectTo(other.toMorph)\n\n this.updatePosition()\n\n}","funcProperties":{"__isSmartRef__":true,"id":1598},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1597":{"this":{"__isSmartRef__":true,"id":1381}},"1598":{"timestamp":{"__isSmartRef__":true,"id":1599},"user":"jenslincke","tags":[]},"1599":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1600":{"varMapping":{"__isSmartRef__":true,"id":1601},"source":"function copy() {\n var r = $super()\n r.disconnectAll()\n return r\n}","funcProperties":{"__isSmartRef__":true,"id":1606},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1601":{"this":{"__isSmartRef__":true,"id":1381},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1602}},"1602":{"$super":{"__isSmartRef__":true,"id":1603}},"1603":{"varMapping":{"__isSmartRef__":true,"id":1604},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1605},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1604":{"obj":{"__isSmartRef__":true,"id":1381},"name":"copy"},"1605":{},"1606":{"timestamp":{"__isSmartRef__":true,"id":1607},"user":"jenslincke","tags":[]},"1607":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1608":{"varMapping":{"__isSmartRef__":true,"id":1609},"source":"function disconnectAll() {\n this.disconnectMorph(this.toMorph)\n this.disconnectMorph(this.fromMorph)\n this.fromMorph = null\n this.toMorph = null\n}","funcProperties":{"__isSmartRef__":true,"id":1610},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1609":{"this":{"__isSmartRef__":true,"id":1381}},"1610":{"timestamp":{"__isSmartRef__":true,"id":1611},"user":"jenslincke","tags":[]},"1611":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1612":{"varMapping":{"__isSmartRef__":true,"id":1613},"source":"function resumeSteppingAll() {\n this.connectMorph(this.fromMorph)\n this.connectMorph(this.toMorph)\n return $super()\n}","funcProperties":{"__isSmartRef__":true,"id":1618},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1613":{"this":{"__isSmartRef__":true,"id":1381},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1614}},"1614":{"$super":{"__isSmartRef__":true,"id":1615}},"1615":{"varMapping":{"__isSmartRef__":true,"id":1616},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1617},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1616":{"obj":{"__isSmartRef__":true,"id":1381},"name":"resumeSteppingAll"},"1617":{},"1618":{"timestamp":{"__isSmartRef__":true,"id":1619},"user":"jenslincke","tags":[]},"1619":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1620":{"varMapping":{"__isSmartRef__":true,"id":1621},"source":"function delayedHideHandles() {\n if (! this.lastOverTime) return; // it was handled already\n var delta = Date.now() - this.lastOverTime;\n if (delta > 2000) {\n this.hideHandles()\n this.lastOverTime = null;\n } else {\n this.delayedHideHandles.bind(this).delay(0.1)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1622},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1621":{"this":{"__isSmartRef__":true,"id":1381}},"1622":{"timestamp":{"__isSmartRef__":true,"id":1623},"user":"jenslincke","tags":[]},"1623":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1624":{"varMapping":{"__isSmartRef__":true,"id":1625},"source":"function hideHandles() {\n this.hideFromHandle()\n this.hideToHandle()\n}","funcProperties":{"__isSmartRef__":true,"id":1626},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1625":{"this":{"__isSmartRef__":true,"id":1381}},"1626":{"timestamp":{"__isSmartRef__":true,"id":1627},"user":"jenslincke","tags":[]},"1627":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1628":{"varMapping":{"__isSmartRef__":true,"id":1629},"source":"function grabByHand(hand) {\n this.disconnectAll()\n hand.addMorphWithShadow(this)\n}","funcProperties":{"__isSmartRef__":true,"id":1630},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1629":{"this":{"__isSmartRef__":true,"id":1381}},"1630":{"timestamp":{"__isSmartRef__":true,"id":1631},"user":"jenslincke","tags":[]},"1631":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1632":{"varMapping":{"__isSmartRef__":true,"id":1633},"source":"function onMouseDownEntry(evt) {\n var r = $super(evt)\n\n // var localPos = this.localize(evt.getPosition())\n // var distance = this.distanceToPoint(localPos)\n // alertOK(\"onMouseDownEntry: \" + distance)\n // if (distance > 20) {\n // evt.world.clickedOnMorph = null;\n // evt.world.clickedOnMorphTime = null;\n // evt.hand.scrollFocusMorph = null;\n // evt.hand.internalClickedOnMorph = null\n // return false\n // }\n // show(this.worldPoint(localPos))\n\n return r\n}","funcProperties":{"__isSmartRef__":true,"id":1638},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1633":{"this":{"__isSmartRef__":true,"id":1381},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1634}},"1634":{"$super":{"__isSmartRef__":true,"id":1635}},"1635":{"varMapping":{"__isSmartRef__":true,"id":1636},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1637},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1636":{"obj":{"__isSmartRef__":true,"id":1381},"name":"onMouseDownEntry"},"1637":{},"1638":{"timestamp":{"__isSmartRef__":true,"id":1639},"user":"jenslincke","tags":[]},"1639":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1640":{"varMapping":{"__isSmartRef__":true,"id":1641},"source":"function distanceToPoint(point) {\n // this.distanceToPoint(this.vertices()[0])\n // this.distanceToPoint(this.vertices()[1])\n // this.distanceToPoint(pt(0,0))\n\n // TODO move this to Math\n function sqr(x) { return x * x }\n function dist2(v, w) { return sqr(v.x - w.x) + sqr(v.y - w.y) }\n function distToSegmentSquared(p, v, w) {\n var l2 = dist2(v, w);\n if (l2 == 0) return dist2(p, v);\n var t = ((p.x - v.x) * (w.x - v.x) + (p.y - v.y) * (w.y - v.y)) / l2;\n if (t < 0) return dist2(p, v);\n if (t > 1) return dist2(p, w);\n return dist2(p, { x: v.x + t * (w.x - v.x),\n y: v.y + t * (w.y - v.y) });\n }\n function distToSegment(p, v, w) { return Math.sqrt(distToSegmentSquared(p, v, w)); }\n\n var vertices = this.vertices()\n\n return distToSegment(point, vertices.first(), vertices.last())\n}","funcProperties":{"__isSmartRef__":true,"id":1642},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1641":{"this":{"__isSmartRef__":true,"id":1381}},"1642":{"timestamp":{"__isSmartRef__":true,"id":1643},"user":"jenslincke","tags":[]},"1643":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1644":{"varMapping":{"__isSmartRef__":true,"id":1645},"source":"function dropOn(aMorph) {\n var r = $super(aMorph)\n this.sendToBack()\n return r\n}","funcProperties":{"__isSmartRef__":true,"id":1650},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1645":{"this":{"__isSmartRef__":true,"id":1381},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1646}},"1646":{"$super":{"__isSmartRef__":true,"id":1647}},"1647":{"varMapping":{"__isSmartRef__":true,"id":1648},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1649},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1648":{"obj":{"__isSmartRef__":true,"id":1381},"name":"dropOn"},"1649":{},"1650":{"timestamp":{"__isSmartRef__":true,"id":1651},"user":"jenslincke","tags":[]},"1651":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1652":{"source":{"__isSmartRef__":true,"id":1345},"target":{"__isSmartRef__":true,"id":1381}},"1653":{"sourceObj":{"__isSmartRef__":true,"id":1345},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":1380},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":1654},"dependedBy":{"__isSmartRef__":true,"id":1380},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1654":{"source":{"__isSmartRef__":true,"id":1345},"target":{"__isSmartRef__":true,"id":1380}},"1655":{"sourceObj":{"__isSmartRef__":true,"id":1345},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":1380},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":1656},"dependedBy":{"__isSmartRef__":true,"id":1380},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1656":{"source":{"__isSmartRef__":true,"id":1345},"target":{"__isSmartRef__":true,"id":1380}},"1657":{"sourceObj":{"__isSmartRef__":true,"id":1345},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":1380},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":1658},"dependedBy":{"__isSmartRef__":true,"id":1380},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1658":{"source":{"__isSmartRef__":true,"id":1345},"target":{"__isSmartRef__":true,"id":1380}},"1659":{"sourceObj":{"__isSmartRef__":true,"id":1345},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":1380},"targetMethodName":"updateOwners","varMapping":{"__isSmartRef__":true,"id":1660},"dependedBy":{"__isSmartRef__":true,"id":1380},"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1660":{"source":{"__isSmartRef__":true,"id":1345},"target":{"__isSmartRef__":true,"id":1380}},"1661":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":1380},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":1662},"dependedBy":{"__isSmartRef__":true,"id":1380},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1662":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":1380}},"1663":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":1380},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":1664},"dependedBy":{"__isSmartRef__":true,"id":1380},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1664":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":1380}},"1665":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":1380},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":1666},"dependedBy":{"__isSmartRef__":true,"id":1380},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1666":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":1380}},"1667":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":1380},"targetMethodName":"updateOwners","varMapping":{"__isSmartRef__":true,"id":1668},"dependedBy":{"__isSmartRef__":true,"id":1380},"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1668":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":1380}},"1669":{"d":0.998003992015968,"a":0.998003992015968,"f":571.8942115768463,"e":336.1696606786427,"c":0,"b":0,"matrix_":{"__isSmartRef__":true,"id":1670},"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1670":{"a":0.998003992015968,"b":0,"c":0,"d":0.998003992015968,"e":336.1696606786427,"f":571.8942115768463,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1671":{"converter":{"__isSmartRef__":true,"id":1672}},"1672":{"varMapping":{"__isSmartRef__":true,"id":1652},"source":"function (value) { return this.sourceObj }","funcProperties":{"__isSmartRef__":true,"id":1673},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1673":{},"1674":{"sourceObj":{"__isSmartRef__":true,"id":1345},"sourceAttrName":"globalTransform","targetObj":{"__isSmartRef__":true,"id":1300},"targetMethodName":"updatePosition","varMapping":{"__isSmartRef__":true,"id":1675},"converterString":"function (value) { return this.sourceObj }","dependendConnections":[{"__isSmartRef__":true,"id":1676},{"__isSmartRef__":true,"id":1678},{"__isSmartRef__":true,"id":1680},{"__isSmartRef__":true,"id":1682},{"__isSmartRef__":true,"id":1684},{"__isSmartRef__":true,"id":1686},{"__isSmartRef__":true,"id":1688},{"__isSmartRef__":true,"id":1690}],"oldTransform":{"__isSmartRef__":true,"id":1692},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1694},"__LivelyClassName__":"lively.morphic.GeometryTransformConnection","__SourceModuleName__":"Global.lively.bindings.GeometryBindings"},"1675":{"source":{"__isSmartRef__":true,"id":1345},"target":{"__isSmartRef__":true,"id":1300}},"1676":{"sourceObj":{"__isSmartRef__":true,"id":1345},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":1674},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":1677},"dependedBy":{"__isSmartRef__":true,"id":1674},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1677":{"source":{"__isSmartRef__":true,"id":1345},"target":{"__isSmartRef__":true,"id":1674}},"1678":{"sourceObj":{"__isSmartRef__":true,"id":1345},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":1674},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":1679},"dependedBy":{"__isSmartRef__":true,"id":1674},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1679":{"source":{"__isSmartRef__":true,"id":1345},"target":{"__isSmartRef__":true,"id":1674}},"1680":{"sourceObj":{"__isSmartRef__":true,"id":1345},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":1674},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":1681},"dependedBy":{"__isSmartRef__":true,"id":1674},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1681":{"source":{"__isSmartRef__":true,"id":1345},"target":{"__isSmartRef__":true,"id":1674}},"1682":{"sourceObj":{"__isSmartRef__":true,"id":1345},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":1674},"targetMethodName":"updateOwners","varMapping":{"__isSmartRef__":true,"id":1683},"dependedBy":{"__isSmartRef__":true,"id":1674},"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1683":{"source":{"__isSmartRef__":true,"id":1345},"target":{"__isSmartRef__":true,"id":1674}},"1684":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":1674},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":1685},"dependedBy":{"__isSmartRef__":true,"id":1674},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1685":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":1674}},"1686":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":1674},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":1687},"dependedBy":{"__isSmartRef__":true,"id":1674},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1687":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":1674}},"1688":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":1674},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":1689},"dependedBy":{"__isSmartRef__":true,"id":1674},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1689":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":1674}},"1690":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":1674},"targetMethodName":"updateOwners","varMapping":{"__isSmartRef__":true,"id":1691},"dependedBy":{"__isSmartRef__":true,"id":1674},"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1691":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":1674}},"1692":{"d":0.998003992015968,"a":0.998003992015968,"f":571.8942115768463,"e":336.1696606786427,"c":0,"b":0,"matrix_":{"__isSmartRef__":true,"id":1693},"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1693":{"a":0.998003992015968,"b":0,"c":0,"d":0.998003992015968,"e":336.1696606786427,"f":571.8942115768463,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1694":{"converter":{"__isSmartRef__":true,"id":1695}},"1695":{"varMapping":{"__isSmartRef__":true,"id":1675},"source":"function (value) { return this.sourceObj }","funcProperties":{"__isSmartRef__":true,"id":1696},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1696":{},"1697":{"sourceObj":{"__isSmartRef__":true,"id":1345},"sourceAttrName":"globalTransform","targetObj":{"__isSmartRef__":true,"id":1698},"targetMethodName":"updatePosition","varMapping":{"__isSmartRef__":true,"id":1904},"converterString":"function (value) { return this.sourceObj }","dependendConnections":[{"__isSmartRef__":true,"id":1905},{"__isSmartRef__":true,"id":1907},{"__isSmartRef__":true,"id":1909},{"__isSmartRef__":true,"id":1911},{"__isSmartRef__":true,"id":1913},{"__isSmartRef__":true,"id":1915},{"__isSmartRef__":true,"id":1917},{"__isSmartRef__":true,"id":1919}],"oldTransform":{"__isSmartRef__":true,"id":1921},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1923},"__LivelyClassName__":"lively.morphic.GeometryTransformConnection","__SourceModuleName__":"Global.lively.bindings.GeometryBindings"},"1698":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1699},"id":"E9498FE8-5C2D-409F-BACD-2FF0F4B8FC10","eventHandler":{"__isSmartRef__":true,"id":1702},"__layered_droppingEnabled__":false,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":1703},{"__isSmartRef__":true,"id":1704}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1705},"name":"Connector4","derivationIds":[731,"5E6BD741-9C99-47B9-95C1-7A028178DB17","A8D5C37A-F23F-47FE-8DE2-211CE4484A4F","F722069B-8602-4E8D-BE3F-92A1E0C0EF28","D5ED19F9-968E-4C7E-9936-69F2735A813F","A9E370BC-F208-425C-BFFC-F8D6BB52E11F","4E431641-D056-46CB-B2A8-6626382EF423","5E9FF80A-8869-4D30-9A4C-37023352650B","1E262BB0-B5EB-43C7-AEEF-1721047BD34B","3AC3D636-420C-4F13-820E-C9305261C874","014B85BE-2960-474C-BA9C-7428E21F6D51","A1EDB105-2F3D-4448-AE9E-91A87BE1A9AB","4238A9AF-D49B-4B76-A31C-B50EF24C2AE3","F218405D-EC22-448F-9F4E-8A023F38A2F2","DF372334-FE86-4CA1-A61A-F6DBDFF21DB6","EE1893C0-855C-49AB-932B-86E42ACE320F","AF75DCF2-49F1-45FB-9383-C84651A0F391","5CD7B250-EF36-4F92-B17A-419B00C709C0","9BA1EB61-AAB3-4A9F-9BE2-EDEF1BCBBA9C","071B4818-9DFC-481E-9882-1A6C3C7FBF01","0D995326-E28D-4711-9677-CCD9A41A7D87"],"_ClipMode":"visible","controlPointsHalos":[],"prevScroll":[0,0],"grabbingEnabled":false,"moved":true,"#startLetters":"accep","update":{"__isSmartRef__":true,"id":1741},"isCopyMorphRef":true,"morphRefId":1,"selectedMorphHighlights":[],"lastOverTime":null,"lastKeyStrokeTime":null,"fromMorph":{"__isSmartRef__":true,"id":1083},"toMorph":{"__isSmartRef__":true,"id":1345},"selectedMorph":{"__isSmartRef__":true,"id":1345},"owner":{"__isSmartRef__":true,"id":960},"_Rotation":0,"_Scale":1.002,"__serializedExpressions__":["distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1743},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","distanceToDragEvent":"lively.pt(151.0,-12.3)","_Position":"lively.pt(484.4,378.2)"},"1699":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1700},{"__isSmartRef__":true,"id":1701}],"_ClipMode":"visible","_BorderWidth":5,"_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":true,"_BorderStylingMode":false,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-37.1,-27.5)","_Extent":"lively.pt(74.3,55.1)","_BorderColor":"Color.rgb(161,161,161)"},"1700":{"isAbsolute":true,"x":35.13708423997522,"y":-24.53988764044948,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1701":{"isAbsolute":true,"x":-34.13708423997528,"y":25.53988764044948,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1702":{"morph":{"__isSmartRef__":true,"id":1698},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1703":{"morph":{"__isSmartRef__":true,"id":1698},"index":0,"connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1704":{"morph":{"__isSmartRef__":true,"id":1698},"index":1,"connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1705":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Jens/","comment":"Yes, I think I got it again: Powerful and nice connectors.\nThis time 100 % Part only!","partName":"Connector","lastModifiedDate":{"__isSmartRef__":true,"id":1706},"changes":[{"__isSmartRef__":true,"id":1707},{"__isSmartRef__":true,"id":1709},{"__isSmartRef__":true,"id":1711},{"__isSmartRef__":true,"id":1713},{"__isSmartRef__":true,"id":1715},{"__isSmartRef__":true,"id":1717},{"__isSmartRef__":true,"id":1719},{"__isSmartRef__":true,"id":1721},{"__isSmartRef__":true,"id":1723},{"__isSmartRef__":true,"id":1725},{"__isSmartRef__":true,"id":1727},{"__isSmartRef__":true,"id":1729},{"__isSmartRef__":true,"id":1731},{"__isSmartRef__":true,"id":1733},{"__isSmartRef__":true,"id":1735},{"__isSmartRef__":true,"id":1737},{"__isSmartRef__":true,"id":1739}],"revisionOnLoad":204084,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1706":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1707":{"date":{"__isSmartRef__":true,"id":1708},"author":"jenslincke","message":"no comment","id":"D7359A4C-CE5D-4BB6-91CF-D47E8CD9DC8D"},"1708":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1709":{"date":{"__isSmartRef__":true,"id":1710},"author":"jenslincke","message":"no comment","id":"0DB540E7-E5AF-4800-BBD5-932B86D501BE"},"1710":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1711":{"date":{"__isSmartRef__":true,"id":1712},"author":"jenslincke","message":"no comment","id":"3AE4DB59-853F-4DB2-A99D-2822B27C73F2"},"1712":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1713":{"date":{"__isSmartRef__":true,"id":1714},"author":"jenslincke","message":"no comment","id":"DD1ABC51-1DCC-4B97-BDB4-355D28118CE9"},"1714":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1715":{"date":{"__isSmartRef__":true,"id":1716},"author":"jenslincke","message":"no comment","id":"92FDE03B-DE85-4805-84B6-3B6DA90E6348"},"1716":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1717":{"date":{"__isSmartRef__":true,"id":1718},"author":"jenslincke","message":"no comment","id":"3F64B004-21CC-4E77-82A4-642B296327F0"},"1718":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1719":{"date":{"__isSmartRef__":true,"id":1720},"author":"jenslincke","message":"no comment","id":"6E97D136-9F49-4570-8EC9-BFF3786EEA8D"},"1720":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1721":{"date":{"__isSmartRef__":true,"id":1722},"author":"jenslincke","message":"no comment","id":"A022B160-32B3-4AD2-A005-0A7B11B80584"},"1722":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1723":{"date":{"__isSmartRef__":true,"id":1724},"author":"jenslincke","message":"no comment","id":"B3F0BD32-A3D2-4AAB-97D5-8FB7637C6A9A"},"1724":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1725":{"date":{"__isSmartRef__":true,"id":1726},"author":"jenslincke","message":"no comment","id":"D8953E55-38AD-480A-8B9C-E4A86C90D48E"},"1726":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1727":{"date":{"__isSmartRef__":true,"id":1728},"author":"jenslincke","message":"no comment","id":"E9F9AE91-A058-465E-8F58-5CC00A962D0C"},"1728":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1729":{"date":{"__isSmartRef__":true,"id":1730},"author":"jenslincke","message":"no comment","id":"ED70FB47-8AA0-4D4E-8D90-FF99454C924B"},"1730":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1731":{"date":{"__isSmartRef__":true,"id":1732},"author":"jenslincke","message":"no comment","id":"28165CED-C8C5-4B8E-9655-645E3F5099BB"},"1732":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1733":{"date":{"__isSmartRef__":true,"id":1734},"author":"jenslincke","message":"no comment","id":"117C964B-9768-48F2-8EC8-D4328478198F"},"1734":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1735":{"date":{"__isSmartRef__":true,"id":1736},"author":"jenslincke","message":"no comment","id":"79159460-DFFB-462D-AFC9-EECD3539A1A9"},"1736":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1737":{"date":{"__isSmartRef__":true,"id":1738},"author":"jenslincke","message":"no comment","id":"3D5067AE-5BA0-4317-837F-59F8F61B8B24"},"1738":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1739":{"date":{"__isSmartRef__":true,"id":1740},"author":"jenslincke","message":"fixed scaling issues","id":"97E95E76-A88F-44AB-A6E9-6BA5DCC4045D"},"1740":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1741":{"d":1,"a":1,"f":906.1,"e":107.8,"c":0,"b":0,"matrix_":{"__isSmartRef__":true,"id":1742},"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1742":{"a":1,"b":0,"c":0,"d":1,"e":107.8,"f":906.1,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1743":{"connect":{"__isSmartRef__":true,"id":1744},"updatePosition":{"__isSmartRef__":true,"id":1748},"updateControlPoint":{"__isSmartRef__":true,"id":1752},"disconnectMorph":{"__isSmartRef__":true,"id":1756},"connectMorph":{"__isSmartRef__":true,"id":1760},"onMouseOver":{"__isSmartRef__":true,"id":1764},"onMouseOut":{"__isSmartRef__":true,"id":1768},"makeHandle":{"__isSmartRef__":true,"id":1776},"showFromHandle":{"__isSmartRef__":true,"id":1780},"showToHandle":{"__isSmartRef__":true,"id":1784},"reset":{"__isSmartRef__":true,"id":1788},"onDragInHandle":{"__isSmartRef__":true,"id":1792},"onDragStartInHandle":{"__isSmartRef__":true,"id":1796},"onDragEndInHandle":{"__isSmartRef__":true,"id":1800},"connectFrom":{"__isSmartRef__":true,"id":1804},"connectTo":{"__isSmartRef__":true,"id":1808},"hideToHandle":{"__isSmartRef__":true,"id":1812},"hideFromHandle":{"__isSmartRef__":true,"id":1816},"updateIntersection":{"__isSmartRef__":true,"id":1820},"lineIntersect":{"__isSmartRef__":true,"id":1824},"intersectMorphLinePoints":{"__isSmartRef__":true,"id":1828},"intersectMorph":{"__isSmartRef__":true,"id":1832},"globalShapePathFromMorph":{"__isSmartRef__":true,"id":1836},"remove":{"__isSmartRef__":true,"id":1840},"migrateFrom":{"__isSmartRef__":true,"id":1848},"copy":{"__isSmartRef__":true,"id":1852},"disconnectAll":{"__isSmartRef__":true,"id":1860},"resumeSteppingAll":{"__isSmartRef__":true,"id":1864},"delayedHideHandles":{"__isSmartRef__":true,"id":1872},"hideHandles":{"__isSmartRef__":true,"id":1876},"grabByHand":{"__isSmartRef__":true,"id":1880},"onMouseDownEntry":{"__isSmartRef__":true,"id":1884},"distanceToPoint":{"__isSmartRef__":true,"id":1892},"dropOn":{"__isSmartRef__":true,"id":1896}},"1744":{"varMapping":{"__isSmartRef__":true,"id":1745},"source":"function connect(morphA, morphB) {\n this.connectFrom(morphA)\n this.connectTo(morphB)\n this.updatePosition()\n}","funcProperties":{"__isSmartRef__":true,"id":1746},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1745":{"this":{"__isSmartRef__":true,"id":1698}},"1746":{"timestamp":{"__isSmartRef__":true,"id":1747},"user":"jenslincke","tags":[]},"1747":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1748":{"varMapping":{"__isSmartRef__":true,"id":1749},"source":"function updatePosition(sourceMorph) {\n\n // some self healing code\n if (sourceMorph && sourceMorph !== this.toMorph && sourceMorph !== this.fromMorph) {\n this.disconnectMorph(sourceMorph)\n }\n try {\n this.updateControlPoint(this.controlPoints[0], this.fromMorph)\n this.updateControlPoint(this.controlPoints[1], this.toMorph)\n this.updateIntersection(this.fromMorph, this.controlPoints[0])\n this.updateIntersection(this.toMorph, this.controlPoints[1])\n } catch(e) {\n console.log(\"ERROR \" +this+\".updatePosition(\" + sourceMorph + \")\")\n }\n\n this.adjustOrigin(this.bounds().extent().scaleBy(0.5))\n}","funcProperties":{"__isSmartRef__":true,"id":1750},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1749":{"this":{"__isSmartRef__":true,"id":1698}},"1750":{"timestamp":{"__isSmartRef__":true,"id":1751},"user":"jenslincke","tags":[]},"1751":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1752":{"varMapping":{"__isSmartRef__":true,"id":1753},"source":"function updateControlPoint(cp, morph) {\n if (!cp || !morph) return;\n try {\n var pos = morph.worldPoint(morph.shape.bounds().center())\n } catch(e) {};\n if (pos)\n cp.setGlobalPos(pos)\n}","funcProperties":{"__isSmartRef__":true,"id":1754},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1753":{"this":{"__isSmartRef__":true,"id":1698}},"1754":{"timestamp":{"__isSmartRef__":true,"id":1755},"user":"jenslincke","tags":[]},"1755":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1756":{"varMapping":{"__isSmartRef__":true,"id":1757},"source":"function disconnectMorph(morph) {\n if (!morph) return;\n lively.bindings.disconnect(morph, 'globalTransform', this, 'updatePosition')\n}","funcProperties":{"__isSmartRef__":true,"id":1758},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1757":{"this":{"__isSmartRef__":true,"id":1698}},"1758":{"timestamp":{"__isSmartRef__":true,"id":1759},"user":"jenslincke","tags":[]},"1759":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1760":{"varMapping":{"__isSmartRef__":true,"id":1761},"source":"function connectMorph(morph) {\n if (morph)\n lively.bindings.connect(morph, 'globalTransform', this, 'updatePosition', {\n converter: function(value) { return this.sourceObj }\n })\n}","funcProperties":{"__isSmartRef__":true,"id":1762},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1761":{"this":{"__isSmartRef__":true,"id":1698}},"1762":{"timestamp":{"__isSmartRef__":true,"id":1763},"user":"jenslincke","tags":[]},"1763":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1764":{"varMapping":{"__isSmartRef__":true,"id":1765},"source":"function onMouseOver(evt) {\n this.lastOverTime = Date.now()\n var p = evt.getPosition()\n var cp1 = this.controlPoints[0].getGlobalPos();\n if (p.dist(cp1) < 20) {\n this.showFromHandle()\n } else {\n this.hideFromHandle()\n }\n var cp2 = this.controlPoints[1].getGlobalPos();\n if (p.dist(cp2) < 20) {\n this.showToHandle()\n } else {\n this.hideToHandle()\n }\n \n this.delayedHideHandles()\n}","funcProperties":{"__isSmartRef__":true,"id":1766},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1765":{"this":{"__isSmartRef__":true,"id":1698}},"1766":{"timestamp":{"__isSmartRef__":true,"id":1767},"user":"jenslincke","tags":[]},"1767":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1768":{"varMapping":{"__isSmartRef__":true,"id":1769},"source":"function onMouseOut(evt) {\n // this.hideFromHandle()\n // this.hideToHandle()\n}","funcProperties":{"__isSmartRef__":true,"id":1774},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1769":{"this":{"__isSmartRef__":true,"id":1698},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1770}},"1770":{"$super":{"__isSmartRef__":true,"id":1771}},"1771":{"varMapping":{"__isSmartRef__":true,"id":1772},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1773},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1772":{"obj":{"__isSmartRef__":true,"id":1698},"name":"onMouseOut"},"1773":{},"1774":{"timestamp":{"__isSmartRef__":true,"id":1775},"user":"jenslincke","tags":[]},"1775":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1776":{"varMapping":{"__isSmartRef__":true,"id":1777},"source":"function makeHandle() {\n var m = lively.morphic.Morph.makeRectangle(0,0,10,10);\n m.disableGrabbing()\n m.enableDragging()\n m.connector = this;\n // move real behavior to a place which is easier to develop\n // do not use bind, because we like late binding \n m.addScript(function onDragStart(evt) {\n this.connector.onDragStartInHandle(this, evt)\n })\n m.addScript(function onDrag(evt) {\n this.connector.onDragInHandle(this, evt)\n })\n m.addScript(function onDragEnd(evt) {\n this.connector.onDragEndInHandle(this, evt)\n })\n m.isEpiMorph = true;\n return m\n}","funcProperties":{"__isSmartRef__":true,"id":1778},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1777":{"this":{"__isSmartRef__":true,"id":1698}},"1778":{"timestamp":{"__isSmartRef__":true,"id":1779},"user":"jenslincke","tags":[]},"1779":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1780":{"varMapping":{"__isSmartRef__":true,"id":1781},"source":"function showFromHandle() {\n if (!this.fromHandle) {\n this.fromHandle = this.makeHandle();\n this.fromHandle.setFill(Color.red)\n this.fromHandle.isFromHandle = true;\n }\n this.fromHandle.openInWorld();\n this.fromHandle.controlPoint = this.controlPoints[0];\n this.fromHandle.setPosition(this.controlPoints[0].getGlobalPos().subPt(pt(5,5)))\n return this.fromHandle\n}","funcProperties":{"__isSmartRef__":true,"id":1782},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1781":{"this":{"__isSmartRef__":true,"id":1698}},"1782":{"timestamp":{"__isSmartRef__":true,"id":1783},"user":"jenslincke","tags":[]},"1783":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1784":{"varMapping":{"__isSmartRef__":true,"id":1785},"source":"function showToHandle() {\n if (!this.toHandle) {\n this.toHandle = this.makeHandle();\n this.toHandle.setFill(Color.red)\n this.toHandle.isToHandle = true;\n\n }\n this.toHandle.openInWorld();\n this.toHandle.controlPoint = this.controlPoints[1];\n this.toHandle.setPosition(this.controlPoints[1].getGlobalPos().subPt(pt(5,5)))\n return this.toHandle\n}","funcProperties":{"__isSmartRef__":true,"id":1786},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1785":{"this":{"__isSmartRef__":true,"id":1698}},"1786":{"timestamp":{"__isSmartRef__":true,"id":1787},"user":"jenslincke","tags":[]},"1787":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1788":{"varMapping":{"__isSmartRef__":true,"id":1789},"source":"function reset() {\n if (this.fromHandle) {\n this.fromHandle.remove()\n delete this.fromHandle\n }\n if (this.toHandle) {\n this.toHandle.remove()\n delete this.toHandle\n }\n \n this.droppingEnabled = false\n // this.controlPoints[1].setPos(pt(200,200))\n}","funcProperties":{"__isSmartRef__":true,"id":1790},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1789":{"this":{"__isSmartRef__":true,"id":1698}},"1790":{"timestamp":{"__isSmartRef__":true,"id":1791},"user":"jenslincke","tags":[]},"1791":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1792":{"varMapping":{"__isSmartRef__":true,"id":1793},"source":"function onDragInHandle(handle, evt) {\n this.lastOverTime = Date.now()\n var pos = handle.getPositionInWorld();\n var delta = evt.hand.getPosition().subPt(pos);\n handle.moveBy(delta)\n pos = handle.getPositionInWorld();\n if (handle.controlPoint)\n handle.controlPoint.setGlobalPos(pos.addPt(pt(5,5)))\n var morphs = this.owner.morphsContainingPoint(pos)\n morphs = morphs.reject(function(ea) {\n return ea.isWorld || (ea === handle) || (ea === this) || \n (ea === this.owner)\n }, this)\n if (this.selectedMorphHighlights) \n this.selectedMorphHighlights.invoke('remove')\n this.selectedMorph = morphs.first();\n this.selectedMorphHighlights = show(this.selectedMorph)\n handle.startPos = evt.getPosition();\n}","funcProperties":{"__isSmartRef__":true,"id":1794},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1793":{"this":{"__isSmartRef__":true,"id":1698}},"1794":{"timestamp":{"__isSmartRef__":true,"id":1795},"user":"jenslincke","tags":[]},"1795":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1796":{"varMapping":{"__isSmartRef__":true,"id":1797},"source":"function onDragStartInHandle(handle, evt) {\n handle.startPos = evt.getPosition()\n}","funcProperties":{"__isSmartRef__":true,"id":1798},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1797":{"this":{"__isSmartRef__":true,"id":1698}},"1798":{"timestamp":{"__isSmartRef__":true,"id":1799},"user":"jenslincke","tags":[]},"1799":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1800":{"varMapping":{"__isSmartRef__":true,"id":1801},"source":"function onDragEndInHandle(handle, evt) {\n if (this.selectedMorphHighlights) \n this.selectedMorphHighlights.invoke('remove')\n \n if (handle.isFromHandle) this.connectFrom(this.selectedMorph)\n if (handle.isToHandle) this.connectTo(this.selectedMorph)\n this.delayedHideHandles()\n this.updatePosition()\n}","funcProperties":{"__isSmartRef__":true,"id":1802},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1801":{"this":{"__isSmartRef__":true,"id":1698}},"1802":{"timestamp":{"__isSmartRef__":true,"id":1803},"user":"jenslincke","tags":[]},"1803":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1804":{"varMapping":{"__isSmartRef__":true,"id":1805},"source":"function connectFrom(morph) {\n if (morph && morph === this.toMorph) return; // not allowed\n\n this.disconnectMorph(this.fromMorph)\n this.fromMorph = morph;\n this.connectMorph(this.fromMorph)\n}","funcProperties":{"__isSmartRef__":true,"id":1806},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1805":{"this":{"__isSmartRef__":true,"id":1698}},"1806":{"timestamp":{"__isSmartRef__":true,"id":1807},"user":"jenslincke","tags":[]},"1807":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1808":{"varMapping":{"__isSmartRef__":true,"id":1809},"source":"function connectTo(morph) {\n\n if (morph && morph === this.fromMorph) return; // not allowed\n\n this.disconnectMorph(this.toMorph)\n this.toMorph = morph;\n this.connectMorph(this.toMorph)\n}","funcProperties":{"__isSmartRef__":true,"id":1810},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1809":{"this":{"__isSmartRef__":true,"id":1698}},"1810":{"timestamp":{"__isSmartRef__":true,"id":1811},"user":"jenslincke","tags":[]},"1811":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1812":{"varMapping":{"__isSmartRef__":true,"id":1813},"source":"function hideToHandle() {\n if (this.toHandle) this.toHandle.remove();\n}","funcProperties":{"__isSmartRef__":true,"id":1814},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1813":{"this":{"__isSmartRef__":true,"id":1698}},"1814":{"timestamp":{"__isSmartRef__":true,"id":1815},"user":"jenslincke","tags":[]},"1815":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1816":{"varMapping":{"__isSmartRef__":true,"id":1817},"source":"function hideFromHandle() {\n if (this.fromHandle) this.fromHandle.remove()\n}","funcProperties":{"__isSmartRef__":true,"id":1818},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1817":{"this":{"__isSmartRef__":true,"id":1698}},"1818":{"timestamp":{"__isSmartRef__":true,"id":1819},"user":"jenslincke","tags":[]},"1819":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1820":{"varMapping":{"__isSmartRef__":true,"id":1821},"source":"function updateIntersection(morph, cp) {\n if (!morph) return;\n var intersection = this.intersectMorph(morph)[0];\n if (intersection) {\n cp.setGlobalPos(intersection);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1822},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1821":{"this":{"__isSmartRef__":true,"id":1698}},"1822":{"timestamp":{"__isSmartRef__":true,"id":1823},"user":"jenslincke","tags":[]},"1823":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1824":{"varMapping":{"__isSmartRef__":true,"id":1825},"source":"function lineIntersect(a1, a2, b1, b2){\n // inspired by http://stackoverflow.com/questions/3746274/line-intersection-with-aabb-rectangle\n var b = a2.subPt(a1);\n var d = b2.subPt(b1);\n var bDotDPerp = b.x * d.y - b.y * d.x;\n\n // if b dot d == 0, it means the lines are parallel so have infinite intersection points\n if (bDotDPerp == 0)\n return null;\n\n var c = b1.subPt(a1);\n var t = (c.x * d.y - c.y * d.x) / bDotDPerp;\n if (t < 0 || t > 1)\n return null;\n\n var u = (c.x * b.y - c.y * b.x) / bDotDPerp;\n if (u < 0 || u > 1)\n return null;\n\n return a1.addPt(b.scaleBy(t));\n}","funcProperties":{"__isSmartRef__":true,"id":1826},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1825":{"this":{"__isSmartRef__":true,"id":1698}},"1826":{"timestamp":{"__isSmartRef__":true,"id":1827},"user":"jenslincke","tags":[]},"1827":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1828":{"varMapping":{"__isSmartRef__":true,"id":1829},"source":"function intersectMorphLinePoints(morph, a1, a2) {\n var points = this.globalShapePathFromMorph(morph);\n var intersections = [];\n points.inject(points.last(), function(last, ea) {\n var p = this.lineIntersect(a1, a2, last, ea)\n if (p) intersections.push(p)\n return ea\n }, this)\n return intersections\n}","funcProperties":{"__isSmartRef__":true,"id":1830},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1829":{"this":{"__isSmartRef__":true,"id":1698}},"1830":{"timestamp":{"__isSmartRef__":true,"id":1831},"user":"jenslincke","tags":[]},"1831":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1832":{"varMapping":{"__isSmartRef__":true,"id":1833},"source":"function intersectMorph(morph) {\n var line = this;\n return this.intersectMorphLinePoints(morph,\n line.controlPoints[0].getGlobalPos(), line.controlPoints[1].getGlobalPos())\n}","funcProperties":{"__isSmartRef__":true,"id":1834},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1833":{"this":{"__isSmartRef__":true,"id":1698}},"1834":{"timestamp":{"__isSmartRef__":true,"id":1835},"user":"jenslincke","tags":[]},"1835":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1836":{"varMapping":{"__isSmartRef__":true,"id":1837},"source":"function globalShapePathFromMorph(morph) {\n var b = morph.shape.bounds();\n var p1 = morph.worldPoint(b.topLeft()),\n p2 = morph.worldPoint(b.topRight()),\n p3 = morph.worldPoint(b.bottomRight()),\n p4 = morph.worldPoint(b.bottomLeft());\n return [p1, p2, p3, p4]\n}","funcProperties":{"__isSmartRef__":true,"id":1838},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1837":{"this":{"__isSmartRef__":true,"id":1698}},"1838":{"timestamp":{"__isSmartRef__":true,"id":1839},"user":"jenslincke","tags":[]},"1839":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1840":{"varMapping":{"__isSmartRef__":true,"id":1841},"source":"function remove() {\n \n this.disconnectMorph(this.fromMorph)\n this.disconnectMorph(this.toMorph)\n return $super()\n}","funcProperties":{"__isSmartRef__":true,"id":1846},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1841":{"this":{"__isSmartRef__":true,"id":1698},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1842}},"1842":{"$super":{"__isSmartRef__":true,"id":1843}},"1843":{"varMapping":{"__isSmartRef__":true,"id":1844},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1845},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1844":{"obj":{"__isSmartRef__":true,"id":1698},"name":"remove"},"1845":{},"1846":{"timestamp":{"__isSmartRef__":true,"id":1847},"user":"jenslincke","tags":[]},"1847":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1848":{"varMapping":{"__isSmartRef__":true,"id":1849},"source":"function migrateFrom(other) {\n\n this.disconnectMorph(this.fromMorph)\n this.disconnectMorph(this.toMorph)\n\n this.connectFrom(other.fromMorph)\n this.connectTo(other.toMorph)\n\n this.updatePosition()\n\n}","funcProperties":{"__isSmartRef__":true,"id":1850},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1849":{"this":{"__isSmartRef__":true,"id":1698}},"1850":{"timestamp":{"__isSmartRef__":true,"id":1851},"user":"jenslincke","tags":[]},"1851":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1852":{"varMapping":{"__isSmartRef__":true,"id":1853},"source":"function copy() {\n var r = $super()\n r.disconnectAll()\n return r\n}","funcProperties":{"__isSmartRef__":true,"id":1858},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1853":{"this":{"__isSmartRef__":true,"id":1698},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1854}},"1854":{"$super":{"__isSmartRef__":true,"id":1855}},"1855":{"varMapping":{"__isSmartRef__":true,"id":1856},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1857},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1856":{"obj":{"__isSmartRef__":true,"id":1698},"name":"copy"},"1857":{},"1858":{"timestamp":{"__isSmartRef__":true,"id":1859},"user":"jenslincke","tags":[]},"1859":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1860":{"varMapping":{"__isSmartRef__":true,"id":1861},"source":"function disconnectAll() {\n this.disconnectMorph(this.toMorph)\n this.disconnectMorph(this.fromMorph)\n this.fromMorph = null\n this.toMorph = null\n}","funcProperties":{"__isSmartRef__":true,"id":1862},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1861":{"this":{"__isSmartRef__":true,"id":1698}},"1862":{"timestamp":{"__isSmartRef__":true,"id":1863},"user":"jenslincke","tags":[]},"1863":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1864":{"varMapping":{"__isSmartRef__":true,"id":1865},"source":"function resumeSteppingAll() {\n this.connectMorph(this.fromMorph)\n this.connectMorph(this.toMorph)\n return $super()\n}","funcProperties":{"__isSmartRef__":true,"id":1870},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1865":{"this":{"__isSmartRef__":true,"id":1698},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1866}},"1866":{"$super":{"__isSmartRef__":true,"id":1867}},"1867":{"varMapping":{"__isSmartRef__":true,"id":1868},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1869},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1868":{"obj":{"__isSmartRef__":true,"id":1698},"name":"resumeSteppingAll"},"1869":{},"1870":{"timestamp":{"__isSmartRef__":true,"id":1871},"user":"jenslincke","tags":[]},"1871":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1872":{"varMapping":{"__isSmartRef__":true,"id":1873},"source":"function delayedHideHandles() {\n if (! this.lastOverTime) return; // it was handled already\n var delta = Date.now() - this.lastOverTime;\n if (delta > 2000) {\n this.hideHandles()\n this.lastOverTime = null;\n } else {\n this.delayedHideHandles.bind(this).delay(0.1)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1874},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1873":{"this":{"__isSmartRef__":true,"id":1698}},"1874":{"timestamp":{"__isSmartRef__":true,"id":1875},"user":"jenslincke","tags":[]},"1875":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1876":{"varMapping":{"__isSmartRef__":true,"id":1877},"source":"function hideHandles() {\n this.hideFromHandle()\n this.hideToHandle()\n}","funcProperties":{"__isSmartRef__":true,"id":1878},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1877":{"this":{"__isSmartRef__":true,"id":1698}},"1878":{"timestamp":{"__isSmartRef__":true,"id":1879},"user":"jenslincke","tags":[]},"1879":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1880":{"varMapping":{"__isSmartRef__":true,"id":1881},"source":"function grabByHand(hand) {\n this.disconnectAll()\n hand.addMorphWithShadow(this)\n}","funcProperties":{"__isSmartRef__":true,"id":1882},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1881":{"this":{"__isSmartRef__":true,"id":1698}},"1882":{"timestamp":{"__isSmartRef__":true,"id":1883},"user":"jenslincke","tags":[]},"1883":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1884":{"varMapping":{"__isSmartRef__":true,"id":1885},"source":"function onMouseDownEntry(evt) {\n var r = $super(evt)\n\n // var localPos = this.localize(evt.getPosition())\n // var distance = this.distanceToPoint(localPos)\n // alertOK(\"onMouseDownEntry: \" + distance)\n // if (distance > 20) {\n // evt.world.clickedOnMorph = null;\n // evt.world.clickedOnMorphTime = null;\n // evt.hand.scrollFocusMorph = null;\n // evt.hand.internalClickedOnMorph = null\n // return false\n // }\n // show(this.worldPoint(localPos))\n\n return r\n}","funcProperties":{"__isSmartRef__":true,"id":1890},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1885":{"this":{"__isSmartRef__":true,"id":1698},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1886}},"1886":{"$super":{"__isSmartRef__":true,"id":1887}},"1887":{"varMapping":{"__isSmartRef__":true,"id":1888},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1889},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1888":{"obj":{"__isSmartRef__":true,"id":1698},"name":"onMouseDownEntry"},"1889":{},"1890":{"timestamp":{"__isSmartRef__":true,"id":1891},"user":"jenslincke","tags":[]},"1891":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1892":{"varMapping":{"__isSmartRef__":true,"id":1893},"source":"function distanceToPoint(point) {\n // this.distanceToPoint(this.vertices()[0])\n // this.distanceToPoint(this.vertices()[1])\n // this.distanceToPoint(pt(0,0))\n\n // TODO move this to Math\n function sqr(x) { return x * x }\n function dist2(v, w) { return sqr(v.x - w.x) + sqr(v.y - w.y) }\n function distToSegmentSquared(p, v, w) {\n var l2 = dist2(v, w);\n if (l2 == 0) return dist2(p, v);\n var t = ((p.x - v.x) * (w.x - v.x) + (p.y - v.y) * (w.y - v.y)) / l2;\n if (t < 0) return dist2(p, v);\n if (t > 1) return dist2(p, w);\n return dist2(p, { x: v.x + t * (w.x - v.x),\n y: v.y + t * (w.y - v.y) });\n }\n function distToSegment(p, v, w) { return Math.sqrt(distToSegmentSquared(p, v, w)); }\n\n var vertices = this.vertices()\n\n return distToSegment(point, vertices.first(), vertices.last())\n}","funcProperties":{"__isSmartRef__":true,"id":1894},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1893":{"this":{"__isSmartRef__":true,"id":1698}},"1894":{"timestamp":{"__isSmartRef__":true,"id":1895},"user":"jenslincke","tags":[]},"1895":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1896":{"varMapping":{"__isSmartRef__":true,"id":1897},"source":"function dropOn(aMorph) {\n var r = $super(aMorph)\n this.sendToBack()\n return r\n}","funcProperties":{"__isSmartRef__":true,"id":1902},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1897":{"this":{"__isSmartRef__":true,"id":1698},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1898}},"1898":{"$super":{"__isSmartRef__":true,"id":1899}},"1899":{"varMapping":{"__isSmartRef__":true,"id":1900},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1901},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1900":{"obj":{"__isSmartRef__":true,"id":1698},"name":"dropOn"},"1901":{},"1902":{"timestamp":{"__isSmartRef__":true,"id":1903},"user":"jenslincke","tags":[]},"1903":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1904":{"source":{"__isSmartRef__":true,"id":1345},"target":{"__isSmartRef__":true,"id":1698}},"1905":{"sourceObj":{"__isSmartRef__":true,"id":1345},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":1697},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":1906},"dependedBy":{"__isSmartRef__":true,"id":1697},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1906":{"source":{"__isSmartRef__":true,"id":1345},"target":{"__isSmartRef__":true,"id":1697}},"1907":{"sourceObj":{"__isSmartRef__":true,"id":1345},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":1697},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":1908},"dependedBy":{"__isSmartRef__":true,"id":1697},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1908":{"source":{"__isSmartRef__":true,"id":1345},"target":{"__isSmartRef__":true,"id":1697}},"1909":{"sourceObj":{"__isSmartRef__":true,"id":1345},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":1697},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":1910},"dependedBy":{"__isSmartRef__":true,"id":1697},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1910":{"source":{"__isSmartRef__":true,"id":1345},"target":{"__isSmartRef__":true,"id":1697}},"1911":{"sourceObj":{"__isSmartRef__":true,"id":1345},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":1697},"targetMethodName":"updateOwners","varMapping":{"__isSmartRef__":true,"id":1912},"dependedBy":{"__isSmartRef__":true,"id":1697},"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1912":{"source":{"__isSmartRef__":true,"id":1345},"target":{"__isSmartRef__":true,"id":1697}},"1913":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":1697},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":1914},"dependedBy":{"__isSmartRef__":true,"id":1697},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1914":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":1697}},"1915":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":1697},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":1916},"dependedBy":{"__isSmartRef__":true,"id":1697},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1916":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":1697}},"1917":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":1697},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":1918},"dependedBy":{"__isSmartRef__":true,"id":1697},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1918":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":1697}},"1919":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":1697},"targetMethodName":"updateOwners","varMapping":{"__isSmartRef__":true,"id":1920},"dependedBy":{"__isSmartRef__":true,"id":1697},"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1920":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":1697}},"1921":{"d":0.998003992015968,"a":0.998003992015968,"f":571.8942115768463,"e":336.1696606786427,"c":0,"b":0,"matrix_":{"__isSmartRef__":true,"id":1922},"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1922":{"a":0.998003992015968,"b":0,"c":0,"d":0.998003992015968,"e":336.1696606786427,"f":571.8942115768463,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1923":{"converter":{"__isSmartRef__":true,"id":1924}},"1924":{"varMapping":{"__isSmartRef__":true,"id":1904},"source":"function (value) { return this.sourceObj }","funcProperties":{"__isSmartRef__":true,"id":1925},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1925":{},"1926":{"morph":{"__isSmartRef__":true,"id":1345},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1927":{"morph":{"__isSmartRef__":true,"id":1345},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(458.1,943.8)"},"1928":{"morph":{"__isSmartRef__":true,"id":1345},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(531.7,943.8)"},"1929":{"morph":{"__isSmartRef__":true,"id":1345},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(605.2,943.8)"},"1930":{"morph":{"__isSmartRef__":true,"id":1345},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(605.2,987.6)"},"1931":{"morph":{"__isSmartRef__":true,"id":1345},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(605.2,1031.4)"},"1932":{"morph":{"__isSmartRef__":true,"id":1345},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(531.7,1031.4)"},"1933":{"morph":{"__isSmartRef__":true,"id":1345},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(458.1,1031.4)"},"1934":{"morph":{"__isSmartRef__":true,"id":1345},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(458.1,987.6)"},"1935":{"connect":{"__isSmartRef__":true,"id":1936},"updatePosition":{"__isSmartRef__":true,"id":1940},"updateControlPoint":{"__isSmartRef__":true,"id":1944},"disconnectMorph":{"__isSmartRef__":true,"id":1948},"connectMorph":{"__isSmartRef__":true,"id":1952},"onMouseOver":{"__isSmartRef__":true,"id":1956},"onMouseOut":{"__isSmartRef__":true,"id":1960},"makeHandle":{"__isSmartRef__":true,"id":1968},"showFromHandle":{"__isSmartRef__":true,"id":1972},"showToHandle":{"__isSmartRef__":true,"id":1976},"reset":{"__isSmartRef__":true,"id":1980},"onDragInHandle":{"__isSmartRef__":true,"id":1984},"onDragStartInHandle":{"__isSmartRef__":true,"id":1988},"onDragEndInHandle":{"__isSmartRef__":true,"id":1992},"connectFrom":{"__isSmartRef__":true,"id":1996},"connectTo":{"__isSmartRef__":true,"id":2000},"hideToHandle":{"__isSmartRef__":true,"id":2004},"hideFromHandle":{"__isSmartRef__":true,"id":2008},"updateIntersection":{"__isSmartRef__":true,"id":2012},"lineIntersect":{"__isSmartRef__":true,"id":2016},"intersectMorphLinePoints":{"__isSmartRef__":true,"id":2020},"intersectMorph":{"__isSmartRef__":true,"id":2024},"globalShapePathFromMorph":{"__isSmartRef__":true,"id":2028},"remove":{"__isSmartRef__":true,"id":2032},"migrateFrom":{"__isSmartRef__":true,"id":2040},"copy":{"__isSmartRef__":true,"id":2044},"disconnectAll":{"__isSmartRef__":true,"id":2052},"resumeSteppingAll":{"__isSmartRef__":true,"id":2056},"delayedHideHandles":{"__isSmartRef__":true,"id":2064},"hideHandles":{"__isSmartRef__":true,"id":2068},"grabByHand":{"__isSmartRef__":true,"id":2072},"onMouseDownEntry":{"__isSmartRef__":true,"id":2076},"distanceToPoint":{"__isSmartRef__":true,"id":2084},"dropOn":{"__isSmartRef__":true,"id":2088}},"1936":{"varMapping":{"__isSmartRef__":true,"id":1937},"source":"function connect(morphA, morphB) {\n this.connectFrom(morphA)\n this.connectTo(morphB)\n this.updatePosition()\n}","funcProperties":{"__isSmartRef__":true,"id":1938},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1937":{"this":{"__isSmartRef__":true,"id":1300}},"1938":{"timestamp":{"__isSmartRef__":true,"id":1939},"user":"jenslincke","tags":[]},"1939":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1940":{"varMapping":{"__isSmartRef__":true,"id":1941},"source":"function updatePosition(sourceMorph) {\n\n // some self healing code\n if (sourceMorph && sourceMorph !== this.toMorph && sourceMorph !== this.fromMorph) {\n this.disconnectMorph(sourceMorph)\n }\n try {\n this.updateControlPoint(this.controlPoints[0], this.fromMorph)\n this.updateControlPoint(this.controlPoints[1], this.toMorph)\n this.updateIntersection(this.fromMorph, this.controlPoints[0])\n this.updateIntersection(this.toMorph, this.controlPoints[1])\n } catch(e) {\n console.log(\"ERROR \" +this+\".updatePosition(\" + sourceMorph + \")\")\n }\n\n this.adjustOrigin(this.bounds().extent().scaleBy(0.5))\n}","funcProperties":{"__isSmartRef__":true,"id":1942},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1941":{"this":{"__isSmartRef__":true,"id":1300}},"1942":{"timestamp":{"__isSmartRef__":true,"id":1943},"user":"jenslincke","tags":[]},"1943":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1944":{"varMapping":{"__isSmartRef__":true,"id":1945},"source":"function updateControlPoint(cp, morph) {\n if (!cp || !morph) return;\n try {\n var pos = morph.worldPoint(morph.shape.bounds().center())\n } catch(e) {};\n if (pos)\n cp.setGlobalPos(pos)\n}","funcProperties":{"__isSmartRef__":true,"id":1946},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1945":{"this":{"__isSmartRef__":true,"id":1300}},"1946":{"timestamp":{"__isSmartRef__":true,"id":1947},"user":"jenslincke","tags":[]},"1947":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1948":{"varMapping":{"__isSmartRef__":true,"id":1949},"source":"function disconnectMorph(morph) {\n if (!morph) return;\n lively.bindings.disconnect(morph, 'globalTransform', this, 'updatePosition')\n}","funcProperties":{"__isSmartRef__":true,"id":1950},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1949":{"this":{"__isSmartRef__":true,"id":1300}},"1950":{"timestamp":{"__isSmartRef__":true,"id":1951},"user":"jenslincke","tags":[]},"1951":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1952":{"varMapping":{"__isSmartRef__":true,"id":1953},"source":"function connectMorph(morph) {\n if (morph)\n lively.bindings.connect(morph, 'globalTransform', this, 'updatePosition', {\n converter: function(value) { return this.sourceObj }\n })\n}","funcProperties":{"__isSmartRef__":true,"id":1954},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1953":{"this":{"__isSmartRef__":true,"id":1300}},"1954":{"timestamp":{"__isSmartRef__":true,"id":1955},"user":"jenslincke","tags":[]},"1955":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1956":{"varMapping":{"__isSmartRef__":true,"id":1957},"source":"function onMouseOver(evt) {\n this.lastOverTime = Date.now()\n var p = evt.getPosition()\n var cp1 = this.controlPoints[0].getGlobalPos();\n if (p.dist(cp1) < 20) {\n this.showFromHandle()\n } else {\n this.hideFromHandle()\n }\n var cp2 = this.controlPoints[1].getGlobalPos();\n if (p.dist(cp2) < 20) {\n this.showToHandle()\n } else {\n this.hideToHandle()\n }\n \n this.delayedHideHandles()\n}","funcProperties":{"__isSmartRef__":true,"id":1958},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1957":{"this":{"__isSmartRef__":true,"id":1300}},"1958":{"timestamp":{"__isSmartRef__":true,"id":1959},"user":"jenslincke","tags":[]},"1959":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1960":{"varMapping":{"__isSmartRef__":true,"id":1961},"source":"function onMouseOut(evt) {\n // this.hideFromHandle()\n // this.hideToHandle()\n}","funcProperties":{"__isSmartRef__":true,"id":1966},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1961":{"this":{"__isSmartRef__":true,"id":1300},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1962}},"1962":{"$super":{"__isSmartRef__":true,"id":1963}},"1963":{"varMapping":{"__isSmartRef__":true,"id":1964},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1965},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1964":{"obj":{"__isSmartRef__":true,"id":1300},"name":"onMouseOut"},"1965":{},"1966":{"timestamp":{"__isSmartRef__":true,"id":1967},"user":"jenslincke","tags":[]},"1967":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1968":{"varMapping":{"__isSmartRef__":true,"id":1969},"source":"function makeHandle() {\n var m = lively.morphic.Morph.makeRectangle(0,0,10,10);\n m.disableGrabbing()\n m.enableDragging()\n m.connector = this;\n // move real behavior to a place which is easier to develop\n // do not use bind, because we like late binding \n m.addScript(function onDragStart(evt) {\n this.connector.onDragStartInHandle(this, evt)\n })\n m.addScript(function onDrag(evt) {\n this.connector.onDragInHandle(this, evt)\n })\n m.addScript(function onDragEnd(evt) {\n this.connector.onDragEndInHandle(this, evt)\n })\n m.isEpiMorph = true;\n return m\n}","funcProperties":{"__isSmartRef__":true,"id":1970},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1969":{"this":{"__isSmartRef__":true,"id":1300}},"1970":{"timestamp":{"__isSmartRef__":true,"id":1971},"user":"jenslincke","tags":[]},"1971":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1972":{"varMapping":{"__isSmartRef__":true,"id":1973},"source":"function showFromHandle() {\n if (!this.fromHandle) {\n this.fromHandle = this.makeHandle();\n this.fromHandle.setFill(Color.red)\n this.fromHandle.isFromHandle = true;\n }\n this.fromHandle.openInWorld();\n this.fromHandle.controlPoint = this.controlPoints[0];\n this.fromHandle.setPosition(this.controlPoints[0].getGlobalPos().subPt(pt(5,5)))\n return this.fromHandle\n}","funcProperties":{"__isSmartRef__":true,"id":1974},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1973":{"this":{"__isSmartRef__":true,"id":1300}},"1974":{"timestamp":{"__isSmartRef__":true,"id":1975},"user":"jenslincke","tags":[]},"1975":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1976":{"varMapping":{"__isSmartRef__":true,"id":1977},"source":"function showToHandle() {\n if (!this.toHandle) {\n this.toHandle = this.makeHandle();\n this.toHandle.setFill(Color.red)\n this.toHandle.isToHandle = true;\n\n }\n this.toHandle.openInWorld();\n this.toHandle.controlPoint = this.controlPoints[1];\n this.toHandle.setPosition(this.controlPoints[1].getGlobalPos().subPt(pt(5,5)))\n return this.toHandle\n}","funcProperties":{"__isSmartRef__":true,"id":1978},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1977":{"this":{"__isSmartRef__":true,"id":1300}},"1978":{"timestamp":{"__isSmartRef__":true,"id":1979},"user":"jenslincke","tags":[]},"1979":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1980":{"varMapping":{"__isSmartRef__":true,"id":1981},"source":"function reset() {\n if (this.fromHandle) {\n this.fromHandle.remove()\n delete this.fromHandle\n }\n if (this.toHandle) {\n this.toHandle.remove()\n delete this.toHandle\n }\n \n this.droppingEnabled = false\n // this.controlPoints[1].setPos(pt(200,200))\n}","funcProperties":{"__isSmartRef__":true,"id":1982},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1981":{"this":{"__isSmartRef__":true,"id":1300}},"1982":{"timestamp":{"__isSmartRef__":true,"id":1983},"user":"jenslincke","tags":[]},"1983":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1984":{"varMapping":{"__isSmartRef__":true,"id":1985},"source":"function onDragInHandle(handle, evt) {\n this.lastOverTime = Date.now()\n var pos = handle.getPositionInWorld();\n var delta = evt.hand.getPosition().subPt(pos);\n handle.moveBy(delta)\n pos = handle.getPositionInWorld();\n if (handle.controlPoint)\n handle.controlPoint.setGlobalPos(pos.addPt(pt(5,5)))\n var morphs = this.owner.morphsContainingPoint(pos)\n morphs = morphs.reject(function(ea) {\n return ea.isWorld || (ea === handle) || (ea === this) || \n (ea === this.owner)\n }, this)\n if (this.selectedMorphHighlights) \n this.selectedMorphHighlights.invoke('remove')\n this.selectedMorph = morphs.first();\n this.selectedMorphHighlights = show(this.selectedMorph)\n handle.startPos = evt.getPosition();\n}","funcProperties":{"__isSmartRef__":true,"id":1986},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1985":{"this":{"__isSmartRef__":true,"id":1300}},"1986":{"timestamp":{"__isSmartRef__":true,"id":1987},"user":"jenslincke","tags":[]},"1987":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1988":{"varMapping":{"__isSmartRef__":true,"id":1989},"source":"function onDragStartInHandle(handle, evt) {\n handle.startPos = evt.getPosition()\n}","funcProperties":{"__isSmartRef__":true,"id":1990},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1989":{"this":{"__isSmartRef__":true,"id":1300}},"1990":{"timestamp":{"__isSmartRef__":true,"id":1991},"user":"jenslincke","tags":[]},"1991":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1992":{"varMapping":{"__isSmartRef__":true,"id":1993},"source":"function onDragEndInHandle(handle, evt) {\n if (this.selectedMorphHighlights) \n this.selectedMorphHighlights.invoke('remove')\n \n if (handle.isFromHandle) this.connectFrom(this.selectedMorph)\n if (handle.isToHandle) this.connectTo(this.selectedMorph)\n this.delayedHideHandles()\n this.updatePosition()\n}","funcProperties":{"__isSmartRef__":true,"id":1994},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1993":{"this":{"__isSmartRef__":true,"id":1300}},"1994":{"timestamp":{"__isSmartRef__":true,"id":1995},"user":"jenslincke","tags":[]},"1995":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"1996":{"varMapping":{"__isSmartRef__":true,"id":1997},"source":"function connectFrom(morph) {\n if (morph && morph === this.toMorph) return; // not allowed\n\n this.disconnectMorph(this.fromMorph)\n this.fromMorph = morph;\n this.connectMorph(this.fromMorph)\n}","funcProperties":{"__isSmartRef__":true,"id":1998},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1997":{"this":{"__isSmartRef__":true,"id":1300}},"1998":{"timestamp":{"__isSmartRef__":true,"id":1999},"user":"jenslincke","tags":[]},"1999":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2000":{"varMapping":{"__isSmartRef__":true,"id":2001},"source":"function connectTo(morph) {\n\n if (morph && morph === this.fromMorph) return; // not allowed\n\n this.disconnectMorph(this.toMorph)\n this.toMorph = morph;\n this.connectMorph(this.toMorph)\n}","funcProperties":{"__isSmartRef__":true,"id":2002},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2001":{"this":{"__isSmartRef__":true,"id":1300}},"2002":{"timestamp":{"__isSmartRef__":true,"id":2003},"user":"jenslincke","tags":[]},"2003":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2004":{"varMapping":{"__isSmartRef__":true,"id":2005},"source":"function hideToHandle() {\n if (this.toHandle) this.toHandle.remove();\n}","funcProperties":{"__isSmartRef__":true,"id":2006},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2005":{"this":{"__isSmartRef__":true,"id":1300}},"2006":{"timestamp":{"__isSmartRef__":true,"id":2007},"user":"jenslincke","tags":[]},"2007":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2008":{"varMapping":{"__isSmartRef__":true,"id":2009},"source":"function hideFromHandle() {\n if (this.fromHandle) this.fromHandle.remove()\n}","funcProperties":{"__isSmartRef__":true,"id":2010},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2009":{"this":{"__isSmartRef__":true,"id":1300}},"2010":{"timestamp":{"__isSmartRef__":true,"id":2011},"user":"jenslincke","tags":[]},"2011":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2012":{"varMapping":{"__isSmartRef__":true,"id":2013},"source":"function updateIntersection(morph, cp) {\n if (!morph) return;\n var intersection = this.intersectMorph(morph)[0];\n if (intersection) {\n cp.setGlobalPos(intersection);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2014},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2013":{"this":{"__isSmartRef__":true,"id":1300}},"2014":{"timestamp":{"__isSmartRef__":true,"id":2015},"user":"jenslincke","tags":[]},"2015":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2016":{"varMapping":{"__isSmartRef__":true,"id":2017},"source":"function lineIntersect(a1, a2, b1, b2){\n // inspired by http://stackoverflow.com/questions/3746274/line-intersection-with-aabb-rectangle\n var b = a2.subPt(a1);\n var d = b2.subPt(b1);\n var bDotDPerp = b.x * d.y - b.y * d.x;\n\n // if b dot d == 0, it means the lines are parallel so have infinite intersection points\n if (bDotDPerp == 0)\n return null;\n\n var c = b1.subPt(a1);\n var t = (c.x * d.y - c.y * d.x) / bDotDPerp;\n if (t < 0 || t > 1)\n return null;\n\n var u = (c.x * b.y - c.y * b.x) / bDotDPerp;\n if (u < 0 || u > 1)\n return null;\n\n return a1.addPt(b.scaleBy(t));\n}","funcProperties":{"__isSmartRef__":true,"id":2018},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2017":{"this":{"__isSmartRef__":true,"id":1300}},"2018":{"timestamp":{"__isSmartRef__":true,"id":2019},"user":"jenslincke","tags":[]},"2019":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2020":{"varMapping":{"__isSmartRef__":true,"id":2021},"source":"function intersectMorphLinePoints(morph, a1, a2) {\n var points = this.globalShapePathFromMorph(morph);\n var intersections = [];\n points.inject(points.last(), function(last, ea) {\n var p = this.lineIntersect(a1, a2, last, ea)\n if (p) intersections.push(p)\n return ea\n }, this)\n return intersections\n}","funcProperties":{"__isSmartRef__":true,"id":2022},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2021":{"this":{"__isSmartRef__":true,"id":1300}},"2022":{"timestamp":{"__isSmartRef__":true,"id":2023},"user":"jenslincke","tags":[]},"2023":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2024":{"varMapping":{"__isSmartRef__":true,"id":2025},"source":"function intersectMorph(morph) {\n var line = this;\n return this.intersectMorphLinePoints(morph,\n line.controlPoints[0].getGlobalPos(), line.controlPoints[1].getGlobalPos())\n}","funcProperties":{"__isSmartRef__":true,"id":2026},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2025":{"this":{"__isSmartRef__":true,"id":1300}},"2026":{"timestamp":{"__isSmartRef__":true,"id":2027},"user":"jenslincke","tags":[]},"2027":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2028":{"varMapping":{"__isSmartRef__":true,"id":2029},"source":"function globalShapePathFromMorph(morph) {\n var b = morph.shape.bounds();\n var p1 = morph.worldPoint(b.topLeft()),\n p2 = morph.worldPoint(b.topRight()),\n p3 = morph.worldPoint(b.bottomRight()),\n p4 = morph.worldPoint(b.bottomLeft());\n return [p1, p2, p3, p4]\n}","funcProperties":{"__isSmartRef__":true,"id":2030},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2029":{"this":{"__isSmartRef__":true,"id":1300}},"2030":{"timestamp":{"__isSmartRef__":true,"id":2031},"user":"jenslincke","tags":[]},"2031":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2032":{"varMapping":{"__isSmartRef__":true,"id":2033},"source":"function remove() {\n \n this.disconnectMorph(this.fromMorph)\n this.disconnectMorph(this.toMorph)\n return $super()\n}","funcProperties":{"__isSmartRef__":true,"id":2038},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2033":{"this":{"__isSmartRef__":true,"id":1300},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2034}},"2034":{"$super":{"__isSmartRef__":true,"id":2035}},"2035":{"varMapping":{"__isSmartRef__":true,"id":2036},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2037},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2036":{"obj":{"__isSmartRef__":true,"id":1300},"name":"remove"},"2037":{},"2038":{"timestamp":{"__isSmartRef__":true,"id":2039},"user":"jenslincke","tags":[]},"2039":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2040":{"varMapping":{"__isSmartRef__":true,"id":2041},"source":"function migrateFrom(other) {\n\n this.disconnectMorph(this.fromMorph)\n this.disconnectMorph(this.toMorph)\n\n this.connectFrom(other.fromMorph)\n this.connectTo(other.toMorph)\n\n this.updatePosition()\n\n}","funcProperties":{"__isSmartRef__":true,"id":2042},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2041":{"this":{"__isSmartRef__":true,"id":1300}},"2042":{"timestamp":{"__isSmartRef__":true,"id":2043},"user":"jenslincke","tags":[]},"2043":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2044":{"varMapping":{"__isSmartRef__":true,"id":2045},"source":"function copy() {\n var r = $super()\n r.disconnectAll()\n return r\n}","funcProperties":{"__isSmartRef__":true,"id":2050},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2045":{"this":{"__isSmartRef__":true,"id":1300},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2046}},"2046":{"$super":{"__isSmartRef__":true,"id":2047}},"2047":{"varMapping":{"__isSmartRef__":true,"id":2048},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2049},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2048":{"obj":{"__isSmartRef__":true,"id":1300},"name":"copy"},"2049":{},"2050":{"timestamp":{"__isSmartRef__":true,"id":2051},"user":"jenslincke","tags":[]},"2051":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2052":{"varMapping":{"__isSmartRef__":true,"id":2053},"source":"function disconnectAll() {\n this.disconnectMorph(this.toMorph)\n this.disconnectMorph(this.fromMorph)\n this.fromMorph = null\n this.toMorph = null\n}","funcProperties":{"__isSmartRef__":true,"id":2054},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2053":{"this":{"__isSmartRef__":true,"id":1300}},"2054":{"timestamp":{"__isSmartRef__":true,"id":2055},"user":"jenslincke","tags":[]},"2055":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2056":{"varMapping":{"__isSmartRef__":true,"id":2057},"source":"function resumeSteppingAll() {\n this.connectMorph(this.fromMorph)\n this.connectMorph(this.toMorph)\n return $super()\n}","funcProperties":{"__isSmartRef__":true,"id":2062},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2057":{"this":{"__isSmartRef__":true,"id":1300},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2058}},"2058":{"$super":{"__isSmartRef__":true,"id":2059}},"2059":{"varMapping":{"__isSmartRef__":true,"id":2060},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2061},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2060":{"obj":{"__isSmartRef__":true,"id":1300},"name":"resumeSteppingAll"},"2061":{},"2062":{"timestamp":{"__isSmartRef__":true,"id":2063},"user":"jenslincke","tags":[]},"2063":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2064":{"varMapping":{"__isSmartRef__":true,"id":2065},"source":"function delayedHideHandles() {\n if (! this.lastOverTime) return; // it was handled already\n var delta = Date.now() - this.lastOverTime;\n if (delta > 2000) {\n this.hideHandles()\n this.lastOverTime = null;\n } else {\n this.delayedHideHandles.bind(this).delay(0.1)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2066},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2065":{"this":{"__isSmartRef__":true,"id":1300}},"2066":{"timestamp":{"__isSmartRef__":true,"id":2067},"user":"jenslincke","tags":[]},"2067":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2068":{"varMapping":{"__isSmartRef__":true,"id":2069},"source":"function hideHandles() {\n this.hideFromHandle()\n this.hideToHandle()\n}","funcProperties":{"__isSmartRef__":true,"id":2070},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2069":{"this":{"__isSmartRef__":true,"id":1300}},"2070":{"timestamp":{"__isSmartRef__":true,"id":2071},"user":"jenslincke","tags":[]},"2071":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2072":{"varMapping":{"__isSmartRef__":true,"id":2073},"source":"function grabByHand(hand) {\n this.disconnectAll()\n hand.addMorphWithShadow(this)\n}","funcProperties":{"__isSmartRef__":true,"id":2074},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2073":{"this":{"__isSmartRef__":true,"id":1300}},"2074":{"timestamp":{"__isSmartRef__":true,"id":2075},"user":"jenslincke","tags":[]},"2075":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2076":{"varMapping":{"__isSmartRef__":true,"id":2077},"source":"function onMouseDownEntry(evt) {\n var r = $super(evt)\n\n // var localPos = this.localize(evt.getPosition())\n // var distance = this.distanceToPoint(localPos)\n // alertOK(\"onMouseDownEntry: \" + distance)\n // if (distance > 20) {\n // evt.world.clickedOnMorph = null;\n // evt.world.clickedOnMorphTime = null;\n // evt.hand.scrollFocusMorph = null;\n // evt.hand.internalClickedOnMorph = null\n // return false\n // }\n // show(this.worldPoint(localPos))\n\n return r\n}","funcProperties":{"__isSmartRef__":true,"id":2082},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2077":{"this":{"__isSmartRef__":true,"id":1300},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2078}},"2078":{"$super":{"__isSmartRef__":true,"id":2079}},"2079":{"varMapping":{"__isSmartRef__":true,"id":2080},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2081},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2080":{"obj":{"__isSmartRef__":true,"id":1300},"name":"onMouseDownEntry"},"2081":{},"2082":{"timestamp":{"__isSmartRef__":true,"id":2083},"user":"jenslincke","tags":[]},"2083":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2084":{"varMapping":{"__isSmartRef__":true,"id":2085},"source":"function distanceToPoint(point) {\n // this.distanceToPoint(this.vertices()[0])\n // this.distanceToPoint(this.vertices()[1])\n // this.distanceToPoint(pt(0,0))\n\n // TODO move this to Math\n function sqr(x) { return x * x }\n function dist2(v, w) { return sqr(v.x - w.x) + sqr(v.y - w.y) }\n function distToSegmentSquared(p, v, w) {\n var l2 = dist2(v, w);\n if (l2 == 0) return dist2(p, v);\n var t = ((p.x - v.x) * (w.x - v.x) + (p.y - v.y) * (w.y - v.y)) / l2;\n if (t < 0) return dist2(p, v);\n if (t > 1) return dist2(p, w);\n return dist2(p, { x: v.x + t * (w.x - v.x),\n y: v.y + t * (w.y - v.y) });\n }\n function distToSegment(p, v, w) { return Math.sqrt(distToSegmentSquared(p, v, w)); }\n\n var vertices = this.vertices()\n\n return distToSegment(point, vertices.first(), vertices.last())\n}","funcProperties":{"__isSmartRef__":true,"id":2086},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2085":{"this":{"__isSmartRef__":true,"id":1300}},"2086":{"timestamp":{"__isSmartRef__":true,"id":2087},"user":"jenslincke","tags":[]},"2087":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2088":{"varMapping":{"__isSmartRef__":true,"id":2089},"source":"function dropOn(aMorph) {\n var r = $super(aMorph)\n this.sendToBack()\n return r\n}","funcProperties":{"__isSmartRef__":true,"id":2094},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2089":{"this":{"__isSmartRef__":true,"id":1300},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2090}},"2090":{"$super":{"__isSmartRef__":true,"id":2091}},"2091":{"varMapping":{"__isSmartRef__":true,"id":2092},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2093},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2092":{"obj":{"__isSmartRef__":true,"id":1300},"name":"dropOn"},"2093":{},"2094":{"timestamp":{"__isSmartRef__":true,"id":2095},"user":"jenslincke","tags":[]},"2095":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2096":{"source":{"__isSmartRef__":true,"id":1244},"target":{"__isSmartRef__":true,"id":1300}},"2097":{"sourceObj":{"__isSmartRef__":true,"id":1244},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":1299},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2098},"dependedBy":{"__isSmartRef__":true,"id":1299},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2098":{"source":{"__isSmartRef__":true,"id":1244},"target":{"__isSmartRef__":true,"id":1299}},"2099":{"sourceObj":{"__isSmartRef__":true,"id":1244},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":1299},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2100},"dependedBy":{"__isSmartRef__":true,"id":1299},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2100":{"source":{"__isSmartRef__":true,"id":1244},"target":{"__isSmartRef__":true,"id":1299}},"2101":{"sourceObj":{"__isSmartRef__":true,"id":1244},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":1299},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2102},"dependedBy":{"__isSmartRef__":true,"id":1299},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2102":{"source":{"__isSmartRef__":true,"id":1244},"target":{"__isSmartRef__":true,"id":1299}},"2103":{"sourceObj":{"__isSmartRef__":true,"id":1244},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":1299},"targetMethodName":"updateOwners","varMapping":{"__isSmartRef__":true,"id":2104},"dependedBy":{"__isSmartRef__":true,"id":1299},"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2104":{"source":{"__isSmartRef__":true,"id":1244},"target":{"__isSmartRef__":true,"id":1299}},"2105":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":1299},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2106},"dependedBy":{"__isSmartRef__":true,"id":1299},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2106":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":1299}},"2107":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":1299},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2108},"dependedBy":{"__isSmartRef__":true,"id":1299},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2108":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":1299}},"2109":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":1299},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2110},"dependedBy":{"__isSmartRef__":true,"id":1299},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2110":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":1299}},"2111":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":1299},"targetMethodName":"updateOwners","varMapping":{"__isSmartRef__":true,"id":2112},"dependedBy":{"__isSmartRef__":true,"id":1299},"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2112":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":1299}},"2113":{"d":0.998003992015968,"a":0.998003992015968,"f":469.7984031936127,"e":28.18562874251497,"c":0,"b":0,"matrix_":{"__isSmartRef__":true,"id":2114},"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2114":{"a":0.998003992015968,"b":0,"c":0,"d":0.998003992015968,"e":28.18562874251497,"f":469.7984031936127,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2115":{"converter":{"__isSmartRef__":true,"id":2116}},"2116":{"varMapping":{"__isSmartRef__":true,"id":2096},"source":"function (value) { return this.sourceObj }","funcProperties":{"__isSmartRef__":true,"id":2117},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2117":{},"2118":{"sourceObj":{"__isSmartRef__":true,"id":1244},"sourceAttrName":"globalTransform","targetObj":{"__isSmartRef__":true,"id":961},"targetMethodName":"updatePosition","varMapping":{"__isSmartRef__":true,"id":2119},"converterString":"function (value) { return this.sourceObj }","dependendConnections":[{"__isSmartRef__":true,"id":2120},{"__isSmartRef__":true,"id":2122},{"__isSmartRef__":true,"id":2124},{"__isSmartRef__":true,"id":2126},{"__isSmartRef__":true,"id":2128},{"__isSmartRef__":true,"id":2130},{"__isSmartRef__":true,"id":2132},{"__isSmartRef__":true,"id":2134}],"oldTransform":{"__isSmartRef__":true,"id":2136},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2138},"__LivelyClassName__":"lively.morphic.GeometryTransformConnection","__SourceModuleName__":"Global.lively.bindings.GeometryBindings"},"2119":{"source":{"__isSmartRef__":true,"id":1244},"target":{"__isSmartRef__":true,"id":961}},"2120":{"sourceObj":{"__isSmartRef__":true,"id":1244},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":2118},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2121},"dependedBy":{"__isSmartRef__":true,"id":2118},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2121":{"source":{"__isSmartRef__":true,"id":1244},"target":{"__isSmartRef__":true,"id":2118}},"2122":{"sourceObj":{"__isSmartRef__":true,"id":1244},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":2118},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2123},"dependedBy":{"__isSmartRef__":true,"id":2118},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2123":{"source":{"__isSmartRef__":true,"id":1244},"target":{"__isSmartRef__":true,"id":2118}},"2124":{"sourceObj":{"__isSmartRef__":true,"id":1244},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":2118},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2125},"dependedBy":{"__isSmartRef__":true,"id":2118},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2125":{"source":{"__isSmartRef__":true,"id":1244},"target":{"__isSmartRef__":true,"id":2118}},"2126":{"sourceObj":{"__isSmartRef__":true,"id":1244},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":2118},"targetMethodName":"updateOwners","varMapping":{"__isSmartRef__":true,"id":2127},"dependedBy":{"__isSmartRef__":true,"id":2118},"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2127":{"source":{"__isSmartRef__":true,"id":1244},"target":{"__isSmartRef__":true,"id":2118}},"2128":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":2118},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2129},"dependedBy":{"__isSmartRef__":true,"id":2118},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2129":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":2118}},"2130":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":2118},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2131},"dependedBy":{"__isSmartRef__":true,"id":2118},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2131":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":2118}},"2132":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":2118},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2133},"dependedBy":{"__isSmartRef__":true,"id":2118},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2133":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":2118}},"2134":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":2118},"targetMethodName":"updateOwners","varMapping":{"__isSmartRef__":true,"id":2135},"dependedBy":{"__isSmartRef__":true,"id":2118},"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2135":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":2118}},"2136":{"d":0.998003992015968,"a":0.998003992015968,"f":469.7984031936127,"e":28.18562874251497,"c":0,"b":0,"matrix_":{"__isSmartRef__":true,"id":2137},"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2137":{"a":0.998003992015968,"b":0,"c":0,"d":0.998003992015968,"e":28.18562874251497,"f":469.7984031936127,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2138":{"converter":{"__isSmartRef__":true,"id":2139}},"2139":{"varMapping":{"__isSmartRef__":true,"id":2119},"source":"function (value) { return this.sourceObj }","funcProperties":{"__isSmartRef__":true,"id":2140},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2140":{},"2141":{"morph":{"__isSmartRef__":true,"id":1244},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2142":{"morph":{"__isSmartRef__":true,"id":1244},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(66.2,683.8)"},"2143":{"morph":{"__isSmartRef__":true,"id":1244},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(150.2,683.8)"},"2144":{"morph":{"__isSmartRef__":true,"id":1244},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(234.2,683.8)"},"2145":{"morph":{"__isSmartRef__":true,"id":1244},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(234.2,724.1)"},"2146":{"morph":{"__isSmartRef__":true,"id":1244},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(234.2,764.4)"},"2147":{"morph":{"__isSmartRef__":true,"id":1244},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(150.2,764.4)"},"2148":{"morph":{"__isSmartRef__":true,"id":1244},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(66.2,764.4)"},"2149":{"morph":{"__isSmartRef__":true,"id":1244},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(66.2,724.1)"},"2150":{"connect":{"__isSmartRef__":true,"id":2151},"updatePosition":{"__isSmartRef__":true,"id":2155},"updateControlPoint":{"__isSmartRef__":true,"id":2159},"disconnectMorph":{"__isSmartRef__":true,"id":2163},"connectMorph":{"__isSmartRef__":true,"id":2167},"onMouseOver":{"__isSmartRef__":true,"id":2171},"onMouseOut":{"__isSmartRef__":true,"id":2175},"makeHandle":{"__isSmartRef__":true,"id":2183},"showFromHandle":{"__isSmartRef__":true,"id":2187},"showToHandle":{"__isSmartRef__":true,"id":2191},"reset":{"__isSmartRef__":true,"id":2195},"onDragInHandle":{"__isSmartRef__":true,"id":2199},"onDragStartInHandle":{"__isSmartRef__":true,"id":2203},"onDragEndInHandle":{"__isSmartRef__":true,"id":2207},"connectFrom":{"__isSmartRef__":true,"id":2211},"connectTo":{"__isSmartRef__":true,"id":2215},"hideToHandle":{"__isSmartRef__":true,"id":2219},"hideFromHandle":{"__isSmartRef__":true,"id":2223},"updateIntersection":{"__isSmartRef__":true,"id":2227},"lineIntersect":{"__isSmartRef__":true,"id":2231},"intersectMorphLinePoints":{"__isSmartRef__":true,"id":2235},"intersectMorph":{"__isSmartRef__":true,"id":2239},"globalShapePathFromMorph":{"__isSmartRef__":true,"id":2243},"remove":{"__isSmartRef__":true,"id":2247},"migrateFrom":{"__isSmartRef__":true,"id":2255},"copy":{"__isSmartRef__":true,"id":2259},"disconnectAll":{"__isSmartRef__":true,"id":2267},"resumeSteppingAll":{"__isSmartRef__":true,"id":2271},"delayedHideHandles":{"__isSmartRef__":true,"id":2279},"hideHandles":{"__isSmartRef__":true,"id":2283},"grabByHand":{"__isSmartRef__":true,"id":2287},"onMouseDownEntry":{"__isSmartRef__":true,"id":2291},"distanceToPoint":{"__isSmartRef__":true,"id":2299},"dropOn":{"__isSmartRef__":true,"id":2303}},"2151":{"varMapping":{"__isSmartRef__":true,"id":2152},"source":"function connect(morphA, morphB) {\n this.connectFrom(morphA)\n this.connectTo(morphB)\n this.updatePosition()\n}","funcProperties":{"__isSmartRef__":true,"id":2153},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2152":{"this":{"__isSmartRef__":true,"id":1199}},"2153":{"timestamp":{"__isSmartRef__":true,"id":2154},"user":"jenslincke","tags":[]},"2154":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2155":{"varMapping":{"__isSmartRef__":true,"id":2156},"source":"function updatePosition(sourceMorph) {\n\n // some self healing code\n if (sourceMorph && sourceMorph !== this.toMorph && sourceMorph !== this.fromMorph) {\n this.disconnectMorph(sourceMorph)\n }\n try {\n this.updateControlPoint(this.controlPoints[0], this.fromMorph)\n this.updateControlPoint(this.controlPoints[1], this.toMorph)\n this.updateIntersection(this.fromMorph, this.controlPoints[0])\n this.updateIntersection(this.toMorph, this.controlPoints[1])\n } catch(e) {\n console.log(\"ERROR \" +this+\".updatePosition(\" + sourceMorph + \")\")\n }\n\n this.adjustOrigin(this.bounds().extent().scaleBy(0.5))\n}","funcProperties":{"__isSmartRef__":true,"id":2157},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2156":{"this":{"__isSmartRef__":true,"id":1199}},"2157":{"timestamp":{"__isSmartRef__":true,"id":2158},"user":"jenslincke","tags":[]},"2158":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2159":{"varMapping":{"__isSmartRef__":true,"id":2160},"source":"function updateControlPoint(cp, morph) {\n if (!cp || !morph) return;\n try {\n var pos = morph.worldPoint(morph.shape.bounds().center())\n } catch(e) {};\n if (pos)\n cp.setGlobalPos(pos)\n}","funcProperties":{"__isSmartRef__":true,"id":2161},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2160":{"this":{"__isSmartRef__":true,"id":1199}},"2161":{"timestamp":{"__isSmartRef__":true,"id":2162},"user":"jenslincke","tags":[]},"2162":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2163":{"varMapping":{"__isSmartRef__":true,"id":2164},"source":"function disconnectMorph(morph) {\n if (!morph) return;\n lively.bindings.disconnect(morph, 'globalTransform', this, 'updatePosition')\n}","funcProperties":{"__isSmartRef__":true,"id":2165},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2164":{"this":{"__isSmartRef__":true,"id":1199}},"2165":{"timestamp":{"__isSmartRef__":true,"id":2166},"user":"jenslincke","tags":[]},"2166":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2167":{"varMapping":{"__isSmartRef__":true,"id":2168},"source":"function connectMorph(morph) {\n if (morph)\n lively.bindings.connect(morph, 'globalTransform', this, 'updatePosition', {\n converter: function(value) { return this.sourceObj }\n })\n}","funcProperties":{"__isSmartRef__":true,"id":2169},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2168":{"this":{"__isSmartRef__":true,"id":1199}},"2169":{"timestamp":{"__isSmartRef__":true,"id":2170},"user":"jenslincke","tags":[]},"2170":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2171":{"varMapping":{"__isSmartRef__":true,"id":2172},"source":"function onMouseOver(evt) {\n this.lastOverTime = Date.now()\n var p = evt.getPosition()\n var cp1 = this.controlPoints[0].getGlobalPos();\n if (p.dist(cp1) < 20) {\n this.showFromHandle()\n } else {\n this.hideFromHandle()\n }\n var cp2 = this.controlPoints[1].getGlobalPos();\n if (p.dist(cp2) < 20) {\n this.showToHandle()\n } else {\n this.hideToHandle()\n }\n \n this.delayedHideHandles()\n}","funcProperties":{"__isSmartRef__":true,"id":2173},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2172":{"this":{"__isSmartRef__":true,"id":1199}},"2173":{"timestamp":{"__isSmartRef__":true,"id":2174},"user":"jenslincke","tags":[]},"2174":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2175":{"varMapping":{"__isSmartRef__":true,"id":2176},"source":"function onMouseOut(evt) {\n // this.hideFromHandle()\n // this.hideToHandle()\n}","funcProperties":{"__isSmartRef__":true,"id":2181},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2176":{"this":{"__isSmartRef__":true,"id":1199},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2177}},"2177":{"$super":{"__isSmartRef__":true,"id":2178}},"2178":{"varMapping":{"__isSmartRef__":true,"id":2179},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2180},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2179":{"obj":{"__isSmartRef__":true,"id":1199},"name":"onMouseOut"},"2180":{},"2181":{"timestamp":{"__isSmartRef__":true,"id":2182},"user":"jenslincke","tags":[]},"2182":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2183":{"varMapping":{"__isSmartRef__":true,"id":2184},"source":"function makeHandle() {\n var m = lively.morphic.Morph.makeRectangle(0,0,10,10);\n m.disableGrabbing()\n m.enableDragging()\n m.connector = this;\n // move real behavior to a place which is easier to develop\n // do not use bind, because we like late binding \n m.addScript(function onDragStart(evt) {\n this.connector.onDragStartInHandle(this, evt)\n })\n m.addScript(function onDrag(evt) {\n this.connector.onDragInHandle(this, evt)\n })\n m.addScript(function onDragEnd(evt) {\n this.connector.onDragEndInHandle(this, evt)\n })\n m.isEpiMorph = true;\n return m\n}","funcProperties":{"__isSmartRef__":true,"id":2185},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2184":{"this":{"__isSmartRef__":true,"id":1199}},"2185":{"timestamp":{"__isSmartRef__":true,"id":2186},"user":"jenslincke","tags":[]},"2186":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2187":{"varMapping":{"__isSmartRef__":true,"id":2188},"source":"function showFromHandle() {\n if (!this.fromHandle) {\n this.fromHandle = this.makeHandle();\n this.fromHandle.setFill(Color.red)\n this.fromHandle.isFromHandle = true;\n }\n this.fromHandle.openInWorld();\n this.fromHandle.controlPoint = this.controlPoints[0];\n this.fromHandle.setPosition(this.controlPoints[0].getGlobalPos().subPt(pt(5,5)))\n return this.fromHandle\n}","funcProperties":{"__isSmartRef__":true,"id":2189},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2188":{"this":{"__isSmartRef__":true,"id":1199}},"2189":{"timestamp":{"__isSmartRef__":true,"id":2190},"user":"jenslincke","tags":[]},"2190":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2191":{"varMapping":{"__isSmartRef__":true,"id":2192},"source":"function showToHandle() {\n if (!this.toHandle) {\n this.toHandle = this.makeHandle();\n this.toHandle.setFill(Color.red)\n this.toHandle.isToHandle = true;\n\n }\n this.toHandle.openInWorld();\n this.toHandle.controlPoint = this.controlPoints[1];\n this.toHandle.setPosition(this.controlPoints[1].getGlobalPos().subPt(pt(5,5)))\n return this.toHandle\n}","funcProperties":{"__isSmartRef__":true,"id":2193},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2192":{"this":{"__isSmartRef__":true,"id":1199}},"2193":{"timestamp":{"__isSmartRef__":true,"id":2194},"user":"jenslincke","tags":[]},"2194":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2195":{"varMapping":{"__isSmartRef__":true,"id":2196},"source":"function reset() {\n if (this.fromHandle) {\n this.fromHandle.remove()\n delete this.fromHandle\n }\n if (this.toHandle) {\n this.toHandle.remove()\n delete this.toHandle\n }\n \n this.droppingEnabled = false\n // this.controlPoints[1].setPos(pt(200,200))\n}","funcProperties":{"__isSmartRef__":true,"id":2197},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2196":{"this":{"__isSmartRef__":true,"id":1199}},"2197":{"timestamp":{"__isSmartRef__":true,"id":2198},"user":"jenslincke","tags":[]},"2198":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2199":{"varMapping":{"__isSmartRef__":true,"id":2200},"source":"function onDragInHandle(handle, evt) {\n this.lastOverTime = Date.now()\n var pos = handle.getPositionInWorld();\n var delta = evt.hand.getPosition().subPt(pos);\n handle.moveBy(delta)\n pos = handle.getPositionInWorld();\n if (handle.controlPoint)\n handle.controlPoint.setGlobalPos(pos.addPt(pt(5,5)))\n var morphs = this.owner.morphsContainingPoint(pos)\n morphs = morphs.reject(function(ea) {\n return ea.isWorld || (ea === handle) || (ea === this) || \n (ea === this.owner)\n }, this)\n if (this.selectedMorphHighlights) \n this.selectedMorphHighlights.invoke('remove')\n this.selectedMorph = morphs.first();\n this.selectedMorphHighlights = show(this.selectedMorph)\n handle.startPos = evt.getPosition();\n}","funcProperties":{"__isSmartRef__":true,"id":2201},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2200":{"this":{"__isSmartRef__":true,"id":1199}},"2201":{"timestamp":{"__isSmartRef__":true,"id":2202},"user":"jenslincke","tags":[]},"2202":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2203":{"varMapping":{"__isSmartRef__":true,"id":2204},"source":"function onDragStartInHandle(handle, evt) {\n handle.startPos = evt.getPosition()\n}","funcProperties":{"__isSmartRef__":true,"id":2205},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2204":{"this":{"__isSmartRef__":true,"id":1199}},"2205":{"timestamp":{"__isSmartRef__":true,"id":2206},"user":"jenslincke","tags":[]},"2206":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2207":{"varMapping":{"__isSmartRef__":true,"id":2208},"source":"function onDragEndInHandle(handle, evt) {\n if (this.selectedMorphHighlights) \n this.selectedMorphHighlights.invoke('remove')\n \n if (handle.isFromHandle) this.connectFrom(this.selectedMorph)\n if (handle.isToHandle) this.connectTo(this.selectedMorph)\n this.delayedHideHandles()\n this.updatePosition()\n}","funcProperties":{"__isSmartRef__":true,"id":2209},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2208":{"this":{"__isSmartRef__":true,"id":1199}},"2209":{"timestamp":{"__isSmartRef__":true,"id":2210},"user":"jenslincke","tags":[]},"2210":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2211":{"varMapping":{"__isSmartRef__":true,"id":2212},"source":"function connectFrom(morph) {\n if (morph && morph === this.toMorph) return; // not allowed\n\n this.disconnectMorph(this.fromMorph)\n this.fromMorph = morph;\n this.connectMorph(this.fromMorph)\n}","funcProperties":{"__isSmartRef__":true,"id":2213},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2212":{"this":{"__isSmartRef__":true,"id":1199}},"2213":{"timestamp":{"__isSmartRef__":true,"id":2214},"user":"jenslincke","tags":[]},"2214":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2215":{"varMapping":{"__isSmartRef__":true,"id":2216},"source":"function connectTo(morph) {\n\n if (morph && morph === this.fromMorph) return; // not allowed\n\n this.disconnectMorph(this.toMorph)\n this.toMorph = morph;\n this.connectMorph(this.toMorph)\n}","funcProperties":{"__isSmartRef__":true,"id":2217},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2216":{"this":{"__isSmartRef__":true,"id":1199}},"2217":{"timestamp":{"__isSmartRef__":true,"id":2218},"user":"jenslincke","tags":[]},"2218":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2219":{"varMapping":{"__isSmartRef__":true,"id":2220},"source":"function hideToHandle() {\n if (this.toHandle) this.toHandle.remove();\n}","funcProperties":{"__isSmartRef__":true,"id":2221},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2220":{"this":{"__isSmartRef__":true,"id":1199}},"2221":{"timestamp":{"__isSmartRef__":true,"id":2222},"user":"jenslincke","tags":[]},"2222":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2223":{"varMapping":{"__isSmartRef__":true,"id":2224},"source":"function hideFromHandle() {\n if (this.fromHandle) this.fromHandle.remove()\n}","funcProperties":{"__isSmartRef__":true,"id":2225},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2224":{"this":{"__isSmartRef__":true,"id":1199}},"2225":{"timestamp":{"__isSmartRef__":true,"id":2226},"user":"jenslincke","tags":[]},"2226":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2227":{"varMapping":{"__isSmartRef__":true,"id":2228},"source":"function updateIntersection(morph, cp) {\n if (!morph) return;\n var intersection = this.intersectMorph(morph)[0];\n if (intersection) {\n cp.setGlobalPos(intersection);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2229},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2228":{"this":{"__isSmartRef__":true,"id":1199}},"2229":{"timestamp":{"__isSmartRef__":true,"id":2230},"user":"jenslincke","tags":[]},"2230":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2231":{"varMapping":{"__isSmartRef__":true,"id":2232},"source":"function lineIntersect(a1, a2, b1, b2){\n // inspired by http://stackoverflow.com/questions/3746274/line-intersection-with-aabb-rectangle\n var b = a2.subPt(a1);\n var d = b2.subPt(b1);\n var bDotDPerp = b.x * d.y - b.y * d.x;\n\n // if b dot d == 0, it means the lines are parallel so have infinite intersection points\n if (bDotDPerp == 0)\n return null;\n\n var c = b1.subPt(a1);\n var t = (c.x * d.y - c.y * d.x) / bDotDPerp;\n if (t < 0 || t > 1)\n return null;\n\n var u = (c.x * b.y - c.y * b.x) / bDotDPerp;\n if (u < 0 || u > 1)\n return null;\n\n return a1.addPt(b.scaleBy(t));\n}","funcProperties":{"__isSmartRef__":true,"id":2233},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2232":{"this":{"__isSmartRef__":true,"id":1199}},"2233":{"timestamp":{"__isSmartRef__":true,"id":2234},"user":"jenslincke","tags":[]},"2234":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2235":{"varMapping":{"__isSmartRef__":true,"id":2236},"source":"function intersectMorphLinePoints(morph, a1, a2) {\n var points = this.globalShapePathFromMorph(morph);\n var intersections = [];\n points.inject(points.last(), function(last, ea) {\n var p = this.lineIntersect(a1, a2, last, ea)\n if (p) intersections.push(p)\n return ea\n }, this)\n return intersections\n}","funcProperties":{"__isSmartRef__":true,"id":2237},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2236":{"this":{"__isSmartRef__":true,"id":1199}},"2237":{"timestamp":{"__isSmartRef__":true,"id":2238},"user":"jenslincke","tags":[]},"2238":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2239":{"varMapping":{"__isSmartRef__":true,"id":2240},"source":"function intersectMorph(morph) {\n var line = this;\n return this.intersectMorphLinePoints(morph,\n line.controlPoints[0].getGlobalPos(), line.controlPoints[1].getGlobalPos())\n}","funcProperties":{"__isSmartRef__":true,"id":2241},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2240":{"this":{"__isSmartRef__":true,"id":1199}},"2241":{"timestamp":{"__isSmartRef__":true,"id":2242},"user":"jenslincke","tags":[]},"2242":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2243":{"varMapping":{"__isSmartRef__":true,"id":2244},"source":"function globalShapePathFromMorph(morph) {\n var b = morph.shape.bounds();\n var p1 = morph.worldPoint(b.topLeft()),\n p2 = morph.worldPoint(b.topRight()),\n p3 = morph.worldPoint(b.bottomRight()),\n p4 = morph.worldPoint(b.bottomLeft());\n return [p1, p2, p3, p4]\n}","funcProperties":{"__isSmartRef__":true,"id":2245},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2244":{"this":{"__isSmartRef__":true,"id":1199}},"2245":{"timestamp":{"__isSmartRef__":true,"id":2246},"user":"jenslincke","tags":[]},"2246":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2247":{"varMapping":{"__isSmartRef__":true,"id":2248},"source":"function remove() {\n \n this.disconnectMorph(this.fromMorph)\n this.disconnectMorph(this.toMorph)\n return $super()\n}","funcProperties":{"__isSmartRef__":true,"id":2253},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2248":{"this":{"__isSmartRef__":true,"id":1199},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2249}},"2249":{"$super":{"__isSmartRef__":true,"id":2250}},"2250":{"varMapping":{"__isSmartRef__":true,"id":2251},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2252},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2251":{"obj":{"__isSmartRef__":true,"id":1199},"name":"remove"},"2252":{},"2253":{"timestamp":{"__isSmartRef__":true,"id":2254},"user":"jenslincke","tags":[]},"2254":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2255":{"varMapping":{"__isSmartRef__":true,"id":2256},"source":"function migrateFrom(other) {\n\n this.disconnectMorph(this.fromMorph)\n this.disconnectMorph(this.toMorph)\n\n this.connectFrom(other.fromMorph)\n this.connectTo(other.toMorph)\n\n this.updatePosition()\n\n}","funcProperties":{"__isSmartRef__":true,"id":2257},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2256":{"this":{"__isSmartRef__":true,"id":1199}},"2257":{"timestamp":{"__isSmartRef__":true,"id":2258},"user":"jenslincke","tags":[]},"2258":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2259":{"varMapping":{"__isSmartRef__":true,"id":2260},"source":"function copy() {\n var r = $super()\n r.disconnectAll()\n return r\n}","funcProperties":{"__isSmartRef__":true,"id":2265},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2260":{"this":{"__isSmartRef__":true,"id":1199},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2261}},"2261":{"$super":{"__isSmartRef__":true,"id":2262}},"2262":{"varMapping":{"__isSmartRef__":true,"id":2263},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2264},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2263":{"obj":{"__isSmartRef__":true,"id":1199},"name":"copy"},"2264":{},"2265":{"timestamp":{"__isSmartRef__":true,"id":2266},"user":"jenslincke","tags":[]},"2266":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2267":{"varMapping":{"__isSmartRef__":true,"id":2268},"source":"function disconnectAll() {\n this.disconnectMorph(this.toMorph)\n this.disconnectMorph(this.fromMorph)\n this.fromMorph = null\n this.toMorph = null\n}","funcProperties":{"__isSmartRef__":true,"id":2269},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2268":{"this":{"__isSmartRef__":true,"id":1199}},"2269":{"timestamp":{"__isSmartRef__":true,"id":2270},"user":"jenslincke","tags":[]},"2270":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2271":{"varMapping":{"__isSmartRef__":true,"id":2272},"source":"function resumeSteppingAll() {\n this.connectMorph(this.fromMorph)\n this.connectMorph(this.toMorph)\n return $super()\n}","funcProperties":{"__isSmartRef__":true,"id":2277},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2272":{"this":{"__isSmartRef__":true,"id":1199},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2273}},"2273":{"$super":{"__isSmartRef__":true,"id":2274}},"2274":{"varMapping":{"__isSmartRef__":true,"id":2275},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2276},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2275":{"obj":{"__isSmartRef__":true,"id":1199},"name":"resumeSteppingAll"},"2276":{},"2277":{"timestamp":{"__isSmartRef__":true,"id":2278},"user":"jenslincke","tags":[]},"2278":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2279":{"varMapping":{"__isSmartRef__":true,"id":2280},"source":"function delayedHideHandles() {\n if (! this.lastOverTime) return; // it was handled already\n var delta = Date.now() - this.lastOverTime;\n if (delta > 2000) {\n this.hideHandles()\n this.lastOverTime = null;\n } else {\n this.delayedHideHandles.bind(this).delay(0.1)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2281},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2280":{"this":{"__isSmartRef__":true,"id":1199}},"2281":{"timestamp":{"__isSmartRef__":true,"id":2282},"user":"jenslincke","tags":[]},"2282":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2283":{"varMapping":{"__isSmartRef__":true,"id":2284},"source":"function hideHandles() {\n this.hideFromHandle()\n this.hideToHandle()\n}","funcProperties":{"__isSmartRef__":true,"id":2285},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2284":{"this":{"__isSmartRef__":true,"id":1199}},"2285":{"timestamp":{"__isSmartRef__":true,"id":2286},"user":"jenslincke","tags":[]},"2286":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2287":{"varMapping":{"__isSmartRef__":true,"id":2288},"source":"function grabByHand(hand) {\n this.disconnectAll()\n hand.addMorphWithShadow(this)\n}","funcProperties":{"__isSmartRef__":true,"id":2289},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2288":{"this":{"__isSmartRef__":true,"id":1199}},"2289":{"timestamp":{"__isSmartRef__":true,"id":2290},"user":"jenslincke","tags":[]},"2290":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2291":{"varMapping":{"__isSmartRef__":true,"id":2292},"source":"function onMouseDownEntry(evt) {\n var r = $super(evt)\n\n // var localPos = this.localize(evt.getPosition())\n // var distance = this.distanceToPoint(localPos)\n // alertOK(\"onMouseDownEntry: \" + distance)\n // if (distance > 20) {\n // evt.world.clickedOnMorph = null;\n // evt.world.clickedOnMorphTime = null;\n // evt.hand.scrollFocusMorph = null;\n // evt.hand.internalClickedOnMorph = null\n // return false\n // }\n // show(this.worldPoint(localPos))\n\n return r\n}","funcProperties":{"__isSmartRef__":true,"id":2297},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2292":{"this":{"__isSmartRef__":true,"id":1199},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2293}},"2293":{"$super":{"__isSmartRef__":true,"id":2294}},"2294":{"varMapping":{"__isSmartRef__":true,"id":2295},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2296},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2295":{"obj":{"__isSmartRef__":true,"id":1199},"name":"onMouseDownEntry"},"2296":{},"2297":{"timestamp":{"__isSmartRef__":true,"id":2298},"user":"jenslincke","tags":[]},"2298":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2299":{"varMapping":{"__isSmartRef__":true,"id":2300},"source":"function distanceToPoint(point) {\n // this.distanceToPoint(this.vertices()[0])\n // this.distanceToPoint(this.vertices()[1])\n // this.distanceToPoint(pt(0,0))\n\n // TODO move this to Math\n function sqr(x) { return x * x }\n function dist2(v, w) { return sqr(v.x - w.x) + sqr(v.y - w.y) }\n function distToSegmentSquared(p, v, w) {\n var l2 = dist2(v, w);\n if (l2 == 0) return dist2(p, v);\n var t = ((p.x - v.x) * (w.x - v.x) + (p.y - v.y) * (w.y - v.y)) / l2;\n if (t < 0) return dist2(p, v);\n if (t > 1) return dist2(p, w);\n return dist2(p, { x: v.x + t * (w.x - v.x),\n y: v.y + t * (w.y - v.y) });\n }\n function distToSegment(p, v, w) { return Math.sqrt(distToSegmentSquared(p, v, w)); }\n\n var vertices = this.vertices()\n\n return distToSegment(point, vertices.first(), vertices.last())\n}","funcProperties":{"__isSmartRef__":true,"id":2301},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2300":{"this":{"__isSmartRef__":true,"id":1199}},"2301":{"timestamp":{"__isSmartRef__":true,"id":2302},"user":"jenslincke","tags":[]},"2302":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2303":{"varMapping":{"__isSmartRef__":true,"id":2304},"source":"function dropOn(aMorph) {\n var r = $super(aMorph)\n this.sendToBack()\n return r\n}","funcProperties":{"__isSmartRef__":true,"id":2309},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2304":{"this":{"__isSmartRef__":true,"id":1199},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2305}},"2305":{"$super":{"__isSmartRef__":true,"id":2306}},"2306":{"varMapping":{"__isSmartRef__":true,"id":2307},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2308},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2307":{"obj":{"__isSmartRef__":true,"id":1199},"name":"dropOn"},"2308":{},"2309":{"timestamp":{"__isSmartRef__":true,"id":2310},"user":"jenslincke","tags":[]},"2310":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2311":{"source":{"__isSmartRef__":true,"id":1163},"target":{"__isSmartRef__":true,"id":1199}},"2312":{"sourceObj":{"__isSmartRef__":true,"id":1163},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":1198},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2313},"dependedBy":{"__isSmartRef__":true,"id":1198},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2313":{"source":{"__isSmartRef__":true,"id":1163},"target":{"__isSmartRef__":true,"id":1198}},"2314":{"sourceObj":{"__isSmartRef__":true,"id":1163},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":1198},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2315},"dependedBy":{"__isSmartRef__":true,"id":1198},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2315":{"source":{"__isSmartRef__":true,"id":1163},"target":{"__isSmartRef__":true,"id":1198}},"2316":{"sourceObj":{"__isSmartRef__":true,"id":1163},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":1198},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2317},"dependedBy":{"__isSmartRef__":true,"id":1198},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2317":{"source":{"__isSmartRef__":true,"id":1163},"target":{"__isSmartRef__":true,"id":1198}},"2318":{"sourceObj":{"__isSmartRef__":true,"id":1163},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":1198},"targetMethodName":"updateOwners","varMapping":{"__isSmartRef__":true,"id":2319},"dependedBy":{"__isSmartRef__":true,"id":1198},"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2319":{"source":{"__isSmartRef__":true,"id":1163},"target":{"__isSmartRef__":true,"id":1198}},"2320":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":1198},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2321},"dependedBy":{"__isSmartRef__":true,"id":1198},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2321":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":1198}},"2322":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":1198},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2323},"dependedBy":{"__isSmartRef__":true,"id":1198},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2323":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":1198}},"2324":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":1198},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2325},"dependedBy":{"__isSmartRef__":true,"id":1198},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2325":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":1198}},"2326":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":1198},"targetMethodName":"updateOwners","varMapping":{"__isSmartRef__":true,"id":2327},"dependedBy":{"__isSmartRef__":true,"id":1198},"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2327":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":1198}},"2328":{"d":0.998003992015968,"a":0.998003992015968,"f":378.88023952095807,"e":333.1756487025948,"c":0,"b":0,"matrix_":{"__isSmartRef__":true,"id":2329},"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2329":{"a":0.998003992015968,"b":0,"c":0,"d":0.998003992015968,"e":333.1756487025948,"f":378.88023952095807,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2330":{"converter":{"__isSmartRef__":true,"id":2331}},"2331":{"varMapping":{"__isSmartRef__":true,"id":2311},"source":"function (value) { return this.sourceObj }","funcProperties":{"__isSmartRef__":true,"id":2332},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2332":{},"2333":{"sourceObj":{"__isSmartRef__":true,"id":1163},"sourceAttrName":"globalTransform","targetObj":{"__isSmartRef__":true,"id":2334},"targetMethodName":"updatePosition","varMapping":{"__isSmartRef__":true,"id":2605},"converterString":"function (value) { return this.sourceObj }","dependendConnections":[{"__isSmartRef__":true,"id":2606},{"__isSmartRef__":true,"id":2608},{"__isSmartRef__":true,"id":2610},{"__isSmartRef__":true,"id":2612},{"__isSmartRef__":true,"id":2614},{"__isSmartRef__":true,"id":2616},{"__isSmartRef__":true,"id":2618},{"__isSmartRef__":true,"id":2620}],"oldTransform":{"__isSmartRef__":true,"id":2622},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2624},"__LivelyClassName__":"lively.morphic.GeometryTransformConnection","__SourceModuleName__":"Global.lively.bindings.GeometryBindings"},"2334":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2335},"id":"CF258A7E-8ACB-4862-AFD8-4E596E0745E3","eventHandler":{"__isSmartRef__":true,"id":2338},"__layered_droppingEnabled__":false,"halosEnabled":true,"isBeingDragged":false,"controlPoints":[{"__isSmartRef__":true,"id":2339},{"__isSmartRef__":true,"id":2340}],"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2341},"name":"Connector5","derivationIds":[731,"5E6BD741-9C99-47B9-95C1-7A028178DB17","A8D5C37A-F23F-47FE-8DE2-211CE4484A4F","F722069B-8602-4E8D-BE3F-92A1E0C0EF28","D5ED19F9-968E-4C7E-9936-69F2735A813F","A9E370BC-F208-425C-BFFC-F8D6BB52E11F","4E431641-D056-46CB-B2A8-6626382EF423","5E9FF80A-8869-4D30-9A4C-37023352650B","1E262BB0-B5EB-43C7-AEEF-1721047BD34B","3AC3D636-420C-4F13-820E-C9305261C874","014B85BE-2960-474C-BA9C-7428E21F6D51","A1EDB105-2F3D-4448-AE9E-91A87BE1A9AB","4238A9AF-D49B-4B76-A31C-B50EF24C2AE3","F218405D-EC22-448F-9F4E-8A023F38A2F2","DF372334-FE86-4CA1-A61A-F6DBDFF21DB6","EE1893C0-855C-49AB-932B-86E42ACE320F","AF75DCF2-49F1-45FB-9383-C84651A0F391","7D39DB97-038A-4E9D-BC46-0D9F7786F55F","9B5A0D0C-B264-495A-BCBC-7309BADE6504","76B2F82B-3864-4288-9706-972F55F57D8E"],"_ClipMode":"visible","controlPointsHalos":[],"prevScroll":[0,0],"grabbingEnabled":false,"moved":true,"#startLetters":"accep","update":{"__isSmartRef__":true,"id":2377},"isCopyMorphRef":true,"morphRefId":1,"selectedMorphHighlights":[],"lastOverTime":null,"lastKeyStrokeTime":null,"fromMorph":{"__isSmartRef__":true,"id":2379},"toMorph":{"__isSmartRef__":true,"id":1163},"owner":{"__isSmartRef__":true,"id":960},"_Rotation":0,"_Scale":1.002,"selectedMorph":{"__isSmartRef__":true,"id":1163},"__serializedExpressions__":["distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2444},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","distanceToDragEvent":"lively.pt(151.0,-12.3)","_Position":"lively.pt(279.1,226.1)"},"2335":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2336},{"__isSmartRef__":true,"id":2337}],"_ClipMode":"visible","_BorderWidth":5,"_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":true,"_BorderStylingMode":false,"__serializedExpressions__":["_Padding","_Position","_Extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Padding":"lively.rect(0,0,0,0)","_Position":"lively.pt(-35.7,-12.4)","_Extent":"lively.pt(71.3,24.8)","_BorderColor":"Color.rgb(161,161,161)"},"2336":{"isAbsolute":true,"x":-32.650000000000006,"y":-9.390141843971634,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2337":{"isAbsolute":true,"x":33.650000000000006,"y":10.390141843971634,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2338":{"morph":{"__isSmartRef__":true,"id":2334},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2339":{"morph":{"__isSmartRef__":true,"id":2334},"index":0,"connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2340":{"morph":{"__isSmartRef__":true,"id":2334},"index":1,"connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2341":{"requiredModules":[],"migrationLevel":4,"partsSpaceName":"PartsBin/Jens/","comment":"Yes, I think I got it again: Powerful and nice connectors.\nThis time 100 % Part only!","partName":"Connector","lastModifiedDate":{"__isSmartRef__":true,"id":2342},"changes":[{"__isSmartRef__":true,"id":2343},{"__isSmartRef__":true,"id":2345},{"__isSmartRef__":true,"id":2347},{"__isSmartRef__":true,"id":2349},{"__isSmartRef__":true,"id":2351},{"__isSmartRef__":true,"id":2353},{"__isSmartRef__":true,"id":2355},{"__isSmartRef__":true,"id":2357},{"__isSmartRef__":true,"id":2359},{"__isSmartRef__":true,"id":2361},{"__isSmartRef__":true,"id":2363},{"__isSmartRef__":true,"id":2365},{"__isSmartRef__":true,"id":2367},{"__isSmartRef__":true,"id":2369},{"__isSmartRef__":true,"id":2371},{"__isSmartRef__":true,"id":2373},{"__isSmartRef__":true,"id":2375}],"revisionOnLoad":204084,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2342":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2343":{"date":{"__isSmartRef__":true,"id":2344},"author":"jenslincke","message":"no comment","id":"D7359A4C-CE5D-4BB6-91CF-D47E8CD9DC8D"},"2344":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2345":{"date":{"__isSmartRef__":true,"id":2346},"author":"jenslincke","message":"no comment","id":"0DB540E7-E5AF-4800-BBD5-932B86D501BE"},"2346":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2347":{"date":{"__isSmartRef__":true,"id":2348},"author":"jenslincke","message":"no comment","id":"3AE4DB59-853F-4DB2-A99D-2822B27C73F2"},"2348":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2349":{"date":{"__isSmartRef__":true,"id":2350},"author":"jenslincke","message":"no comment","id":"DD1ABC51-1DCC-4B97-BDB4-355D28118CE9"},"2350":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2351":{"date":{"__isSmartRef__":true,"id":2352},"author":"jenslincke","message":"no comment","id":"92FDE03B-DE85-4805-84B6-3B6DA90E6348"},"2352":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2353":{"date":{"__isSmartRef__":true,"id":2354},"author":"jenslincke","message":"no comment","id":"3F64B004-21CC-4E77-82A4-642B296327F0"},"2354":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2355":{"date":{"__isSmartRef__":true,"id":2356},"author":"jenslincke","message":"no comment","id":"6E97D136-9F49-4570-8EC9-BFF3786EEA8D"},"2356":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2357":{"date":{"__isSmartRef__":true,"id":2358},"author":"jenslincke","message":"no comment","id":"A022B160-32B3-4AD2-A005-0A7B11B80584"},"2358":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2359":{"date":{"__isSmartRef__":true,"id":2360},"author":"jenslincke","message":"no comment","id":"B3F0BD32-A3D2-4AAB-97D5-8FB7637C6A9A"},"2360":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2361":{"date":{"__isSmartRef__":true,"id":2362},"author":"jenslincke","message":"no comment","id":"D8953E55-38AD-480A-8B9C-E4A86C90D48E"},"2362":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2363":{"date":{"__isSmartRef__":true,"id":2364},"author":"jenslincke","message":"no comment","id":"E9F9AE91-A058-465E-8F58-5CC00A962D0C"},"2364":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2365":{"date":{"__isSmartRef__":true,"id":2366},"author":"jenslincke","message":"no comment","id":"ED70FB47-8AA0-4D4E-8D90-FF99454C924B"},"2366":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2367":{"date":{"__isSmartRef__":true,"id":2368},"author":"jenslincke","message":"no comment","id":"28165CED-C8C5-4B8E-9655-645E3F5099BB"},"2368":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2369":{"date":{"__isSmartRef__":true,"id":2370},"author":"jenslincke","message":"no comment","id":"117C964B-9768-48F2-8EC8-D4328478198F"},"2370":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2371":{"date":{"__isSmartRef__":true,"id":2372},"author":"jenslincke","message":"no comment","id":"79159460-DFFB-462D-AFC9-EECD3539A1A9"},"2372":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2373":{"date":{"__isSmartRef__":true,"id":2374},"author":"jenslincke","message":"no comment","id":"3D5067AE-5BA0-4317-837F-59F8F61B8B24"},"2374":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2375":{"date":{"__isSmartRef__":true,"id":2376},"author":"jenslincke","message":"fixed scaling issues","id":"97E95E76-A88F-44AB-A6E9-6BA5DCC4045D"},"2376":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2377":{"d":1,"a":1,"f":906.1,"e":107.8,"c":0,"b":0,"matrix_":{"__isSmartRef__":true,"id":2378},"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2378":{"a":1,"b":0,"c":0,"d":1,"e":107.8,"f":906.1,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2379":{"submorphs":[{"__isSmartRef__":true,"id":2380}],"scripts":[],"id":"93130190-8681-4981-82BA-B41855A96EE9","shape":{"__isSmartRef__":true,"id":2404},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_MaxTextWidth":394.84879006641484,"_MaxTextHeight":193.9335840422932,"textChunks":[{"__isSmartRef__":true,"id":2405}],"layout":{"__isSmartRef__":true,"id":2407},"showsHalos":false,"owner":{"__isSmartRef__":true,"id":960},"charsReplaced":"","lastFindLoc":20,"savedTextString":"Hello Welt","attributeConnections":[{"__isSmartRef__":true,"id":2408},{"__isSmartRef__":true,"id":2410},{"__isSmartRef__":true,"id":2412},{"__isSmartRef__":true,"id":2414},{"__isSmartRef__":true,"id":2416},{"__isSmartRef__":true,"id":2418},{"__isSmartRef__":true,"id":2420}],"doNotSerialize":["$$name","$$textString","$$_Position","$$_Scale","$$_Rotation","$$owner"],"doNotCopyProperties":["$$name","$$textString","$$_Position","$$_Scale","$$_Rotation","$$owner"],"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2435},"derivationIds":[3322,"225828F0-5F33-4C44-8D12-512AF1842054","54FE4693-F2A2-44FC-84B4-3F50EADBAC77","8D2ED6C5-6C6D-4040-8EFE-EF984285FE1F"],"_WordBreak":"break-all","isBeingDragged":false,"_FontSize":null,"name":"TextB","isLockOwner":false,"_Rotation":0,"_Scale":1,"draggingEnabled":false,"magnets":[{"__isSmartRef__":true,"id":2436},{"__isSmartRef__":true,"id":2437},{"__isSmartRef__":true,"id":2438},{"__isSmartRef__":true,"id":2439},{"__isSmartRef__":true,"id":2440},{"__isSmartRef__":true,"id":2441},{"__isSmartRef__":true,"id":2442},{"__isSmartRef__":true,"id":2443}],"__serializedExpressions__":["_Padding","_Position","distanceToDragEvent"],"textString":"one\ntwo trees\nthree\nfour","priorSelectionRange":[19,19],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(2,1,0,0)","_Position":"lively.pt(101.3,147.2)","distanceToDragEvent":"lively.pt(100.9,-19.9)"},"2380":{"submorphs":[],"scripts":[],"id":"671B572A-1871-46F7-912B-6457F969ACA1","shape":{"__isSmartRef__":true,"id":2381},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":180.8018403394826,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":9,"name":"NameLabel","partsBinMetaInfo":{"__isSmartRef__":true,"id":2382},"textChunks":[{"__isSmartRef__":true,"id":2384}],"charsReplaced":"Grr","lastFindLoc":-3,"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":2386},{"__isSmartRef__":true,"id":2387}],"doNotSerialize":["$$owner","$$savedTextString"],"doNotCopyProperties":["$$owner","$$savedTextString"],"isInputLine":true,"savedTextString":"TopLeft","eventHandler":{"__isSmartRef__":true,"id":2388},"owner":{"__isSmartRef__":true,"id":2379},"derivationIds":[7027,"C492960F-3ECC-4233-B8D1-F5B21D020A2B","6DE27B20-F01A-4C39-BC59-EC704D9C6130","73F02FE8-0EF5-4A39-B313-3F5A916A565B"],"_WhiteSpaceHandling":"pre-wrap","_ClipMode":"visible","moved":true,"oldOwner":{"__isSmartRef__":true,"id":2379},"previousSelection":[0,11],"isLockOwner":false,"_Rotation":0,"_Scale":1,"magnets":[{"__isSmartRef__":true,"id":2389},{"__isSmartRef__":true,"id":2390},{"__isSmartRef__":true,"id":2391},{"__isSmartRef__":true,"id":2392},{"__isSmartRef__":true,"id":2393},{"__isSmartRef__":true,"id":2394},{"__isSmartRef__":true,"id":2395},{"__isSmartRef__":true,"id":2396}],"__serializedExpressions__":["_Position","textColor","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2397},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.9,-14.8)","textColor":"Color.rgb(0,0,0)","distanceToDragEvent":"lively.pt(51.0,-9.1)"},"2381":{"fill":null,"_BorderWidth":0,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(75.8,14.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"2382":{"partsSpaceName":"PartsBin/Widgets/","migrationLevel":2,"comment":"Label that shows the name of a morph. Updates automatically.","partName":"NameLabel","lastModifiedDate":{"__isSmartRef__":true,"id":2383},"revisionOnLoad":140039,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2383":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2384":{"style":{"__isSmartRef__":true,"id":2385},"chunkOwner":{"__isSmartRef__":true,"id":2380},"_id":"_8744","storedString":"TextB","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2385":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2386":{"sourceObj":{"__isSmartRef__":true,"id":2380},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":2380},"targetMethodName":"updateLabel","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2387":{"sourceObj":{"__isSmartRef__":true,"id":2380},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":2380},"targetMethodName":"renameOwner","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2388":{"morph":{"__isSmartRef__":true,"id":2380},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2389":{"morph":{"__isSmartRef__":true,"id":2380},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(286.0,429.1)"},"2390":{"morph":{"__isSmartRef__":true,"id":2380},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(323.9,429.1)"},"2391":{"morph":{"__isSmartRef__":true,"id":2380},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(361.7,429.1)"},"2392":{"morph":{"__isSmartRef__":true,"id":2380},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(361.7,436.1)"},"2393":{"morph":{"__isSmartRef__":true,"id":2380},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(361.7,443.0)"},"2394":{"morph":{"__isSmartRef__":true,"id":2380},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(323.9,443.0)"},"2395":{"morph":{"__isSmartRef__":true,"id":2380},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(286.0,443.0)"},"2396":{"morph":{"__isSmartRef__":true,"id":2380},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(286.0,436.1)"},"2397":{"updateLabel":{"__isSmartRef__":true,"id":2398},"renameOwner":{"__isSmartRef__":true,"id":2401}},"2398":{"varMapping":{"__isSmartRef__":true,"id":2399},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tif (this.oldOwner)\n\t\t\tdisconnect(this.oldOwner, 'name', this, 'updateLabel')\n\t\tif (this.owner)\n\t\t\tconnect(this.owner, 'name', this, 'updateLabel')\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar name = (this.owner ? this.owner.name : \"no owner\")\n\tif (this.textString != name)\n\tthis.setTextString(name)\n}","funcProperties":{"__isSmartRef__":true,"id":2400},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2399":{"this":{"__isSmartRef__":true,"id":2380}},"2400":{},"2401":{"varMapping":{"__isSmartRef__":true,"id":2402},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":2403},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2402":{"this":{"__isSmartRef__":true,"id":2380}},"2403":{},"2404":{"_BorderWidth":2,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(145.2,95.8)","_BorderColor":"Color.rgb(165,165,165)","_Fill":"Color.rgb(238,243,209)","_Padding":"lively.rect(0,0,0,0)"},"2405":{"style":{"__isSmartRef__":true,"id":2406},"chunkOwner":{"__isSmartRef__":true,"id":2379},"_id":"_7","storedString":"one\ntwo trees\nthree\nfour","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2406":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2407":{"resizeWidth":true,"resizeHeight":true},"2408":{"sourceObj":{"__isSmartRef__":true,"id":2379},"sourceAttrName":"name","targetObj":{"__isSmartRef__":true,"id":2380},"targetMethodName":"updateLabel","varMapping":{"__isSmartRef__":true,"id":2409},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2409":{"source":{"__isSmartRef__":true,"id":2379},"target":{"__isSmartRef__":true,"id":2380}},"2410":{"sourceObj":{"__isSmartRef__":true,"id":2379},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":960},"targetMethodName":"updateDiff","varMapping":{"__isSmartRef__":true,"id":2411},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2411":{"source":{"__isSmartRef__":true,"id":2379},"target":{"__isSmartRef__":true,"id":960}},"2412":{"sourceObj":{"__isSmartRef__":true,"id":2379},"sourceAttrName":"globalTransform","targetObj":{"__isSmartRef__":true,"id":2334},"targetMethodName":"updatePosition","varMapping":{"__isSmartRef__":true,"id":2413},"converterString":"function (value) { return this.sourceObj }","dependendConnections":[{"__isSmartRef__":true,"id":2414},{"__isSmartRef__":true,"id":2416},{"__isSmartRef__":true,"id":2418},{"__isSmartRef__":true,"id":2420},{"__isSmartRef__":true,"id":2422},{"__isSmartRef__":true,"id":2424},{"__isSmartRef__":true,"id":2426},{"__isSmartRef__":true,"id":2428}],"oldTransform":{"__isSmartRef__":true,"id":2430},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2432},"__LivelyClassName__":"lively.morphic.GeometryTransformConnection","__SourceModuleName__":"Global.lively.bindings.GeometryBindings"},"2413":{"source":{"__isSmartRef__":true,"id":2379},"target":{"__isSmartRef__":true,"id":2334}},"2414":{"sourceObj":{"__isSmartRef__":true,"id":2379},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":2412},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2415},"dependedBy":{"__isSmartRef__":true,"id":2412},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2415":{"source":{"__isSmartRef__":true,"id":2379},"target":{"__isSmartRef__":true,"id":2412}},"2416":{"sourceObj":{"__isSmartRef__":true,"id":2379},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":2412},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2417},"dependedBy":{"__isSmartRef__":true,"id":2412},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2417":{"source":{"__isSmartRef__":true,"id":2379},"target":{"__isSmartRef__":true,"id":2412}},"2418":{"sourceObj":{"__isSmartRef__":true,"id":2379},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":2412},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2419},"dependedBy":{"__isSmartRef__":true,"id":2412},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2419":{"source":{"__isSmartRef__":true,"id":2379},"target":{"__isSmartRef__":true,"id":2412}},"2420":{"sourceObj":{"__isSmartRef__":true,"id":2379},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":2412},"targetMethodName":"updateOwners","varMapping":{"__isSmartRef__":true,"id":2421},"dependedBy":{"__isSmartRef__":true,"id":2412},"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2421":{"source":{"__isSmartRef__":true,"id":2379},"target":{"__isSmartRef__":true,"id":2412}},"2422":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":2412},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2423},"dependedBy":{"__isSmartRef__":true,"id":2412},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2423":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":2412}},"2424":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":2412},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2425},"dependedBy":{"__isSmartRef__":true,"id":2412},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2425":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":2412}},"2426":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":2412},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2427},"dependedBy":{"__isSmartRef__":true,"id":2412},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2427":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":2412}},"2428":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":2412},"targetMethodName":"updateOwners","varMapping":{"__isSmartRef__":true,"id":2429},"dependedBy":{"__isSmartRef__":true,"id":2412},"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2429":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":2412}},"2430":{"d":0.998003992015968,"a":0.998003992015968,"f":315.9061876247505,"e":122.09780439121755,"c":0,"b":0,"matrix_":{"__isSmartRef__":true,"id":2431},"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2431":{"a":0.998003992015968,"b":0,"c":0,"d":0.998003992015968,"e":122.09780439121755,"f":315.9061876247505,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2432":{"converter":{"__isSmartRef__":true,"id":2433}},"2433":{"varMapping":{"__isSmartRef__":true,"id":2413},"source":"function (value) { return this.sourceObj }","funcProperties":{"__isSmartRef__":true,"id":2434},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2434":{},"2435":{"morph":{"__isSmartRef__":true,"id":2379},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2436":{"morph":{"__isSmartRef__":true,"id":2379},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(285.1,443.9)"},"2437":{"morph":{"__isSmartRef__":true,"id":2379},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(357.6,443.9)"},"2438":{"morph":{"__isSmartRef__":true,"id":2379},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(430.1,443.9)"},"2439":{"morph":{"__isSmartRef__":true,"id":2379},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(430.1,491.7)"},"2440":{"morph":{"__isSmartRef__":true,"id":2379},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(430.1,539.5)"},"2441":{"morph":{"__isSmartRef__":true,"id":2379},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(357.6,539.5)"},"2442":{"morph":{"__isSmartRef__":true,"id":2379},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(285.1,539.5)"},"2443":{"morph":{"__isSmartRef__":true,"id":2379},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(285.1,491.7)"},"2444":{"connect":{"__isSmartRef__":true,"id":2445},"updatePosition":{"__isSmartRef__":true,"id":2449},"updateControlPoint":{"__isSmartRef__":true,"id":2453},"disconnectMorph":{"__isSmartRef__":true,"id":2457},"connectMorph":{"__isSmartRef__":true,"id":2461},"onMouseOver":{"__isSmartRef__":true,"id":2465},"onMouseOut":{"__isSmartRef__":true,"id":2469},"makeHandle":{"__isSmartRef__":true,"id":2477},"showFromHandle":{"__isSmartRef__":true,"id":2481},"showToHandle":{"__isSmartRef__":true,"id":2485},"reset":{"__isSmartRef__":true,"id":2489},"onDragInHandle":{"__isSmartRef__":true,"id":2493},"onDragStartInHandle":{"__isSmartRef__":true,"id":2497},"onDragEndInHandle":{"__isSmartRef__":true,"id":2501},"connectFrom":{"__isSmartRef__":true,"id":2505},"connectTo":{"__isSmartRef__":true,"id":2509},"hideToHandle":{"__isSmartRef__":true,"id":2513},"hideFromHandle":{"__isSmartRef__":true,"id":2517},"updateIntersection":{"__isSmartRef__":true,"id":2521},"lineIntersect":{"__isSmartRef__":true,"id":2525},"intersectMorphLinePoints":{"__isSmartRef__":true,"id":2529},"intersectMorph":{"__isSmartRef__":true,"id":2533},"globalShapePathFromMorph":{"__isSmartRef__":true,"id":2537},"remove":{"__isSmartRef__":true,"id":2541},"migrateFrom":{"__isSmartRef__":true,"id":2549},"copy":{"__isSmartRef__":true,"id":2553},"disconnectAll":{"__isSmartRef__":true,"id":2561},"resumeSteppingAll":{"__isSmartRef__":true,"id":2565},"delayedHideHandles":{"__isSmartRef__":true,"id":2573},"hideHandles":{"__isSmartRef__":true,"id":2577},"grabByHand":{"__isSmartRef__":true,"id":2581},"onMouseDownEntry":{"__isSmartRef__":true,"id":2585},"distanceToPoint":{"__isSmartRef__":true,"id":2593},"dropOn":{"__isSmartRef__":true,"id":2597}},"2445":{"varMapping":{"__isSmartRef__":true,"id":2446},"source":"function connect(morphA, morphB) {\n this.connectFrom(morphA)\n this.connectTo(morphB)\n this.updatePosition()\n}","funcProperties":{"__isSmartRef__":true,"id":2447},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2446":{"this":{"__isSmartRef__":true,"id":2334}},"2447":{"timestamp":{"__isSmartRef__":true,"id":2448},"user":"jenslincke","tags":[]},"2448":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2449":{"varMapping":{"__isSmartRef__":true,"id":2450},"source":"function updatePosition(sourceMorph) {\n\n // some self healing code\n if (sourceMorph && sourceMorph !== this.toMorph && sourceMorph !== this.fromMorph) {\n this.disconnectMorph(sourceMorph)\n }\n try {\n this.updateControlPoint(this.controlPoints[0], this.fromMorph)\n this.updateControlPoint(this.controlPoints[1], this.toMorph)\n this.updateIntersection(this.fromMorph, this.controlPoints[0])\n this.updateIntersection(this.toMorph, this.controlPoints[1])\n } catch(e) {\n console.log(\"ERROR \" +this+\".updatePosition(\" + sourceMorph + \")\")\n }\n\n this.adjustOrigin(this.bounds().extent().scaleBy(0.5))\n}","funcProperties":{"__isSmartRef__":true,"id":2451},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2450":{"this":{"__isSmartRef__":true,"id":2334}},"2451":{"timestamp":{"__isSmartRef__":true,"id":2452},"user":"jenslincke","tags":[]},"2452":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2453":{"varMapping":{"__isSmartRef__":true,"id":2454},"source":"function updateControlPoint(cp, morph) {\n if (!cp || !morph) return;\n try {\n var pos = morph.worldPoint(morph.shape.bounds().center())\n } catch(e) {};\n if (pos)\n cp.setGlobalPos(pos)\n}","funcProperties":{"__isSmartRef__":true,"id":2455},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2454":{"this":{"__isSmartRef__":true,"id":2334}},"2455":{"timestamp":{"__isSmartRef__":true,"id":2456},"user":"jenslincke","tags":[]},"2456":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2457":{"varMapping":{"__isSmartRef__":true,"id":2458},"source":"function disconnectMorph(morph) {\n if (!morph) return;\n lively.bindings.disconnect(morph, 'globalTransform', this, 'updatePosition')\n}","funcProperties":{"__isSmartRef__":true,"id":2459},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2458":{"this":{"__isSmartRef__":true,"id":2334}},"2459":{"timestamp":{"__isSmartRef__":true,"id":2460},"user":"jenslincke","tags":[]},"2460":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2461":{"varMapping":{"__isSmartRef__":true,"id":2462},"source":"function connectMorph(morph) {\n if (morph)\n lively.bindings.connect(morph, 'globalTransform', this, 'updatePosition', {\n converter: function(value) { return this.sourceObj }\n })\n}","funcProperties":{"__isSmartRef__":true,"id":2463},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2462":{"this":{"__isSmartRef__":true,"id":2334}},"2463":{"timestamp":{"__isSmartRef__":true,"id":2464},"user":"jenslincke","tags":[]},"2464":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2465":{"varMapping":{"__isSmartRef__":true,"id":2466},"source":"function onMouseOver(evt) {\n this.lastOverTime = Date.now()\n var p = evt.getPosition()\n var cp1 = this.controlPoints[0].getGlobalPos();\n if (p.dist(cp1) < 20) {\n this.showFromHandle()\n } else {\n this.hideFromHandle()\n }\n var cp2 = this.controlPoints[1].getGlobalPos();\n if (p.dist(cp2) < 20) {\n this.showToHandle()\n } else {\n this.hideToHandle()\n }\n \n this.delayedHideHandles()\n}","funcProperties":{"__isSmartRef__":true,"id":2467},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2466":{"this":{"__isSmartRef__":true,"id":2334}},"2467":{"timestamp":{"__isSmartRef__":true,"id":2468},"user":"jenslincke","tags":[]},"2468":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2469":{"varMapping":{"__isSmartRef__":true,"id":2470},"source":"function onMouseOut(evt) {\n // this.hideFromHandle()\n // this.hideToHandle()\n}","funcProperties":{"__isSmartRef__":true,"id":2475},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2470":{"this":{"__isSmartRef__":true,"id":2334},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2471}},"2471":{"$super":{"__isSmartRef__":true,"id":2472}},"2472":{"varMapping":{"__isSmartRef__":true,"id":2473},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2474},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2473":{"obj":{"__isSmartRef__":true,"id":2334},"name":"onMouseOut"},"2474":{},"2475":{"timestamp":{"__isSmartRef__":true,"id":2476},"user":"jenslincke","tags":[]},"2476":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2477":{"varMapping":{"__isSmartRef__":true,"id":2478},"source":"function makeHandle() {\n var m = lively.morphic.Morph.makeRectangle(0,0,10,10);\n m.disableGrabbing()\n m.enableDragging()\n m.connector = this;\n // move real behavior to a place which is easier to develop\n // do not use bind, because we like late binding \n m.addScript(function onDragStart(evt) {\n this.connector.onDragStartInHandle(this, evt)\n })\n m.addScript(function onDrag(evt) {\n this.connector.onDragInHandle(this, evt)\n })\n m.addScript(function onDragEnd(evt) {\n this.connector.onDragEndInHandle(this, evt)\n })\n m.isEpiMorph = true;\n return m\n}","funcProperties":{"__isSmartRef__":true,"id":2479},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2478":{"this":{"__isSmartRef__":true,"id":2334}},"2479":{"timestamp":{"__isSmartRef__":true,"id":2480},"user":"jenslincke","tags":[]},"2480":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2481":{"varMapping":{"__isSmartRef__":true,"id":2482},"source":"function showFromHandle() {\n if (!this.fromHandle) {\n this.fromHandle = this.makeHandle();\n this.fromHandle.setFill(Color.red)\n this.fromHandle.isFromHandle = true;\n }\n this.fromHandle.openInWorld();\n this.fromHandle.controlPoint = this.controlPoints[0];\n this.fromHandle.setPosition(this.controlPoints[0].getGlobalPos().subPt(pt(5,5)))\n return this.fromHandle\n}","funcProperties":{"__isSmartRef__":true,"id":2483},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2482":{"this":{"__isSmartRef__":true,"id":2334}},"2483":{"timestamp":{"__isSmartRef__":true,"id":2484},"user":"jenslincke","tags":[]},"2484":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2485":{"varMapping":{"__isSmartRef__":true,"id":2486},"source":"function showToHandle() {\n if (!this.toHandle) {\n this.toHandle = this.makeHandle();\n this.toHandle.setFill(Color.red)\n this.toHandle.isToHandle = true;\n\n }\n this.toHandle.openInWorld();\n this.toHandle.controlPoint = this.controlPoints[1];\n this.toHandle.setPosition(this.controlPoints[1].getGlobalPos().subPt(pt(5,5)))\n return this.toHandle\n}","funcProperties":{"__isSmartRef__":true,"id":2487},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2486":{"this":{"__isSmartRef__":true,"id":2334}},"2487":{"timestamp":{"__isSmartRef__":true,"id":2488},"user":"jenslincke","tags":[]},"2488":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2489":{"varMapping":{"__isSmartRef__":true,"id":2490},"source":"function reset() {\n if (this.fromHandle) {\n this.fromHandle.remove()\n delete this.fromHandle\n }\n if (this.toHandle) {\n this.toHandle.remove()\n delete this.toHandle\n }\n \n this.droppingEnabled = false\n // this.controlPoints[1].setPos(pt(200,200))\n}","funcProperties":{"__isSmartRef__":true,"id":2491},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2490":{"this":{"__isSmartRef__":true,"id":2334}},"2491":{"timestamp":{"__isSmartRef__":true,"id":2492},"user":"jenslincke","tags":[]},"2492":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2493":{"varMapping":{"__isSmartRef__":true,"id":2494},"source":"function onDragInHandle(handle, evt) {\n this.lastOverTime = Date.now()\n var pos = handle.getPositionInWorld();\n var delta = evt.hand.getPosition().subPt(pos);\n handle.moveBy(delta)\n pos = handle.getPositionInWorld();\n if (handle.controlPoint)\n handle.controlPoint.setGlobalPos(pos.addPt(pt(5,5)))\n var morphs = this.owner.morphsContainingPoint(pos)\n morphs = morphs.reject(function(ea) {\n return ea.isWorld || (ea === handle) || (ea === this) || \n (ea === this.owner)\n }, this)\n if (this.selectedMorphHighlights) \n this.selectedMorphHighlights.invoke('remove')\n this.selectedMorph = morphs.first();\n this.selectedMorphHighlights = show(this.selectedMorph)\n handle.startPos = evt.getPosition();\n}","funcProperties":{"__isSmartRef__":true,"id":2495},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2494":{"this":{"__isSmartRef__":true,"id":2334}},"2495":{"timestamp":{"__isSmartRef__":true,"id":2496},"user":"jenslincke","tags":[]},"2496":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2497":{"varMapping":{"__isSmartRef__":true,"id":2498},"source":"function onDragStartInHandle(handle, evt) {\n handle.startPos = evt.getPosition()\n}","funcProperties":{"__isSmartRef__":true,"id":2499},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2498":{"this":{"__isSmartRef__":true,"id":2334}},"2499":{"timestamp":{"__isSmartRef__":true,"id":2500},"user":"jenslincke","tags":[]},"2500":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2501":{"varMapping":{"__isSmartRef__":true,"id":2502},"source":"function onDragEndInHandle(handle, evt) {\n if (this.selectedMorphHighlights) \n this.selectedMorphHighlights.invoke('remove')\n \n if (handle.isFromHandle) this.connectFrom(this.selectedMorph)\n if (handle.isToHandle) this.connectTo(this.selectedMorph)\n this.delayedHideHandles()\n this.updatePosition()\n}","funcProperties":{"__isSmartRef__":true,"id":2503},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2502":{"this":{"__isSmartRef__":true,"id":2334}},"2503":{"timestamp":{"__isSmartRef__":true,"id":2504},"user":"jenslincke","tags":[]},"2504":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2505":{"varMapping":{"__isSmartRef__":true,"id":2506},"source":"function connectFrom(morph) {\n if (morph && morph === this.toMorph) return; // not allowed\n\n this.disconnectMorph(this.fromMorph)\n this.fromMorph = morph;\n this.connectMorph(this.fromMorph)\n}","funcProperties":{"__isSmartRef__":true,"id":2507},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2506":{"this":{"__isSmartRef__":true,"id":2334}},"2507":{"timestamp":{"__isSmartRef__":true,"id":2508},"user":"jenslincke","tags":[]},"2508":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2509":{"varMapping":{"__isSmartRef__":true,"id":2510},"source":"function connectTo(morph) {\n\n if (morph && morph === this.fromMorph) return; // not allowed\n\n this.disconnectMorph(this.toMorph)\n this.toMorph = morph;\n this.connectMorph(this.toMorph)\n}","funcProperties":{"__isSmartRef__":true,"id":2511},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2510":{"this":{"__isSmartRef__":true,"id":2334}},"2511":{"timestamp":{"__isSmartRef__":true,"id":2512},"user":"jenslincke","tags":[]},"2512":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2513":{"varMapping":{"__isSmartRef__":true,"id":2514},"source":"function hideToHandle() {\n if (this.toHandle) this.toHandle.remove();\n}","funcProperties":{"__isSmartRef__":true,"id":2515},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2514":{"this":{"__isSmartRef__":true,"id":2334}},"2515":{"timestamp":{"__isSmartRef__":true,"id":2516},"user":"jenslincke","tags":[]},"2516":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2517":{"varMapping":{"__isSmartRef__":true,"id":2518},"source":"function hideFromHandle() {\n if (this.fromHandle) this.fromHandle.remove()\n}","funcProperties":{"__isSmartRef__":true,"id":2519},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2518":{"this":{"__isSmartRef__":true,"id":2334}},"2519":{"timestamp":{"__isSmartRef__":true,"id":2520},"user":"jenslincke","tags":[]},"2520":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2521":{"varMapping":{"__isSmartRef__":true,"id":2522},"source":"function updateIntersection(morph, cp) {\n if (!morph) return;\n var intersection = this.intersectMorph(morph)[0];\n if (intersection) {\n cp.setGlobalPos(intersection);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2523},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2522":{"this":{"__isSmartRef__":true,"id":2334}},"2523":{"timestamp":{"__isSmartRef__":true,"id":2524},"user":"jenslincke","tags":[]},"2524":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2525":{"varMapping":{"__isSmartRef__":true,"id":2526},"source":"function lineIntersect(a1, a2, b1, b2){\n // inspired by http://stackoverflow.com/questions/3746274/line-intersection-with-aabb-rectangle\n var b = a2.subPt(a1);\n var d = b2.subPt(b1);\n var bDotDPerp = b.x * d.y - b.y * d.x;\n\n // if b dot d == 0, it means the lines are parallel so have infinite intersection points\n if (bDotDPerp == 0)\n return null;\n\n var c = b1.subPt(a1);\n var t = (c.x * d.y - c.y * d.x) / bDotDPerp;\n if (t < 0 || t > 1)\n return null;\n\n var u = (c.x * b.y - c.y * b.x) / bDotDPerp;\n if (u < 0 || u > 1)\n return null;\n\n return a1.addPt(b.scaleBy(t));\n}","funcProperties":{"__isSmartRef__":true,"id":2527},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2526":{"this":{"__isSmartRef__":true,"id":2334}},"2527":{"timestamp":{"__isSmartRef__":true,"id":2528},"user":"jenslincke","tags":[]},"2528":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2529":{"varMapping":{"__isSmartRef__":true,"id":2530},"source":"function intersectMorphLinePoints(morph, a1, a2) {\n var points = this.globalShapePathFromMorph(morph);\n var intersections = [];\n points.inject(points.last(), function(last, ea) {\n var p = this.lineIntersect(a1, a2, last, ea)\n if (p) intersections.push(p)\n return ea\n }, this)\n return intersections\n}","funcProperties":{"__isSmartRef__":true,"id":2531},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2530":{"this":{"__isSmartRef__":true,"id":2334}},"2531":{"timestamp":{"__isSmartRef__":true,"id":2532},"user":"jenslincke","tags":[]},"2532":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2533":{"varMapping":{"__isSmartRef__":true,"id":2534},"source":"function intersectMorph(morph) {\n var line = this;\n return this.intersectMorphLinePoints(morph,\n line.controlPoints[0].getGlobalPos(), line.controlPoints[1].getGlobalPos())\n}","funcProperties":{"__isSmartRef__":true,"id":2535},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2534":{"this":{"__isSmartRef__":true,"id":2334}},"2535":{"timestamp":{"__isSmartRef__":true,"id":2536},"user":"jenslincke","tags":[]},"2536":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2537":{"varMapping":{"__isSmartRef__":true,"id":2538},"source":"function globalShapePathFromMorph(morph) {\n var b = morph.shape.bounds();\n var p1 = morph.worldPoint(b.topLeft()),\n p2 = morph.worldPoint(b.topRight()),\n p3 = morph.worldPoint(b.bottomRight()),\n p4 = morph.worldPoint(b.bottomLeft());\n return [p1, p2, p3, p4]\n}","funcProperties":{"__isSmartRef__":true,"id":2539},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2538":{"this":{"__isSmartRef__":true,"id":2334}},"2539":{"timestamp":{"__isSmartRef__":true,"id":2540},"user":"jenslincke","tags":[]},"2540":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2541":{"varMapping":{"__isSmartRef__":true,"id":2542},"source":"function remove() {\n \n this.disconnectMorph(this.fromMorph)\n this.disconnectMorph(this.toMorph)\n return $super()\n}","funcProperties":{"__isSmartRef__":true,"id":2547},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2542":{"this":{"__isSmartRef__":true,"id":2334},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2543}},"2543":{"$super":{"__isSmartRef__":true,"id":2544}},"2544":{"varMapping":{"__isSmartRef__":true,"id":2545},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2546},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2545":{"obj":{"__isSmartRef__":true,"id":2334},"name":"remove"},"2546":{},"2547":{"timestamp":{"__isSmartRef__":true,"id":2548},"user":"jenslincke","tags":[]},"2548":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2549":{"varMapping":{"__isSmartRef__":true,"id":2550},"source":"function migrateFrom(other) {\n\n this.disconnectMorph(this.fromMorph)\n this.disconnectMorph(this.toMorph)\n\n this.connectFrom(other.fromMorph)\n this.connectTo(other.toMorph)\n\n this.updatePosition()\n\n}","funcProperties":{"__isSmartRef__":true,"id":2551},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2550":{"this":{"__isSmartRef__":true,"id":2334}},"2551":{"timestamp":{"__isSmartRef__":true,"id":2552},"user":"jenslincke","tags":[]},"2552":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2553":{"varMapping":{"__isSmartRef__":true,"id":2554},"source":"function copy() {\n var r = $super()\n r.disconnectAll()\n return r\n}","funcProperties":{"__isSmartRef__":true,"id":2559},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2554":{"this":{"__isSmartRef__":true,"id":2334},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2555}},"2555":{"$super":{"__isSmartRef__":true,"id":2556}},"2556":{"varMapping":{"__isSmartRef__":true,"id":2557},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2558},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2557":{"obj":{"__isSmartRef__":true,"id":2334},"name":"copy"},"2558":{},"2559":{"timestamp":{"__isSmartRef__":true,"id":2560},"user":"jenslincke","tags":[]},"2560":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2561":{"varMapping":{"__isSmartRef__":true,"id":2562},"source":"function disconnectAll() {\n this.disconnectMorph(this.toMorph)\n this.disconnectMorph(this.fromMorph)\n this.fromMorph = null\n this.toMorph = null\n}","funcProperties":{"__isSmartRef__":true,"id":2563},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2562":{"this":{"__isSmartRef__":true,"id":2334}},"2563":{"timestamp":{"__isSmartRef__":true,"id":2564},"user":"jenslincke","tags":[]},"2564":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2565":{"varMapping":{"__isSmartRef__":true,"id":2566},"source":"function resumeSteppingAll() {\n this.connectMorph(this.fromMorph)\n this.connectMorph(this.toMorph)\n return $super()\n}","funcProperties":{"__isSmartRef__":true,"id":2571},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2566":{"this":{"__isSmartRef__":true,"id":2334},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2567}},"2567":{"$super":{"__isSmartRef__":true,"id":2568}},"2568":{"varMapping":{"__isSmartRef__":true,"id":2569},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2570},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2569":{"obj":{"__isSmartRef__":true,"id":2334},"name":"resumeSteppingAll"},"2570":{},"2571":{"timestamp":{"__isSmartRef__":true,"id":2572},"user":"jenslincke","tags":[]},"2572":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2573":{"varMapping":{"__isSmartRef__":true,"id":2574},"source":"function delayedHideHandles() {\n if (! this.lastOverTime) return; // it was handled already\n var delta = Date.now() - this.lastOverTime;\n if (delta > 2000) {\n this.hideHandles()\n this.lastOverTime = null;\n } else {\n this.delayedHideHandles.bind(this).delay(0.1)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2575},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2574":{"this":{"__isSmartRef__":true,"id":2334}},"2575":{"timestamp":{"__isSmartRef__":true,"id":2576},"user":"jenslincke","tags":[]},"2576":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2577":{"varMapping":{"__isSmartRef__":true,"id":2578},"source":"function hideHandles() {\n this.hideFromHandle()\n this.hideToHandle()\n}","funcProperties":{"__isSmartRef__":true,"id":2579},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2578":{"this":{"__isSmartRef__":true,"id":2334}},"2579":{"timestamp":{"__isSmartRef__":true,"id":2580},"user":"jenslincke","tags":[]},"2580":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2581":{"varMapping":{"__isSmartRef__":true,"id":2582},"source":"function grabByHand(hand) {\n this.disconnectAll()\n hand.addMorphWithShadow(this)\n}","funcProperties":{"__isSmartRef__":true,"id":2583},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2582":{"this":{"__isSmartRef__":true,"id":2334}},"2583":{"timestamp":{"__isSmartRef__":true,"id":2584},"user":"jenslincke","tags":[]},"2584":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2585":{"varMapping":{"__isSmartRef__":true,"id":2586},"source":"function onMouseDownEntry(evt) {\n var r = $super(evt)\n\n // var localPos = this.localize(evt.getPosition())\n // var distance = this.distanceToPoint(localPos)\n // alertOK(\"onMouseDownEntry: \" + distance)\n // if (distance > 20) {\n // evt.world.clickedOnMorph = null;\n // evt.world.clickedOnMorphTime = null;\n // evt.hand.scrollFocusMorph = null;\n // evt.hand.internalClickedOnMorph = null\n // return false\n // }\n // show(this.worldPoint(localPos))\n\n return r\n}","funcProperties":{"__isSmartRef__":true,"id":2591},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2586":{"this":{"__isSmartRef__":true,"id":2334},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2587}},"2587":{"$super":{"__isSmartRef__":true,"id":2588}},"2588":{"varMapping":{"__isSmartRef__":true,"id":2589},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2590},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2589":{"obj":{"__isSmartRef__":true,"id":2334},"name":"onMouseDownEntry"},"2590":{},"2591":{"timestamp":{"__isSmartRef__":true,"id":2592},"user":"jenslincke","tags":[]},"2592":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2593":{"varMapping":{"__isSmartRef__":true,"id":2594},"source":"function distanceToPoint(point) {\n // this.distanceToPoint(this.vertices()[0])\n // this.distanceToPoint(this.vertices()[1])\n // this.distanceToPoint(pt(0,0))\n\n // TODO move this to Math\n function sqr(x) { return x * x }\n function dist2(v, w) { return sqr(v.x - w.x) + sqr(v.y - w.y) }\n function distToSegmentSquared(p, v, w) {\n var l2 = dist2(v, w);\n if (l2 == 0) return dist2(p, v);\n var t = ((p.x - v.x) * (w.x - v.x) + (p.y - v.y) * (w.y - v.y)) / l2;\n if (t < 0) return dist2(p, v);\n if (t > 1) return dist2(p, w);\n return dist2(p, { x: v.x + t * (w.x - v.x),\n y: v.y + t * (w.y - v.y) });\n }\n function distToSegment(p, v, w) { return Math.sqrt(distToSegmentSquared(p, v, w)); }\n\n var vertices = this.vertices()\n\n return distToSegment(point, vertices.first(), vertices.last())\n}","funcProperties":{"__isSmartRef__":true,"id":2595},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2594":{"this":{"__isSmartRef__":true,"id":2334}},"2595":{"timestamp":{"__isSmartRef__":true,"id":2596},"user":"jenslincke","tags":[]},"2596":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2597":{"varMapping":{"__isSmartRef__":true,"id":2598},"source":"function dropOn(aMorph) {\n var r = $super(aMorph)\n this.sendToBack()\n return r\n}","funcProperties":{"__isSmartRef__":true,"id":2603},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2598":{"this":{"__isSmartRef__":true,"id":2334},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2599}},"2599":{"$super":{"__isSmartRef__":true,"id":2600}},"2600":{"varMapping":{"__isSmartRef__":true,"id":2601},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2602},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2601":{"obj":{"__isSmartRef__":true,"id":2334},"name":"dropOn"},"2602":{},"2603":{"timestamp":{"__isSmartRef__":true,"id":2604},"user":"jenslincke","tags":[]},"2604":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2605":{"source":{"__isSmartRef__":true,"id":1163},"target":{"__isSmartRef__":true,"id":2334}},"2606":{"sourceObj":{"__isSmartRef__":true,"id":1163},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":2333},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2607},"dependedBy":{"__isSmartRef__":true,"id":2333},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2607":{"source":{"__isSmartRef__":true,"id":1163},"target":{"__isSmartRef__":true,"id":2333}},"2608":{"sourceObj":{"__isSmartRef__":true,"id":1163},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":2333},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2609},"dependedBy":{"__isSmartRef__":true,"id":2333},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2609":{"source":{"__isSmartRef__":true,"id":1163},"target":{"__isSmartRef__":true,"id":2333}},"2610":{"sourceObj":{"__isSmartRef__":true,"id":1163},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":2333},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2611},"dependedBy":{"__isSmartRef__":true,"id":2333},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2611":{"source":{"__isSmartRef__":true,"id":1163},"target":{"__isSmartRef__":true,"id":2333}},"2612":{"sourceObj":{"__isSmartRef__":true,"id":1163},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":2333},"targetMethodName":"updateOwners","varMapping":{"__isSmartRef__":true,"id":2613},"dependedBy":{"__isSmartRef__":true,"id":2333},"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2613":{"source":{"__isSmartRef__":true,"id":1163},"target":{"__isSmartRef__":true,"id":2333}},"2614":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":2333},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2615},"dependedBy":{"__isSmartRef__":true,"id":2333},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2615":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":2333}},"2616":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":2333},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2617},"dependedBy":{"__isSmartRef__":true,"id":2333},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2617":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":2333}},"2618":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":2333},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2619},"dependedBy":{"__isSmartRef__":true,"id":2333},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2619":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":2333}},"2620":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":2333},"targetMethodName":"updateOwners","varMapping":{"__isSmartRef__":true,"id":2621},"dependedBy":{"__isSmartRef__":true,"id":2333},"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2621":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":2333}},"2622":{"d":0.998003992015968,"a":0.998003992015968,"f":378.88023952095807,"e":333.1756487025948,"c":0,"b":0,"matrix_":{"__isSmartRef__":true,"id":2623},"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2623":{"a":0.998003992015968,"b":0,"c":0,"d":0.998003992015968,"e":333.1756487025948,"f":378.88023952095807,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2624":{"converter":{"__isSmartRef__":true,"id":2625}},"2625":{"varMapping":{"__isSmartRef__":true,"id":2605},"source":"function (value) { return this.sourceObj }","funcProperties":{"__isSmartRef__":true,"id":2626},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2626":{},"2627":{"sourceObj":{"__isSmartRef__":true,"id":1163},"sourceAttrName":"globalTransform","targetObj":{"__isSmartRef__":true,"id":1118},"targetMethodName":"updatePosition","varMapping":{"__isSmartRef__":true,"id":2628},"converterString":"function (value) { return this.sourceObj }","dependendConnections":[{"__isSmartRef__":true,"id":2629},{"__isSmartRef__":true,"id":2631},{"__isSmartRef__":true,"id":2633},{"__isSmartRef__":true,"id":2635},{"__isSmartRef__":true,"id":2637},{"__isSmartRef__":true,"id":2639},{"__isSmartRef__":true,"id":2641},{"__isSmartRef__":true,"id":2643}],"oldTransform":{"__isSmartRef__":true,"id":2645},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2647},"__LivelyClassName__":"lively.morphic.GeometryTransformConnection","__SourceModuleName__":"Global.lively.bindings.GeometryBindings"},"2628":{"source":{"__isSmartRef__":true,"id":1163},"target":{"__isSmartRef__":true,"id":1118}},"2629":{"sourceObj":{"__isSmartRef__":true,"id":1163},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":2627},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2630},"dependedBy":{"__isSmartRef__":true,"id":2627},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2630":{"source":{"__isSmartRef__":true,"id":1163},"target":{"__isSmartRef__":true,"id":2627}},"2631":{"sourceObj":{"__isSmartRef__":true,"id":1163},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":2627},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2632},"dependedBy":{"__isSmartRef__":true,"id":2627},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2632":{"source":{"__isSmartRef__":true,"id":1163},"target":{"__isSmartRef__":true,"id":2627}},"2633":{"sourceObj":{"__isSmartRef__":true,"id":1163},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":2627},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2634},"dependedBy":{"__isSmartRef__":true,"id":2627},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2634":{"source":{"__isSmartRef__":true,"id":1163},"target":{"__isSmartRef__":true,"id":2627}},"2635":{"sourceObj":{"__isSmartRef__":true,"id":1163},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":2627},"targetMethodName":"updateOwners","varMapping":{"__isSmartRef__":true,"id":2636},"dependedBy":{"__isSmartRef__":true,"id":2627},"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2636":{"source":{"__isSmartRef__":true,"id":1163},"target":{"__isSmartRef__":true,"id":2627}},"2637":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":2627},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2638},"dependedBy":{"__isSmartRef__":true,"id":2627},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2638":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":2627}},"2639":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":2627},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2640},"dependedBy":{"__isSmartRef__":true,"id":2627},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2640":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":2627}},"2641":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":2627},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2642},"dependedBy":{"__isSmartRef__":true,"id":2627},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2642":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":2627}},"2643":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":2627},"targetMethodName":"updateOwners","varMapping":{"__isSmartRef__":true,"id":2644},"dependedBy":{"__isSmartRef__":true,"id":2627},"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2644":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":2627}},"2645":{"d":0.998003992015968,"a":0.998003992015968,"f":378.88023952095807,"e":333.1756487025948,"c":0,"b":0,"matrix_":{"__isSmartRef__":true,"id":2646},"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2646":{"a":0.998003992015968,"b":0,"c":0,"d":0.998003992015968,"e":333.1756487025948,"f":378.88023952095807,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2647":{"converter":{"__isSmartRef__":true,"id":2648}},"2648":{"varMapping":{"__isSmartRef__":true,"id":2628},"source":"function (value) { return this.sourceObj }","funcProperties":{"__isSmartRef__":true,"id":2649},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2649":{},"2650":{"morph":{"__isSmartRef__":true,"id":1163},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2651":{"morph":{"__isSmartRef__":true,"id":1163},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(452.1,441.9)"},"2652":{"morph":{"__isSmartRef__":true,"id":1163},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(524.6,441.9)"},"2653":{"morph":{"__isSmartRef__":true,"id":1163},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(597.0,441.9)"},"2654":{"morph":{"__isSmartRef__":true,"id":1163},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(597.0,489.7)"},"2655":{"morph":{"__isSmartRef__":true,"id":1163},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(597.0,537.5)"},"2656":{"morph":{"__isSmartRef__":true,"id":1163},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(524.6,537.5)"},"2657":{"morph":{"__isSmartRef__":true,"id":1163},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(452.1,537.5)"},"2658":{"morph":{"__isSmartRef__":true,"id":1163},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(452.1,489.7)"},"2659":{"connect":{"__isSmartRef__":true,"id":2660},"updatePosition":{"__isSmartRef__":true,"id":2664},"updateControlPoint":{"__isSmartRef__":true,"id":2668},"disconnectMorph":{"__isSmartRef__":true,"id":2672},"connectMorph":{"__isSmartRef__":true,"id":2676},"onMouseOver":{"__isSmartRef__":true,"id":2680},"onMouseOut":{"__isSmartRef__":true,"id":2684},"makeHandle":{"__isSmartRef__":true,"id":2692},"showFromHandle":{"__isSmartRef__":true,"id":2696},"showToHandle":{"__isSmartRef__":true,"id":2700},"reset":{"__isSmartRef__":true,"id":2704},"onDragInHandle":{"__isSmartRef__":true,"id":2708},"onDragStartInHandle":{"__isSmartRef__":true,"id":2712},"onDragEndInHandle":{"__isSmartRef__":true,"id":2716},"connectFrom":{"__isSmartRef__":true,"id":2720},"connectTo":{"__isSmartRef__":true,"id":2724},"hideToHandle":{"__isSmartRef__":true,"id":2728},"hideFromHandle":{"__isSmartRef__":true,"id":2732},"updateIntersection":{"__isSmartRef__":true,"id":2736},"lineIntersect":{"__isSmartRef__":true,"id":2740},"intersectMorphLinePoints":{"__isSmartRef__":true,"id":2744},"intersectMorph":{"__isSmartRef__":true,"id":2748},"globalShapePathFromMorph":{"__isSmartRef__":true,"id":2752},"remove":{"__isSmartRef__":true,"id":2756},"migrateFrom":{"__isSmartRef__":true,"id":2764},"copy":{"__isSmartRef__":true,"id":2768},"disconnectAll":{"__isSmartRef__":true,"id":2776},"resumeSteppingAll":{"__isSmartRef__":true,"id":2780},"delayedHideHandles":{"__isSmartRef__":true,"id":2788},"hideHandles":{"__isSmartRef__":true,"id":2792},"grabByHand":{"__isSmartRef__":true,"id":2796},"onMouseDownEntry":{"__isSmartRef__":true,"id":2800},"distanceToPoint":{"__isSmartRef__":true,"id":2808},"dropOn":{"__isSmartRef__":true,"id":2812}},"2660":{"varMapping":{"__isSmartRef__":true,"id":2661},"source":"function connect(morphA, morphB) {\n this.connectFrom(morphA)\n this.connectTo(morphB)\n this.updatePosition()\n}","funcProperties":{"__isSmartRef__":true,"id":2662},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2661":{"this":{"__isSmartRef__":true,"id":1118}},"2662":{"timestamp":{"__isSmartRef__":true,"id":2663},"user":"jenslincke","tags":[]},"2663":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2664":{"varMapping":{"__isSmartRef__":true,"id":2665},"source":"function updatePosition(sourceMorph) {\n\n // some self healing code\n if (sourceMorph && sourceMorph !== this.toMorph && sourceMorph !== this.fromMorph) {\n this.disconnectMorph(sourceMorph)\n }\n try {\n this.updateControlPoint(this.controlPoints[0], this.fromMorph)\n this.updateControlPoint(this.controlPoints[1], this.toMorph)\n this.updateIntersection(this.fromMorph, this.controlPoints[0])\n this.updateIntersection(this.toMorph, this.controlPoints[1])\n } catch(e) {\n console.log(\"ERROR \" +this+\".updatePosition(\" + sourceMorph + \")\")\n }\n\n this.adjustOrigin(this.bounds().extent().scaleBy(0.5))\n}","funcProperties":{"__isSmartRef__":true,"id":2666},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2665":{"this":{"__isSmartRef__":true,"id":1118}},"2666":{"timestamp":{"__isSmartRef__":true,"id":2667},"user":"jenslincke","tags":[]},"2667":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2668":{"varMapping":{"__isSmartRef__":true,"id":2669},"source":"function updateControlPoint(cp, morph) {\n if (!cp || !morph) return;\n try {\n var pos = morph.worldPoint(morph.shape.bounds().center())\n } catch(e) {};\n if (pos)\n cp.setGlobalPos(pos)\n}","funcProperties":{"__isSmartRef__":true,"id":2670},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2669":{"this":{"__isSmartRef__":true,"id":1118}},"2670":{"timestamp":{"__isSmartRef__":true,"id":2671},"user":"jenslincke","tags":[]},"2671":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2672":{"varMapping":{"__isSmartRef__":true,"id":2673},"source":"function disconnectMorph(morph) {\n if (!morph) return;\n lively.bindings.disconnect(morph, 'globalTransform', this, 'updatePosition')\n}","funcProperties":{"__isSmartRef__":true,"id":2674},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2673":{"this":{"__isSmartRef__":true,"id":1118}},"2674":{"timestamp":{"__isSmartRef__":true,"id":2675},"user":"jenslincke","tags":[]},"2675":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2676":{"varMapping":{"__isSmartRef__":true,"id":2677},"source":"function connectMorph(morph) {\n if (morph)\n lively.bindings.connect(morph, 'globalTransform', this, 'updatePosition', {\n converter: function(value) { return this.sourceObj }\n })\n}","funcProperties":{"__isSmartRef__":true,"id":2678},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2677":{"this":{"__isSmartRef__":true,"id":1118}},"2678":{"timestamp":{"__isSmartRef__":true,"id":2679},"user":"jenslincke","tags":[]},"2679":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2680":{"varMapping":{"__isSmartRef__":true,"id":2681},"source":"function onMouseOver(evt) {\n this.lastOverTime = Date.now()\n var p = evt.getPosition()\n var cp1 = this.controlPoints[0].getGlobalPos();\n if (p.dist(cp1) < 20) {\n this.showFromHandle()\n } else {\n this.hideFromHandle()\n }\n var cp2 = this.controlPoints[1].getGlobalPos();\n if (p.dist(cp2) < 20) {\n this.showToHandle()\n } else {\n this.hideToHandle()\n }\n \n this.delayedHideHandles()\n}","funcProperties":{"__isSmartRef__":true,"id":2682},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2681":{"this":{"__isSmartRef__":true,"id":1118}},"2682":{"timestamp":{"__isSmartRef__":true,"id":2683},"user":"jenslincke","tags":[]},"2683":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2684":{"varMapping":{"__isSmartRef__":true,"id":2685},"source":"function onMouseOut(evt) {\n // this.hideFromHandle()\n // this.hideToHandle()\n}","funcProperties":{"__isSmartRef__":true,"id":2690},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2685":{"this":{"__isSmartRef__":true,"id":1118},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2686}},"2686":{"$super":{"__isSmartRef__":true,"id":2687}},"2687":{"varMapping":{"__isSmartRef__":true,"id":2688},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2689},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2688":{"obj":{"__isSmartRef__":true,"id":1118},"name":"onMouseOut"},"2689":{},"2690":{"timestamp":{"__isSmartRef__":true,"id":2691},"user":"jenslincke","tags":[]},"2691":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2692":{"varMapping":{"__isSmartRef__":true,"id":2693},"source":"function makeHandle() {\n var m = lively.morphic.Morph.makeRectangle(0,0,10,10);\n m.disableGrabbing()\n m.enableDragging()\n m.connector = this;\n // move real behavior to a place which is easier to develop\n // do not use bind, because we like late binding \n m.addScript(function onDragStart(evt) {\n this.connector.onDragStartInHandle(this, evt)\n })\n m.addScript(function onDrag(evt) {\n this.connector.onDragInHandle(this, evt)\n })\n m.addScript(function onDragEnd(evt) {\n this.connector.onDragEndInHandle(this, evt)\n })\n m.isEpiMorph = true;\n return m\n}","funcProperties":{"__isSmartRef__":true,"id":2694},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2693":{"this":{"__isSmartRef__":true,"id":1118}},"2694":{"timestamp":{"__isSmartRef__":true,"id":2695},"user":"jenslincke","tags":[]},"2695":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2696":{"varMapping":{"__isSmartRef__":true,"id":2697},"source":"function showFromHandle() {\n if (!this.fromHandle) {\n this.fromHandle = this.makeHandle();\n this.fromHandle.setFill(Color.red)\n this.fromHandle.isFromHandle = true;\n }\n this.fromHandle.openInWorld();\n this.fromHandle.controlPoint = this.controlPoints[0];\n this.fromHandle.setPosition(this.controlPoints[0].getGlobalPos().subPt(pt(5,5)))\n return this.fromHandle\n}","funcProperties":{"__isSmartRef__":true,"id":2698},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2697":{"this":{"__isSmartRef__":true,"id":1118}},"2698":{"timestamp":{"__isSmartRef__":true,"id":2699},"user":"jenslincke","tags":[]},"2699":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2700":{"varMapping":{"__isSmartRef__":true,"id":2701},"source":"function showToHandle() {\n if (!this.toHandle) {\n this.toHandle = this.makeHandle();\n this.toHandle.setFill(Color.red)\n this.toHandle.isToHandle = true;\n\n }\n this.toHandle.openInWorld();\n this.toHandle.controlPoint = this.controlPoints[1];\n this.toHandle.setPosition(this.controlPoints[1].getGlobalPos().subPt(pt(5,5)))\n return this.toHandle\n}","funcProperties":{"__isSmartRef__":true,"id":2702},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2701":{"this":{"__isSmartRef__":true,"id":1118}},"2702":{"timestamp":{"__isSmartRef__":true,"id":2703},"user":"jenslincke","tags":[]},"2703":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2704":{"varMapping":{"__isSmartRef__":true,"id":2705},"source":"function reset() {\n if (this.fromHandle) {\n this.fromHandle.remove()\n delete this.fromHandle\n }\n if (this.toHandle) {\n this.toHandle.remove()\n delete this.toHandle\n }\n \n this.droppingEnabled = false\n // this.controlPoints[1].setPos(pt(200,200))\n}","funcProperties":{"__isSmartRef__":true,"id":2706},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2705":{"this":{"__isSmartRef__":true,"id":1118}},"2706":{"timestamp":{"__isSmartRef__":true,"id":2707},"user":"jenslincke","tags":[]},"2707":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2708":{"varMapping":{"__isSmartRef__":true,"id":2709},"source":"function onDragInHandle(handle, evt) {\n this.lastOverTime = Date.now()\n var pos = handle.getPositionInWorld();\n var delta = evt.hand.getPosition().subPt(pos);\n handle.moveBy(delta)\n pos = handle.getPositionInWorld();\n if (handle.controlPoint)\n handle.controlPoint.setGlobalPos(pos.addPt(pt(5,5)))\n var morphs = this.owner.morphsContainingPoint(pos)\n morphs = morphs.reject(function(ea) {\n return ea.isWorld || (ea === handle) || (ea === this) || \n (ea === this.owner)\n }, this)\n if (this.selectedMorphHighlights) \n this.selectedMorphHighlights.invoke('remove')\n this.selectedMorph = morphs.first();\n this.selectedMorphHighlights = show(this.selectedMorph)\n handle.startPos = evt.getPosition();\n}","funcProperties":{"__isSmartRef__":true,"id":2710},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2709":{"this":{"__isSmartRef__":true,"id":1118}},"2710":{"timestamp":{"__isSmartRef__":true,"id":2711},"user":"jenslincke","tags":[]},"2711":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2712":{"varMapping":{"__isSmartRef__":true,"id":2713},"source":"function onDragStartInHandle(handle, evt) {\n handle.startPos = evt.getPosition()\n}","funcProperties":{"__isSmartRef__":true,"id":2714},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2713":{"this":{"__isSmartRef__":true,"id":1118}},"2714":{"timestamp":{"__isSmartRef__":true,"id":2715},"user":"jenslincke","tags":[]},"2715":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2716":{"varMapping":{"__isSmartRef__":true,"id":2717},"source":"function onDragEndInHandle(handle, evt) {\n if (this.selectedMorphHighlights) \n this.selectedMorphHighlights.invoke('remove')\n \n if (handle.isFromHandle) this.connectFrom(this.selectedMorph)\n if (handle.isToHandle) this.connectTo(this.selectedMorph)\n this.delayedHideHandles()\n this.updatePosition()\n}","funcProperties":{"__isSmartRef__":true,"id":2718},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2717":{"this":{"__isSmartRef__":true,"id":1118}},"2718":{"timestamp":{"__isSmartRef__":true,"id":2719},"user":"jenslincke","tags":[]},"2719":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2720":{"varMapping":{"__isSmartRef__":true,"id":2721},"source":"function connectFrom(morph) {\n if (morph && morph === this.toMorph) return; // not allowed\n\n this.disconnectMorph(this.fromMorph)\n this.fromMorph = morph;\n this.connectMorph(this.fromMorph)\n}","funcProperties":{"__isSmartRef__":true,"id":2722},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2721":{"this":{"__isSmartRef__":true,"id":1118}},"2722":{"timestamp":{"__isSmartRef__":true,"id":2723},"user":"jenslincke","tags":[]},"2723":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2724":{"varMapping":{"__isSmartRef__":true,"id":2725},"source":"function connectTo(morph) {\n\n if (morph && morph === this.fromMorph) return; // not allowed\n\n this.disconnectMorph(this.toMorph)\n this.toMorph = morph;\n this.connectMorph(this.toMorph)\n}","funcProperties":{"__isSmartRef__":true,"id":2726},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2725":{"this":{"__isSmartRef__":true,"id":1118}},"2726":{"timestamp":{"__isSmartRef__":true,"id":2727},"user":"jenslincke","tags":[]},"2727":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2728":{"varMapping":{"__isSmartRef__":true,"id":2729},"source":"function hideToHandle() {\n if (this.toHandle) this.toHandle.remove();\n}","funcProperties":{"__isSmartRef__":true,"id":2730},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2729":{"this":{"__isSmartRef__":true,"id":1118}},"2730":{"timestamp":{"__isSmartRef__":true,"id":2731},"user":"jenslincke","tags":[]},"2731":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2732":{"varMapping":{"__isSmartRef__":true,"id":2733},"source":"function hideFromHandle() {\n if (this.fromHandle) this.fromHandle.remove()\n}","funcProperties":{"__isSmartRef__":true,"id":2734},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2733":{"this":{"__isSmartRef__":true,"id":1118}},"2734":{"timestamp":{"__isSmartRef__":true,"id":2735},"user":"jenslincke","tags":[]},"2735":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2736":{"varMapping":{"__isSmartRef__":true,"id":2737},"source":"function updateIntersection(morph, cp) {\n if (!morph) return;\n var intersection = this.intersectMorph(morph)[0];\n if (intersection) {\n cp.setGlobalPos(intersection);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2738},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2737":{"this":{"__isSmartRef__":true,"id":1118}},"2738":{"timestamp":{"__isSmartRef__":true,"id":2739},"user":"jenslincke","tags":[]},"2739":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2740":{"varMapping":{"__isSmartRef__":true,"id":2741},"source":"function lineIntersect(a1, a2, b1, b2){\n // inspired by http://stackoverflow.com/questions/3746274/line-intersection-with-aabb-rectangle\n var b = a2.subPt(a1);\n var d = b2.subPt(b1);\n var bDotDPerp = b.x * d.y - b.y * d.x;\n\n // if b dot d == 0, it means the lines are parallel so have infinite intersection points\n if (bDotDPerp == 0)\n return null;\n\n var c = b1.subPt(a1);\n var t = (c.x * d.y - c.y * d.x) / bDotDPerp;\n if (t < 0 || t > 1)\n return null;\n\n var u = (c.x * b.y - c.y * b.x) / bDotDPerp;\n if (u < 0 || u > 1)\n return null;\n\n return a1.addPt(b.scaleBy(t));\n}","funcProperties":{"__isSmartRef__":true,"id":2742},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2741":{"this":{"__isSmartRef__":true,"id":1118}},"2742":{"timestamp":{"__isSmartRef__":true,"id":2743},"user":"jenslincke","tags":[]},"2743":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2744":{"varMapping":{"__isSmartRef__":true,"id":2745},"source":"function intersectMorphLinePoints(morph, a1, a2) {\n var points = this.globalShapePathFromMorph(morph);\n var intersections = [];\n points.inject(points.last(), function(last, ea) {\n var p = this.lineIntersect(a1, a2, last, ea)\n if (p) intersections.push(p)\n return ea\n }, this)\n return intersections\n}","funcProperties":{"__isSmartRef__":true,"id":2746},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2745":{"this":{"__isSmartRef__":true,"id":1118}},"2746":{"timestamp":{"__isSmartRef__":true,"id":2747},"user":"jenslincke","tags":[]},"2747":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2748":{"varMapping":{"__isSmartRef__":true,"id":2749},"source":"function intersectMorph(morph) {\n var line = this;\n return this.intersectMorphLinePoints(morph,\n line.controlPoints[0].getGlobalPos(), line.controlPoints[1].getGlobalPos())\n}","funcProperties":{"__isSmartRef__":true,"id":2750},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2749":{"this":{"__isSmartRef__":true,"id":1118}},"2750":{"timestamp":{"__isSmartRef__":true,"id":2751},"user":"jenslincke","tags":[]},"2751":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2752":{"varMapping":{"__isSmartRef__":true,"id":2753},"source":"function globalShapePathFromMorph(morph) {\n var b = morph.shape.bounds();\n var p1 = morph.worldPoint(b.topLeft()),\n p2 = morph.worldPoint(b.topRight()),\n p3 = morph.worldPoint(b.bottomRight()),\n p4 = morph.worldPoint(b.bottomLeft());\n return [p1, p2, p3, p4]\n}","funcProperties":{"__isSmartRef__":true,"id":2754},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2753":{"this":{"__isSmartRef__":true,"id":1118}},"2754":{"timestamp":{"__isSmartRef__":true,"id":2755},"user":"jenslincke","tags":[]},"2755":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2756":{"varMapping":{"__isSmartRef__":true,"id":2757},"source":"function remove() {\n \n this.disconnectMorph(this.fromMorph)\n this.disconnectMorph(this.toMorph)\n return $super()\n}","funcProperties":{"__isSmartRef__":true,"id":2762},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2757":{"this":{"__isSmartRef__":true,"id":1118},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2758}},"2758":{"$super":{"__isSmartRef__":true,"id":2759}},"2759":{"varMapping":{"__isSmartRef__":true,"id":2760},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2761},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2760":{"obj":{"__isSmartRef__":true,"id":1118},"name":"remove"},"2761":{},"2762":{"timestamp":{"__isSmartRef__":true,"id":2763},"user":"jenslincke","tags":[]},"2763":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2764":{"varMapping":{"__isSmartRef__":true,"id":2765},"source":"function migrateFrom(other) {\n\n this.disconnectMorph(this.fromMorph)\n this.disconnectMorph(this.toMorph)\n\n this.connectFrom(other.fromMorph)\n this.connectTo(other.toMorph)\n\n this.updatePosition()\n\n}","funcProperties":{"__isSmartRef__":true,"id":2766},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2765":{"this":{"__isSmartRef__":true,"id":1118}},"2766":{"timestamp":{"__isSmartRef__":true,"id":2767},"user":"jenslincke","tags":[]},"2767":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2768":{"varMapping":{"__isSmartRef__":true,"id":2769},"source":"function copy() {\n var r = $super()\n r.disconnectAll()\n return r\n}","funcProperties":{"__isSmartRef__":true,"id":2774},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2769":{"this":{"__isSmartRef__":true,"id":1118},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2770}},"2770":{"$super":{"__isSmartRef__":true,"id":2771}},"2771":{"varMapping":{"__isSmartRef__":true,"id":2772},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2773},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2772":{"obj":{"__isSmartRef__":true,"id":1118},"name":"copy"},"2773":{},"2774":{"timestamp":{"__isSmartRef__":true,"id":2775},"user":"jenslincke","tags":[]},"2775":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2776":{"varMapping":{"__isSmartRef__":true,"id":2777},"source":"function disconnectAll() {\n this.disconnectMorph(this.toMorph)\n this.disconnectMorph(this.fromMorph)\n this.fromMorph = null\n this.toMorph = null\n}","funcProperties":{"__isSmartRef__":true,"id":2778},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2777":{"this":{"__isSmartRef__":true,"id":1118}},"2778":{"timestamp":{"__isSmartRef__":true,"id":2779},"user":"jenslincke","tags":[]},"2779":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2780":{"varMapping":{"__isSmartRef__":true,"id":2781},"source":"function resumeSteppingAll() {\n this.connectMorph(this.fromMorph)\n this.connectMorph(this.toMorph)\n return $super()\n}","funcProperties":{"__isSmartRef__":true,"id":2786},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2781":{"this":{"__isSmartRef__":true,"id":1118},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2782}},"2782":{"$super":{"__isSmartRef__":true,"id":2783}},"2783":{"varMapping":{"__isSmartRef__":true,"id":2784},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2785},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2784":{"obj":{"__isSmartRef__":true,"id":1118},"name":"resumeSteppingAll"},"2785":{},"2786":{"timestamp":{"__isSmartRef__":true,"id":2787},"user":"jenslincke","tags":[]},"2787":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2788":{"varMapping":{"__isSmartRef__":true,"id":2789},"source":"function delayedHideHandles() {\n if (! this.lastOverTime) return; // it was handled already\n var delta = Date.now() - this.lastOverTime;\n if (delta > 2000) {\n this.hideHandles()\n this.lastOverTime = null;\n } else {\n this.delayedHideHandles.bind(this).delay(0.1)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2790},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2789":{"this":{"__isSmartRef__":true,"id":1118}},"2790":{"timestamp":{"__isSmartRef__":true,"id":2791},"user":"jenslincke","tags":[]},"2791":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2792":{"varMapping":{"__isSmartRef__":true,"id":2793},"source":"function hideHandles() {\n this.hideFromHandle()\n this.hideToHandle()\n}","funcProperties":{"__isSmartRef__":true,"id":2794},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2793":{"this":{"__isSmartRef__":true,"id":1118}},"2794":{"timestamp":{"__isSmartRef__":true,"id":2795},"user":"jenslincke","tags":[]},"2795":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2796":{"varMapping":{"__isSmartRef__":true,"id":2797},"source":"function grabByHand(hand) {\n this.disconnectAll()\n hand.addMorphWithShadow(this)\n}","funcProperties":{"__isSmartRef__":true,"id":2798},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2797":{"this":{"__isSmartRef__":true,"id":1118}},"2798":{"timestamp":{"__isSmartRef__":true,"id":2799},"user":"jenslincke","tags":[]},"2799":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2800":{"varMapping":{"__isSmartRef__":true,"id":2801},"source":"function onMouseDownEntry(evt) {\n var r = $super(evt)\n\n // var localPos = this.localize(evt.getPosition())\n // var distance = this.distanceToPoint(localPos)\n // alertOK(\"onMouseDownEntry: \" + distance)\n // if (distance > 20) {\n // evt.world.clickedOnMorph = null;\n // evt.world.clickedOnMorphTime = null;\n // evt.hand.scrollFocusMorph = null;\n // evt.hand.internalClickedOnMorph = null\n // return false\n // }\n // show(this.worldPoint(localPos))\n\n return r\n}","funcProperties":{"__isSmartRef__":true,"id":2806},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2801":{"this":{"__isSmartRef__":true,"id":1118},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2802}},"2802":{"$super":{"__isSmartRef__":true,"id":2803}},"2803":{"varMapping":{"__isSmartRef__":true,"id":2804},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2805},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2804":{"obj":{"__isSmartRef__":true,"id":1118},"name":"onMouseDownEntry"},"2805":{},"2806":{"timestamp":{"__isSmartRef__":true,"id":2807},"user":"jenslincke","tags":[]},"2807":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2808":{"varMapping":{"__isSmartRef__":true,"id":2809},"source":"function distanceToPoint(point) {\n // this.distanceToPoint(this.vertices()[0])\n // this.distanceToPoint(this.vertices()[1])\n // this.distanceToPoint(pt(0,0))\n\n // TODO move this to Math\n function sqr(x) { return x * x }\n function dist2(v, w) { return sqr(v.x - w.x) + sqr(v.y - w.y) }\n function distToSegmentSquared(p, v, w) {\n var l2 = dist2(v, w);\n if (l2 == 0) return dist2(p, v);\n var t = ((p.x - v.x) * (w.x - v.x) + (p.y - v.y) * (w.y - v.y)) / l2;\n if (t < 0) return dist2(p, v);\n if (t > 1) return dist2(p, w);\n return dist2(p, { x: v.x + t * (w.x - v.x),\n y: v.y + t * (w.y - v.y) });\n }\n function distToSegment(p, v, w) { return Math.sqrt(distToSegmentSquared(p, v, w)); }\n\n var vertices = this.vertices()\n\n return distToSegment(point, vertices.first(), vertices.last())\n}","funcProperties":{"__isSmartRef__":true,"id":2810},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2809":{"this":{"__isSmartRef__":true,"id":1118}},"2810":{"timestamp":{"__isSmartRef__":true,"id":2811},"user":"jenslincke","tags":[]},"2811":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2812":{"varMapping":{"__isSmartRef__":true,"id":2813},"source":"function dropOn(aMorph) {\n var r = $super(aMorph)\n this.sendToBack()\n return r\n}","funcProperties":{"__isSmartRef__":true,"id":2818},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2813":{"this":{"__isSmartRef__":true,"id":1118},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2814}},"2814":{"$super":{"__isSmartRef__":true,"id":2815}},"2815":{"varMapping":{"__isSmartRef__":true,"id":2816},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2817},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2816":{"obj":{"__isSmartRef__":true,"id":1118},"name":"dropOn"},"2817":{},"2818":{"timestamp":{"__isSmartRef__":true,"id":2819},"user":"jenslincke","tags":[]},"2819":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2820":{"source":{"__isSmartRef__":true,"id":1083},"target":{"__isSmartRef__":true,"id":1118}},"2821":{"sourceObj":{"__isSmartRef__":true,"id":1083},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":1117},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2822},"dependedBy":{"__isSmartRef__":true,"id":1117},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2822":{"source":{"__isSmartRef__":true,"id":1083},"target":{"__isSmartRef__":true,"id":1117}},"2823":{"sourceObj":{"__isSmartRef__":true,"id":1083},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":1117},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2824},"dependedBy":{"__isSmartRef__":true,"id":1117},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2824":{"source":{"__isSmartRef__":true,"id":1083},"target":{"__isSmartRef__":true,"id":1117}},"2825":{"sourceObj":{"__isSmartRef__":true,"id":1083},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":1117},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2826},"dependedBy":{"__isSmartRef__":true,"id":1117},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2826":{"source":{"__isSmartRef__":true,"id":1083},"target":{"__isSmartRef__":true,"id":1117}},"2827":{"sourceObj":{"__isSmartRef__":true,"id":1083},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":1117},"targetMethodName":"updateOwners","varMapping":{"__isSmartRef__":true,"id":2828},"dependedBy":{"__isSmartRef__":true,"id":1117},"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2828":{"source":{"__isSmartRef__":true,"id":1083},"target":{"__isSmartRef__":true,"id":1117}},"2829":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":1117},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2830},"dependedBy":{"__isSmartRef__":true,"id":1117},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2830":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":1117}},"2831":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":1117},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2832},"dependedBy":{"__isSmartRef__":true,"id":1117},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2832":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":1117}},"2833":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":1117},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2834},"dependedBy":{"__isSmartRef__":true,"id":1117},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2834":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":1117}},"2835":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":1117},"targetMethodName":"updateOwners","varMapping":{"__isSmartRef__":true,"id":2836},"dependedBy":{"__isSmartRef__":true,"id":1117},"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2836":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":1117}},"2837":{"d":0.998003992015968,"a":0.998003992015968,"f":366.60479041916165,"e":539.4630738522953,"c":0,"b":0,"matrix_":{"__isSmartRef__":true,"id":2838},"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2838":{"a":0.998003992015968,"b":0,"c":0,"d":0.998003992015968,"e":539.4630738522953,"f":366.60479041916165,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2839":{"converter":{"__isSmartRef__":true,"id":2840}},"2840":{"varMapping":{"__isSmartRef__":true,"id":2820},"source":"function (value) { return this.sourceObj }","funcProperties":{"__isSmartRef__":true,"id":2841},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2841":{},"2842":{"sourceObj":{"__isSmartRef__":true,"id":1083},"sourceAttrName":"globalTransform","targetObj":{"__isSmartRef__":true,"id":1698},"targetMethodName":"updatePosition","varMapping":{"__isSmartRef__":true,"id":2843},"converterString":"function (value) { return this.sourceObj }","dependendConnections":[{"__isSmartRef__":true,"id":2844},{"__isSmartRef__":true,"id":2846},{"__isSmartRef__":true,"id":2848},{"__isSmartRef__":true,"id":2850},{"__isSmartRef__":true,"id":2852},{"__isSmartRef__":true,"id":2854},{"__isSmartRef__":true,"id":2856},{"__isSmartRef__":true,"id":2858}],"oldTransform":{"__isSmartRef__":true,"id":2860},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2862},"__LivelyClassName__":"lively.morphic.GeometryTransformConnection","__SourceModuleName__":"Global.lively.bindings.GeometryBindings"},"2843":{"source":{"__isSmartRef__":true,"id":1083},"target":{"__isSmartRef__":true,"id":1698}},"2844":{"sourceObj":{"__isSmartRef__":true,"id":1083},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":2842},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2845},"dependedBy":{"__isSmartRef__":true,"id":2842},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2845":{"source":{"__isSmartRef__":true,"id":1083},"target":{"__isSmartRef__":true,"id":2842}},"2846":{"sourceObj":{"__isSmartRef__":true,"id":1083},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":2842},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2847},"dependedBy":{"__isSmartRef__":true,"id":2842},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2847":{"source":{"__isSmartRef__":true,"id":1083},"target":{"__isSmartRef__":true,"id":2842}},"2848":{"sourceObj":{"__isSmartRef__":true,"id":1083},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":2842},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2849},"dependedBy":{"__isSmartRef__":true,"id":2842},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2849":{"source":{"__isSmartRef__":true,"id":1083},"target":{"__isSmartRef__":true,"id":2842}},"2850":{"sourceObj":{"__isSmartRef__":true,"id":1083},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":2842},"targetMethodName":"updateOwners","varMapping":{"__isSmartRef__":true,"id":2851},"dependedBy":{"__isSmartRef__":true,"id":2842},"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2851":{"source":{"__isSmartRef__":true,"id":1083},"target":{"__isSmartRef__":true,"id":2842}},"2852":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":2842},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2853},"dependedBy":{"__isSmartRef__":true,"id":2842},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2853":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":2842}},"2854":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":2842},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2855},"dependedBy":{"__isSmartRef__":true,"id":2842},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2855":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":2842}},"2856":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":2842},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2857},"dependedBy":{"__isSmartRef__":true,"id":2842},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2857":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":2842}},"2858":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":2842},"targetMethodName":"updateOwners","varMapping":{"__isSmartRef__":true,"id":2859},"dependedBy":{"__isSmartRef__":true,"id":2842},"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2859":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":2842}},"2860":{"d":0.998003992015968,"a":0.998003992015968,"f":366.60479041916165,"e":539.4630738522953,"c":0,"b":0,"matrix_":{"__isSmartRef__":true,"id":2861},"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2861":{"a":0.998003992015968,"b":0,"c":0,"d":0.998003992015968,"e":539.4630738522953,"f":366.60479041916165,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2862":{"converter":{"__isSmartRef__":true,"id":2863}},"2863":{"varMapping":{"__isSmartRef__":true,"id":2843},"source":"function (value) { return this.sourceObj }","funcProperties":{"__isSmartRef__":true,"id":2864},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2864":{},"2865":{"sourceObj":{"__isSmartRef__":true,"id":1083},"sourceAttrName":"globalTransform","targetObj":{"__isSmartRef__":true,"id":1038},"targetMethodName":"updatePosition","varMapping":{"__isSmartRef__":true,"id":2866},"converterString":"function (value) { return this.sourceObj }","dependendConnections":[{"__isSmartRef__":true,"id":2867},{"__isSmartRef__":true,"id":2869},{"__isSmartRef__":true,"id":2871},{"__isSmartRef__":true,"id":2873},{"__isSmartRef__":true,"id":2875},{"__isSmartRef__":true,"id":2877},{"__isSmartRef__":true,"id":2879},{"__isSmartRef__":true,"id":2881}],"oldTransform":{"__isSmartRef__":true,"id":2883},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2885},"__LivelyClassName__":"lively.morphic.GeometryTransformConnection","__SourceModuleName__":"Global.lively.bindings.GeometryBindings"},"2866":{"source":{"__isSmartRef__":true,"id":1083},"target":{"__isSmartRef__":true,"id":1038}},"2867":{"sourceObj":{"__isSmartRef__":true,"id":1083},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":2865},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2868},"dependedBy":{"__isSmartRef__":true,"id":2865},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2868":{"source":{"__isSmartRef__":true,"id":1083},"target":{"__isSmartRef__":true,"id":2865}},"2869":{"sourceObj":{"__isSmartRef__":true,"id":1083},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":2865},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2870},"dependedBy":{"__isSmartRef__":true,"id":2865},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2870":{"source":{"__isSmartRef__":true,"id":1083},"target":{"__isSmartRef__":true,"id":2865}},"2871":{"sourceObj":{"__isSmartRef__":true,"id":1083},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":2865},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2872},"dependedBy":{"__isSmartRef__":true,"id":2865},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2872":{"source":{"__isSmartRef__":true,"id":1083},"target":{"__isSmartRef__":true,"id":2865}},"2873":{"sourceObj":{"__isSmartRef__":true,"id":1083},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":2865},"targetMethodName":"updateOwners","varMapping":{"__isSmartRef__":true,"id":2874},"dependedBy":{"__isSmartRef__":true,"id":2865},"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2874":{"source":{"__isSmartRef__":true,"id":1083},"target":{"__isSmartRef__":true,"id":2865}},"2875":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":2865},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2876},"dependedBy":{"__isSmartRef__":true,"id":2865},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2876":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":2865}},"2877":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":2865},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2878},"dependedBy":{"__isSmartRef__":true,"id":2865},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2878":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":2865}},"2879":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":2865},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":2880},"dependedBy":{"__isSmartRef__":true,"id":2865},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2880":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":2865}},"2881":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":2865},"targetMethodName":"updateOwners","varMapping":{"__isSmartRef__":true,"id":2882},"dependedBy":{"__isSmartRef__":true,"id":2865},"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2882":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":2865}},"2883":{"d":0.998003992015968,"a":0.998003992015968,"f":366.60479041916165,"e":539.4630738522953,"c":0,"b":0,"matrix_":{"__isSmartRef__":true,"id":2884},"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2884":{"a":0.998003992015968,"b":0,"c":0,"d":0.998003992015968,"e":539.4630738522953,"f":366.60479041916165,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2885":{"converter":{"__isSmartRef__":true,"id":2886}},"2886":{"varMapping":{"__isSmartRef__":true,"id":2866},"source":"function (value) { return this.sourceObj }","funcProperties":{"__isSmartRef__":true,"id":2887},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2887":{},"2888":{"morph":{"__isSmartRef__":true,"id":1083},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(522.0,644.0)"},"2889":{"morph":{"__isSmartRef__":true,"id":1083},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(636.8,644.0)"},"2890":{"morph":{"__isSmartRef__":true,"id":1083},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(751.6,644.0)"},"2891":{"morph":{"__isSmartRef__":true,"id":1083},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(751.6,737.3)"},"2892":{"morph":{"__isSmartRef__":true,"id":1083},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(751.6,830.5)"},"2893":{"morph":{"__isSmartRef__":true,"id":1083},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(636.8,830.5)"},"2894":{"morph":{"__isSmartRef__":true,"id":1083},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(522.0,830.5)"},"2895":{"morph":{"__isSmartRef__":true,"id":1083},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(522.0,737.3)"},"2896":{"updateDiff":{"__isSmartRef__":true,"id":2897}},"2897":{"varMapping":{"__isSmartRef__":true,"id":2898},"source":"function updateDiff() {\n\tif (!Global.diff_match_patch)\n\t\tmodule('lib.diff_match_patch.diff_match_patch_uncompressed').load(true);\n\n\tvar dmp = new diff_match_patch()\n\n\tvar diff = dmp.diff_main($morph('TextA').textString, $morph('TextB').textString)\n\n\tthis.setTextString(diff.toString()) \n}","funcProperties":{"__isSmartRef__":true,"id":2899},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2898":{"this":{"__isSmartRef__":true,"id":1083}},"2899":{},"2900":{"connect":{"__isSmartRef__":true,"id":2901},"updatePosition":{"__isSmartRef__":true,"id":2905},"updateControlPoint":{"__isSmartRef__":true,"id":2909},"disconnectMorph":{"__isSmartRef__":true,"id":2913},"connectMorph":{"__isSmartRef__":true,"id":2917},"onMouseOver":{"__isSmartRef__":true,"id":2921},"onMouseOut":{"__isSmartRef__":true,"id":2925},"makeHandle":{"__isSmartRef__":true,"id":2933},"showFromHandle":{"__isSmartRef__":true,"id":2937},"showToHandle":{"__isSmartRef__":true,"id":2941},"reset":{"__isSmartRef__":true,"id":2945},"onDragInHandle":{"__isSmartRef__":true,"id":2949},"onDragStartInHandle":{"__isSmartRef__":true,"id":2953},"onDragEndInHandle":{"__isSmartRef__":true,"id":2957},"connectFrom":{"__isSmartRef__":true,"id":2961},"connectTo":{"__isSmartRef__":true,"id":2965},"hideToHandle":{"__isSmartRef__":true,"id":2969},"hideFromHandle":{"__isSmartRef__":true,"id":2973},"updateIntersection":{"__isSmartRef__":true,"id":2977},"lineIntersect":{"__isSmartRef__":true,"id":2981},"intersectMorphLinePoints":{"__isSmartRef__":true,"id":2985},"intersectMorph":{"__isSmartRef__":true,"id":2989},"globalShapePathFromMorph":{"__isSmartRef__":true,"id":2993},"remove":{"__isSmartRef__":true,"id":2997},"migrateFrom":{"__isSmartRef__":true,"id":3005},"copy":{"__isSmartRef__":true,"id":3009},"disconnectAll":{"__isSmartRef__":true,"id":3017},"resumeSteppingAll":{"__isSmartRef__":true,"id":3021},"delayedHideHandles":{"__isSmartRef__":true,"id":3029},"hideHandles":{"__isSmartRef__":true,"id":3033},"grabByHand":{"__isSmartRef__":true,"id":3037},"onMouseDownEntry":{"__isSmartRef__":true,"id":3041},"distanceToPoint":{"__isSmartRef__":true,"id":3049},"dropOn":{"__isSmartRef__":true,"id":3053}},"2901":{"varMapping":{"__isSmartRef__":true,"id":2902},"source":"function connect(morphA, morphB) {\n this.connectFrom(morphA)\n this.connectTo(morphB)\n this.updatePosition()\n}","funcProperties":{"__isSmartRef__":true,"id":2903},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2902":{"this":{"__isSmartRef__":true,"id":1038}},"2903":{"timestamp":{"__isSmartRef__":true,"id":2904},"user":"jenslincke","tags":[]},"2904":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2905":{"varMapping":{"__isSmartRef__":true,"id":2906},"source":"function updatePosition(sourceMorph) {\n\n // some self healing code\n if (sourceMorph && sourceMorph !== this.toMorph && sourceMorph !== this.fromMorph) {\n this.disconnectMorph(sourceMorph)\n }\n try {\n this.updateControlPoint(this.controlPoints[0], this.fromMorph)\n this.updateControlPoint(this.controlPoints[1], this.toMorph)\n this.updateIntersection(this.fromMorph, this.controlPoints[0])\n this.updateIntersection(this.toMorph, this.controlPoints[1])\n } catch(e) {\n console.log(\"ERROR \" +this+\".updatePosition(\" + sourceMorph + \")\")\n }\n\n this.adjustOrigin(this.bounds().extent().scaleBy(0.5))\n}","funcProperties":{"__isSmartRef__":true,"id":2907},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2906":{"this":{"__isSmartRef__":true,"id":1038}},"2907":{"timestamp":{"__isSmartRef__":true,"id":2908},"user":"jenslincke","tags":[]},"2908":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2909":{"varMapping":{"__isSmartRef__":true,"id":2910},"source":"function updateControlPoint(cp, morph) {\n if (!cp || !morph) return;\n try {\n var pos = morph.worldPoint(morph.shape.bounds().center())\n } catch(e) {};\n if (pos)\n cp.setGlobalPos(pos)\n}","funcProperties":{"__isSmartRef__":true,"id":2911},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2910":{"this":{"__isSmartRef__":true,"id":1038}},"2911":{"timestamp":{"__isSmartRef__":true,"id":2912},"user":"jenslincke","tags":[]},"2912":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2913":{"varMapping":{"__isSmartRef__":true,"id":2914},"source":"function disconnectMorph(morph) {\n if (!morph) return;\n lively.bindings.disconnect(morph, 'globalTransform', this, 'updatePosition')\n}","funcProperties":{"__isSmartRef__":true,"id":2915},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2914":{"this":{"__isSmartRef__":true,"id":1038}},"2915":{"timestamp":{"__isSmartRef__":true,"id":2916},"user":"jenslincke","tags":[]},"2916":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2917":{"varMapping":{"__isSmartRef__":true,"id":2918},"source":"function connectMorph(morph) {\n if (morph)\n lively.bindings.connect(morph, 'globalTransform', this, 'updatePosition', {\n converter: function(value) { return this.sourceObj }\n })\n}","funcProperties":{"__isSmartRef__":true,"id":2919},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2918":{"this":{"__isSmartRef__":true,"id":1038}},"2919":{"timestamp":{"__isSmartRef__":true,"id":2920},"user":"jenslincke","tags":[]},"2920":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2921":{"varMapping":{"__isSmartRef__":true,"id":2922},"source":"function onMouseOver(evt) {\n this.lastOverTime = Date.now()\n var p = evt.getPosition()\n var cp1 = this.controlPoints[0].getGlobalPos();\n if (p.dist(cp1) < 20) {\n this.showFromHandle()\n } else {\n this.hideFromHandle()\n }\n var cp2 = this.controlPoints[1].getGlobalPos();\n if (p.dist(cp2) < 20) {\n this.showToHandle()\n } else {\n this.hideToHandle()\n }\n \n this.delayedHideHandles()\n}","funcProperties":{"__isSmartRef__":true,"id":2923},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2922":{"this":{"__isSmartRef__":true,"id":1038}},"2923":{"timestamp":{"__isSmartRef__":true,"id":2924},"user":"jenslincke","tags":[]},"2924":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2925":{"varMapping":{"__isSmartRef__":true,"id":2926},"source":"function onMouseOut(evt) {\n // this.hideFromHandle()\n // this.hideToHandle()\n}","funcProperties":{"__isSmartRef__":true,"id":2931},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2926":{"this":{"__isSmartRef__":true,"id":1038},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2927}},"2927":{"$super":{"__isSmartRef__":true,"id":2928}},"2928":{"varMapping":{"__isSmartRef__":true,"id":2929},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2930},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2929":{"obj":{"__isSmartRef__":true,"id":1038},"name":"onMouseOut"},"2930":{},"2931":{"timestamp":{"__isSmartRef__":true,"id":2932},"user":"jenslincke","tags":[]},"2932":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2933":{"varMapping":{"__isSmartRef__":true,"id":2934},"source":"function makeHandle() {\n var m = lively.morphic.Morph.makeRectangle(0,0,10,10);\n m.disableGrabbing()\n m.enableDragging()\n m.connector = this;\n // move real behavior to a place which is easier to develop\n // do not use bind, because we like late binding \n m.addScript(function onDragStart(evt) {\n this.connector.onDragStartInHandle(this, evt)\n })\n m.addScript(function onDrag(evt) {\n this.connector.onDragInHandle(this, evt)\n })\n m.addScript(function onDragEnd(evt) {\n this.connector.onDragEndInHandle(this, evt)\n })\n m.isEpiMorph = true;\n return m\n}","funcProperties":{"__isSmartRef__":true,"id":2935},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2934":{"this":{"__isSmartRef__":true,"id":1038}},"2935":{"timestamp":{"__isSmartRef__":true,"id":2936},"user":"jenslincke","tags":[]},"2936":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2937":{"varMapping":{"__isSmartRef__":true,"id":2938},"source":"function showFromHandle() {\n if (!this.fromHandle) {\n this.fromHandle = this.makeHandle();\n this.fromHandle.setFill(Color.red)\n this.fromHandle.isFromHandle = true;\n }\n this.fromHandle.openInWorld();\n this.fromHandle.controlPoint = this.controlPoints[0];\n this.fromHandle.setPosition(this.controlPoints[0].getGlobalPos().subPt(pt(5,5)))\n return this.fromHandle\n}","funcProperties":{"__isSmartRef__":true,"id":2939},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2938":{"this":{"__isSmartRef__":true,"id":1038}},"2939":{"timestamp":{"__isSmartRef__":true,"id":2940},"user":"jenslincke","tags":[]},"2940":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2941":{"varMapping":{"__isSmartRef__":true,"id":2942},"source":"function showToHandle() {\n if (!this.toHandle) {\n this.toHandle = this.makeHandle();\n this.toHandle.setFill(Color.red)\n this.toHandle.isToHandle = true;\n\n }\n this.toHandle.openInWorld();\n this.toHandle.controlPoint = this.controlPoints[1];\n this.toHandle.setPosition(this.controlPoints[1].getGlobalPos().subPt(pt(5,5)))\n return this.toHandle\n}","funcProperties":{"__isSmartRef__":true,"id":2943},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2942":{"this":{"__isSmartRef__":true,"id":1038}},"2943":{"timestamp":{"__isSmartRef__":true,"id":2944},"user":"jenslincke","tags":[]},"2944":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2945":{"varMapping":{"__isSmartRef__":true,"id":2946},"source":"function reset() {\n if (this.fromHandle) {\n this.fromHandle.remove()\n delete this.fromHandle\n }\n if (this.toHandle) {\n this.toHandle.remove()\n delete this.toHandle\n }\n \n this.droppingEnabled = false\n // this.controlPoints[1].setPos(pt(200,200))\n}","funcProperties":{"__isSmartRef__":true,"id":2947},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2946":{"this":{"__isSmartRef__":true,"id":1038}},"2947":{"timestamp":{"__isSmartRef__":true,"id":2948},"user":"jenslincke","tags":[]},"2948":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2949":{"varMapping":{"__isSmartRef__":true,"id":2950},"source":"function onDragInHandle(handle, evt) {\n this.lastOverTime = Date.now()\n var pos = handle.getPositionInWorld();\n var delta = evt.hand.getPosition().subPt(pos);\n handle.moveBy(delta)\n pos = handle.getPositionInWorld();\n if (handle.controlPoint)\n handle.controlPoint.setGlobalPos(pos.addPt(pt(5,5)))\n var morphs = this.owner.morphsContainingPoint(pos)\n morphs = morphs.reject(function(ea) {\n return ea.isWorld || (ea === handle) || (ea === this) || \n (ea === this.owner)\n }, this)\n if (this.selectedMorphHighlights) \n this.selectedMorphHighlights.invoke('remove')\n this.selectedMorph = morphs.first();\n this.selectedMorphHighlights = show(this.selectedMorph)\n handle.startPos = evt.getPosition();\n}","funcProperties":{"__isSmartRef__":true,"id":2951},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2950":{"this":{"__isSmartRef__":true,"id":1038}},"2951":{"timestamp":{"__isSmartRef__":true,"id":2952},"user":"jenslincke","tags":[]},"2952":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2953":{"varMapping":{"__isSmartRef__":true,"id":2954},"source":"function onDragStartInHandle(handle, evt) {\n handle.startPos = evt.getPosition()\n}","funcProperties":{"__isSmartRef__":true,"id":2955},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2954":{"this":{"__isSmartRef__":true,"id":1038}},"2955":{"timestamp":{"__isSmartRef__":true,"id":2956},"user":"jenslincke","tags":[]},"2956":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2957":{"varMapping":{"__isSmartRef__":true,"id":2958},"source":"function onDragEndInHandle(handle, evt) {\n if (this.selectedMorphHighlights) \n this.selectedMorphHighlights.invoke('remove')\n \n if (handle.isFromHandle) this.connectFrom(this.selectedMorph)\n if (handle.isToHandle) this.connectTo(this.selectedMorph)\n this.delayedHideHandles()\n this.updatePosition()\n}","funcProperties":{"__isSmartRef__":true,"id":2959},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2958":{"this":{"__isSmartRef__":true,"id":1038}},"2959":{"timestamp":{"__isSmartRef__":true,"id":2960},"user":"jenslincke","tags":[]},"2960":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2961":{"varMapping":{"__isSmartRef__":true,"id":2962},"source":"function connectFrom(morph) {\n if (morph && morph === this.toMorph) return; // not allowed\n\n this.disconnectMorph(this.fromMorph)\n this.fromMorph = morph;\n this.connectMorph(this.fromMorph)\n}","funcProperties":{"__isSmartRef__":true,"id":2963},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2962":{"this":{"__isSmartRef__":true,"id":1038}},"2963":{"timestamp":{"__isSmartRef__":true,"id":2964},"user":"jenslincke","tags":[]},"2964":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2965":{"varMapping":{"__isSmartRef__":true,"id":2966},"source":"function connectTo(morph) {\n\n if (morph && morph === this.fromMorph) return; // not allowed\n\n this.disconnectMorph(this.toMorph)\n this.toMorph = morph;\n this.connectMorph(this.toMorph)\n}","funcProperties":{"__isSmartRef__":true,"id":2967},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2966":{"this":{"__isSmartRef__":true,"id":1038}},"2967":{"timestamp":{"__isSmartRef__":true,"id":2968},"user":"jenslincke","tags":[]},"2968":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2969":{"varMapping":{"__isSmartRef__":true,"id":2970},"source":"function hideToHandle() {\n if (this.toHandle) this.toHandle.remove();\n}","funcProperties":{"__isSmartRef__":true,"id":2971},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2970":{"this":{"__isSmartRef__":true,"id":1038}},"2971":{"timestamp":{"__isSmartRef__":true,"id":2972},"user":"jenslincke","tags":[]},"2972":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2973":{"varMapping":{"__isSmartRef__":true,"id":2974},"source":"function hideFromHandle() {\n if (this.fromHandle) this.fromHandle.remove()\n}","funcProperties":{"__isSmartRef__":true,"id":2975},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2974":{"this":{"__isSmartRef__":true,"id":1038}},"2975":{"timestamp":{"__isSmartRef__":true,"id":2976},"user":"jenslincke","tags":[]},"2976":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2977":{"varMapping":{"__isSmartRef__":true,"id":2978},"source":"function updateIntersection(morph, cp) {\n if (!morph) return;\n var intersection = this.intersectMorph(morph)[0];\n if (intersection) {\n cp.setGlobalPos(intersection);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2979},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2978":{"this":{"__isSmartRef__":true,"id":1038}},"2979":{"timestamp":{"__isSmartRef__":true,"id":2980},"user":"jenslincke","tags":[]},"2980":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2981":{"varMapping":{"__isSmartRef__":true,"id":2982},"source":"function lineIntersect(a1, a2, b1, b2){\n // inspired by http://stackoverflow.com/questions/3746274/line-intersection-with-aabb-rectangle\n var b = a2.subPt(a1);\n var d = b2.subPt(b1);\n var bDotDPerp = b.x * d.y - b.y * d.x;\n\n // if b dot d == 0, it means the lines are parallel so have infinite intersection points\n if (bDotDPerp == 0)\n return null;\n\n var c = b1.subPt(a1);\n var t = (c.x * d.y - c.y * d.x) / bDotDPerp;\n if (t < 0 || t > 1)\n return null;\n\n var u = (c.x * b.y - c.y * b.x) / bDotDPerp;\n if (u < 0 || u > 1)\n return null;\n\n return a1.addPt(b.scaleBy(t));\n}","funcProperties":{"__isSmartRef__":true,"id":2983},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2982":{"this":{"__isSmartRef__":true,"id":1038}},"2983":{"timestamp":{"__isSmartRef__":true,"id":2984},"user":"jenslincke","tags":[]},"2984":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2985":{"varMapping":{"__isSmartRef__":true,"id":2986},"source":"function intersectMorphLinePoints(morph, a1, a2) {\n var points = this.globalShapePathFromMorph(morph);\n var intersections = [];\n points.inject(points.last(), function(last, ea) {\n var p = this.lineIntersect(a1, a2, last, ea)\n if (p) intersections.push(p)\n return ea\n }, this)\n return intersections\n}","funcProperties":{"__isSmartRef__":true,"id":2987},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2986":{"this":{"__isSmartRef__":true,"id":1038}},"2987":{"timestamp":{"__isSmartRef__":true,"id":2988},"user":"jenslincke","tags":[]},"2988":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2989":{"varMapping":{"__isSmartRef__":true,"id":2990},"source":"function intersectMorph(morph) {\n var line = this;\n return this.intersectMorphLinePoints(morph,\n line.controlPoints[0].getGlobalPos(), line.controlPoints[1].getGlobalPos())\n}","funcProperties":{"__isSmartRef__":true,"id":2991},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2990":{"this":{"__isSmartRef__":true,"id":1038}},"2991":{"timestamp":{"__isSmartRef__":true,"id":2992},"user":"jenslincke","tags":[]},"2992":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2993":{"varMapping":{"__isSmartRef__":true,"id":2994},"source":"function globalShapePathFromMorph(morph) {\n var b = morph.shape.bounds();\n var p1 = morph.worldPoint(b.topLeft()),\n p2 = morph.worldPoint(b.topRight()),\n p3 = morph.worldPoint(b.bottomRight()),\n p4 = morph.worldPoint(b.bottomLeft());\n return [p1, p2, p3, p4]\n}","funcProperties":{"__isSmartRef__":true,"id":2995},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2994":{"this":{"__isSmartRef__":true,"id":1038}},"2995":{"timestamp":{"__isSmartRef__":true,"id":2996},"user":"jenslincke","tags":[]},"2996":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"2997":{"varMapping":{"__isSmartRef__":true,"id":2998},"source":"function remove() {\n \n this.disconnectMorph(this.fromMorph)\n this.disconnectMorph(this.toMorph)\n return $super()\n}","funcProperties":{"__isSmartRef__":true,"id":3003},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2998":{"this":{"__isSmartRef__":true,"id":1038},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2999}},"2999":{"$super":{"__isSmartRef__":true,"id":3000}},"3000":{"varMapping":{"__isSmartRef__":true,"id":3001},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3002},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3001":{"obj":{"__isSmartRef__":true,"id":1038},"name":"remove"},"3002":{},"3003":{"timestamp":{"__isSmartRef__":true,"id":3004},"user":"jenslincke","tags":[]},"3004":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3005":{"varMapping":{"__isSmartRef__":true,"id":3006},"source":"function migrateFrom(other) {\n\n this.disconnectMorph(this.fromMorph)\n this.disconnectMorph(this.toMorph)\n\n this.connectFrom(other.fromMorph)\n this.connectTo(other.toMorph)\n\n this.updatePosition()\n\n}","funcProperties":{"__isSmartRef__":true,"id":3007},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3006":{"this":{"__isSmartRef__":true,"id":1038}},"3007":{"timestamp":{"__isSmartRef__":true,"id":3008},"user":"jenslincke","tags":[]},"3008":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3009":{"varMapping":{"__isSmartRef__":true,"id":3010},"source":"function copy() {\n var r = $super()\n r.disconnectAll()\n return r\n}","funcProperties":{"__isSmartRef__":true,"id":3015},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3010":{"this":{"__isSmartRef__":true,"id":1038},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3011}},"3011":{"$super":{"__isSmartRef__":true,"id":3012}},"3012":{"varMapping":{"__isSmartRef__":true,"id":3013},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3014},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3013":{"obj":{"__isSmartRef__":true,"id":1038},"name":"copy"},"3014":{},"3015":{"timestamp":{"__isSmartRef__":true,"id":3016},"user":"jenslincke","tags":[]},"3016":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3017":{"varMapping":{"__isSmartRef__":true,"id":3018},"source":"function disconnectAll() {\n this.disconnectMorph(this.toMorph)\n this.disconnectMorph(this.fromMorph)\n this.fromMorph = null\n this.toMorph = null\n}","funcProperties":{"__isSmartRef__":true,"id":3019},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3018":{"this":{"__isSmartRef__":true,"id":1038}},"3019":{"timestamp":{"__isSmartRef__":true,"id":3020},"user":"jenslincke","tags":[]},"3020":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3021":{"varMapping":{"__isSmartRef__":true,"id":3022},"source":"function resumeSteppingAll() {\n this.connectMorph(this.fromMorph)\n this.connectMorph(this.toMorph)\n return $super()\n}","funcProperties":{"__isSmartRef__":true,"id":3027},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3022":{"this":{"__isSmartRef__":true,"id":1038},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3023}},"3023":{"$super":{"__isSmartRef__":true,"id":3024}},"3024":{"varMapping":{"__isSmartRef__":true,"id":3025},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3026},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3025":{"obj":{"__isSmartRef__":true,"id":1038},"name":"resumeSteppingAll"},"3026":{},"3027":{"timestamp":{"__isSmartRef__":true,"id":3028},"user":"jenslincke","tags":[]},"3028":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3029":{"varMapping":{"__isSmartRef__":true,"id":3030},"source":"function delayedHideHandles() {\n if (! this.lastOverTime) return; // it was handled already\n var delta = Date.now() - this.lastOverTime;\n if (delta > 2000) {\n this.hideHandles()\n this.lastOverTime = null;\n } else {\n this.delayedHideHandles.bind(this).delay(0.1)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3031},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3030":{"this":{"__isSmartRef__":true,"id":1038}},"3031":{"timestamp":{"__isSmartRef__":true,"id":3032},"user":"jenslincke","tags":[]},"3032":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3033":{"varMapping":{"__isSmartRef__":true,"id":3034},"source":"function hideHandles() {\n this.hideFromHandle()\n this.hideToHandle()\n}","funcProperties":{"__isSmartRef__":true,"id":3035},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3034":{"this":{"__isSmartRef__":true,"id":1038}},"3035":{"timestamp":{"__isSmartRef__":true,"id":3036},"user":"jenslincke","tags":[]},"3036":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3037":{"varMapping":{"__isSmartRef__":true,"id":3038},"source":"function grabByHand(hand) {\n this.disconnectAll()\n hand.addMorphWithShadow(this)\n}","funcProperties":{"__isSmartRef__":true,"id":3039},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3038":{"this":{"__isSmartRef__":true,"id":1038}},"3039":{"timestamp":{"__isSmartRef__":true,"id":3040},"user":"jenslincke","tags":[]},"3040":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3041":{"varMapping":{"__isSmartRef__":true,"id":3042},"source":"function onMouseDownEntry(evt) {\n var r = $super(evt)\n\n // var localPos = this.localize(evt.getPosition())\n // var distance = this.distanceToPoint(localPos)\n // alertOK(\"onMouseDownEntry: \" + distance)\n // if (distance > 20) {\n // evt.world.clickedOnMorph = null;\n // evt.world.clickedOnMorphTime = null;\n // evt.hand.scrollFocusMorph = null;\n // evt.hand.internalClickedOnMorph = null\n // return false\n // }\n // show(this.worldPoint(localPos))\n\n return r\n}","funcProperties":{"__isSmartRef__":true,"id":3047},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3042":{"this":{"__isSmartRef__":true,"id":1038},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3043}},"3043":{"$super":{"__isSmartRef__":true,"id":3044}},"3044":{"varMapping":{"__isSmartRef__":true,"id":3045},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3046},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3045":{"obj":{"__isSmartRef__":true,"id":1038},"name":"onMouseDownEntry"},"3046":{},"3047":{"timestamp":{"__isSmartRef__":true,"id":3048},"user":"jenslincke","tags":[]},"3048":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3049":{"varMapping":{"__isSmartRef__":true,"id":3050},"source":"function distanceToPoint(point) {\n // this.distanceToPoint(this.vertices()[0])\n // this.distanceToPoint(this.vertices()[1])\n // this.distanceToPoint(pt(0,0))\n\n // TODO move this to Math\n function sqr(x) { return x * x }\n function dist2(v, w) { return sqr(v.x - w.x) + sqr(v.y - w.y) }\n function distToSegmentSquared(p, v, w) {\n var l2 = dist2(v, w);\n if (l2 == 0) return dist2(p, v);\n var t = ((p.x - v.x) * (w.x - v.x) + (p.y - v.y) * (w.y - v.y)) / l2;\n if (t < 0) return dist2(p, v);\n if (t > 1) return dist2(p, w);\n return dist2(p, { x: v.x + t * (w.x - v.x),\n y: v.y + t * (w.y - v.y) });\n }\n function distToSegment(p, v, w) { return Math.sqrt(distToSegmentSquared(p, v, w)); }\n\n var vertices = this.vertices()\n\n return distToSegment(point, vertices.first(), vertices.last())\n}","funcProperties":{"__isSmartRef__":true,"id":3051},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3050":{"this":{"__isSmartRef__":true,"id":1038}},"3051":{"timestamp":{"__isSmartRef__":true,"id":3052},"user":"jenslincke","tags":[]},"3052":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3053":{"varMapping":{"__isSmartRef__":true,"id":3054},"source":"function dropOn(aMorph) {\n var r = $super(aMorph)\n this.sendToBack()\n return r\n}","funcProperties":{"__isSmartRef__":true,"id":3059},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3054":{"this":{"__isSmartRef__":true,"id":1038},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3055}},"3055":{"$super":{"__isSmartRef__":true,"id":3056}},"3056":{"varMapping":{"__isSmartRef__":true,"id":3057},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3058},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3057":{"obj":{"__isSmartRef__":true,"id":1038},"name":"dropOn"},"3058":{},"3059":{"timestamp":{"__isSmartRef__":true,"id":3060},"user":"jenslincke","tags":[]},"3060":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3061":{"source":{"__isSmartRef__":true,"id":1006},"target":{"__isSmartRef__":true,"id":1038}},"3062":{"sourceObj":{"__isSmartRef__":true,"id":1006},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":1037},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":3063},"dependedBy":{"__isSmartRef__":true,"id":1037},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3063":{"source":{"__isSmartRef__":true,"id":1006},"target":{"__isSmartRef__":true,"id":1037}},"3064":{"sourceObj":{"__isSmartRef__":true,"id":1006},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":1037},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":3065},"dependedBy":{"__isSmartRef__":true,"id":1037},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3065":{"source":{"__isSmartRef__":true,"id":1006},"target":{"__isSmartRef__":true,"id":1037}},"3066":{"sourceObj":{"__isSmartRef__":true,"id":1006},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":1037},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":3067},"dependedBy":{"__isSmartRef__":true,"id":1037},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3067":{"source":{"__isSmartRef__":true,"id":1006},"target":{"__isSmartRef__":true,"id":1037}},"3068":{"sourceObj":{"__isSmartRef__":true,"id":1006},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":1037},"targetMethodName":"updateOwners","varMapping":{"__isSmartRef__":true,"id":3069},"dependedBy":{"__isSmartRef__":true,"id":1037},"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3069":{"source":{"__isSmartRef__":true,"id":1006},"target":{"__isSmartRef__":true,"id":1037}},"3070":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":1037},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":3071},"dependedBy":{"__isSmartRef__":true,"id":1037},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3071":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":1037}},"3072":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":1037},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":3073},"dependedBy":{"__isSmartRef__":true,"id":1037},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3073":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":1037}},"3074":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":1037},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":3075},"dependedBy":{"__isSmartRef__":true,"id":1037},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3075":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":1037}},"3076":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":1037},"targetMethodName":"updateOwners","varMapping":{"__isSmartRef__":true,"id":3077},"dependedBy":{"__isSmartRef__":true,"id":1037},"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3077":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":1037}},"3078":{"d":0.998003992015968,"a":0.998003992015968,"f":521.8942115768464,"e":746.0499001996008,"c":0,"b":0,"matrix_":{"__isSmartRef__":true,"id":3079},"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3079":{"a":0.998003992015968,"b":0,"c":0,"d":0.998003992015968,"e":746.0499001996008,"f":521.8942115768464,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3080":{"converter":{"__isSmartRef__":true,"id":3081}},"3081":{"varMapping":{"__isSmartRef__":true,"id":3061},"source":"function (value) { return this.sourceObj }","funcProperties":{"__isSmartRef__":true,"id":3082},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3082":{},"3083":{"sourceObj":{"__isSmartRef__":true,"id":1006},"sourceAttrName":"globalTransform","targetObj":{"__isSmartRef__":true,"id":961},"targetMethodName":"updatePosition","varMapping":{"__isSmartRef__":true,"id":3084},"converterString":"function (value) { return this.sourceObj }","dependendConnections":[{"__isSmartRef__":true,"id":3085},{"__isSmartRef__":true,"id":3087},{"__isSmartRef__":true,"id":3089},{"__isSmartRef__":true,"id":3091},{"__isSmartRef__":true,"id":3093},{"__isSmartRef__":true,"id":3095},{"__isSmartRef__":true,"id":3097},{"__isSmartRef__":true,"id":3099}],"oldTransform":{"__isSmartRef__":true,"id":3101},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3103},"__LivelyClassName__":"lively.morphic.GeometryTransformConnection","__SourceModuleName__":"Global.lively.bindings.GeometryBindings"},"3084":{"source":{"__isSmartRef__":true,"id":1006},"target":{"__isSmartRef__":true,"id":961}},"3085":{"sourceObj":{"__isSmartRef__":true,"id":1006},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":3083},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":3086},"dependedBy":{"__isSmartRef__":true,"id":3083},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3086":{"source":{"__isSmartRef__":true,"id":1006},"target":{"__isSmartRef__":true,"id":3083}},"3087":{"sourceObj":{"__isSmartRef__":true,"id":1006},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":3083},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":3088},"dependedBy":{"__isSmartRef__":true,"id":3083},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3088":{"source":{"__isSmartRef__":true,"id":1006},"target":{"__isSmartRef__":true,"id":3083}},"3089":{"sourceObj":{"__isSmartRef__":true,"id":1006},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":3083},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":3090},"dependedBy":{"__isSmartRef__":true,"id":3083},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3090":{"source":{"__isSmartRef__":true,"id":1006},"target":{"__isSmartRef__":true,"id":3083}},"3091":{"sourceObj":{"__isSmartRef__":true,"id":1006},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":3083},"targetMethodName":"updateOwners","varMapping":{"__isSmartRef__":true,"id":3092},"dependedBy":{"__isSmartRef__":true,"id":3083},"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3092":{"source":{"__isSmartRef__":true,"id":1006},"target":{"__isSmartRef__":true,"id":3083}},"3093":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":3083},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":3094},"dependedBy":{"__isSmartRef__":true,"id":3083},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3094":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":3083}},"3095":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":3083},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":3096},"dependedBy":{"__isSmartRef__":true,"id":3083},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3096":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":3083}},"3097":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":3083},"targetMethodName":"signalTarget","varMapping":{"__isSmartRef__":true,"id":3098},"dependedBy":{"__isSmartRef__":true,"id":3083},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3098":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":3083}},"3099":{"sourceObj":{"__isSmartRef__":true,"id":960},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":3083},"targetMethodName":"updateOwners","varMapping":{"__isSmartRef__":true,"id":3100},"dependedBy":{"__isSmartRef__":true,"id":3083},"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3100":{"source":{"__isSmartRef__":true,"id":960},"target":{"__isSmartRef__":true,"id":3083}},"3101":{"d":0.998003992015968,"a":0.998003992015968,"f":521.8942115768464,"e":746.0499001996008,"c":0,"b":0,"matrix_":{"__isSmartRef__":true,"id":3102},"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3102":{"a":0.998003992015968,"b":0,"c":0,"d":0.998003992015968,"e":746.0499001996008,"f":521.8942115768464,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3103":{"converter":{"__isSmartRef__":true,"id":3104}},"3104":{"varMapping":{"__isSmartRef__":true,"id":3084},"source":"function (value) { return this.sourceObj }","funcProperties":{"__isSmartRef__":true,"id":3105},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3105":{},"3106":{"morph":{"__isSmartRef__":true,"id":1006},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3107":{"morph":{"__isSmartRef__":true,"id":1006},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(782.1,693.8)"},"3108":{"morph":{"__isSmartRef__":true,"id":1006},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(858.6,693.8)"},"3109":{"morph":{"__isSmartRef__":true,"id":1006},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(935.2,693.8)"},"3110":{"morph":{"__isSmartRef__":true,"id":1006},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(935.2,739.1)"},"3111":{"morph":{"__isSmartRef__":true,"id":1006},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(935.2,784.5)"},"3112":{"morph":{"__isSmartRef__":true,"id":1006},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(858.6,784.5)"},"3113":{"morph":{"__isSmartRef__":true,"id":1006},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(782.1,784.5)"},"3114":{"morph":{"__isSmartRef__":true,"id":1006},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(782.1,739.1)"},"3115":{"connect":{"__isSmartRef__":true,"id":3116},"updatePosition":{"__isSmartRef__":true,"id":3120},"updateControlPoint":{"__isSmartRef__":true,"id":3124},"disconnectMorph":{"__isSmartRef__":true,"id":3128},"connectMorph":{"__isSmartRef__":true,"id":3132},"onMouseOver":{"__isSmartRef__":true,"id":3136},"onMouseOut":{"__isSmartRef__":true,"id":3140},"makeHandle":{"__isSmartRef__":true,"id":3148},"showFromHandle":{"__isSmartRef__":true,"id":3152},"showToHandle":{"__isSmartRef__":true,"id":3156},"reset":{"__isSmartRef__":true,"id":3160},"onDragInHandle":{"__isSmartRef__":true,"id":3164},"onDragStartInHandle":{"__isSmartRef__":true,"id":3168},"onDragEndInHandle":{"__isSmartRef__":true,"id":3172},"connectFrom":{"__isSmartRef__":true,"id":3176},"connectTo":{"__isSmartRef__":true,"id":3180},"hideToHandle":{"__isSmartRef__":true,"id":3184},"hideFromHandle":{"__isSmartRef__":true,"id":3188},"updateIntersection":{"__isSmartRef__":true,"id":3192},"lineIntersect":{"__isSmartRef__":true,"id":3196},"intersectMorphLinePoints":{"__isSmartRef__":true,"id":3200},"intersectMorph":{"__isSmartRef__":true,"id":3204},"globalShapePathFromMorph":{"__isSmartRef__":true,"id":3208},"remove":{"__isSmartRef__":true,"id":3212},"migrateFrom":{"__isSmartRef__":true,"id":3220},"copy":{"__isSmartRef__":true,"id":3224},"disconnectAll":{"__isSmartRef__":true,"id":3232},"resumeSteppingAll":{"__isSmartRef__":true,"id":3236},"delayedHideHandles":{"__isSmartRef__":true,"id":3244},"hideHandles":{"__isSmartRef__":true,"id":3248},"grabByHand":{"__isSmartRef__":true,"id":3252},"onMouseDownEntry":{"__isSmartRef__":true,"id":3256},"distanceToPoint":{"__isSmartRef__":true,"id":3264},"dropOn":{"__isSmartRef__":true,"id":3268}},"3116":{"varMapping":{"__isSmartRef__":true,"id":3117},"source":"function connect(morphA, morphB) {\n this.connectFrom(morphA)\n this.connectTo(morphB)\n this.updatePosition()\n}","funcProperties":{"__isSmartRef__":true,"id":3118},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3117":{"this":{"__isSmartRef__":true,"id":961}},"3118":{"timestamp":{"__isSmartRef__":true,"id":3119},"user":"jenslincke","tags":[]},"3119":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3120":{"varMapping":{"__isSmartRef__":true,"id":3121},"source":"function updatePosition(sourceMorph) {\n\n // some self healing code\n if (sourceMorph && sourceMorph !== this.toMorph && sourceMorph !== this.fromMorph) {\n this.disconnectMorph(sourceMorph)\n }\n try {\n this.updateControlPoint(this.controlPoints[0], this.fromMorph)\n this.updateControlPoint(this.controlPoints[1], this.toMorph)\n this.updateIntersection(this.fromMorph, this.controlPoints[0])\n this.updateIntersection(this.toMorph, this.controlPoints[1])\n } catch(e) {\n console.log(\"ERROR \" +this+\".updatePosition(\" + sourceMorph + \")\")\n }\n\n this.adjustOrigin(this.bounds().extent().scaleBy(0.5))\n}","funcProperties":{"__isSmartRef__":true,"id":3122},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3121":{"this":{"__isSmartRef__":true,"id":961}},"3122":{"timestamp":{"__isSmartRef__":true,"id":3123},"user":"jenslincke","tags":[]},"3123":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3124":{"varMapping":{"__isSmartRef__":true,"id":3125},"source":"function updateControlPoint(cp, morph) {\n if (!cp || !morph) return;\n try {\n var pos = morph.worldPoint(morph.shape.bounds().center())\n } catch(e) {};\n if (pos)\n cp.setGlobalPos(pos)\n}","funcProperties":{"__isSmartRef__":true,"id":3126},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3125":{"this":{"__isSmartRef__":true,"id":961}},"3126":{"timestamp":{"__isSmartRef__":true,"id":3127},"user":"jenslincke","tags":[]},"3127":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3128":{"varMapping":{"__isSmartRef__":true,"id":3129},"source":"function disconnectMorph(morph) {\n if (!morph) return;\n lively.bindings.disconnect(morph, 'globalTransform', this, 'updatePosition')\n}","funcProperties":{"__isSmartRef__":true,"id":3130},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3129":{"this":{"__isSmartRef__":true,"id":961}},"3130":{"timestamp":{"__isSmartRef__":true,"id":3131},"user":"jenslincke","tags":[]},"3131":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3132":{"varMapping":{"__isSmartRef__":true,"id":3133},"source":"function connectMorph(morph) {\n if (morph)\n lively.bindings.connect(morph, 'globalTransform', this, 'updatePosition', {\n converter: function(value) { return this.sourceObj }\n })\n}","funcProperties":{"__isSmartRef__":true,"id":3134},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3133":{"this":{"__isSmartRef__":true,"id":961}},"3134":{"timestamp":{"__isSmartRef__":true,"id":3135},"user":"jenslincke","tags":[]},"3135":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3136":{"varMapping":{"__isSmartRef__":true,"id":3137},"source":"function onMouseOver(evt) {\n this.lastOverTime = Date.now()\n var p = evt.getPosition()\n var cp1 = this.controlPoints[0].getGlobalPos();\n if (p.dist(cp1) < 20) {\n this.showFromHandle()\n } else {\n this.hideFromHandle()\n }\n var cp2 = this.controlPoints[1].getGlobalPos();\n if (p.dist(cp2) < 20) {\n this.showToHandle()\n } else {\n this.hideToHandle()\n }\n \n this.delayedHideHandles()\n}","funcProperties":{"__isSmartRef__":true,"id":3138},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3137":{"this":{"__isSmartRef__":true,"id":961}},"3138":{"timestamp":{"__isSmartRef__":true,"id":3139},"user":"jenslincke","tags":[]},"3139":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3140":{"varMapping":{"__isSmartRef__":true,"id":3141},"source":"function onMouseOut(evt) {\n // this.hideFromHandle()\n // this.hideToHandle()\n}","funcProperties":{"__isSmartRef__":true,"id":3146},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3141":{"this":{"__isSmartRef__":true,"id":961},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3142}},"3142":{"$super":{"__isSmartRef__":true,"id":3143}},"3143":{"varMapping":{"__isSmartRef__":true,"id":3144},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3145},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3144":{"obj":{"__isSmartRef__":true,"id":961},"name":"onMouseOut"},"3145":{},"3146":{"timestamp":{"__isSmartRef__":true,"id":3147},"user":"jenslincke","tags":[]},"3147":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3148":{"varMapping":{"__isSmartRef__":true,"id":3149},"source":"function makeHandle() {\n var m = lively.morphic.Morph.makeRectangle(0,0,10,10);\n m.disableGrabbing()\n m.enableDragging()\n m.connector = this;\n // move real behavior to a place which is easier to develop\n // do not use bind, because we like late binding \n m.addScript(function onDragStart(evt) {\n this.connector.onDragStartInHandle(this, evt)\n })\n m.addScript(function onDrag(evt) {\n this.connector.onDragInHandle(this, evt)\n })\n m.addScript(function onDragEnd(evt) {\n this.connector.onDragEndInHandle(this, evt)\n })\n m.isEpiMorph = true;\n return m\n}","funcProperties":{"__isSmartRef__":true,"id":3150},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3149":{"this":{"__isSmartRef__":true,"id":961}},"3150":{"timestamp":{"__isSmartRef__":true,"id":3151},"user":"jenslincke","tags":[]},"3151":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3152":{"varMapping":{"__isSmartRef__":true,"id":3153},"source":"function showFromHandle() {\n if (!this.fromHandle) {\n this.fromHandle = this.makeHandle();\n this.fromHandle.setFill(Color.red)\n this.fromHandle.isFromHandle = true;\n }\n this.fromHandle.openInWorld();\n this.fromHandle.controlPoint = this.controlPoints[0];\n this.fromHandle.setPosition(this.controlPoints[0].getGlobalPos().subPt(pt(5,5)))\n return this.fromHandle\n}","funcProperties":{"__isSmartRef__":true,"id":3154},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3153":{"this":{"__isSmartRef__":true,"id":961}},"3154":{"timestamp":{"__isSmartRef__":true,"id":3155},"user":"jenslincke","tags":[]},"3155":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3156":{"varMapping":{"__isSmartRef__":true,"id":3157},"source":"function showToHandle() {\n if (!this.toHandle) {\n this.toHandle = this.makeHandle();\n this.toHandle.setFill(Color.red)\n this.toHandle.isToHandle = true;\n\n }\n this.toHandle.openInWorld();\n this.toHandle.controlPoint = this.controlPoints[1];\n this.toHandle.setPosition(this.controlPoints[1].getGlobalPos().subPt(pt(5,5)))\n return this.toHandle\n}","funcProperties":{"__isSmartRef__":true,"id":3158},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3157":{"this":{"__isSmartRef__":true,"id":961}},"3158":{"timestamp":{"__isSmartRef__":true,"id":3159},"user":"jenslincke","tags":[]},"3159":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3160":{"varMapping":{"__isSmartRef__":true,"id":3161},"source":"function reset() {\n if (this.fromHandle) {\n this.fromHandle.remove()\n delete this.fromHandle\n }\n if (this.toHandle) {\n this.toHandle.remove()\n delete this.toHandle\n }\n \n this.droppingEnabled = false\n // this.controlPoints[1].setPos(pt(200,200))\n}","funcProperties":{"__isSmartRef__":true,"id":3162},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3161":{"this":{"__isSmartRef__":true,"id":961}},"3162":{"timestamp":{"__isSmartRef__":true,"id":3163},"user":"jenslincke","tags":[]},"3163":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3164":{"varMapping":{"__isSmartRef__":true,"id":3165},"source":"function onDragInHandle(handle, evt) {\n this.lastOverTime = Date.now()\n var pos = handle.getPositionInWorld();\n var delta = evt.hand.getPosition().subPt(pos);\n handle.moveBy(delta)\n pos = handle.getPositionInWorld();\n if (handle.controlPoint)\n handle.controlPoint.setGlobalPos(pos.addPt(pt(5,5)))\n var morphs = this.owner.morphsContainingPoint(pos)\n morphs = morphs.reject(function(ea) {\n return ea.isWorld || (ea === handle) || (ea === this) || \n (ea === this.owner)\n }, this)\n if (this.selectedMorphHighlights) \n this.selectedMorphHighlights.invoke('remove')\n this.selectedMorph = morphs.first();\n this.selectedMorphHighlights = show(this.selectedMorph)\n handle.startPos = evt.getPosition();\n}","funcProperties":{"__isSmartRef__":true,"id":3166},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3165":{"this":{"__isSmartRef__":true,"id":961}},"3166":{"timestamp":{"__isSmartRef__":true,"id":3167},"user":"jenslincke","tags":[]},"3167":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3168":{"varMapping":{"__isSmartRef__":true,"id":3169},"source":"function onDragStartInHandle(handle, evt) {\n handle.startPos = evt.getPosition()\n}","funcProperties":{"__isSmartRef__":true,"id":3170},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3169":{"this":{"__isSmartRef__":true,"id":961}},"3170":{"timestamp":{"__isSmartRef__":true,"id":3171},"user":"jenslincke","tags":[]},"3171":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3172":{"varMapping":{"__isSmartRef__":true,"id":3173},"source":"function onDragEndInHandle(handle, evt) {\n if (this.selectedMorphHighlights) \n this.selectedMorphHighlights.invoke('remove')\n \n if (handle.isFromHandle) this.connectFrom(this.selectedMorph)\n if (handle.isToHandle) this.connectTo(this.selectedMorph)\n this.delayedHideHandles()\n this.updatePosition()\n}","funcProperties":{"__isSmartRef__":true,"id":3174},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3173":{"this":{"__isSmartRef__":true,"id":961}},"3174":{"timestamp":{"__isSmartRef__":true,"id":3175},"user":"jenslincke","tags":[]},"3175":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3176":{"varMapping":{"__isSmartRef__":true,"id":3177},"source":"function connectFrom(morph) {\n if (morph && morph === this.toMorph) return; // not allowed\n\n this.disconnectMorph(this.fromMorph)\n this.fromMorph = morph;\n this.connectMorph(this.fromMorph)\n}","funcProperties":{"__isSmartRef__":true,"id":3178},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3177":{"this":{"__isSmartRef__":true,"id":961}},"3178":{"timestamp":{"__isSmartRef__":true,"id":3179},"user":"jenslincke","tags":[]},"3179":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3180":{"varMapping":{"__isSmartRef__":true,"id":3181},"source":"function connectTo(morph) {\n\n if (morph && morph === this.fromMorph) return; // not allowed\n\n this.disconnectMorph(this.toMorph)\n this.toMorph = morph;\n this.connectMorph(this.toMorph)\n}","funcProperties":{"__isSmartRef__":true,"id":3182},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3181":{"this":{"__isSmartRef__":true,"id":961}},"3182":{"timestamp":{"__isSmartRef__":true,"id":3183},"user":"jenslincke","tags":[]},"3183":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3184":{"varMapping":{"__isSmartRef__":true,"id":3185},"source":"function hideToHandle() {\n if (this.toHandle) this.toHandle.remove();\n}","funcProperties":{"__isSmartRef__":true,"id":3186},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3185":{"this":{"__isSmartRef__":true,"id":961}},"3186":{"timestamp":{"__isSmartRef__":true,"id":3187},"user":"jenslincke","tags":[]},"3187":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3188":{"varMapping":{"__isSmartRef__":true,"id":3189},"source":"function hideFromHandle() {\n if (this.fromHandle) this.fromHandle.remove()\n}","funcProperties":{"__isSmartRef__":true,"id":3190},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3189":{"this":{"__isSmartRef__":true,"id":961}},"3190":{"timestamp":{"__isSmartRef__":true,"id":3191},"user":"jenslincke","tags":[]},"3191":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3192":{"varMapping":{"__isSmartRef__":true,"id":3193},"source":"function updateIntersection(morph, cp) {\n if (!morph) return;\n var intersection = this.intersectMorph(morph)[0];\n if (intersection) {\n cp.setGlobalPos(intersection);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3194},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3193":{"this":{"__isSmartRef__":true,"id":961}},"3194":{"timestamp":{"__isSmartRef__":true,"id":3195},"user":"jenslincke","tags":[]},"3195":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3196":{"varMapping":{"__isSmartRef__":true,"id":3197},"source":"function lineIntersect(a1, a2, b1, b2){\n // inspired by http://stackoverflow.com/questions/3746274/line-intersection-with-aabb-rectangle\n var b = a2.subPt(a1);\n var d = b2.subPt(b1);\n var bDotDPerp = b.x * d.y - b.y * d.x;\n\n // if b dot d == 0, it means the lines are parallel so have infinite intersection points\n if (bDotDPerp == 0)\n return null;\n\n var c = b1.subPt(a1);\n var t = (c.x * d.y - c.y * d.x) / bDotDPerp;\n if (t < 0 || t > 1)\n return null;\n\n var u = (c.x * b.y - c.y * b.x) / bDotDPerp;\n if (u < 0 || u > 1)\n return null;\n\n return a1.addPt(b.scaleBy(t));\n}","funcProperties":{"__isSmartRef__":true,"id":3198},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3197":{"this":{"__isSmartRef__":true,"id":961}},"3198":{"timestamp":{"__isSmartRef__":true,"id":3199},"user":"jenslincke","tags":[]},"3199":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3200":{"varMapping":{"__isSmartRef__":true,"id":3201},"source":"function intersectMorphLinePoints(morph, a1, a2) {\n var points = this.globalShapePathFromMorph(morph);\n var intersections = [];\n points.inject(points.last(), function(last, ea) {\n var p = this.lineIntersect(a1, a2, last, ea)\n if (p) intersections.push(p)\n return ea\n }, this)\n return intersections\n}","funcProperties":{"__isSmartRef__":true,"id":3202},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3201":{"this":{"__isSmartRef__":true,"id":961}},"3202":{"timestamp":{"__isSmartRef__":true,"id":3203},"user":"jenslincke","tags":[]},"3203":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3204":{"varMapping":{"__isSmartRef__":true,"id":3205},"source":"function intersectMorph(morph) {\n var line = this;\n return this.intersectMorphLinePoints(morph,\n line.controlPoints[0].getGlobalPos(), line.controlPoints[1].getGlobalPos())\n}","funcProperties":{"__isSmartRef__":true,"id":3206},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3205":{"this":{"__isSmartRef__":true,"id":961}},"3206":{"timestamp":{"__isSmartRef__":true,"id":3207},"user":"jenslincke","tags":[]},"3207":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3208":{"varMapping":{"__isSmartRef__":true,"id":3209},"source":"function globalShapePathFromMorph(morph) {\n var b = morph.shape.bounds();\n var p1 = morph.worldPoint(b.topLeft()),\n p2 = morph.worldPoint(b.topRight()),\n p3 = morph.worldPoint(b.bottomRight()),\n p4 = morph.worldPoint(b.bottomLeft());\n return [p1, p2, p3, p4]\n}","funcProperties":{"__isSmartRef__":true,"id":3210},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3209":{"this":{"__isSmartRef__":true,"id":961}},"3210":{"timestamp":{"__isSmartRef__":true,"id":3211},"user":"jenslincke","tags":[]},"3211":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3212":{"varMapping":{"__isSmartRef__":true,"id":3213},"source":"function remove() {\n \n this.disconnectMorph(this.fromMorph)\n this.disconnectMorph(this.toMorph)\n return $super()\n}","funcProperties":{"__isSmartRef__":true,"id":3218},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3213":{"this":{"__isSmartRef__":true,"id":961},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3214}},"3214":{"$super":{"__isSmartRef__":true,"id":3215}},"3215":{"varMapping":{"__isSmartRef__":true,"id":3216},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3217},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3216":{"obj":{"__isSmartRef__":true,"id":961},"name":"remove"},"3217":{},"3218":{"timestamp":{"__isSmartRef__":true,"id":3219},"user":"jenslincke","tags":[]},"3219":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3220":{"varMapping":{"__isSmartRef__":true,"id":3221},"source":"function migrateFrom(other) {\n\n this.disconnectMorph(this.fromMorph)\n this.disconnectMorph(this.toMorph)\n\n this.connectFrom(other.fromMorph)\n this.connectTo(other.toMorph)\n\n this.updatePosition()\n\n}","funcProperties":{"__isSmartRef__":true,"id":3222},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3221":{"this":{"__isSmartRef__":true,"id":961}},"3222":{"timestamp":{"__isSmartRef__":true,"id":3223},"user":"jenslincke","tags":[]},"3223":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3224":{"varMapping":{"__isSmartRef__":true,"id":3225},"source":"function copy() {\n var r = $super()\n r.disconnectAll()\n return r\n}","funcProperties":{"__isSmartRef__":true,"id":3230},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3225":{"this":{"__isSmartRef__":true,"id":961},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3226}},"3226":{"$super":{"__isSmartRef__":true,"id":3227}},"3227":{"varMapping":{"__isSmartRef__":true,"id":3228},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3229},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3228":{"obj":{"__isSmartRef__":true,"id":961},"name":"copy"},"3229":{},"3230":{"timestamp":{"__isSmartRef__":true,"id":3231},"user":"jenslincke","tags":[]},"3231":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3232":{"varMapping":{"__isSmartRef__":true,"id":3233},"source":"function disconnectAll() {\n this.disconnectMorph(this.toMorph)\n this.disconnectMorph(this.fromMorph)\n this.fromMorph = null\n this.toMorph = null\n}","funcProperties":{"__isSmartRef__":true,"id":3234},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3233":{"this":{"__isSmartRef__":true,"id":961}},"3234":{"timestamp":{"__isSmartRef__":true,"id":3235},"user":"jenslincke","tags":[]},"3235":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3236":{"varMapping":{"__isSmartRef__":true,"id":3237},"source":"function resumeSteppingAll() {\n this.connectMorph(this.fromMorph)\n this.connectMorph(this.toMorph)\n return $super()\n}","funcProperties":{"__isSmartRef__":true,"id":3242},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3237":{"this":{"__isSmartRef__":true,"id":961},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3238}},"3238":{"$super":{"__isSmartRef__":true,"id":3239}},"3239":{"varMapping":{"__isSmartRef__":true,"id":3240},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3241},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3240":{"obj":{"__isSmartRef__":true,"id":961},"name":"resumeSteppingAll"},"3241":{},"3242":{"timestamp":{"__isSmartRef__":true,"id":3243},"user":"jenslincke","tags":[]},"3243":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3244":{"varMapping":{"__isSmartRef__":true,"id":3245},"source":"function delayedHideHandles() {\n if (! this.lastOverTime) return; // it was handled already\n var delta = Date.now() - this.lastOverTime;\n if (delta > 2000) {\n this.hideHandles()\n this.lastOverTime = null;\n } else {\n this.delayedHideHandles.bind(this).delay(0.1)\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3246},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3245":{"this":{"__isSmartRef__":true,"id":961}},"3246":{"timestamp":{"__isSmartRef__":true,"id":3247},"user":"jenslincke","tags":[]},"3247":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3248":{"varMapping":{"__isSmartRef__":true,"id":3249},"source":"function hideHandles() {\n this.hideFromHandle()\n this.hideToHandle()\n}","funcProperties":{"__isSmartRef__":true,"id":3250},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3249":{"this":{"__isSmartRef__":true,"id":961}},"3250":{"timestamp":{"__isSmartRef__":true,"id":3251},"user":"jenslincke","tags":[]},"3251":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3252":{"varMapping":{"__isSmartRef__":true,"id":3253},"source":"function grabByHand(hand) {\n this.disconnectAll()\n hand.addMorphWithShadow(this)\n}","funcProperties":{"__isSmartRef__":true,"id":3254},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3253":{"this":{"__isSmartRef__":true,"id":961}},"3254":{"timestamp":{"__isSmartRef__":true,"id":3255},"user":"jenslincke","tags":[]},"3255":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3256":{"varMapping":{"__isSmartRef__":true,"id":3257},"source":"function onMouseDownEntry(evt) {\n var r = $super(evt)\n\n // var localPos = this.localize(evt.getPosition())\n // var distance = this.distanceToPoint(localPos)\n // alertOK(\"onMouseDownEntry: \" + distance)\n // if (distance > 20) {\n // evt.world.clickedOnMorph = null;\n // evt.world.clickedOnMorphTime = null;\n // evt.hand.scrollFocusMorph = null;\n // evt.hand.internalClickedOnMorph = null\n // return false\n // }\n // show(this.worldPoint(localPos))\n\n return r\n}","funcProperties":{"__isSmartRef__":true,"id":3262},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3257":{"this":{"__isSmartRef__":true,"id":961},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3258}},"3258":{"$super":{"__isSmartRef__":true,"id":3259}},"3259":{"varMapping":{"__isSmartRef__":true,"id":3260},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3261},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3260":{"obj":{"__isSmartRef__":true,"id":961},"name":"onMouseDownEntry"},"3261":{},"3262":{"timestamp":{"__isSmartRef__":true,"id":3263},"user":"jenslincke","tags":[]},"3263":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3264":{"varMapping":{"__isSmartRef__":true,"id":3265},"source":"function distanceToPoint(point) {\n // this.distanceToPoint(this.vertices()[0])\n // this.distanceToPoint(this.vertices()[1])\n // this.distanceToPoint(pt(0,0))\n\n // TODO move this to Math\n function sqr(x) { return x * x }\n function dist2(v, w) { return sqr(v.x - w.x) + sqr(v.y - w.y) }\n function distToSegmentSquared(p, v, w) {\n var l2 = dist2(v, w);\n if (l2 == 0) return dist2(p, v);\n var t = ((p.x - v.x) * (w.x - v.x) + (p.y - v.y) * (w.y - v.y)) / l2;\n if (t < 0) return dist2(p, v);\n if (t > 1) return dist2(p, w);\n return dist2(p, { x: v.x + t * (w.x - v.x),\n y: v.y + t * (w.y - v.y) });\n }\n function distToSegment(p, v, w) { return Math.sqrt(distToSegmentSquared(p, v, w)); }\n\n var vertices = this.vertices()\n\n return distToSegment(point, vertices.first(), vertices.last())\n}","funcProperties":{"__isSmartRef__":true,"id":3266},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3265":{"this":{"__isSmartRef__":true,"id":961}},"3266":{"timestamp":{"__isSmartRef__":true,"id":3267},"user":"jenslincke","tags":[]},"3267":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3268":{"varMapping":{"__isSmartRef__":true,"id":3269},"source":"function dropOn(aMorph) {\n var r = $super(aMorph)\n this.sendToBack()\n return r\n}","funcProperties":{"__isSmartRef__":true,"id":3274},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3269":{"this":{"__isSmartRef__":true,"id":961},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3270}},"3270":{"$super":{"__isSmartRef__":true,"id":3271}},"3271":{"varMapping":{"__isSmartRef__":true,"id":3272},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world)\n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3273},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3272":{"obj":{"__isSmartRef__":true,"id":961},"name":"dropOn"},"3273":{},"3274":{"timestamp":{"__isSmartRef__":true,"id":3275},"user":"jenslincke","tags":[]},"3275":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3276":{"submorphs":[{"__isSmartRef__":true,"id":3277}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3290},"eventHandler":{"__isSmartRef__":true,"id":3291},"_ClipMode":"visible","derivationIds":["EC7EBB28-54AE-4244-80ED-3E13650F82B7","9FD2DCE2-B997-4536-B2A5-90D7DD92B3E6","0D8CC908-BD1C-4062-BB03-3FCEB910483D","E6D7E4AB-7952-42CB-A334-20C27ECC125C","AD577E88-C2EB-4A80-AFE9-DB1AA0A2E50A","DEBE0CAA-B68A-42C8-9133-29270CB0CB9E"],"id":"D911698D-9D2E-4362-A76A-0B3CC196C2C1","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":3277},"_PreviousBorderWidth":1,"isPressed":false,"showsHalos":false,"attributeConnections":[{"__isSmartRef__":true,"id":3292}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"name":"Button2","partsBinMetaInfo":{"__isSmartRef__":true,"id":3294},"pinSpecs":[{"__isSmartRef__":true,"id":3310}],"owner":{"__isSmartRef__":true,"id":960},"isLockOwner":false,"_Rotation":0,"_Scale":1.002,"magnets":[{"__isSmartRef__":true,"id":3311},{"__isSmartRef__":true,"id":3312},{"__isSmartRef__":true,"id":3313},{"__isSmartRef__":true,"id":3314},{"__isSmartRef__":true,"id":3315},{"__isSmartRef__":true,"id":3316},{"__isSmartRef__":true,"id":3317},{"__isSmartRef__":true,"id":3318}],"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3319},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(20.0,43.6)","distanceToDragEvent":"lively.pt(49.0,-10.5)"},"3277":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3278},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":3279}],"eventHandler":{"__isSmartRef__":true,"id":3281},"_ClipMode":"hidden","derivationIds":["7884E73F-0D17-44B3-907F-44A5223F1F3D","444B63A6-D9E7-4AB2-AB57-4A9146C18BFF","08999E10-CCC3-4CAB-99BC-4EF500309EC4","DFE8B675-C1B9-4976-B7F3-680D5922EFE8","6FB747ED-CEF0-4AD4-993E-4F9803CC1590","7D896FF5-A2EE-4850-97B4-3BF599E15293"],"id":"C0921CAD-2CA5-45B1-812C-F173623EE8C6","grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WordBreak":"break-all","fixedHeight":true,"_InputAllowed":false,"_HandStyle":"default","allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":3276},"isLabel":true,"_Align":"center","eventsAreIgnored":true,"_TextStylingMode":true,"showsHalos":false,"eventsAreDisabled":true,"_PointerEvents":"none","isLockOwner":false,"magnets":[{"__isSmartRef__":true,"id":3282},{"__isSmartRef__":true,"id":3283},{"__isSmartRef__":true,"id":3284},{"__isSmartRef__":true,"id":3285},{"__isSmartRef__":true,"id":3286},{"__isSmartRef__":true,"id":3287},{"__isSmartRef__":true,"id":3288},{"__isSmartRef__":true,"id":3289}],"__serializedExpressions__":["_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(0,0,0)"},"3278":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(72.1,24.0)","_Padding":"lively.rect(0,3,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"3279":{"style":{"__isSmartRef__":true,"id":3280},"chunkOwner":{"__isSmartRef__":true,"id":3277},"_id":"_11670","storedString":"Diff","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3280":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3281":{"morph":{"__isSmartRef__":true,"id":3277},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3282":{"morph":{"__isSmartRef__":true,"id":3277},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(54.0,429.5)"},"3283":{"morph":{"__isSmartRef__":true,"id":3277},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(89.9,429.5)"},"3284":{"morph":{"__isSmartRef__":true,"id":3277},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(125.9,429.5)"},"3285":{"morph":{"__isSmartRef__":true,"id":3277},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(125.9,441.5)"},"3286":{"morph":{"__isSmartRef__":true,"id":3277},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(125.9,453.4)"},"3287":{"morph":{"__isSmartRef__":true,"id":3277},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(89.9,453.4)"},"3288":{"morph":{"__isSmartRef__":true,"id":3277},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(54.0,453.4)"},"3289":{"morph":{"__isSmartRef__":true,"id":3277},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(54.0,441.5)"},"3290":{"_BorderWidth":1,"_BorderRadius":5,"_AppearanceStylingMode":true,"_BorderStylingMode":true,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(72.1,24.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"3291":{"morph":{"__isSmartRef__":true,"id":3276},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3292":{"sourceObj":{"__isSmartRef__":true,"id":3276},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":3276},"targetMethodName":"doAction","varMapping":{"__isSmartRef__":true,"id":3293},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3293":{"source":{"__isSmartRef__":true,"id":3276},"target":{"__isSmartRef__":true,"id":3276}},"3294":{"partName":"Button","requiredModules":[],"partsSpaceName":"PartsBin/Inputs","comment":"A simple button that calls a method #doAction when pressed.","changes":[{"__isSmartRef__":true,"id":3295},{"__isSmartRef__":true,"id":3297},{"__isSmartRef__":true,"id":3299},{"__isSmartRef__":true,"id":3301},{"__isSmartRef__":true,"id":3303},{"__isSmartRef__":true,"id":3305},{"__isSmartRef__":true,"id":3307}],"migrationLevel":7,"lastModifiedDate":{"__isSmartRef__":true,"id":3309},"revisionOnLoad":203770,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"3295":{"author":null,"message":"no comment","id":"F8B70225-5143-4A51-ABB4-344B488B3811","date":{"__isSmartRef__":true,"id":3296}},"3296":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3297":{"author":"robertkrahn","message":"no comment","id":"9B8B6BE4-4519-4A6C-8F47-70DE61BBB0FB","date":{"__isSmartRef__":true,"id":3298}},"3298":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3299":{"author":"robertkrahn","message":"test","id":"ACA617B4-0416-4E3C-9F4D-171A40F44F0F","date":{"__isSmartRef__":true,"id":3300}},"3300":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3301":{"author":"robertkrahn","message":"no comment","id":"811BDE87-D8DD-48BB-97B2-7A3C3F3FAE32","date":{"__isSmartRef__":true,"id":3302}},"3302":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3303":{"author":"robertkrahn","message":"no comment","id":"BB2EA501-D9AF-414B-A035-E1487DA6F0FD","date":{"__isSmartRef__":true,"id":3304}},"3304":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3305":{"author":"Dan","message":"no comment","id":"A594459F-DA9B-49DD-A105-547B3F613CC5","date":{"__isSmartRef__":true,"id":3306}},"3306":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3307":{"author":"Dan","message":"no comment","id":"CFEC4071-14FF-4AEB-A399-197884CD18BF","date":{"__isSmartRef__":true,"id":3308}},"3308":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3309":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3310":{"pinName":"fire","modality":"output","type":"Boolean","accessor":"fire","location":1.5},"3311":{"morph":{"__isSmartRef__":true,"id":3276},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(54.0,429.5)"},"3312":{"morph":{"__isSmartRef__":true,"id":3276},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(89.9,429.5)"},"3313":{"morph":{"__isSmartRef__":true,"id":3276},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(125.9,429.5)"},"3314":{"morph":{"__isSmartRef__":true,"id":3276},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(125.9,441.5)"},"3315":{"morph":{"__isSmartRef__":true,"id":3276},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(125.9,453.4)"},"3316":{"morph":{"__isSmartRef__":true,"id":3276},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(89.9,453.4)"},"3317":{"morph":{"__isSmartRef__":true,"id":3276},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(54.0,453.4)"},"3318":{"morph":{"__isSmartRef__":true,"id":3276},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(54.0,441.5)"},"3319":{"doAction":{"__isSmartRef__":true,"id":3320}},"3320":{"varMapping":{"__isSmartRef__":true,"id":3321},"source":"function doAction() {\n \n}","funcProperties":{"__isSmartRef__":true,"id":3322},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3321":{"this":{"__isSmartRef__":true,"id":3276}},"3322":{"user":"undefined","tags":[],"timestamp":{"__isSmartRef__":true,"id":3323}},"3323":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3324":{"submorphs":[],"scripts":[],"id":"A6D6CD7D-ED49-4D33-8619-359D1DF9F776","shape":{"__isSmartRef__":true,"id":3325},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":662.1211211211211,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":21,"name":"Title1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3326},"textChunks":[{"__isSmartRef__":true,"id":3340}],"charsReplaced":"WriteFirst 2014-02-04","lastFindLoc":31,"prevScroll":[0,0],"_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":662.1211211211211,"_MinTextHeight":null,"eventHandler":{"__isSmartRef__":true,"id":3342},"derivationIds":[683,"A4411967-AB25-4490-AFD9-2DAFB70B9150","CEAE6AE7-F628-4386-9BFE-8CFB3EB44BD6","55E11DCE-6BFE-482B-9EDE-8B30A321140F","70E3A5BE-5E68-4567-BD26-7C5F59033801","21D683D9-9EE4-4739-A967-10EF30DCB3E9","F753EB8B-0EA4-4A7B-8227-4ACB6F2E32CB","9A7764E9-0E13-4F15-B4E4-0ED81E452D1B"],"owner":{"__isSmartRef__":true,"id":960},"isBeingDragged":false,"isLockOwner":false,"_Rotation":0,"_Scale":1,"magnets":[{"__isSmartRef__":true,"id":3343},{"__isSmartRef__":true,"id":3344},{"__isSmartRef__":true,"id":3345},{"__isSmartRef__":true,"id":3346},{"__isSmartRef__":true,"id":3347},{"__isSmartRef__":true,"id":3348},{"__isSmartRef__":true,"id":3349},{"__isSmartRef__":true,"id":3350}],"previousSelection":[0,31],"__serializedExpressions__":["_Position","textColor","_TextColor","distanceToDragEvent"],"priorSelectionRange":[0,31],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3351},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(19.0,3.0)","textColor":"Color.rgb(0,0,0)","_TextColor":"Color.rgb(0,79,152)","distanceToDragEvent":"lively.pt(454.0,-12.0)"},"3325":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(662.1,32.0)","_BorderColor":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"3326":{"partsSpaceName":"PartsBin/Text/","partName":"Title","comment":"A title morph template","changes":[{"__isSmartRef__":true,"id":3327},{"__isSmartRef__":true,"id":3329},{"__isSmartRef__":true,"id":3331},{"__isSmartRef__":true,"id":3333},{"__isSmartRef__":true,"id":3335},{"__isSmartRef__":true,"id":3337}],"migrationLevel":4,"lastModifiedDate":{"__isSmartRef__":true,"id":3339},"revisionOnLoad":205225,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"3327":{"date":{"__isSmartRef__":true,"id":3328},"author":"jenslincke","message":"initial","id":"2DA7C793-6A93-4D2F-A854-29DFAAE1BCE8"},"3328":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3329":{"date":{"__isSmartRef__":true,"id":3330},"author":"jenslincke","message":"","id":"1390D6B7-2215-4E06-8C86-7500ED7702F2"},"3330":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3331":{"date":{"__isSmartRef__":true,"id":3332},"author":"jenslincke","message":"no comment","id":"897F201A-38B4-4DAE-952F-E3AD752E250E"},"3332":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3333":{"date":{"__isSmartRef__":true,"id":3334},"author":"jenslincke","message":"no comment","id":"5C54A5FD-C177-4869-98A9-435B5D1C2326"},"3334":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3335":{"date":{"__isSmartRef__":true,"id":3336},"author":"jenslincke","message":"no comment","id":"6F58C3C8-FE58-4B8B-94B9-EF0217C4909D"},"3336":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3337":{"date":{"__isSmartRef__":true,"id":3338},"author":"jenslincke","message":"no comment","id":"27DF0475-97E0-419B-B169-C64A1C5F9482"},"3338":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3339":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3340":{"style":{"__isSmartRef__":true,"id":3341},"chunkOwner":{"__isSmartRef__":true,"id":3324},"_id":"_134942","storedString":"google-diff-match-patch Example","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3341":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3342":{"morph":{"__isSmartRef__":true,"id":3324},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3343":{"morph":{"__isSmartRef__":true,"id":3324},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(53.0,389.0)"},"3344":{"morph":{"__isSmartRef__":true,"id":3324},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(383.4,389.0)"},"3345":{"morph":{"__isSmartRef__":true,"id":3324},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(713.7,389.0)"},"3346":{"morph":{"__isSmartRef__":true,"id":3324},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(713.7,405.0)"},"3347":{"morph":{"__isSmartRef__":true,"id":3324},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(713.7,420.9)"},"3348":{"morph":{"__isSmartRef__":true,"id":3324},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(383.4,420.9)"},"3349":{"morph":{"__isSmartRef__":true,"id":3324},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(53.0,420.9)"},"3350":{"morph":{"__isSmartRef__":true,"id":3324},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(53.0,405.0)"},"3351":{"migrateFrom":{"__isSmartRef__":true,"id":3352}},"3352":{"varMapping":{"__isSmartRef__":true,"id":3353},"source":"function migrateFrom(other) {\n this.textString = other.textString\n}","funcProperties":{"__isSmartRef__":true,"id":3354},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3353":{"this":{"__isSmartRef__":true,"id":3324}},"3354":{"timestamp":{"__isSmartRef__":true,"id":3355},"user":"jenslincke","tags":[]},"3355":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3356":{"submorphs":[],"scripts":[],"id":"47D54A02-4E0F-4345-A22C-A6C2AEA78D61","shape":{"__isSmartRef__":true,"id":3357},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"auto","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monospace","_MaxTextWidth":840.9565744975525,"_MaxTextHeight":105.11122875287208,"textChunks":[{"__isSmartRef__":true,"id":3358}],"layout":{"__isSmartRef__":true,"id":3360},"showsHalos":false,"name":"TextDiffAtoC","prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3361},"derivationIds":[3321,"FD5BBFA3-B21B-4DD7-9FAA-1F4EAF47F242","5B8CE3B6-20DC-475C-92D5-E1FB066B6B03","AD139BF3-416C-4E03-BDCA-4F782C7B652D","DC8C158D-2154-43DB-ACFC-B575BC2D06CA"],"_WordBreak":"break-all","isBeingDragged":false,"_FontSize":null,"savedTextString":"[[0,\"eins\\nzwei\\n\"],[-1,\"HALLO\"],[1,\"drei\"],[0,\"\\nvier\\nH\"],[-1,\"a\"],[1,\"e\"],[0,\"llo\\none\\n...\\n5\\nvier\\n\"],[-1,\"Hallo\"],[1,\"Bon jour\"],[0,\"\\none\\ntwo\\nthree\\nfour\"],[-1,\"\\n\"]]","isLockOwner":false,"draggingEnabled":false,"_PreviousBorderWidth":0,"magnets":[{"__isSmartRef__":true,"id":3362},{"__isSmartRef__":true,"id":3363},{"__isSmartRef__":true,"id":3364},{"__isSmartRef__":true,"id":3365},{"__isSmartRef__":true,"id":3366},{"__isSmartRef__":true,"id":3367},{"__isSmartRef__":true,"id":3368},{"__isSmartRef__":true,"id":3369}],"_Scale":0.997024943339397,"_Rotation":0,"owner":{"__isSmartRef__":true,"id":960},"__serializedExpressions__":["_Padding","distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3370},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(2,1,0,0)","distanceToDragEvent":"lively.pt(278.1,-13.0)","_Position":"lively.pt(317.6,499.0)"},"3357":{"_BorderWidth":0,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":true,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(424.1,88.3)","_BorderColor":"Color.rgb(225,225,225)","_Fill":"Color.rgb(230,230,230)","_Padding":"lively.rect(0,0,0,0)"},"3358":{"style":{"__isSmartRef__":true,"id":3359},"chunkOwner":{"__isSmartRef__":true,"id":3356},"_id":"_78","storedString":"[[0,\"one\\ntwo\\nthree\"],[1,\" houses\"],[0,\"\\nfour\"]]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3359":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3360":{"resizeWidth":true,"resizeHeight":true},"3361":{"morph":{"__isSmartRef__":true,"id":3356},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3362":{"morph":{"__isSmartRef__":true,"id":3356},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(320.9,863.0)"},"3363":{"morph":{"__isSmartRef__":true,"id":3356},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(526.9,863.0)"},"3364":{"morph":{"__isSmartRef__":true,"id":3356},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(732.9,863.0)"},"3365":{"morph":{"__isSmartRef__":true,"id":3356},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(732.9,875.5)"},"3366":{"morph":{"__isSmartRef__":true,"id":3356},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(732.9,888.0)"},"3367":{"morph":{"__isSmartRef__":true,"id":3356},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(526.9,888.0)"},"3368":{"morph":{"__isSmartRef__":true,"id":3356},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(320.9,888.0)"},"3369":{"morph":{"__isSmartRef__":true,"id":3356},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(320.9,875.5)"},"3370":{"updateDiff":{"__isSmartRef__":true,"id":3371}},"3371":{"varMapping":{"__isSmartRef__":true,"id":3372},"source":"function updateDiff() {\n\tif (!Global.diff_match_patch)\n\t\tmodule('lib.diff_match_patch.diff_match_patch_uncompressed').load(true);\n\n\tvar dmp = new diff_match_patch()\n\n\tvar diff = dmp.diff_main($morph('TextA').textString, $morph('TextB').textString)\n\n\tthis.setTextString(diff.toString()) \n}","funcProperties":{"__isSmartRef__":true,"id":3373},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3372":{"this":{"__isSmartRef__":true,"id":3356}},"3373":{},"3374":{"submorphs":[],"scripts":[],"id":"95DFD7C4-8AE5-4EF2-9397-3AE25A381834","shape":{"__isSmartRef__":true,"id":3375},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"auto","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monospace","_MaxTextWidth":840.9565744975525,"_MaxTextHeight":105.11122875287208,"textChunks":[{"__isSmartRef__":true,"id":3376}],"layout":{"__isSmartRef__":true,"id":3378},"showsHalos":false,"name":"TextDiffAtoB","prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3379},"derivationIds":[3321,"FD5BBFA3-B21B-4DD7-9FAA-1F4EAF47F242","D0174374-7CB8-4B05-AB8C-2D530FB1930F","4AB5CA7E-90EF-47B4-BD95-CB584FEE887A"],"_WordBreak":"break-all","isBeingDragged":false,"_FontSize":null,"savedTextString":"[[0,\"eins\\nzwei\\n\"],[-1,\"HALLO\"],[1,\"drei\"],[0,\"\\nvier\\nH\"],[-1,\"a\"],[1,\"e\"],[0,\"llo\\none\\n...\\n5\\nvier\\n\"],[-1,\"Hallo\"],[1,\"Bon jour\"],[0,\"\\none\\ntwo\\nthree\\nfour\"],[-1,\"\\n\"]]","isLockOwner":false,"draggingEnabled":false,"_PreviousBorderWidth":0,"magnets":[{"__isSmartRef__":true,"id":3380},{"__isSmartRef__":true,"id":3381},{"__isSmartRef__":true,"id":3382},{"__isSmartRef__":true,"id":3383},{"__isSmartRef__":true,"id":3384},{"__isSmartRef__":true,"id":3385},{"__isSmartRef__":true,"id":3386},{"__isSmartRef__":true,"id":3387}],"_Scale":1,"_Rotation":0,"owner":{"__isSmartRef__":true,"id":960},"__serializedExpressions__":["_Padding","distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3388},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Padding":"lively.rect(2,1,0,0)","distanceToDragEvent":"lively.pt(181.9,-15.0)","_Position":"lively.pt(315.7,80.1)"},"3375":{"_BorderWidth":0,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":true,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(428.7,60.2)","_BorderColor":"Color.rgb(225,225,225)","_Fill":"Color.rgb(230,230,230)","_Padding":"lively.rect(0,0,0,0)"},"3376":{"style":{"__isSmartRef__":true,"id":3377},"chunkOwner":{"__isSmartRef__":true,"id":3374},"_id":"_77","storedString":"[[0,\"one\\ntwo\"],[1,\" trees\"],[0,\"\\nthree\\nfour\"]]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3377":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3378":{"resizeWidth":true,"resizeHeight":true},"3379":{"morph":{"__isSmartRef__":true,"id":3374},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3380":{"morph":{"__isSmartRef__":true,"id":3374},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(392.1,565.9)"},"3381":{"morph":{"__isSmartRef__":true,"id":3374},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(532.2,565.9)"},"3382":{"morph":{"__isSmartRef__":true,"id":3374},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(672.3,565.9)"},"3383":{"morph":{"__isSmartRef__":true,"id":3374},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(672.3,583.5)"},"3384":{"morph":{"__isSmartRef__":true,"id":3374},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(672.3,601.0)"},"3385":{"morph":{"__isSmartRef__":true,"id":3374},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(532.2,601.0)"},"3386":{"morph":{"__isSmartRef__":true,"id":3374},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(392.1,601.0)"},"3387":{"morph":{"__isSmartRef__":true,"id":3374},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(392.1,583.5)"},"3388":{"updateDiff":{"__isSmartRef__":true,"id":3389}},"3389":{"varMapping":{"__isSmartRef__":true,"id":3390},"source":"function updateDiff() {\n\tif (!Global.diff_match_patch)\n\t\tmodule('lib.diff_match_patch.diff_match_patch_uncompressed').load(true);\n\n\tvar dmp = new diff_match_patch()\n\n\tvar diff = dmp.diff_main($morph('TextA').textString, $morph('TextB').textString)\n\n\tthis.setTextString(diff.toString()) \n}","funcProperties":{"__isSmartRef__":true,"id":3391},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3390":{"this":{"__isSmartRef__":true,"id":3374}},"3391":{},"3392":{"submorphs":[],"scripts":[],"id":"3BB27831-47D3-412D-BAF6-FE00FD55D48D","shape":{"__isSmartRef__":true,"id":3393},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":8,"name":"Text","partsBinMetaInfo":{"__isSmartRef__":true,"id":3394},"textChunks":[{"__isSmartRef__":true,"id":3410}],"charsReplaced":"textA","lastFindLoc":84,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3412},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","37A73FB9-972A-49DE-BA73-D66C060BA502","4B26E260-F3B8-4B38-8636-E318CD020666","3892C45E-494D-456D-8B54-E8CC829523FA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":960},"_Rotation":0,"_Scale":1.002,"priorSelectionRange":[48,48],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(702.8,263.5)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(149.4,-9.7)"},"3393":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(196.6,28.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"3394":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3395},{"__isSmartRef__":true,"id":3397},{"__isSmartRef__":true,"id":3399},{"__isSmartRef__":true,"id":3401},{"__isSmartRef__":true,"id":3403},{"__isSmartRef__":true,"id":3405},{"__isSmartRef__":true,"id":3407}],"lastModifiedDate":{"__isSmartRef__":true,"id":3409},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"3395":{"date":{"__isSmartRef__":true,"id":3396},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"3396":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3397":{"date":{"__isSmartRef__":true,"id":3398},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"3398":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3399":{"date":{"__isSmartRef__":true,"id":3400},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"3400":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3401":{"date":{"__isSmartRef__":true,"id":3402},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"3402":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3403":{"date":{"__isSmartRef__":true,"id":3404},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"3404":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3405":{"date":{"__isSmartRef__":true,"id":3406},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"3406":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3407":{"date":{"__isSmartRef__":true,"id":3408},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"3408":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3409":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3410":{"style":{"__isSmartRef__":true,"id":3411},"morph":{"__isSmartRef__":true,"id":3392},"chunkOwner":{"__isSmartRef__":true,"id":3392},"storedString":"patches = dmp.patch_fromText(source)\nresult = dmp.patch_apply(patches, a)","_id":"_100","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3411":{"fontSize":7,"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3412":{"morph":{"__isSmartRef__":true,"id":3392},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3413":{"submorphs":[],"scripts":[],"id":"90C86BDA-C9B0-4224-8B34-EBA81F2649C7","shape":{"__isSmartRef__":true,"id":3414},"__layered_droppingEnabled__":true,"halosEnabled":true,"itemList":["chars","raw","lines"],"selectedLineNo":0,"showsHalos":false,"name":"DiffModeList","partsBinMetaInfo":{"__isSmartRef__":true,"id":3415},"owner":{"__isSmartRef__":true,"id":960},"attributeConnections":[{"__isSmartRef__":true,"id":3416}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"selection":"chars","eventHandler":{"__isSmartRef__":true,"id":3417},"derivationIds":[3325,"CD0E5E01-76BD-4351-A1B7-C45C3C4AE046","C777F9B0-C0F8-41D0-A190-94F92EDCBD66","18957687-AFA3-4D42-9C37-CEFA92E46FF7"],"isLockOwner":false,"magnets":[{"__isSmartRef__":true,"id":3418},{"__isSmartRef__":true,"id":3419},{"__isSmartRef__":true,"id":3420},{"__isSmartRef__":true,"id":3421},{"__isSmartRef__":true,"id":3422},{"__isSmartRef__":true,"id":3423},{"__isSmartRef__":true,"id":3424},{"__isSmartRef__":true,"id":3425}],"isBeingDragged":false,"_Rotation":0,"_Scale":0.997024943339397,"changeTriggered":true,"grabbingEnabled":false,"draggingEnabled":false,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.List","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(119.5,42.6)","distanceToDragEvent":"lively.pt(59.1,-11.4)"},"3414":{"_BorderWidth":0,"__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(77.2,56.1)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(243,243,243)","_Padding":"lively.rect(0,0,0,0)"},"3415":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"3416":{"sourceObj":{"__isSmartRef__":true,"id":3413},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":960},"targetMethodName":"updateDiff","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3417":{"morph":{"__isSmartRef__":true,"id":3413},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3418":{"morph":{"__isSmartRef__":true,"id":3413},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(155.9,429.4)"},"3419":{"morph":{"__isSmartRef__":true,"id":3413},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(194.4,429.4)"},"3420":{"morph":{"__isSmartRef__":true,"id":3413},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(232.8,429.4)"},"3421":{"morph":{"__isSmartRef__":true,"id":3413},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(232.8,457.3)"},"3422":{"morph":{"__isSmartRef__":true,"id":3413},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(232.8,485.3)"},"3423":{"morph":{"__isSmartRef__":true,"id":3413},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(194.4,485.3)"},"3424":{"morph":{"__isSmartRef__":true,"id":3413},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(155.9,485.3)"},"3425":{"morph":{"__isSmartRef__":true,"id":3413},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(155.9,457.3)"},"3426":{"submorphs":[],"scripts":[],"id":"E7A92CC0-9D0A-4037-A3DF-6939FD60D56E","shape":{"__isSmartRef__":true,"id":3427},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":8,"name":"Text3","partsBinMetaInfo":{"__isSmartRef__":true,"id":3428},"textChunks":[{"__isSmartRef__":true,"id":3444}],"charsReplaced":"var patches = dmp.patch_fromText(source)\nvar result = dmp.patch_apply(patches, a)","lastFindLoc":31,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3446},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","37A73FB9-972A-49DE-BA73-D66C060BA502","F9EA0CC3-5FD6-4D4C-9CE8-128F93FBA728","18BA4AF0-041A-424D-B0BB-52709D4FC73D","A1F6EC9C-7720-4C92-85B2-2B2DEA6F8C82"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":960},"_Rotation":0,"_Scale":1.002,"priorSelectionRange":[7,7],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(101.4,252.9)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(129.1,-12.3)"},"3427":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(183.4,16.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"3428":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3429},{"__isSmartRef__":true,"id":3431},{"__isSmartRef__":true,"id":3433},{"__isSmartRef__":true,"id":3435},{"__isSmartRef__":true,"id":3437},{"__isSmartRef__":true,"id":3439},{"__isSmartRef__":true,"id":3441}],"revisionOnLoad":193597,"lastModifiedDate":{"__isSmartRef__":true,"id":3443},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"3429":{"date":{"__isSmartRef__":true,"id":3430},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"3430":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3431":{"date":{"__isSmartRef__":true,"id":3432},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"3432":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3433":{"date":{"__isSmartRef__":true,"id":3434},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"3434":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3435":{"date":{"__isSmartRef__":true,"id":3436},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"3436":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3437":{"date":{"__isSmartRef__":true,"id":3438},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"3438":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3439":{"date":{"__isSmartRef__":true,"id":3440},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"3440":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3441":{"date":{"__isSmartRef__":true,"id":3442},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"3442":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3443":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3444":{"style":{"__isSmartRef__":true,"id":3445},"morph":{"__isSmartRef__":true,"id":3426},"chunkOwner":{"__isSmartRef__":true,"id":3426},"storedString":" diffs1 = dmp.diff_lineMode(a,b)","_id":"_100","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3445":{"fontSize":7,"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3446":{"morph":{"__isSmartRef__":true,"id":3426},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3447":{"submorphs":[],"scripts":[],"id":"243BC5EF-CA96-4401-AAE2-334F041207DE","shape":{"__isSmartRef__":true,"id":3448},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":8,"name":"Text4","partsBinMetaInfo":{"__isSmartRef__":true,"id":3449},"textChunks":[{"__isSmartRef__":true,"id":3465}],"charsReplaced":"var patches = dmp.patch_fromText(source)\nvar result = dmp.patch_apply(patches, a)","lastFindLoc":130,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3467},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","37A73FB9-972A-49DE-BA73-D66C060BA502","64AB8BB2-2A6C-49BC-88D0-B1AC70DB6B7A","84585439-4CB8-4FA2-B4F5-0A9F322DF5C4","F1D0F6E0-0F21-402D-9C45-304A9506FD54"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":960},"_Rotation":0,"_Scale":1.002,"priorSelectionRange":[71,71],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(228.1,310.5)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(186.5,-13.3)"},"3448":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(284.0,40.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"3449":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3450},{"__isSmartRef__":true,"id":3452},{"__isSmartRef__":true,"id":3454},{"__isSmartRef__":true,"id":3456},{"__isSmartRef__":true,"id":3458},{"__isSmartRef__":true,"id":3460},{"__isSmartRef__":true,"id":3462}],"revisionOnLoad":193597,"lastModifiedDate":{"__isSmartRef__":true,"id":3464},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"3450":{"date":{"__isSmartRef__":true,"id":3451},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"3451":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3452":{"date":{"__isSmartRef__":true,"id":3453},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"3453":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3454":{"date":{"__isSmartRef__":true,"id":3455},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"3455":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3456":{"date":{"__isSmartRef__":true,"id":3457},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"3457":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3458":{"date":{"__isSmartRef__":true,"id":3459},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"3459":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3460":{"date":{"__isSmartRef__":true,"id":3461},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"3461":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3462":{"date":{"__isSmartRef__":true,"id":3463},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"3463":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3464":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3465":{"style":{"__isSmartRef__":true,"id":3466},"morph":{"__isSmartRef__":true,"id":3447},"chunkOwner":{"__isSmartRef__":true,"id":3447},"storedString":"patch1 = dmp.patch_make(diffs1)\npatch2 = dmp.patch_make(diffs2)\npatchText = dmp.patch_toText(patch1.concat(patch2));","_id":"_100","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3466":{"fontSize":7,"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3467":{"morph":{"__isSmartRef__":true,"id":3447},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3468":{"submorphs":[],"scripts":[],"id":"84F8E054-E142-4FAD-8374-CC7A2F350DFE","shape":{"__isSmartRef__":true,"id":3469},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":8,"name":"Text5","partsBinMetaInfo":{"__isSmartRef__":true,"id":3470},"textChunks":[{"__isSmartRef__":true,"id":3486}],"charsReplaced":"var patches = dmp.patch_fromText(source)\nvar result = dmp.patch_apply(patches, a)","lastFindLoc":31,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3488},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","37A73FB9-972A-49DE-BA73-D66C060BA502","F9EA0CC3-5FD6-4D4C-9CE8-128F93FBA728","2A5B5D8C-BD19-4DA7-AE11-7B03B7AD6CDF","0A95809A-6438-40A2-966C-3CCEC5C8496F","94BEDEED-E3CC-45F7-AE01-6A6DCE2A7FC7"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"previousSelection":[0,0],"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":960},"_Rotation":0,"_Scale":1.002,"priorSelectionRange":[5,5],"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(100.5,450.4)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(129.1,-12.3)"},"3469":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(183.4,16.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"3470":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":3471},{"__isSmartRef__":true,"id":3473},{"__isSmartRef__":true,"id":3475},{"__isSmartRef__":true,"id":3477},{"__isSmartRef__":true,"id":3479},{"__isSmartRef__":true,"id":3481},{"__isSmartRef__":true,"id":3483}],"revisionOnLoad":193597,"lastModifiedDate":{"__isSmartRef__":true,"id":3485},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"3471":{"date":{"__isSmartRef__":true,"id":3472},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"3472":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3473":{"date":{"__isSmartRef__":true,"id":3474},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"3474":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3475":{"date":{"__isSmartRef__":true,"id":3476},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"3476":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3477":{"date":{"__isSmartRef__":true,"id":3478},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"3478":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3479":{"date":{"__isSmartRef__":true,"id":3480},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"3480":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3481":{"date":{"__isSmartRef__":true,"id":3482},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"3482":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3483":{"date":{"__isSmartRef__":true,"id":3484},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"3484":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3485":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3486":{"style":{"__isSmartRef__":true,"id":3487},"morph":{"__isSmartRef__":true,"id":3468},"chunkOwner":{"__isSmartRef__":true,"id":3468},"storedString":" diffs2 = dmp.diff_lineMode(a,c)","_id":"_100","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3487":{"fontSize":7,"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3488":{"morph":{"__isSmartRef__":true,"id":3468},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3489":{"_BorderWidth":1,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":true,"__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(902.3,602.7)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"3490":{"partsSpaceName":"PartsBin/Documentation/","migrationLevel":4,"partName":"DiffExample","lastModifiedDate":{"__isSmartRef__":true,"id":3491},"revisionOnLoad":205300,"comment":"no comment","changes":[{"__isSmartRef__":true,"id":3492},{"__isSmartRef__":true,"id":3494},{"__isSmartRef__":true,"id":3496},{"__isSmartRef__":true,"id":3498},{"__isSmartRef__":true,"id":3500},{"__isSmartRef__":true,"id":3502},{"__isSmartRef__":true,"id":3504},{"__isSmartRef__":true,"id":3506},{"__isSmartRef__":true,"id":3508},{"__isSmartRef__":true,"id":3510}],"requiredModules":["apps.DiffMatchPatch"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"3491":{"isSerializedDate":true,"string":"Tue Feb 04 2014 17:25:55 GMT+0100 (CET)"},"3492":{"date":{"__isSmartRef__":true,"id":3493},"author":"jenslincke","message":"no comment","id":"32DC67EB-5E21-44F1-A0A7-AD5F0BA8F147"},"3493":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3494":{"date":{"__isSmartRef__":true,"id":3495},"author":"jenslincke","message":"no comment","id":"EFD68E1D-155F-4DA6-83FB-9E50BB3D6C0A"},"3495":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3496":{"date":{"__isSmartRef__":true,"id":3497},"author":"jenslincke","message":"no comment","id":"B568489C-7A8D-4517-98E5-AC0756F7C66D"},"3497":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3498":{"date":{"__isSmartRef__":true,"id":3499},"author":"jenslincke","message":"no comment","id":"A92FC5CD-B257-4577-AA3B-E5C18A2B0EFA"},"3499":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3500":{"date":{"__isSmartRef__":true,"id":3501},"author":"jenslincke","message":"no comment","id":"9E09C5B3-A23E-48FC-B942-2F8207D0C081"},"3501":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3502":{"date":{"__isSmartRef__":true,"id":3503},"author":"jenslincke","message":"no comment","id":"32C7F824-14E4-4EE9-9D2F-B5933B4D3C5E"},"3503":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3504":{"date":{"__isSmartRef__":true,"id":3505},"author":"jenslincke","message":"no comment","id":"EA57B804-D5DA-473C-8C2A-D6630A52833E"},"3505":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3506":{"date":{"__isSmartRef__":true,"id":3507},"author":"jenslincke","message":"no comment","id":"D3566949-A53D-4822-AA45-B8C8F9BF46CC"},"3507":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3508":{"date":{"__isSmartRef__":true,"id":3509},"author":"jenslincke","message":"no comment","id":"ABD57F20-DDBB-45C3-AF86-B4EC8E9046A8"},"3509":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3510":{"date":{"__isSmartRef__":true,"id":3511},"author":"jenslincke","message":"no comment","id":"5EE1C1E0-1684-4602-A005-AC0D31B41F2F"},"3511":{"isSerializedDate":true,"string":"Tue Feb 04 2014 17:27:09 GMT+0100 (CET)"},"3512":{"morph":{"__isSmartRef__":true,"id":960},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3513":{"morph":{"__isSmartRef__":true,"id":960},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)","cachedGlobalPosition":"lively.pt(34.0,386.0)"},"3514":{"morph":{"__isSmartRef__":true,"id":960},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)","cachedGlobalPosition":"lively.pt(495.3,386.0)"},"3515":{"morph":{"__isSmartRef__":true,"id":960},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)","cachedGlobalPosition":"lively.pt(956.5,386.0)"},"3516":{"morph":{"__isSmartRef__":true,"id":960},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)","cachedGlobalPosition":"lively.pt(956.5,750.2)"},"3517":{"morph":{"__isSmartRef__":true,"id":960},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)","cachedGlobalPosition":"lively.pt(956.5,1114.5)"},"3518":{"morph":{"__isSmartRef__":true,"id":960},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)","cachedGlobalPosition":"lively.pt(495.3,1114.5)"},"3519":{"morph":{"__isSmartRef__":true,"id":960},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)","cachedGlobalPosition":"lively.pt(34.0,1114.5)"},"3520":{"morph":{"__isSmartRef__":true,"id":960},"connectedControlPoints":[],"__serializedExpressions__":["position","cachedGlobalPosition"],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)","cachedGlobalPosition":"lively.pt(34.0,750.2)"},"3521":{"updateDiff":{"__isSmartRef__":true,"id":3522},"updateRichTextDiffs":{"__isSmartRef__":true,"id":3526},"updatePatchText":{"__isSmartRef__":true,"id":3530},"diffText":{"__isSmartRef__":true,"id":3534},"getDiffs1":{"__isSmartRef__":true,"id":3538},"getDiffs2":{"__isSmartRef__":true,"id":3542},"applyPatches":{"__isSmartRef__":true,"id":3546},"reset":{"__isSmartRef__":true,"id":3550}},"3522":{"varMapping":{"__isSmartRef__":true,"id":3523},"source":"function updateDiff() {\n\n\tvar a = this.get('TextA').textString;\n\tvar b = this.get('TextB').textString;\n\tvar c = this.get('TextC').textString;\n\n\tvar mode = this.get('DiffModeList').selection\n \tvar diffs1 = this.diffText(a,b, mode);\n \tvar diffs2 = this.diffText(a,c, mode);\n\n\tthis.get('TextDiffAtoB').setTextString(JSON.serialize(diffs1))\n\tthis.get('TextDiffAtoC').setTextString(JSON.serialize(diffs2))\n\n\tthis.updateRichTextDiffs(this.get('TextBDiff'), diffs1)\n\tthis.updateRichTextDiffs(this.get('TextCDiff'), diffs2)\n\n\tthis.updatePatchText(diffs2)\n}","funcProperties":{"__isSmartRef__":true,"id":3524},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3523":{"this":{"__isSmartRef__":true,"id":960}},"3524":{"timestamp":{"__isSmartRef__":true,"id":3525},"user":"jenslincke","tags":[]},"3525":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3526":{"varMapping":{"__isSmartRef__":true,"id":3527},"source":"function updateRichTextDiffs(textMorph, diffs) {\n var range = textMorph.getSelectionRange()\n textMorph.textString = \"\"\n diff_match_patch.prototype.showDiffsIn(diffs, textMorph)\n if (range) textMorph.setSelectionRange(range[0], range[1])\n}","funcProperties":{"__isSmartRef__":true,"id":3528},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3527":{"this":{"__isSmartRef__":true,"id":960}},"3528":{"timestamp":{"__isSmartRef__":true,"id":3529},"user":"jenslincke","tags":[]},"3529":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3530":{"varMapping":{"__isSmartRef__":true,"id":3531},"source":"function updatePatchText() {\n\tvar dmp = new diff_match_patch()\n\n var a = this.get(\"TextA\").textString\n\n var b = this.get(\"TextB\").textString\n var c = this.get(\"TextC\").textString\n\n var diffs1 = this.getDiffs1()\n\tvar diffs2 = this.getDiffs2()\n\n\tvar patch1 = dmp.patch_make(diffs1)\n\tvar patch2 = dmp.patch_make(diffs2)\n\tvar patchText = dmp.patch_toText(patch1.concat(patch2));\n\n\tthis.get('PatchesSource').setTextString(patchText)\n}","funcProperties":{"__isSmartRef__":true,"id":3532},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3531":{"this":{"__isSmartRef__":true,"id":960}},"3532":{"timestamp":{"__isSmartRef__":true,"id":3533},"user":"jenslincke","tags":[]},"3533":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3534":{"varMapping":{"__isSmartRef__":true,"id":3535},"source":"function diffText(a, b, mode) {\n module('apps.DiffMatchPatch').load(true)\n\tvar dmp = new diff_match_patch()\n\tif (mode == 'lines') {\n\t\tvar diffs = dmp.diff_lineMode(a,b)\n\t} else if (mode == 'raw') {\n\t\tdiffs = dmp.diff_main(a, b);\n\t} else {\n\t\tdiffs = dmp.diff_main(a, b);\n\t\tdmp.diff_cleanupSemantic(diffs);\n\t}\n\treturn diffs\n}","funcProperties":{"__isSmartRef__":true,"id":3536},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3535":{"this":{"__isSmartRef__":true,"id":960}},"3536":{"timestamp":{"__isSmartRef__":true,"id":3537},"user":"jenslincke","tags":[]},"3537":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3538":{"varMapping":{"__isSmartRef__":true,"id":3539},"source":"function getDiffs1() {\n return JSON.parse(this.get('TextDiffAtoB').textString)\n}","funcProperties":{"__isSmartRef__":true,"id":3540},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3539":{"this":{"__isSmartRef__":true,"id":960}},"3540":{"timestamp":{"__isSmartRef__":true,"id":3541},"user":"jenslincke","tags":[]},"3541":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3542":{"varMapping":{"__isSmartRef__":true,"id":3543},"source":"function getDiffs2() {\n return JSON.parse(this.get('TextDiffAtoC').textString)\n}","funcProperties":{"__isSmartRef__":true,"id":3544},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3543":{"this":{"__isSmartRef__":true,"id":960}},"3544":{"timestamp":{"__isSmartRef__":true,"id":3545},"user":"jenslincke","tags":[]},"3545":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3546":{"varMapping":{"__isSmartRef__":true,"id":3547},"source":"function applyPatches(source) {\n var dmp = new diff_match_patch()\n\n var source = source || this.get(\"PatchesSource\").textString\n var patches = dmp.patch_fromText(source)\n var result = dmp.patch_apply(patches, this.get(\"TextA\").textString)\n\n this.get(\"TextD\").textString = result[0]\n\n var success = result[1].inject(true, function(r, ea) { return r && ea })\n this.get(\"PatchesSource\").setFill(success ? Color.green : Color.red)\n}","funcProperties":{"__isSmartRef__":true,"id":3548},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3547":{"this":{"__isSmartRef__":true,"id":960}},"3548":{"timestamp":{"__isSmartRef__":true,"id":3549},"user":"jenslincke","tags":[]},"3549":{"isSerializedDate":true,"string":"Thu Jan 01 1970 01:00:00 GMT+0100 (CET)"},"3550":{"varMapping":{"__isSmartRef__":true,"id":3551},"source":"function reset() {\n this.partsBinMetaInfo.addRequiredModule(\"apps.DiffMatchPatch\")\n}","funcProperties":{"__isSmartRef__":true,"id":3552},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3551":{"this":{"__isSmartRef__":true,"id":960}},"3552":{"timestamp":{"__isSmartRef__":true,"id":3553},"user":"jenslincke","tags":[]},"3553":{"isSerializedDate":true,"string":"Tue Feb 04 2014 17:26:44 GMT+0100 (CET)"},"3554":{"submorphs":[],"scripts":[],"id":226,"shape":{"__isSmartRef__":true,"id":3555},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":false,"halosEnabled":false,"registeredForMouseEvents":true,"_world":{"__isSmartRef__":true,"id":0},"owner":{"__isSmartRef__":true,"id":0},"carriesGrabbedMorphs":false,"_Scale":1.002003004005006,"_Rotation":0,"eventHandler":{"__isSmartRef__":true,"id":3556},"clickedOnMorph":{"__isSmartRef__":true,"id":3557},"lastScrollTime":1391531286315,"_ClipMode":"visible","__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.HandMorph","__SourceModuleName__":"Global.lively.morphic.Events","withLayers":["Global.NoMagnetsLayer"],"_Position":"lively.pt(1098.1,357.4)"},"3555":{"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(2.0,2.0)","_Fill":"Color.rgb(204,0,0)","_Padding":"lively.rect(0,0,0,0)"},"3556":{"morph":{"__isSmartRef__":true,"id":3554},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3557":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3558},"id":115,"textChunks":[{"__isSmartRef__":true,"id":3562}],"eventHandler":{"__isSmartRef__":true,"id":3564},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10.5,"_MaxTextWidth":null,"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"_HandStyle":"default","__serializedExpressions__":["_Position","_TextColor"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3565},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,184.0)","_TextColor":"Color.rgb(255,255,255)"},"3558":{"_ClipMode":"hidden","_BorderWidth":0,"_Fill":{"__isSmartRef__":true,"id":3559},"_BorderRadius":4,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(228.0,23.0)","_Padding":"lively.rect(3,2,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"3559":{"stops":[{"__isSmartRef__":true,"id":3560},{"__isSmartRef__":true,"id":3561}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"3560":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(100,131,248)"},"3561":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(34,85,245)"},"3562":{"style":{"__isSmartRef__":true,"id":3563},"chunkOwner":{"__isSmartRef__":true,"id":3557},"storedString":"","_id":"_276","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3563":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3564":{"morph":{"__isSmartRef__":true,"id":3557},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3565":{"onMouseWheel":{"__isSmartRef__":true,"id":3566},"onSelectStart":{"__isSmartRef__":true,"id":3573}},"3566":{"varMapping":{"__isSmartRef__":true,"id":3567},"source":"function onMouseWheel(evt) {\n return false; // to allow scrolling\n }","funcProperties":{"__isSmartRef__":true,"id":3572},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3567":{"this":{"__isSmartRef__":true,"id":3557},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3568}},"3568":{"$super":{"__isSmartRef__":true,"id":3569}},"3569":{"varMapping":{"__isSmartRef__":true,"id":3570},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3571},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3570":{"obj":{"__isSmartRef__":true,"id":3557},"name":"onMouseWheel"},"3571":{},"3572":{},"3573":{"varMapping":{"__isSmartRef__":true,"id":3574},"source":"function onSelectStart(evt) {\n return false; // to allow scrolling\n }","funcProperties":{"__isSmartRef__":true,"id":3579},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3574":{"this":{"__isSmartRef__":true,"id":3557},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3575}},"3575":{"$super":{"__isSmartRef__":true,"id":3576}},"3576":{"varMapping":{"__isSmartRef__":true,"id":3577},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":3578},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3577":{"obj":{"__isSmartRef__":true,"id":3557},"name":"onSelectStart"},"3578":{},"3579":{},"3580":{"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(2800.0,2900.0)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"3581":{"name":"Local code","__LivelyClassName__":"ChangeSet","__SourceModuleName__":"Global.lively.ChangeSet"},"3582":{"morph":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3583":{"sourceObj":{"__isSmartRef__":true,"id":0},"sourceAttrName":"savedWorldAsURL","targetObj":{"__isSmartRef__":true,"id":0},"targetMethodName":"visitNewPageAfterSaveAs","converterString":null,"updaterString":"function ($upd, v) { \n if (v && v.toString() !== URL.source.toString()) {\n $upd(v) \n }\n }","varMapping":{"__isSmartRef__":true,"id":3584},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"3584":{"source":{"__isSmartRef__":true,"id":0},"target":{"__isSmartRef__":true,"id":0}},"3585":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/users/fbo/sceneGraph.xhtml","__LivelyClassName__":"URL","__SourceModuleName__":"Global.lively.Network"},"3586":{"rules":[{"__isSmartRef__":true,"id":3587},{"__isSmartRef__":true,"id":3589}],"originMorph":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.StyleSheet","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"3587":{"declarations":[{"__isSmartRef__":true,"id":3588}],"styleSheet":{"__isSmartRef__":true,"id":3586},"selector":".Window","__LivelyClassName__":"lively.morphic.StyleSheetRule","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"3588":{"values":["none"],"rule":{"__isSmartRef__":true,"id":3587},"property":"box-shadow","priority":false,"__LivelyClassName__":"lively.morphic.StyleSheetDeclaration","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"3589":{"declarations":[{"__isSmartRef__":true,"id":3590}],"styleSheet":{"__isSmartRef__":true,"id":3586},"selector":".Window.highlighted","__LivelyClassName__":"lively.morphic.StyleSheetRule","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"3590":{"values":["none"],"rule":{"__isSmartRef__":true,"id":3589},"property":"box-shadow","priority":false,"__LivelyClassName__":"lively.morphic.StyleSheetDeclaration","__SourceModuleName__":"Global.lively.morphic.StyleSheetRepresentation"},"3591":{"submorphs":[{"__isSmartRef__":true,"id":3592}],"scripts":[],"id":"660D84E0-17F7-46ED-82D6-2A45B9C1BE80","shape":{"__isSmartRef__":true,"id":3603},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"LoadingMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":3604},"eventHandler":{"__isSmartRef__":true,"id":3704},"derivationIds":[127,"59692BC3-6C7B-4E23-B820-8699260EA722","486BB935-1313-4103-B2A8-642B19437478","18AFFD44-46CD-489E-B1D6-DED43E2B6B06","2608C892-2204-4981-9A87-8E749F8944AB","5535861F-4EA2-44AB-8A40-0538124E0AAC","16C292B3-86E8-4622-B516-27C48263B8CC","87731A20-D455-44D0-97E5-98A7CFD4E417","A17081E7-E597-47ED-BD32-6E4D206BD7D7","CFB4A44C-BFEA-4584-BCBA-AE2A56739200","76B3DD9B-8D01-42BA-A574-AB99D5F899BB","1EBC5512-8F54-4B24-998C-69A285EC8533","DD1165C7-6C1A-4361-A4AE-FCF6F31152FD","4D6D36E8-48F3-408A-B03C-202E4DC182BD","5F3B3E0F-BBC6-4DDA-BAA0-7EFC05FF2011","E0A6B33B-767A-4532-9021-892414520200","F5F5E2B1-5FF0-4E09-B323-AE88A3920B8D","0C7E832A-A741-430F-B295-8BC181D066FE","472AED3B-CB76-49BD-BF49-354A2D568F86","A7C52F65-D140-4791-880F-F7584C7BB570","3516412B-8B36-4E52-9416-6B7FB358BDC2","1840CACC-078C-4795-AD3F-E9D6F8D557A0","1FEDCA25-0131-46FA-840F-DC5F1B05C6CA","C620CED3-0AE9-4097-9AA7-2706A042F9C9","679A861B-40E0-4DB2-B22F-95B454C6978D","FEF39B3C-E634-4825-BAB8-2D44FE647B03","0C359AB4-E7FF-46F2-B050-E84944AAC865"],"isBeingDragged":false,"layout":{"__isSmartRef__":true,"id":3705},"prevScroll":[0,0],"moved":true,"headRevision":146469,"_ClipMode":"visible","_Rotation":0,"_Scale":1,"isMetaTool":true,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3706},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(171.0,-13.0)"},"3592":{"submorphs":[{"__isSmartRef__":true,"id":3593}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3599},"id":"85E5613F-BC53-4732-8B26-4A33144736B0","eventHandler":{"__isSmartRef__":true,"id":3600},"__layered_droppingEnabled__":true,"halosEnabled":true,"name":"ProgressIndicator","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3601},"derivationIds":[520,"071F18BE-FF28-40F5-ACAD-1916E0D25C38","DF185A10-743D-45FC-B9C2-76E12D908BCF","BF125D2C-596A-4C1E-A5F8-DAE4801E9497","3CEE8CFF-B8F1-4B4B-A405-CB583080252A","D0652878-8F9C-4591-8A82-296898AACDB6","31441DDF-2220-43BE-A99F-69E1FEC68030","14A90039-0D3E-46DC-8445-D42B8E02EB42","681EF5DE-A344-4114-B2F3-B96CE3872524","C0381116-5116-4F33-B082-A411D0E4534E","24E9581E-B008-46EE-9CBC-D5190E100D98","C69D1041-2C5E-48FE-B04C-04E66450658A","4830945B-4FFF-4564-9424-34D7995DAE60","8602C233-B3E7-4682-9B0E-D7549761D934","B4E0E11F-2BED-462E-B708-89D63971856E","EE0144C2-D016-4390-8A67-4E7DEF171C83","F44DF6E4-5F27-440E-AB5F-3721C0A10CA6","73FC6648-DAAF-4673-8CF4-7DA219513F22","B78EB1B5-780C-45F7-B0A7-B988B52B1FF1","DFDB8CD1-72F7-40F4-849B-1F9B866277AB","66111105-B1FC-41F7-BF70-D45118C9E09F","02420416-1E35-4831-AABB-91CD0460CA1A","7C6B2EB2-4510-4A8E-BAFF-5CF0040DD7F5","0503F5A1-1732-4610-9A5A-920D658CA766","07C5AE03-36AD-4849-BACD-27D7D9A2CCF2","9FFF9D73-931C-404C-AA4B-5AC2E7C53504","B1D109CF-D403-4B0A-988D-50F79586DAC1"],"owner":{"__isSmartRef__":true,"id":3591},"isBeingDragged":false,"layout":{"__isSmartRef__":true,"id":3602},"prevScroll":[0,0],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(113.5,81.0)","distanceToDragEvent":"lively.pt(39.0,-11.0)"},"3593":{"submorphs":[],"scripts":[],"id":"09092A98-F202-4557-91F4-21DAFA8D7F82","shape":{"__isSmartRef__":true,"id":3594},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":257,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":14,"name":"loadedMorphName","partsBinMetaInfo":{"__isSmartRef__":true,"id":3595},"textChunks":[{"__isSmartRef__":true,"id":3596}],"charsReplaced":"MorphName","lastFindLoc":18,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":3598},"_ClipMode":"visible","derivationIds":[355,"023045B3-2D6B-4425-89FB-F4806D527BE0","DC0C2365-868C-41AE-8369-51C31E91493E","C6D9D314-86A1-4015-970B-F6787F535E1A","6AA4552E-2E85-447E-9033-99D5AA1A94BC","D94BE49C-8A3E-4F1F-BF28-FEDD9B40D213","AA8F0470-654C-4AA2-8135-4607F5429AC5","E0BAABCC-FFB2-4EDF-BAE5-C63CC99B6A97","1A86AE17-73AE-442E-AB36-DD90C6DFC8BC","EF750075-E964-4CD3-B6A4-161511E1D058","CED69CBF-FFA5-45E7-B333-FBACE4F278AC","E56978C1-7424-4C10-8168-11FD3237B540","D5AB2532-A4DC-42D6-AF17-99CBBCEAA848","245866CB-598A-4172-A3A0-A06D4D26C6AD","43B0F12E-5793-43AA-80E1-496774E0EBA6","1B776A8C-0413-475F-8EBD-120BBD91D2BB","F84F2C9A-8003-4E81-833A-83F48C92F3B8","3124B389-9FA4-4348-BC5D-0DFF9C59CD1B","1A1BCBAC-D7CC-4BAE-B8C2-7C693F7327A1","1CB201BA-5E0B-4771-821A-139FA2AEFBC2","195520FA-4816-47A4-B0F5-BA890AFD9DF9","0D15F28A-24C9-46B7-89C5-6D2354728AC1","316FE9D3-62EC-4FD6-9B0F-FFA622B79575","739F3743-9BE1-48C8-813D-C0BFB0DCACA6","01877B3B-7DA7-4222-B011-7B5F4E501862","B8FE7DEE-9568-4BE6-BA12-EA674BA79E08","08EA4866-65F7-416E-810F-77F2E719663A"],"_WhiteSpaceHandling":"pre-wrap","owner":{"__isSmartRef__":true,"id":3592},"_MinTextWidth":257,"_MinTextHeight":null,"previousSelection":[6,6],"_Align":"center","isBeingDragged":false,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(-109.0,38.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(179.0,-11.0)"},"3594":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(257.0,22.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"3595":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"3596":{"style":{"__isSmartRef__":true,"id":3597},"chunkOwner":{"__isSmartRef__":true,"id":3593},"storedString":"loading part","_id":"_4371","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3597":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3598":{"morph":{"__isSmartRef__":true,"id":3593},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3599":{"_ImageURL":"data:image/gif;base64,R0lGODlhEAAQAPIAAP///wAAAMLCwkJCQgAAAGJiYoKCgpKSkiH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAAEAAQAAADMwi63P4wyklrE2MIOggZnAdOmGYJRbExwroUmcG2LmDEwnHQLVsYOd2mBzkYDAdKa+dIAAAh+QQJCgAAACwAAAAAEAAQAAADNAi63P5OjCEgG4QMu7DmikRxQlFUYDEZIGBMRVsaqHwctXXf7WEYB4Ag1xjihkMZsiUkKhIAIfkECQoAAAAsAAAAABAAEAAAAzYIujIjK8pByJDMlFYvBoVjHA70GU7xSUJhmKtwHPAKzLO9HMaoKwJZ7Rf8AYPDDzKpZBqfvwQAIfkECQoAAAAsAAAAABAAEAAAAzMIumIlK8oyhpHsnFZfhYumCYUhDAQxRIdhHBGqRoKw0R8DYlJd8z0fMDgsGo/IpHI5TAAAIfkECQoAAAAsAAAAABAAEAAAAzIIunInK0rnZBTwGPNMgQwmdsNgXGJUlIWEuR5oWUIpz8pAEAMe6TwfwyYsGo/IpFKSAAAh+QQJCgAAACwAAAAAEAAQAAADMwi6IMKQORfjdOe82p4wGccc4CEuQradylesojEMBgsUc2G7sDX3lQGBMLAJibufbSlKAAAh+QQJCgAAACwAAAAAEAAQAAADMgi63P7wCRHZnFVdmgHu2nFwlWCI3WGc3TSWhUFGxTAUkGCbtgENBMJAEJsxgMLWzpEAACH5BAkKAAAALAAAAAAQABAAAAMyCLrc/jDKSatlQtScKdceCAjDII7HcQ4EMTCpyrCuUBjCYRgHVtqlAiB1YhiCnlsRkAAAOwAAAAAAAAAAAA==","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"_ClipMode":"visible","_BorderWidth":0,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(31.0,31.0)","_Padding":"lively.rect(0,0,0,0)"},"3600":{"morph":{"__isSmartRef__":true,"id":3592},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3601":{"partName":"ProgressIndicator","requiredModules":[],"migrationLevel":2,"partsSpaceName":"PartsBin/Widgets/","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"3602":{"centeredHorizontal":true,"centeredVertical":true},"3603":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":8.515,"_Opacity":0.8146,"_BorderStyle":"solid","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(266.0,223.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"3604":{"partsSpaceName":"PartsBin/iPadWidgets","comment":"This is a placeholder to indicate that a morph is being loaded. It will be replaced by the morph as soon as the requested morph finished loading.","migrationLevel":4,"partName":"LoadingMorph","changes":[{"__isSmartRef__":true,"id":3605},{"__isSmartRef__":true,"id":3607},{"__isSmartRef__":true,"id":3609},{"__isSmartRef__":true,"id":3611},{"__isSmartRef__":true,"id":3613},{"__isSmartRef__":true,"id":3615},{"__isSmartRef__":true,"id":3617},{"__isSmartRef__":true,"id":3619},{"__isSmartRef__":true,"id":3621},{"__isSmartRef__":true,"id":3623},{"__isSmartRef__":true,"id":3625},{"__isSmartRef__":true,"id":3627},{"__isSmartRef__":true,"id":3629},{"__isSmartRef__":true,"id":3631},{"__isSmartRef__":true,"id":3633},{"__isSmartRef__":true,"id":3635},{"__isSmartRef__":true,"id":3637},{"__isSmartRef__":true,"id":3639},{"__isSmartRef__":true,"id":3641},{"__isSmartRef__":true,"id":3643},{"__isSmartRef__":true,"id":3645},{"__isSmartRef__":true,"id":3647},{"__isSmartRef__":true,"id":3649},{"__isSmartRef__":true,"id":3651},{"__isSmartRef__":true,"id":3653},{"__isSmartRef__":true,"id":3655},{"__isSmartRef__":true,"id":3657},{"__isSmartRef__":true,"id":3659},{"__isSmartRef__":true,"id":3661},{"__isSmartRef__":true,"id":3663},{"__isSmartRef__":true,"id":3665},{"__isSmartRef__":true,"id":3667},{"__isSmartRef__":true,"id":3669},{"__isSmartRef__":true,"id":3671},{"__isSmartRef__":true,"id":3673},{"__isSmartRef__":true,"id":3675},{"__isSmartRef__":true,"id":3677},{"__isSmartRef__":true,"id":3679},{"__isSmartRef__":true,"id":3681},{"__isSmartRef__":true,"id":3683},{"__isSmartRef__":true,"id":3685},{"__isSmartRef__":true,"id":3687},{"__isSmartRef__":true,"id":3689},{"__isSmartRef__":true,"id":3691},{"__isSmartRef__":true,"id":3693},{"__isSmartRef__":true,"id":3695},{"__isSmartRef__":true,"id":3697},{"__isSmartRef__":true,"id":3699},{"__isSmartRef__":true,"id":3701}],"lastModifiedDate":{"__isSmartRef__":true,"id":3703},"revisionOnLoad":194364,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"3605":{"date":{"__isSmartRef__":true,"id":3606},"author":"sstamm","message":"","id":"1C1391AE-5722-4707-BE52-F0094FC56829"},"3606":{"isSerializedDate":true,"string":"Wed Feb 22 2012 14:02:04 GMT+0100 (CET)"},"3607":{"date":{"__isSmartRef__":true,"id":3608},"author":"sstamm","message":"","id":"663F147A-9084-4AC3-81A7-1E7BA6547F08"},"3608":{"isSerializedDate":true,"string":"Wed Feb 22 2012 12:43:10 GMT+0100 (CET)"},"3609":{"date":{"__isSmartRef__":true,"id":3610},"author":"sstamm","message":"","id":"F72B746E-B170-4EFB-9074-5E8770640B8A"},"3610":{"isSerializedDate":true,"string":"Wed Feb 22 2012 12:36:14 GMT+0100 (CET)"},"3611":{"date":{"__isSmartRef__":true,"id":3612},"author":"sstamm","message":"","id":"568D2EFD-C535-43AE-8944-6D8B967129F5"},"3612":{"isSerializedDate":true,"string":"Wed Feb 22 2012 12:23:04 GMT+0100 (CET)"},"3613":{"date":{"__isSmartRef__":true,"id":3614},"author":"sstamm","message":"","id":"AB2484A6-0707-4E13-845E-F0A5F48BBA3D"},"3614":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:59:45 GMT+0100 (CET)"},"3615":{"date":{"__isSmartRef__":true,"id":3616},"author":"sstamm","message":"","id":"97D20633-F76C-46A5-A32A-FFE9BC83CAB3"},"3616":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:59:10 GMT+0100 (CET)"},"3617":{"date":{"__isSmartRef__":true,"id":3618},"author":"sstamm","message":"","id":"8A697DF5-9A45-4A84-B709-9719BF55083E"},"3618":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:56:54 GMT+0100 (CET)"},"3619":{"date":{"__isSmartRef__":true,"id":3620},"author":"sstamm","message":"","id":"F2157D66-1571-4B9A-B325-6FA96488260F"},"3620":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:51:05 GMT+0100 (CET)"},"3621":{"date":{"__isSmartRef__":true,"id":3622},"author":"sstamm","message":"","id":"E5E808CA-06AB-47DC-A9C9-CA7967591545"},"3622":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:47:19 GMT+0100 (CET)"},"3623":{"date":{"__isSmartRef__":true,"id":3624},"author":"sstamm","message":"","id":"009DC4E0-23CA-485A-A796-801AA0F75049"},"3624":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:46:25 GMT+0100 (CET)"},"3625":{"date":{"__isSmartRef__":true,"id":3626},"author":"sstamm","message":"","id":"C0CE1397-6E2E-4E8C-AEFF-9017E24BB7E4"},"3626":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:45:05 GMT+0100 (CET)"},"3627":{"date":{"__isSmartRef__":true,"id":3628},"author":"sstamm","message":"","id":"FFE16986-548D-4AC2-A627-CF6416282BC4"},"3628":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:37:15 GMT+0100 (CET)"},"3629":{"date":{"__isSmartRef__":true,"id":3630},"author":"sstamm","message":"","id":"57213D63-7147-4057-ADC9-30994443B066"},"3630":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:35:29 GMT+0100 (CET)"},"3631":{"date":{"__isSmartRef__":true,"id":3632},"author":"sstamm","message":"","id":"75A31364-B380-4312-BB5B-F8F2DA1CE824"},"3632":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:31:52 GMT+0100 (CET)"},"3633":{"date":{"__isSmartRef__":true,"id":3634},"author":"sstamm","message":"","id":"5AA50B7E-7D33-44C4-807B-BF1ABA31D530"},"3634":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:14:10 GMT+0100 (CET)"},"3635":{"date":{"__isSmartRef__":true,"id":3636},"author":"sstamm","message":"","id":"BCDCC505-534C-45E5-9BB2-5238959A5AD0"},"3636":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:02:56 GMT+0100 (CET)"},"3637":{"date":{"__isSmartRef__":true,"id":3638},"author":"sstamm","message":"","id":"890D14F4-E89D-4E05-BFB9-875D6AB6C765"},"3638":{"isSerializedDate":true,"string":"Wed Feb 22 2012 11:01:50 GMT+0100 (CET)"},"3639":{"date":{"__isSmartRef__":true,"id":3640},"author":"sstamm","message":"","id":"B6FE0805-0D24-4267-8238-8B332352617E"},"3640":{"isSerializedDate":true,"string":"Wed Feb 22 2012 10:55:44 GMT+0100 (CET)"},"3641":{"date":{"__isSmartRef__":true,"id":3642},"author":"sstamm","message":"callbacks are working","id":"9348260A-3B55-4659-BC85-440BFBD98EA4"},"3642":{"isSerializedDate":true,"string":"Fri Feb 10 2012 09:45:55 GMT+0100 (CET)"},"3643":{"date":{"__isSmartRef__":true,"id":3644},"author":"sstamm","message":"made it more opaque","id":"1B84264C-2822-407F-A58F-19217BCD2762"},"3644":{"isSerializedDate":true,"string":"Wed Feb 08 2012 11:41:50 GMT+0100 (CET)"},"3645":{"date":{"__isSmartRef__":true,"id":3646},"author":"sstamm","message":"","id":"0FB41D7D-2A52-4782-814B-A66C24FCE569"},"3646":{"isSerializedDate":true,"string":"Tue Feb 07 2012 11:13:49 GMT+0100 (CET)"},"3647":{"date":{"__isSmartRef__":true,"id":3648},"author":"sstamm","message":"","id":"A0C2D7C1-04AF-493A-A7D7-70750F7D3E2F"},"3648":{"isSerializedDate":true,"string":"Thu Feb 02 2012 17:22:07 GMT+0100 (CET)"},"3649":{"date":{"__isSmartRef__":true,"id":3650},"author":"sstamm","message":"trollolol","id":"F6CFAD78-AC72-4DE2-9F38-79776C2E9462"},"3650":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:55:14 GMT+0100 (CET)"},"3651":{"date":{"__isSmartRef__":true,"id":3652},"author":"sstamm","message":"should be centered now","id":"EE366B4D-C272-477F-8C28-4EAE5A7EC7CB"},"3652":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:54:35 GMT+0100 (CET)"},"3653":{"date":{"__isSmartRef__":true,"id":3654},"author":"sstamm","message":"initial commit","id":"8920D925-DD16-4667-B8C7-FB74D78C2424"},"3654":{"isSerializedDate":true,"string":"Thu Feb 02 2012 13:26:01 GMT+0100 (CET)"},"3655":{"date":{"__isSmartRef__":true,"id":3656},"author":"sstamm","message":"changed text morph name","id":"80E88A3C-5AF3-48F2-A600-710877630997"},"3656":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:04:01 GMT+0100 (CET)"},"3657":{"date":{"__isSmartRef__":true,"id":3658},"author":"sstamm","message":"added loading script","id":"EE9B8F4D-1F03-4232-82E6-794046974F8F"},"3658":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:28:30 GMT+0100 (CET)"},"3659":{"date":{"__isSmartRef__":true,"id":3660},"author":"sstamm","message":"added disconnection","id":"11F19267-924E-4087-99ED-998245576BD2"},"3660":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:32:58 GMT+0100 (CET)"},"3661":{"date":{"__isSmartRef__":true,"id":3662},"author":"sstamm","message":"removed connections before deletion","id":"35A88218-6864-4D52-83A2-BFF7B9A6907C"},"3662":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:41:00 GMT+0100 (CET)"},"3663":{"date":{"__isSmartRef__":true,"id":3664},"author":"sstamm","message":"now able to load parts by name and category as well as per partItem","id":"F36A5782-461D-4813-95F8-0207990A261C"},"3664":{"isSerializedDate":true,"string":"Thu Feb 02 2012 15:24:30 GMT+0100 (CET)"},"3665":{"date":{"__isSmartRef__":true,"id":3666},"author":"sstamm","message":"now with round corners","id":"F42C39CB-CC37-467D-BF10-D362241F047E"},"3666":{"isSerializedDate":true,"string":"Thu Feb 02 2012 15:26:23 GMT+0100 (CET)"},"3667":{"date":{"__isSmartRef__":true,"id":3668},"author":"sstamm","message":"loadingMorph is sync now","id":"12ACFFC9-BA53-4A2A-ABD4-894A5ECE1145"},"3668":{"isSerializedDate":true,"string":"Thu Feb 02 2012 15:48:04 GMT+0100 (CET)"},"3669":{"date":{"__isSmartRef__":true,"id":3670},"author":"sstamm","message":"display the loadingMorph in new thread","id":"2BA51E30-F02B-4AF0-B3BE-52DD4ED522CC"},"3670":{"isSerializedDate":true,"string":"Thu Feb 02 2012 15:53:49 GMT+0100 (CET)"},"3671":{"date":{"__isSmartRef__":true,"id":3672},"author":"sstamm","message":"","id":"DF0AE4EA-1B08-4556-8BBE-E6488F23B8A3"},"3672":{"isSerializedDate":true,"string":"Thu Feb 02 2012 16:49:48 GMT+0100 (CET)"},"3673":{"date":{"__isSmartRef__":true,"id":3674},"author":"sstamm","message":"","id":"220821B3-C589-41C9-A324-8E7E6D9D6CEB"},"3674":{"isSerializedDate":true,"string":"Thu Feb 02 2012 16:58:43 GMT+0100 (CET)"},"3675":{"date":{"__isSmartRef__":true,"id":3676},"author":"sstamm","message":"","id":"DEBFACE2-7EC5-4A86-AD46-5A0A88A73707"},"3676":{"isSerializedDate":true,"string":"Thu Feb 02 2012 17:04:28 GMT+0100 (CET)"},"3677":{"date":{"__isSmartRef__":true,"id":3678},"author":"sstamm","message":"load request in new thread if loading should be async","id":"18282D28-D6D4-48C9-A508-6E3244449BD8"},"3678":{"isSerializedDate":true,"string":"Tue Feb 07 2012 11:10:27 GMT+0100 (CET)"},"3679":{"date":{"__isSmartRef__":true,"id":3680},"author":"sstamm","message":"added benchmarking output","id":"249CFF90-DDF5-4A83-9759-0289E96D7D58"},"3680":{"isSerializedDate":true,"string":"Tue Feb 07 2012 11:31:50 GMT+0100 (CET)"},"3681":{"date":{"__isSmartRef__":true,"id":3682},"author":"sstamm","message":"","id":"882082E1-29B6-418D-9B8B-672729D60619"},"3682":{"isSerializedDate":true,"string":"Tue Feb 07 2012 11:38:26 GMT+0100 (CET)"},"3683":{"date":{"__isSmartRef__":true,"id":3684},"author":"sstamm","message":"","id":"5179AEF9-E19F-4B0C-BBD8-556C5687988A"},"3684":{"isSerializedDate":true,"string":"Tue Feb 07 2012 11:44:11 GMT+0100 (CET)"},"3685":{"date":{"__isSmartRef__":true,"id":3686},"author":"sstamm","message":"","id":"1159C5B4-724E-4124-9D7B-5CD5DC4A8EE3"},"3686":{"isSerializedDate":true,"string":"Tue Feb 07 2012 11:48:14 GMT+0100 (CET)"},"3687":{"date":{"__isSmartRef__":true,"id":3688},"author":"sstamm","message":"","id":"2A718D1F-1036-41D6-999A-336F2B14E65D"},"3688":{"isSerializedDate":true,"string":"Tue Feb 07 2012 11:49:47 GMT+0100 (CET)"},"3689":{"date":{"__isSmartRef__":true,"id":3690},"author":"sstamm","message":"","id":"EB6BDD0C-7EEC-4124-B77F-2F106A601538"},"3690":{"isSerializedDate":true,"string":"Tue Feb 07 2012 11:59:48 GMT+0100 (CET)"},"3691":{"date":{"__isSmartRef__":true,"id":3692},"author":"sstamm","message":"","id":"63EC8D07-AB6A-450A-BB84-9B4D37E03647"},"3692":{"isSerializedDate":true,"string":"Tue Feb 07 2012 12:02:33 GMT+0100 (CET)"},"3693":{"date":{"__isSmartRef__":true,"id":3694},"author":"sstamm","message":"","id":"19CE12E4-5AA5-48DC-B1D1-B0EB0EDF1CB9"},"3694":{"isSerializedDate":true,"string":"Tue Feb 07 2012 12:03:42 GMT+0100 (CET)"},"3695":{"date":{"__isSmartRef__":true,"id":3696},"author":"sstamm","message":"first attempt to introduce callback functions to part loading","id":"22BD0B95-8948-411A-A56E-AD7CBE445F1D"},"3696":{"isSerializedDate":true,"string":"Thu Feb 09 2012 20:20:11 GMT+0100 (CET)"},"3697":{"date":{"__isSmartRef__":true,"id":3698},"author":"sstamm","message":"","id":"A216DFD2-9D1F-4E62-A22F-6B5472823E1B"},"3698":{"isSerializedDate":true,"string":"Fri Mar 16 2012 15:37:34 GMT+0100 (CET)"},"3699":{"date":{"__isSmartRef__":true,"id":3700},"author":"sstamm","message":"","id":"464E723A-08DC-433C-AA5C-CEC850DBAF0B"},"3700":{"isSerializedDate":true,"string":"Fri Mar 16 2012 15:42:29 GMT+0100 (CET)"},"3701":{"date":{"__isSmartRef__":true,"id":3702},"author":"jenslincke","message":"make it a meta tool","id":"8406E1E5-C48F-4F03-AC17-81AABDE9235E"},"3702":{"isSerializedDate":true,"string":"Fri Mar 22 2013 14:56:05 GMT+0100 (CET)"},"3703":{"isSerializedDate":true,"string":"Fri Mar 22 2013 14:54:35 GMT+0100 (CET)"},"3704":{"morph":{"__isSmartRef__":true,"id":3591},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3705":{"adjustForNewBounds":true},"3706":{"loadPart":{"__isSmartRef__":true,"id":3707},"loadFinished":{"__isSmartRef__":true,"id":3711},"loadPartByName":{"__isSmartRef__":true,"id":3715}},"3707":{"varMapping":{"__isSmartRef__":true,"id":3708},"source":"function loadPart(partItem, isAsync) {\n this.partItem = partItem;\n \n this.openInWorld();\n if(partItem.part) {\n this.setExtent(partItem.part.getExtent());\n }\n this.align(this.bounds().center(), $world.visibleBounds().center());\n \n \n if(typeof isAsync === \"function\") {\n this.callback = isAsync;\n }\n\n connect(partItem, 'part', this, \"loadFinished\");\n\n partItem.loadPart(isAsync);\n\n return partItem.part;\n\n}","funcProperties":{"__isSmartRef__":true,"id":3709},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3708":{"this":{"__isSmartRef__":true,"id":3591}},"3709":{"timestamp":{"__isSmartRef__":true,"id":3710},"user":"sstamm","tags":[]},"3710":{"isSerializedDate":true,"string":"Fri Mar 16 2012 15:42:18 GMT+0100 (CET)"},"3711":{"varMapping":{"__isSmartRef__":true,"id":3712},"source":"function loadFinished(part) {\n if(this.owner === $world.firstHand()) {\n $world.firstHand().removeAllMorphs();\n } else {\n this.owner.addMorph(part);\n part.align(part.bounds().center(), this.bounds().center());\n this.remove();\n }\n disconnect(this.partItem, 'part', this, \"loadFinished\");\n if(this.callback) {\n this.callback(part);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":3713},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3712":{"this":{"__isSmartRef__":true,"id":3591}},"3713":{"timestamp":{"__isSmartRef__":true,"id":3714},"user":"sstamm","tags":[]},"3714":{"isSerializedDate":true,"string":"Wed Feb 22 2012 14:01:53 GMT+0100 (CET)"},"3715":{"varMapping":{"__isSmartRef__":true,"id":3716},"source":"function loadPartByName(partName, optPartsSpaceName, isAsync) {\n var partItem = lively.PartsBin.getPartItem(partName, optPartsSpaceName);\n return this.loadPart(partItem, isAsync);\n}","funcProperties":{"__isSmartRef__":true,"id":3717},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"3716":{"this":{"__isSmartRef__":true,"id":3591}},"3717":{"timestamp":{"__isSmartRef__":true,"id":3718},"user":"sstamm","tags":[]},"3718":{"isSerializedDate":true,"string":"Thu Feb 02 2012 17:03:18 GMT+0100 (CET)"},"3719":{"isSerializedDate":true,"string":"Tue Feb 04 2014 17:26:38 GMT+0100 (CET)"},"3720":{"clipboardData":{"__isSmartRef__":true,"id":3721},"cancelBubble":false,"returnValue":false,"defaultPrevented":true,"timeStamp":1391530024063,"cancelable":true,"bubbles":true,"eventPhase":0,"currentTarget":null,"type":"paste","hasLivelyPatch":true,"isMouseEvent":false,"isKeyboardEvent":false,"world":{"__isSmartRef__":true,"id":0},"hand":{"__isSmartRef__":true,"id":3554},"isStopped":true,"__serializedExpressions__":["mousePoint"],"mousePoint":"lively.pt(0.0,0.0)"},"3721":{"items":{"__isSmartRef__":true,"id":3722},"files":{"__isSmartRef__":true,"id":3723},"types":[],"effectAllowed":"uninitialized","dropEffect":"none"},"3722":{"length":0},"3723":{"length":0},"isSimplifiedRegistry":true}}]]>