{"id":0,"registry":{"0":{"submorphs":[{"__isSmartRef__":true,"id":1},{"__isSmartRef__":true,"id":7},{"__isSmartRef__":true,"id":79}],"scripts":[],"id":"2EA3FD62-C4E7-4DE9-876D-84800D243BB0","shape":{"__isSmartRef__":true,"id":151},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"VisualizingConnections","partsBinMetaInfo":{"__isSmartRef__":true,"id":152},"eventHandler":{"__isSmartRef__":true,"id":170},"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","F2677A9D-5855-4DF2-B248-94545B34B762","D52188B3-7DC0-410E-96B1-50892AC00A37"],"partTests":{"__isSmartRef__":true,"id":171},"_ClipMode":"hidden","moved":true,"layout":{"__isSmartRef__":true,"id":176},"isInLayoutCycle":false,"isBeingDragged":false,"__serializedExpressions__":["_Position"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":178},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)"},"1":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":3}],"_ClipMode":"hidden","derivationIds":["AC6E72C7-A969-4BBB-A43C-40656B4219AA","9C01BF8D-4782-4079-90BF-D9CF7F498B19","4088D54C-8811-40F4-8145-DE275C1C1B4B","06479E4F-FE32-4B0B-A34B-E904F1401406"],"id":"6D9D9FD7-3DD1-4C09-B5BC-EB36DD042B37","_InputAllowed":false,"_HandStyle":"default","allowInput":false,"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"draggingEnabled":true,"fixedWidth":true,"fixedHeight":true,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"isLabel":true,"eventsAreIgnored":true,"layout":{"__isSmartRef__":true,"id":5},"_StyleClassNames":["Morph","Text","window-title"],"_TextStylingMode":true,"eventHandler":{"__isSmartRef__":true,"id":6},"showsHalos":false,"name":"Text2","owner":{"__isSmartRef__":true,"id":0},"_PreviousBorderWidth":0,"__serializedExpressions__":["_TextColor","_Position"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(64,64,64)","_Position":"lively.pt(8.1,8.1)"},"2":{"_BorderWidth":0,"_Fill":null,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_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(253.0,20.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"3":{"style":{"__isSmartRef__":true,"id":4},"chunkOwner":{"__isSmartRef__":true,"id":1},"_id":"_9099","storedString":"Toggle Connection Visualization of","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5":{"resizeWidth":false},"6":{"morph":{"__isSmartRef__":true,"id":1},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7":{"submorphs":[{"__isSmartRef__":true,"id":8}],"scripts":[],"shape":{"__isSmartRef__":true,"id":13},"eventHandler":{"__isSmartRef__":true,"id":14},"_ClipMode":"visible","derivationIds":["EC7EBB28-54AE-4244-80ED-3E13650F82B7","9FD2DCE2-B997-4536-B2A5-90D7DD92B3E6","0D8CC908-BD1C-4062-BB03-3FCEB910483D"],"id":"B10A0066-79FC-4AD0-8FB9-FF598176907D","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":8},"_PreviousBorderWidth":1,"isPressed":false,"showsHalos":false,"attributeConnections":[{"__isSmartRef__":true,"id":15}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"name":"Button3","partsBinMetaInfo":{"__isSmartRef__":true,"id":56},"pinSpecs":[{"__isSmartRef__":true,"id":64}],"layout":{"__isSmartRef__":true,"id":65},"_StyleClassNames":["Morph","Button"],"__serializedExpressions__":["distanceToDragEvent","_Position"],"magnets":[{"__isSmartRef__":true,"id":66},{"__isSmartRef__":true,"id":67},{"__isSmartRef__":true,"id":68},{"__isSmartRef__":true,"id":69},{"__isSmartRef__":true,"id":70},{"__isSmartRef__":true,"id":71},{"__isSmartRef__":true,"id":72},{"__isSmartRef__":true,"id":73},{"__isSmartRef__":true,"id":74}],"owner":{"__isSmartRef__":true,"id":0},"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":75},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","distanceToDragEvent":"lively.pt(74.0,7.0)","_Position":"lively.pt(264.3,8.1)"},"8":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":9},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":10}],"eventHandler":{"__isSmartRef__":true,"id":12},"_ClipMode":"hidden","derivationIds":["7884E73F-0D17-44B3-907F-44A5223F1F3D","444B63A6-D9E7-4AB2-AB57-4A9146C18BFF","08999E10-CCC3-4CAB-99BC-4EF500309EC4"],"id":"51B95902-1CDF-40BC-8325-F69F8A432578","grabbingEnabled":false,"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":7},"isLabel":true,"_Align":"center","eventsAreIgnored":true,"_TextStylingMode":true,"showsHalos":false,"eventsAreDisabled":true,"_PointerEvents":"none","__serializedExpressions__":["_TextColor","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(0,0,0)","_Position":"lively.pt(0.0,0.0)"},"9":{"_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(46.7,20.0)","_Padding":"lively.rect(0,3,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"10":{"style":{"__isSmartRef__":true,"id":11},"chunkOwner":{"__isSmartRef__":true,"id":8},"_id":"_6825","storedString":"that","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"12":{"morph":{"__isSmartRef__":true,"id":8},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"13":{"_BorderWidth":1,"_BorderRadius":5,"_AppearanceStylingMode":true,"_BorderStylingMode":true,"_Fill":null,"_Opacity":1,"_BorderStyle":"solid","__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(46.7,20.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"14":{"morph":{"__isSmartRef__":true,"id":7},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15":{"sourceObj":{"__isSmartRef__":true,"id":7},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":7},"targetMethodName":"toggleThat","varMapping":{"__isSmartRef__":true,"id":16},"autoShowAndHideConnections":[{"__isSmartRef__":true,"id":17},{"__isSmartRef__":true,"id":17}],"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"16":{"source":{"__isSmartRef__":true,"id":7},"target":{"__isSmartRef__":true,"id":7}},"17":{"sourceObj":{"__isSmartRef__":true,"id":7},"sourceAttrName":"owners","targetObj":{"__isSmartRef__":true,"id":18},"targetMethodName":"showOrHide","varMapping":{"__isSmartRef__":true,"id":55},"converterString":"function (owners) { return !!this.sourceObj.world(); }","__LivelyClassName__":"lively.morphic.OwnersConnection","__SourceModuleName__":"Global.lively.bindings.GeometryBindings"},"18":{"submorphs":[{"__isSmartRef__":true,"id":19}],"scripts":[],"shape":{"__isSmartRef__":true,"id":26},"_ClipMode":"visible","derivationIds":[],"id":"FA88A460-E759-4C99-BFF7-5FD4041CADB5","droppingEnabled":false,"halosEnabled":true,"fromMorph":{"__isSmartRef__":true,"id":7},"toMorph":{"__isSmartRef__":true,"id":7},"updatePosition":true,"controlPoints":[{"__isSmartRef__":true,"id":29},{"__isSmartRef__":true,"id":30}],"owner":null,"eventHandler":{"__isSmartRef__":true,"id":31},"realignConnections":[{"__isSmartRef__":true,"id":32},{"__isSmartRef__":true,"id":32}],"con":{"__isSmartRef__":true,"id":15},"showsMorphMenu":true,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":34},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"19":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":20},"_ClipMode":"visible","derivationIds":[],"id":"95A5626D-A5D3-4E09-8D60-CFBF8B1EA0CB","droppingEnabled":true,"halosEnabled":true,"__serializedExpressions__":["_Position"],"owner":{"__isSmartRef__":true,"id":18},"eventHandler":{"__isSmartRef__":true,"id":25},"_Rotation":0,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(343.7,94.1)"},"20":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":21},{"__isSmartRef__":true,"id":22},{"__isSmartRef__":true,"id":23},{"__isSmartRef__":true,"id":24}],"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"_BorderWidth":0,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Position":"lively.pt(-12.0,-6.0)","_Extent":"lively.pt(17.0,13.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,0)"},"21":{"isAbsolute":true,"x":-11,"y":-5,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"22":{"isAbsolute":true,"x":-11,"y":7,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"23":{"isAbsolute":true,"x":5,"y":1,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"24":{"isAbsolute":true,"x":-11,"y":-5,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"25":{"morph":{"__isSmartRef__":true,"id":19},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"26":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":27},{"__isSmartRef__":true,"id":28}],"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":1,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Position":"lively.pt(342.7,93.1)","_Extent":"lively.pt(1.0,1.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"27":{"isAbsolute":true,"x":343.66249999999997,"y":94.145,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"28":{"isAbsolute":true,"x":343.66249999999997,"y":94.145,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"29":{"morph":{"__isSmartRef__":true,"id":18},"index":0,"connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"30":{"morph":{"__isSmartRef__":true,"id":18},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":19},"markerDirection":"prev","__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"31":{"morph":{"__isSmartRef__":true,"id":18},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"32":{"sourceObj":{"__isSmartRef__":true,"id":7},"sourceAttrName":"globalTransform","targetObj":{"__isSmartRef__":true,"id":18},"targetMethodName":"realignConnection","varMapping":{"__isSmartRef__":true,"id":33},"__LivelyClassName__":"lively.morphic.GeometryTransformConnection","__SourceModuleName__":"Global.lively.bindings.GeometryBindings"},"33":{"source":{"__isSmartRef__":true,"id":7},"target":{"__isSmartRef__":true,"id":18}},"34":{"show":{"__isSmartRef__":true,"id":35},"hide":{"__isSmartRef__":true,"id":42},"morphMenuItems":{"__isSmartRef__":true,"id":45},"showOrHide":{"__isSmartRef__":true,"id":52}},"35":{"varMapping":{"__isSmartRef__":true,"id":36},"source":"function show() {\n            var from = this.fromMorph, to = this.toMorph,\n                world = from.world() || to.world(),\n                cp1 = this.getControlPoints().first(),\n                startMagnet = from.getMagnetForPos(\n                    to.world() ? to.worldPoint(to.innerBounds().center()) : null),\n                cp2 = this.getControlPoints().last(),\n                endMagnet = to.getMagnetForPos(\n                    from.world() ? from.worldPoint(from.innerBounds().center()) : null);\n            if (world) world.addMorphFront(this);\n\n            if (!startMagnet || !endMagnet) {\n                alert(\"Connection Problem: no magnet found\");\n                this.hide();\n                return;\n            }\n            cp1.setConnectedMagnet(startMagnet);\n            cp2.setConnectedMagnet(endMagnet);\n\n            if (this.updatePosition) {\n                if (this.realignConnections) this.realignConnections.invoke('disconnect');\n                this.realignConnections = [\n                    lively.bindings.connect(from, 'globalTransform', this, 'realignConnection'),\n                    lively.bindings.connect(to, 'globalTransform', this, 'realignConnection')]\n            }\n        }","funcProperties":{"__isSmartRef__":true,"id":41},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"36":{"this":{"__isSmartRef__":true,"id":18},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":37}},"37":{"$super":{"__isSmartRef__":true,"id":38}},"38":{"varMapping":{"__isSmartRef__":true,"id":39},"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":40},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"39":{"obj":{"__isSmartRef__":true,"id":18},"name":"show"},"40":{},"41":{},"42":{"varMapping":{"__isSmartRef__":true,"id":43},"source":"function hide() {\n            this.disconnectFromMagnets();\n            if (this.realignConnections) this.realignConnections.invoke('disconnect');\n            this.remove();\n        }","funcProperties":{"__isSmartRef__":true,"id":44},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"43":{"this":{"__isSmartRef__":true,"id":18}},"44":{},"45":{"varMapping":{"__isSmartRef__":true,"id":46},"source":"function morphMenuItems() {\n            var visualConnector = this, con = this.con, world = $world;\n            var items = [\n                ['Edit converter', function() {\n                    var window = lively.bindings.editConnection(con);\n                    window.align(window.bounds().topCenter(),\n                    visualConnector.bounds().bottomCenter())\n                }],\n                ['Inspect value', function() {\n                    lively.morphic.inspect(con.getSourceValue());\n                }],\n                ['Hide', function() {\n                    visualConnector.hidePermanently();\n                }],\n                ['Disconnect', function() {\n                    alertOK('Disconnected ' + visualConnector.con);\n                    visualConnector.con.visualDisconnect();\n                }],\n                ['Cancel', function() {}]\n            ];\n            return items;\n        }","funcProperties":{"__isSmartRef__":true,"id":51},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"46":{"this":{"__isSmartRef__":true,"id":18},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":47}},"47":{"$super":{"__isSmartRef__":true,"id":48}},"48":{"varMapping":{"__isSmartRef__":true,"id":49},"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":50},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"49":{"obj":{"__isSmartRef__":true,"id":18},"name":"morphMenuItems"},"50":{},"51":{},"52":{"varMapping":{"__isSmartRef__":true,"id":53},"source":"function showOrHide(bool) {\n            bool ? this.show() : this.hide();\n        }","funcProperties":{"__isSmartRef__":true,"id":54},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"53":{"this":{"__isSmartRef__":true,"id":18}},"54":{},"55":{"source":{"__isSmartRef__":true,"id":7},"target":{"__isSmartRef__":true,"id":18}},"56":{"partName":"Button","requiredModules":[],"partsSpaceName":"PartsBin/Inputs","comment":"A simple button that calls a method #doAction when pressed.","changes":[{"__isSmartRef__":true,"id":57},{"__isSmartRef__":true,"id":58},{"__isSmartRef__":true,"id":59},{"__isSmartRef__":true,"id":60},{"__isSmartRef__":true,"id":61},{"__isSmartRef__":true,"id":62},{"__isSmartRef__":true,"id":63}],"migrationLevel":7,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:11 GMT-0700 (PDT)\")"},"57":{"author":null,"message":"no comment","id":"F8B70225-5143-4A51-ABB4-344B488B3811","__serializedExpressions__":["date"],"date":"new Date(\"Tue Dec 11 2012 13:15:42 GMT-0800 (PST)\")"},"58":{"author":"robertkrahn","message":"no comment","id":"9B8B6BE4-4519-4A6C-8F47-70DE61BBB0FB","__serializedExpressions__":["date"],"date":"new Date(\"Tue Dec 11 2012 13:53:16 GMT-0800 (PST)\")"},"59":{"author":"robertkrahn","message":"test","id":"ACA617B4-0416-4E3C-9F4D-171A40F44F0F","__serializedExpressions__":["date"],"date":"new Date(\"Tue Apr 30 2013 20:34:25 GMT-0700 (PDT)\")"},"60":{"author":"robertkrahn","message":"no comment","id":"811BDE87-D8DD-48BB-97B2-7A3C3F3FAE32","__serializedExpressions__":["date"],"date":"new Date(\"Tue Apr 30 2013 20:35:59 GMT-0700 (PDT)\")"},"61":{"author":"robertkrahn","message":"no comment","id":"BB2EA501-D9AF-414B-A035-E1487DA6F0FD","__serializedExpressions__":["date"],"date":"new Date(\"Tue Apr 30 2013 20:36:30 GMT-0700 (PDT)\")"},"62":{"author":"Dan","message":"no comment","id":"A594459F-DA9B-49DD-A105-547B3F613CC5","__serializedExpressions__":["date"],"date":"new Date(\"Mon Jun 17 2013 10:22:38 GMT-0700 (PDT)\")"},"63":{"author":"Dan","message":"no comment","id":"CFEC4071-14FF-4AEB-A399-197884CD18BF","__serializedExpressions__":["date"],"date":"new Date(\"Mon Jun 17 2013 10:24:50 GMT-0700 (PDT)\")"},"64":{"pinName":"fire","modality":"output","type":"Boolean","accessor":"fire","location":1.5},"65":{"adjustForNewBounds":true,"resizeWidth":true,"scaleHorizontal":true},"66":{"morph":{"__isSmartRef__":true,"id":7},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)"},"67":{"morph":{"__isSmartRef__":true,"id":7},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)"},"68":{"morph":{"__isSmartRef__":true,"id":7},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)"},"69":{"morph":{"__isSmartRef__":true,"id":7},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)"},"70":{"morph":{"__isSmartRef__":true,"id":7},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)"},"71":{"morph":{"__isSmartRef__":true,"id":7},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)"},"72":{"morph":{"__isSmartRef__":true,"id":7},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)"},"73":{"morph":{"__isSmartRef__":true,"id":7},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)"},"74":{"morph":{"__isSmartRef__":true,"id":7},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.5)"},"75":{"toggleThat":{"__isSmartRef__":true,"id":76}},"76":{"varMapping":{"__isSmartRef__":true,"id":77},"source":"function toggleThat() {\n    if(!Global.that){\n        alert(\"Global.that is undefined.\");\n        return\n    }\n    this.owner.toggleConnectionsOf(that);\n}","funcProperties":{"__isSmartRef__":true,"id":78},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"77":{"this":{"__isSmartRef__":true,"id":7}},"78":{"__serializedExpressions__":["timestamp"],"user":"larswassermann","tags":[],"timestamp":"new Date(\"Mon Dec 30 2013 20:43:13 GMT-0800 (PST)\")"},"79":{"submorphs":[{"__isSmartRef__":true,"id":80}],"scripts":[],"shape":{"__isSmartRef__":true,"id":85},"eventHandler":{"__isSmartRef__":true,"id":86},"_ClipMode":"visible","derivationIds":["EC7EBB28-54AE-4244-80ED-3E13650F82B7","9FD2DCE2-B997-4536-B2A5-90D7DD92B3E6","0D8CC908-BD1C-4062-BB03-3FCEB910483D","B10A0066-79FC-4AD0-8FB9-FF598176907D"],"id":"6DFCCCF4-00CA-4B51-B040-900E5F0C4191","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":80},"_PreviousBorderWidth":1,"isPressed":false,"showsHalos":false,"attributeConnections":[{"__isSmartRef__":true,"id":87}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"name":"Button4","partsBinMetaInfo":{"__isSmartRef__":true,"id":128},"pinSpecs":[{"__isSmartRef__":true,"id":136}],"layout":{"__isSmartRef__":true,"id":137},"_StyleClassNames":["Morph","Button"],"__serializedExpressions__":["distanceToDragEvent","_Position"],"magnets":[{"__isSmartRef__":true,"id":138},{"__isSmartRef__":true,"id":139},{"__isSmartRef__":true,"id":140},{"__isSmartRef__":true,"id":141},{"__isSmartRef__":true,"id":142},{"__isSmartRef__":true,"id":143},{"__isSmartRef__":true,"id":144},{"__isSmartRef__":true,"id":145},{"__isSmartRef__":true,"id":146}],"owner":{"__isSmartRef__":true,"id":0},"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":147},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","distanceToDragEvent":"lively.pt(74.0,7.0)","_Position":"lively.pt(314.2,8.1)"},"80":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":81},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":82}],"eventHandler":{"__isSmartRef__":true,"id":84},"_ClipMode":"hidden","derivationIds":["7884E73F-0D17-44B3-907F-44A5223F1F3D","444B63A6-D9E7-4AB2-AB57-4A9146C18BFF","08999E10-CCC3-4CAB-99BC-4EF500309EC4","51B95902-1CDF-40BC-8325-F69F8A432578"],"id":"7CFFDF88-2058-4D44-8615-B78738D8008A","grabbingEnabled":false,"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":79},"isLabel":true,"_Align":"center","eventsAreIgnored":true,"_TextStylingMode":true,"showsHalos":false,"eventsAreDisabled":true,"_PointerEvents":"none","__serializedExpressions__":["_TextColor","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(0,0,0)","_Position":"lively.pt(0.0,0.0)"},"81":{"_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(46.7,20.0)","_Padding":"lively.rect(0,3,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"82":{"style":{"__isSmartRef__":true,"id":83},"chunkOwner":{"__isSmartRef__":true,"id":80},"_id":"_6855","storedString":"$world","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"83":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"84":{"morph":{"__isSmartRef__":true,"id":80},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"85":{"_BorderWidth":1,"_BorderRadius":5,"_AppearanceStylingMode":true,"_BorderStylingMode":true,"_Fill":null,"_Opacity":1,"_BorderStyle":"solid","__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(46.7,20.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"86":{"morph":{"__isSmartRef__":true,"id":79},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"87":{"sourceObj":{"__isSmartRef__":true,"id":79},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":79},"targetMethodName":"toggleWorld","varMapping":{"__isSmartRef__":true,"id":88},"autoShowAndHideConnections":[{"__isSmartRef__":true,"id":89},{"__isSmartRef__":true,"id":89}],"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"88":{"source":{"__isSmartRef__":true,"id":79},"target":{"__isSmartRef__":true,"id":79}},"89":{"sourceObj":{"__isSmartRef__":true,"id":79},"sourceAttrName":"owners","targetObj":{"__isSmartRef__":true,"id":90},"targetMethodName":"showOrHide","varMapping":{"__isSmartRef__":true,"id":127},"converterString":"function (owners) { return !!this.sourceObj.world(); }","__LivelyClassName__":"lively.morphic.OwnersConnection","__SourceModuleName__":"Global.lively.bindings.GeometryBindings"},"90":{"submorphs":[{"__isSmartRef__":true,"id":91}],"scripts":[],"shape":{"__isSmartRef__":true,"id":98},"_ClipMode":"visible","derivationIds":[],"id":"761592A9-56BC-41DC-9CB3-986E02414F4D","droppingEnabled":false,"halosEnabled":true,"fromMorph":{"__isSmartRef__":true,"id":79},"toMorph":{"__isSmartRef__":true,"id":79},"updatePosition":true,"controlPoints":[{"__isSmartRef__":true,"id":101},{"__isSmartRef__":true,"id":102}],"owner":null,"eventHandler":{"__isSmartRef__":true,"id":103},"realignConnections":[{"__isSmartRef__":true,"id":104},{"__isSmartRef__":true,"id":104}],"con":{"__isSmartRef__":true,"id":87},"showsMorphMenu":true,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":106},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"91":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":92},"_ClipMode":"visible","derivationIds":[],"id":"7BB52D07-630C-473E-A21C-FD85E016D9B5","droppingEnabled":true,"halosEnabled":true,"__serializedExpressions__":["_Position"],"owner":{"__isSmartRef__":true,"id":90},"eventHandler":{"__isSmartRef__":true,"id":97},"_Rotation":0,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(393.5,94.1)"},"92":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":93},{"__isSmartRef__":true,"id":94},{"__isSmartRef__":true,"id":95},{"__isSmartRef__":true,"id":96}],"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"_BorderWidth":0,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Position":"lively.pt(-12.0,-6.0)","_Extent":"lively.pt(17.0,13.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,0)"},"93":{"isAbsolute":true,"x":-11,"y":-5,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"94":{"isAbsolute":true,"x":-11,"y":7,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"95":{"isAbsolute":true,"x":5,"y":1,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"96":{"isAbsolute":true,"x":-11,"y":-5,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"97":{"morph":{"__isSmartRef__":true,"id":91},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"98":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":99},{"__isSmartRef__":true,"id":100}],"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"_BorderWidth":1,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Position":"lively.pt(392.5,93.1)","_Extent":"lively.pt(1.0,1.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"99":{"isAbsolute":true,"x":393.5175,"y":94.145,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"100":{"isAbsolute":true,"x":393.5175,"y":94.145,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"101":{"morph":{"__isSmartRef__":true,"id":90},"index":0,"connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"102":{"morph":{"__isSmartRef__":true,"id":90},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":91},"markerDirection":"prev","__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"103":{"morph":{"__isSmartRef__":true,"id":90},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"104":{"sourceObj":{"__isSmartRef__":true,"id":79},"sourceAttrName":"globalTransform","targetObj":{"__isSmartRef__":true,"id":90},"targetMethodName":"realignConnection","varMapping":{"__isSmartRef__":true,"id":105},"__LivelyClassName__":"lively.morphic.GeometryTransformConnection","__SourceModuleName__":"Global.lively.bindings.GeometryBindings"},"105":{"source":{"__isSmartRef__":true,"id":79},"target":{"__isSmartRef__":true,"id":90}},"106":{"show":{"__isSmartRef__":true,"id":107},"hide":{"__isSmartRef__":true,"id":114},"morphMenuItems":{"__isSmartRef__":true,"id":117},"showOrHide":{"__isSmartRef__":true,"id":124}},"107":{"varMapping":{"__isSmartRef__":true,"id":108},"source":"function show() {\n            var from = this.fromMorph, to = this.toMorph,\n                world = from.world() || to.world(),\n                cp1 = this.getControlPoints().first(),\n                startMagnet = from.getMagnetForPos(\n                    to.world() ? to.worldPoint(to.innerBounds().center()) : null),\n                cp2 = this.getControlPoints().last(),\n                endMagnet = to.getMagnetForPos(\n                    from.world() ? from.worldPoint(from.innerBounds().center()) : null);\n            if (world) world.addMorphFront(this);\n\n            if (!startMagnet || !endMagnet) {\n                alert(\"Connection Problem: no magnet found\");\n                this.hide();\n                return;\n            }\n            cp1.setConnectedMagnet(startMagnet);\n            cp2.setConnectedMagnet(endMagnet);\n\n            if (this.updatePosition) {\n                if (this.realignConnections) this.realignConnections.invoke('disconnect');\n                this.realignConnections = [\n                    lively.bindings.connect(from, 'globalTransform', this, 'realignConnection'),\n                    lively.bindings.connect(to, 'globalTransform', this, 'realignConnection')]\n            }\n        }","funcProperties":{"__isSmartRef__":true,"id":113},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"108":{"this":{"__isSmartRef__":true,"id":90},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":109}},"109":{"$super":{"__isSmartRef__":true,"id":110}},"110":{"varMapping":{"__isSmartRef__":true,"id":111},"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":112},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"111":{"obj":{"__isSmartRef__":true,"id":90},"name":"show"},"112":{},"113":{},"114":{"varMapping":{"__isSmartRef__":true,"id":115},"source":"function hide() {\n            this.disconnectFromMagnets();\n            if (this.realignConnections) this.realignConnections.invoke('disconnect');\n            this.remove();\n        }","funcProperties":{"__isSmartRef__":true,"id":116},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"115":{"this":{"__isSmartRef__":true,"id":90}},"116":{},"117":{"varMapping":{"__isSmartRef__":true,"id":118},"source":"function morphMenuItems() {\n            var visualConnector = this, con = this.con, world = $world;\n            var items = [\n                ['Edit converter', function() {\n                    var window = lively.bindings.editConnection(con);\n                    window.align(window.bounds().topCenter(),\n                    visualConnector.bounds().bottomCenter())\n                }],\n                ['Inspect value', function() {\n                    lively.morphic.inspect(con.getSourceValue());\n                }],\n                ['Hide', function() {\n                    visualConnector.hidePermanently();\n                }],\n                ['Disconnect', function() {\n                    alertOK('Disconnected ' + visualConnector.con);\n                    visualConnector.con.visualDisconnect();\n                }],\n                ['Cancel', function() {}]\n            ];\n            return items;\n        }","funcProperties":{"__isSmartRef__":true,"id":123},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"118":{"this":{"__isSmartRef__":true,"id":90},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":119}},"119":{"$super":{"__isSmartRef__":true,"id":120}},"120":{"varMapping":{"__isSmartRef__":true,"id":121},"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":122},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"121":{"obj":{"__isSmartRef__":true,"id":90},"name":"morphMenuItems"},"122":{},"123":{},"124":{"varMapping":{"__isSmartRef__":true,"id":125},"source":"function showOrHide(bool) {\n            bool ? this.show() : this.hide();\n        }","funcProperties":{"__isSmartRef__":true,"id":126},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"125":{"this":{"__isSmartRef__":true,"id":90}},"126":{},"127":{"source":{"__isSmartRef__":true,"id":79},"target":{"__isSmartRef__":true,"id":90}},"128":{"partName":"Button","requiredModules":[],"partsSpaceName":"PartsBin/Inputs","comment":"A simple button that calls a method #doAction when pressed.","changes":[{"__isSmartRef__":true,"id":129},{"__isSmartRef__":true,"id":130},{"__isSmartRef__":true,"id":131},{"__isSmartRef__":true,"id":132},{"__isSmartRef__":true,"id":133},{"__isSmartRef__":true,"id":134},{"__isSmartRef__":true,"id":135}],"migrationLevel":7,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 23 2013 23:21:11 GMT-0700 (PDT)\")"},"129":{"author":null,"message":"no comment","id":"F8B70225-5143-4A51-ABB4-344B488B3811","__serializedExpressions__":["date"],"date":"new Date(\"Tue Dec 11 2012 13:15:42 GMT-0800 (PST)\")"},"130":{"author":"robertkrahn","message":"no comment","id":"9B8B6BE4-4519-4A6C-8F47-70DE61BBB0FB","__serializedExpressions__":["date"],"date":"new Date(\"Tue Dec 11 2012 13:53:16 GMT-0800 (PST)\")"},"131":{"author":"robertkrahn","message":"test","id":"ACA617B4-0416-4E3C-9F4D-171A40F44F0F","__serializedExpressions__":["date"],"date":"new Date(\"Tue Apr 30 2013 20:34:25 GMT-0700 (PDT)\")"},"132":{"author":"robertkrahn","message":"no comment","id":"811BDE87-D8DD-48BB-97B2-7A3C3F3FAE32","__serializedExpressions__":["date"],"date":"new Date(\"Tue Apr 30 2013 20:35:59 GMT-0700 (PDT)\")"},"133":{"author":"robertkrahn","message":"no comment","id":"BB2EA501-D9AF-414B-A035-E1487DA6F0FD","__serializedExpressions__":["date"],"date":"new Date(\"Tue Apr 30 2013 20:36:30 GMT-0700 (PDT)\")"},"134":{"author":"Dan","message":"no comment","id":"A594459F-DA9B-49DD-A105-547B3F613CC5","__serializedExpressions__":["date"],"date":"new Date(\"Mon Jun 17 2013 10:22:38 GMT-0700 (PDT)\")"},"135":{"author":"Dan","message":"no comment","id":"CFEC4071-14FF-4AEB-A399-197884CD18BF","__serializedExpressions__":["date"],"date":"new Date(\"Mon Jun 17 2013 10:24:50 GMT-0700 (PDT)\")"},"136":{"pinName":"fire","modality":"output","type":"Boolean","accessor":"fire","location":1.5},"137":{"adjustForNewBounds":true,"resizeWidth":true,"scaleHorizontal":true},"138":{"morph":{"__isSmartRef__":true,"id":79},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.0)"},"139":{"morph":{"__isSmartRef__":true,"id":79},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.0)"},"140":{"morph":{"__isSmartRef__":true,"id":79},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.0)"},"141":{"morph":{"__isSmartRef__":true,"id":79},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,0.5)"},"142":{"morph":{"__isSmartRef__":true,"id":79},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(1.0,1.0)"},"143":{"morph":{"__isSmartRef__":true,"id":79},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,1.0)"},"144":{"morph":{"__isSmartRef__":true,"id":79},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,1.0)"},"145":{"morph":{"__isSmartRef__":true,"id":79},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.0,0.5)"},"146":{"morph":{"__isSmartRef__":true,"id":79},"__serializedExpressions__":["position"],"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.RelativeMagnet","__SourceModuleName__":"Global.lively.morphic.Connectors","position":"lively.pt(0.5,0.5)"},"147":{"toggleWorld":{"__isSmartRef__":true,"id":148}},"148":{"varMapping":{"__isSmartRef__":true,"id":149},"source":"function toggleWorld() {\n    this.owner.toggleConnectionsOf($world);\n}","funcProperties":{"__isSmartRef__":true,"id":150},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"149":{"this":{"__isSmartRef__":true,"id":79}},"150":{"__serializedExpressions__":["timestamp"],"user":"larswassermann","tags":[],"timestamp":"new Date(\"Mon Dec 30 2013 20:52:47 GMT-0800 (PST)\")"},"151":{"_BorderWidth":1,"_ClipMode":"visible","_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(369.0,36.3)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"152":{"partsSpaceName":"PartsBin/Fun","comment":"A plain simple rectangle","migrationLevel":8,"partName":"VisualizingConnections","changes":[{"__isSmartRef__":true,"id":153},{"__isSmartRef__":true,"id":154},{"__isSmartRef__":true,"id":155},{"__isSmartRef__":true,"id":156},{"__isSmartRef__":true,"id":157},{"__isSmartRef__":true,"id":158},{"__isSmartRef__":true,"id":159},{"__isSmartRef__":true,"id":160},{"__isSmartRef__":true,"id":161},{"__isSmartRef__":true,"id":162},{"__isSmartRef__":true,"id":163},{"__isSmartRef__":true,"id":164},{"__isSmartRef__":true,"id":165},{"__isSmartRef__":true,"id":166},{"__isSmartRef__":true,"id":167},{"__isSmartRef__":true,"id":168},{"__isSmartRef__":true,"id":169}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Nov 05 2013 09:48:15 GMT-0800 (PST)\")"},"153":{"author":"robertkrahn","message":"no comment","id":"FBBB9C99-B61C-4D5F-8750-6E2987DF0C9C","__serializedExpressions__":["date"],"date":"new Date(\"Thu Jun 20 2013 15:16:24 GMT-0700 (PDT)\")"},"154":{"author":"robertkrahn","message":"no comment","id":"67FD74CD-7AE4-4050-ADC7-4DF73804258D","__serializedExpressions__":["date"],"date":"new Date(\"Thu May 30 2013 00:18:06 GMT-0700 (PDT)\")"},"155":{"author":"jenslincke","message":"no comment","id":"AEB2F41B-2C88-4BBA-8875-93CD17CBA1C8","__serializedExpressions__":["date"],"date":"new Date(\"Wed Jan 23 2013 03:57:18 GMT-0800 (PST)\")"},"156":{"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23","__serializedExpressions__":["date"],"date":"new Date(\"Thu May 03 2012 06:51:36 GMT-0700 (PDT)\")"},"157":{"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC","__serializedExpressions__":["date"],"date":"new Date(\"Thu May 03 2012 06:51:30 GMT-0700 (PDT)\")"},"158":{"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 14 2012 02:53:45 GMT-0700 (PDT)\")"},"159":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"160":{"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 14 2012 02:42:26 GMT-0700 (PDT)\")"},"161":{"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350","__serializedExpressions__":["date"],"date":"new Date(\"Mon Apr 09 2012 04:42:07 GMT-0700 (PDT)\")"},"162":{"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8","__serializedExpressions__":["date"],"date":"new Date(\"Mon Jun 18 2012 10:35:08 GMT-0700 (PDT)\")"},"163":{"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205","__serializedExpressions__":["date"],"date":"new Date(\"Thu Nov 22 2012 01:35:51 GMT-0800 (PST)\")"},"164":{"author":"jenslincke","message":"no comment","id":"A4B86A7E-A398-4C29-BEE0-4AA045ABABD2","__serializedExpressions__":["date"],"date":"new Date(\"Fri Jan 18 2013 07:42:31 GMT-0800 (PST)\")"},"165":{"author":"jenslincke","message":"added legend","id":"7ADA3049-56C1-4D32-874B-F664A79DDB20","__serializedExpressions__":["date"],"date":"new Date(\"Fri Jan 18 2013 07:47:05 GMT-0800 (PST)\")"},"166":{"author":"SAPLivelyScreen","message":"no comment","id":"EF145198-0649-41BD-A92E-521D98FEC49D","__serializedExpressions__":["date"],"date":"new Date(\"Wed May 29 2013 15:36:50 GMT-0700 (PDT)\")"},"167":{"author":"SAPLivelyScreen","message":"no comment","id":"7A44D8CA-6D5F-42A3-A4B4-4D7F51EECA52","__serializedExpressions__":["date"],"date":"new Date(\"Tue Jun 18 2013 11:49:27 GMT-0700 (PDT)\")"},"168":{"author":"robertkrahn","message":"no comment","id":"A452871F-4EB9-45D1-94B8-6065CBA7B8FD","__serializedExpressions__":["date"],"date":"new Date(\"Mon Jul 29 2013 23:20:51 GMT-0700 (PDT)\")"},"169":{"__serializedExpressions__":["date"],"author":"larswassermann","message":"no comment","id":"445C2DEE-44EF-4F59-AB96-CC6503BA00ED","date":"new Date(\"Mon Dec 30 2013 20:57:32 GMT-0800 (PST)\")"},"170":{"morph":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"171":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":172}},"172":{"test01IsMorph":{"__isSmartRef__":true,"id":173}},"173":{"varMapping":{"__isSmartRef__":true,"id":174},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":175},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"174":{"this":{"__isSmartRef__":true,"id":171}},"175":{},"176":{"layouter":{"__isSmartRef__":true,"id":177},"adjustForNewBounds":true,"resizeWidth":true,"__serializedExpressions__":["extentWithoutPlaceholder"],"extentWithoutPlaceholder":"lively.pt(523.0,40.0)"},"177":{"borderSize":8.145,"defaultBorderSize":10,"spacing":3.18,"defaultSpacing":15,"container":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.Layout.TightHorizontalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"178":{"showConnectionsOf":{"__isSmartRef__":true,"id":179},"hideConnectionsOf":{"__isSmartRef__":true,"id":182},"toggleConnectionsOf":{"__isSmartRef__":true,"id":185},"hasVisibleConnection":{"__isSmartRef__":true,"id":188},"<lively.morphic.Box#2EA3F... - Rectangle2>":{"__isSmartRef__":true,"id":191}},"179":{"varMapping":{"__isSmartRef__":true,"id":180},"source":"function showConnectionsOf(aMorph) {\n    if(!aMorph.isMorph) return;\n    aMorph.attributeConnections && aMorph.attributeConnections.forEach(function(con) {\n        if(!con.getVisualConnector() && con.sourceObj.isMorph && con.targetObj.isMorph){\n            Global.lively.bindings.showConnection(con);\n        }\n    });\n    aMorph.submorphs.forEach(function(ea) { this.showConnectionsOf(ea) }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":181},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"180":{"this":{"__isSmartRef__":true,"id":0}},"181":{"__serializedExpressions__":["timestamp"],"user":"larswassermann","tags":[],"timestamp":"new Date(\"Mon Dec 30 2013 20:55:25 GMT-0800 (PST)\")"},"182":{"varMapping":{"__isSmartRef__":true,"id":183},"source":"function hideConnectionsOf(aMorph) {\n    if(!aMorph.isMorph) return;\n    aMorph.attributeConnections && aMorph.attributeConnections.forEach(function(con) {\n        if(con.getVisualConnector()){\n            con.getVisualConnector().hidePermanently();\n        }\n    });\n    aMorph.submorphs.forEach(function(ea) { this.hideConnectionsOf(ea) }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":184},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"183":{"this":{"__isSmartRef__":true,"id":0}},"184":{"__serializedExpressions__":["timestamp"],"user":"larswassermann","tags":[],"timestamp":"new Date(\"Mon Dec 30 2013 20:55:19 GMT-0800 (PST)\")"},"185":{"varMapping":{"__isSmartRef__":true,"id":186},"source":"function toggleConnectionsOf(aMorph) {\n    if (this.hasVisibleConnection(aMorph)){\n        this.hideConnectionsOf(aMorph);\n    } else {\n        this.showConnectionsOf(aMorph);\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":187},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"186":{"this":{"__isSmartRef__":true,"id":0}},"187":{"__serializedExpressions__":["timestamp"],"user":"larswassermann","tags":[],"timestamp":"new Date(\"Mon Dec 30 2013 20:55:30 GMT-0800 (PST)\")"},"188":{"varMapping":{"__isSmartRef__":true,"id":189},"source":"function hasVisibleConnection(aMorph) {\n    if(!aMorph.isMorph) return false;\n    if (aMorph.attributeConnections \n            && aMorph.attributeConnections.any(function(con) { \n                return !!con.getVisualConnector(); })\n    ) \n        return true;\n    else\n        return aMorph.submorphs.any(function(ea) { \n            return this.hasVisibleConnection(ea) }, this)\n}","funcProperties":{"__isSmartRef__":true,"id":190},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"189":{"this":{"__isSmartRef__":true,"id":0}},"190":{"__serializedExpressions__":["timestamp"],"user":"larswassermann","tags":[],"timestamp":"new Date(\"Mon Dec 30 2013 20:51:41 GMT-0800 (PST)\")"},"191":{"varMapping":{"__isSmartRef__":true,"id":192},"source":"function hasVisibleConnection(aMorph) {\n    if(!aMorph.isMorph) return false;\n    aMorph.attributeConnections && aMorph.attributeConnections.forEach(function(con) {\n        if(con.getVisualConnector()){\n            return true\n        }\n    });\n    return aMorph.submorphs.any(function(ea) { \n        return this.hasVisibleConnection(ea) })\n}","funcProperties":{"__isSmartRef__":true,"id":193},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"192":{"this":{"__isSmartRef__":true,"id":0}},"193":{"tags":[]},"isSimplifiedRegistry":true}}