{"id":0,"registry":{"0":{"submorphs":[{"__isSmartRef__":true,"id":1},{"__isSmartRef__":true,"id":240},{"__isSmartRef__":true,"id":265},{"__isSmartRef__":true,"id":313},{"__isSmartRef__":true,"id":338}],"scripts":[],"shape":{"__isSmartRef__":true,"id":363},"eventHandler":{"__isSmartRef__":true,"id":364},"_ClipMode":"visible","derivationIds":["E6115EB8-474F-41D7-B5C2-14508CE8E7E7"],"id":"C3C31106-D7B3-47B9-9187-411B3F545047","droppingEnabled":false,"halosEnabled":true,"draggingEnabled":true,"layout":{"__isSmartRef__":true,"id":365},"LK2":true,"targetMorph":{"__isSmartRef__":true,"id":1},"reframeHandle":{"__isSmartRef__":true,"id":338},"bottomReframeHandle":{"__isSmartRef__":true,"id":313},"rightReframeHandle":{"__isSmartRef__":true,"id":240},"titleBar":{"__isSmartRef__":true,"id":265},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":null,"expandedExtent":null,"ignoreEventsOnExpand":false,"_PreviousBorderWidth":0,"partsBinMetaInfo":{"__isSmartRef__":true,"id":366},"name":"Simulation","highlighted":false,"isBeingDragged":false,"cameForward":false,"showsHalos":false,"__serializedExpressions__":["_Position","contentOffset","prevDragPos"],"moved":true,"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Window","__SourceModuleName__":"Global.lively.morphic.Widgets","withoutLayers":["Global.lively.morphic.GrabbingLayer"],"_Position":"lively.pt(0.0,0.0)","contentOffset":"lively.pt(4.0,22.0)","prevDragPos":"lively.pt(477.0,29.0)"},"1":{"submorphs":[{"__isSmartRef__":true,"id":2},{"__isSmartRef__":true,"id":78}],"scripts":[],"id":"C31064EC-8E71-415C-BD44-98C76FBB16BE","shape":{"__isSmartRef__":true,"id":231},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"Rectangle","partsBinMetaInfo":{"__isSmartRef__":true,"id":14},"eventHandler":{"__isSmartRef__":true,"id":232},"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","533120F2-9387-48C9-AD6D-F717E0A2CBC3"],"partTests":{"__isSmartRef__":true,"id":233},"_ClipMode":"visible","moved":true,"owner":{"__isSmartRef__":true,"id":0},"layout":{"__isSmartRef__":true,"id":238},"isInLayoutCycle":false,"isCopyMorphRef":true,"morphRefId":3,"__serializedExpressions__":["_Position"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(4.0,22.0)"},"2":{"submorphs":[{"__isSmartRef__":true,"id":3},{"__isSmartRef__":true,"id":6},{"__isSmartRef__":true,"id":9}],"scripts":[{"__isSmartRef__":true,"id":12}],"id":"1BF9DC95-51B0-429C-9773-2B1C4FC72B24","shape":{"__isSmartRef__":true,"id":13},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"Simulation","partsBinMetaInfo":{"__isSmartRef__":true,"id":14},"eventHandler":{"__isSmartRef__":true,"id":42},"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","D4208963-6058-4BB6-A6C7-164A54D01977"],"partTests":{"__isSmartRef__":true,"id":43},"_ClipMode":"visible","moved":true,"owner":{"__isSmartRef__":true,"id":1},"isBeingDragged":false,"layout":{"__isSmartRef__":true,"id":48},"isCopyMorphRef":true,"morphRefId":1,"x":315,"y":188,"g":0.5026,"__serializedExpressions__":["_Position"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":49},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(3.1,3.1)"},"3":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4},"eventHandler":{"__isSmartRef__":true,"id":5},"_ClipMode":"visible","derivationIds":[],"id":"C11CD763-F1DC-498B-9E6B-8E068DDA0A25","droppingEnabled":true,"halosEnabled":true,"__serializedExpressions__":["_Position","v","p"],"owner":{"__isSmartRef__":true,"id":2},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(507.0,241.8)","v":"lively.pt(0.0,0.0)","p":"lively.pt(507.0,241.8)"},"4":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"_BorderWidth":1,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(37.0,28.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(111,155,203)"},"5":{"morph":{"__isSmartRef__":true,"id":3},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7},"eventHandler":{"__isSmartRef__":true,"id":8},"_ClipMode":"visible","derivationIds":[],"id":"8EAC10CD-95D4-4B8C-B0E9-4CE78821ED63","droppingEnabled":true,"halosEnabled":true,"__serializedExpressions__":["_Position","v","p"],"owner":{"__isSmartRef__":true,"id":2},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(169.0,230.8)","v":"lively.pt(0.0,1.0)","p":"lively.pt(169.0,230.8)"},"7":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"_BorderWidth":1,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(21.0,39.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(166,168,189)"},"8":{"morph":{"__isSmartRef__":true,"id":6},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":10},"eventHandler":{"__isSmartRef__":true,"id":11},"_ClipMode":"visible","derivationIds":[],"id":"675F39D8-3130-40D9-8C07-A4B14BB677D2","droppingEnabled":true,"halosEnabled":true,"__serializedExpressions__":["_Position","v","p"],"owner":{"__isSmartRef__":true,"id":2},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(97.0,244.8)","v":"lively.pt(0.0,1.0)","p":"lively.pt(97.0,244.8)"},"10":{"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"_BorderWidth":1,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(35.0,25.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(6,240,88)"},"11":{"morph":{"__isSmartRef__":true,"id":9},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12":{"target":{"__isSmartRef__":true,"id":2},"selector":"step","args":[],"stopped":false,"tickTime":50,"suspended":false,"__LivelyClassName__":"lively.morphic.TargetScript","__SourceModuleName__":"Global.lively.morphic.Core"},"13":{"_BorderWidth":2.332,"_ClipMode":"visible","_BorderRadius":4.07,"_Opacity":1,"_BorderStyle":"dashed","_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(667.8,269.8)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"14":{"partsSpaceName":"PartsBin/Demos","comment":"A very simple physics simulation workbench for experimentation.","migrationLevel":4,"partName":"Simulation","changes":[{"__isSmartRef__":true,"id":15},{"__isSmartRef__":true,"id":17},{"__isSmartRef__":true,"id":19},{"__isSmartRef__":true,"id":21},{"__isSmartRef__":true,"id":23},{"__isSmartRef__":true,"id":25},{"__isSmartRef__":true,"id":27},{"__isSmartRef__":true,"id":29},{"__isSmartRef__":true,"id":31},{"__isSmartRef__":true,"id":33},{"__isSmartRef__":true,"id":35},{"__isSmartRef__":true,"id":37},{"__isSmartRef__":true,"id":39}],"lastModifiedDate":{"__isSmartRef__":true,"id":41},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"15":{"date":{"__isSmartRef__":true,"id":16},"author":"jenslincke","message":"added legend","id":"7ADA3049-56C1-4D32-874B-F664A79DDB20"},"16":{"isSerializedDate":true,"string":"Fri Jan 18 2013 07:47:05 GMT-0800 (PST)"},"17":{"date":{"__isSmartRef__":true,"id":18},"author":"jenslincke","message":"no comment","id":"A4B86A7E-A398-4C29-BEE0-4AA045ABABD2"},"18":{"isSerializedDate":true,"string":"Fri Jan 18 2013 07:42:31 GMT-0800 (PST)"},"19":{"date":{"__isSmartRef__":true,"id":20},"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205"},"20":{"isSerializedDate":true,"string":"Thu Nov 22 2012 01:35:51 GMT-0800 (PST)"},"21":{"date":{"__isSmartRef__":true,"id":22},"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8"},"22":{"isSerializedDate":true,"string":"Mon Jun 18 2012 10:35:08 GMT-0700 (PDT)"},"23":{"date":{"__isSmartRef__":true,"id":24},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"24":{"isSerializedDate":true,"string":"Mon Apr 09 2012 04:42:07 GMT-0700 (PDT)"},"25":{"date":{"__isSmartRef__":true,"id":26},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"26":{"isSerializedDate":true,"string":"Wed Mar 14 2012 02:42:26 GMT-0700 (PDT)"},"27":{"date":{"__isSmartRef__":true,"id":28},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"28":{"isSerializedDate":true,"string":"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)"},"29":{"date":{"__isSmartRef__":true,"id":30},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"30":{"isSerializedDate":true,"string":"Wed Mar 14 2012 02:53:45 GMT-0700 (PDT)"},"31":{"date":{"__isSmartRef__":true,"id":32},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"32":{"isSerializedDate":true,"string":"Thu May 03 2012 06:51:30 GMT-0700 (PDT)"},"33":{"date":{"__isSmartRef__":true,"id":34},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"34":{"isSerializedDate":true,"string":"Thu May 03 2012 06:51:36 GMT-0700 (PDT)"},"35":{"date":{"__isSmartRef__":true,"id":36},"author":"jenslincke","message":"no comment","id":"AEB2F41B-2C88-4BBA-8875-93CD17CBA1C8"},"36":{"isSerializedDate":true,"string":"Wed Jan 23 2013 03:57:18 GMT-0800 (PST)"},"37":{"date":{"__isSmartRef__":true,"id":38},"author":"cschuster","message":"initial commit","id":"1B6565D8-D94F-4C72-A9AF-2319B5954102"},"38":{"isSerializedDate":true,"string":"Mon Apr 08 2013 02:09:43 GMT-0700 (PDT)"},"39":{"date":{"__isSmartRef__":true,"id":40},"author":"cschuster","message":"initial commit","id":"B3856683-C214-4C81-9D72-4F2C28A30F74"},"40":{"isSerializedDate":true,"string":"Mon Apr 08 2013 02:11:07 GMT-0700 (PDT)"},"41":{"isSerializedDate":true,"string":"Wed Mar 06 2013 16:25:14 GMT-0800 (PST)"},"42":{"morph":{"__isSmartRef__":true,"id":2},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"43":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":44}},"44":{"test01IsMorph":{"__isSmartRef__":true,"id":45}},"45":{"varMapping":{"__isSmartRef__":true,"id":46},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":47},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"46":{"this":{"__isSmartRef__":true,"id":43}},"47":{},"48":{"resizeWidth":true,"resizeHeight":true},"49":{"updateSimulation":{"__isSmartRef__":true,"id":50},"step":{"__isSmartRef__":true,"id":54},"reset":{"__isSmartRef__":true,"id":58},"addExampleMorphs":{"__isSmartRef__":true,"id":62},"start":{"__isSmartRef__":true,"id":66},"onrestore":{"__isSmartRef__":true,"id":70}},"50":{"varMapping":{"__isSmartRef__":true,"id":51},"source":"function updateSimulation(str) {\n    var lines = Strings.lines(str);\n    lines.shift(); lines.pop();\n    this.next = new Function('obj', 'sim', lines.join(\"\\n\"));\n}","funcProperties":{"__isSmartRef__":true,"id":52},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"51":{"this":{"__isSmartRef__":true,"id":2}},"52":{"timestamp":{"__isSmartRef__":true,"id":53},"user":"cschuster","tags":[]},"53":{"isSerializedDate":true,"string":"Mon Apr 08 2013 02:03:50 GMT-0700 (PDT)"},"54":{"varMapping":{"__isSmartRef__":true,"id":55},"source":"function step() {\n    var newVals = this.submorphs.map(function(obj) {\n        var force = this.next(obj, this);\n        var vals = {\n            v: obj.v.addPt(force),\n            p: obj.p.addPt(obj.v)\n        };\n        var bounds = lively.pt(0, 0).extent(this.getExtent().subPt(obj.getExtent()));\n        if (!bounds.containsPoint(vals.p)) {\n            vals.p = bounds.constrainPt(vals.p);\n            vals.v = vals.v.fastR() > 4 ? vals.v.scaleBy(-.4) : lively.pt(0,0);\n        }\n        return vals;\n    }, this);\n    for (var i = 0; i < this.submorphs.length; i++) {\n        var m = this.submorphs[i], n = newVals[i];\n        m.setPosition(n.p);\n        m.p = n.p;\n        m.v = n.v;\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":56},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"55":{"this":{"__isSmartRef__":true,"id":2}},"56":{"timestamp":{"__isSmartRef__":true,"id":57},"user":"cschuster","tags":[]},"57":{"isSerializedDate":true,"string":"Mon Apr 08 2013 01:56:22 GMT-0700 (PDT)"},"58":{"varMapping":{"__isSmartRef__":true,"id":59},"source":"function reset() {\n    this.next = function nextForce(obj) {\n    // returns the force to be applied on the object\n    return lively.pt(0, 0.98);\n    // change the constant, e.g. negate it, and save with Cmd+S\n    // create a slider and connect it to the gravity constant!\n    // use other types of force e.g.\n    //     return this.getCenter().subPt(obj.p).normalized();\n}\n    var ss = this.get(\"SimulationScript\")\n    if (ss) ss.textString = this.next.toString();\n    this.removeAllMorphs();\n    this.addExampleMorphs(3);\n}","funcProperties":{"__isSmartRef__":true,"id":60},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"59":{"this":{"__isSmartRef__":true,"id":2}},"60":{"timestamp":{"__isSmartRef__":true,"id":61},"user":"cschuster","tags":[]},"61":{"isSerializedDate":true,"string":"Mon Apr 08 2013 02:13:01 GMT-0700 (PDT)"},"62":{"varMapping":{"__isSmartRef__":true,"id":63},"source":"function addExampleMorphs(number) {\n    for (var i = 0; i < number; i++) {\n        var extent = lively.Point.random(lively.pt(20, 20)).addXY(20, 20);\n        var maxPos = this.getExtent().subPt(extent);\n        var pos = lively.Point.random(maxPos);\n        var morph = new lively.morphic.Box(pos.extent(extent));\n        morph.setBorderWidth(1);\n        morph.setBorderColor(Color.black);\n        morph.setFill(Color.random());\n        morph.v = lively.pt(0, 0);\n        morph.p = pos;\n        this.addMorph(morph);\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":64},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"63":{"this":{"__isSmartRef__":true,"id":2}},"64":{"timestamp":{"__isSmartRef__":true,"id":65},"user":"cschuster","tags":[]},"65":{"isSerializedDate":true,"string":"Mon Apr 08 2013 00:26:27 GMT-0700 (PDT)"},"66":{"varMapping":{"__isSmartRef__":true,"id":67},"source":"function start() {\n    this.startStepping(50, 'step');\n}","funcProperties":{"__isSmartRef__":true,"id":68},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"67":{"this":{"__isSmartRef__":true,"id":2}},"68":{"timestamp":{"__isSmartRef__":true,"id":69},"user":"cschuster","tags":[]},"69":{"isSerializedDate":true,"string":"Sun Apr 07 2013 23:56:55 GMT-0700 (PDT)"},"70":{"varMapping":{"__isSmartRef__":true,"id":71},"source":"function onrestore() {\n    this.reset();\n    this.start();\n}","funcProperties":{"__isSmartRef__":true,"id":76},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"71":{"this":{"__isSmartRef__":true,"id":2},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":72}},"72":{"$super":{"__isSmartRef__":true,"id":73}},"73":{"varMapping":{"__isSmartRef__":true,"id":74},"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":75},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"74":{"obj":{"__isSmartRef__":true,"id":2},"name":"onrestore"},"75":{},"76":{"timestamp":{"__isSmartRef__":true,"id":77},"user":"cschuster","tags":[]},"77":{"isSerializedDate":true,"string":"Mon Apr 08 2013 02:12:43 GMT-0700 (PDT)"},"78":{"submorphs":[{"__isSmartRef__":true,"id":79},{"__isSmartRef__":true,"id":155}],"scripts":[],"id":"D91A8808-B532-4F4A-8754-B6E3E1B4AB7F","shape":{"__isSmartRef__":true,"id":222},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"Rectangle1","partsBinMetaInfo":{"__isSmartRef__":true,"id":14},"eventHandler":{"__isSmartRef__":true,"id":223},"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","FC1A832E-5A30-41A8-A012-7B7BB2A109D4"],"partTests":{"__isSmartRef__":true,"id":224},"_ClipMode":"visible","moved":true,"owner":{"__isSmartRef__":true,"id":1},"layout":{"__isSmartRef__":true,"id":229},"isInLayoutCycle":false,"isBeingDragged":false,"__serializedExpressions__":["_Position"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(3.1,277.0)"},"79":{"submorphs":[],"scripts":[],"id":"9EFF77FD-591B-4802-AE04-ED956F195680","shape":{"__isSmartRef__":true,"id":80},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Droid sans mono, monospace","registeredForMouseEvents":true,"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":10,"name":"SimulationScript","partsBinMetaInfo":{"__isSmartRef__":true,"id":81},"textChunks":[{"__isSmartRef__":true,"id":97},{"__isSmartRef__":true,"id":99},{"__isSmartRef__":true,"id":101},{"__isSmartRef__":true,"id":103},{"__isSmartRef__":true,"id":105},{"__isSmartRef__":true,"id":107},{"__isSmartRef__":true,"id":109},{"__isSmartRef__":true,"id":111},{"__isSmartRef__":true,"id":113},{"__isSmartRef__":true,"id":115},{"__isSmartRef__":true,"id":117},{"__isSmartRef__":true,"id":119},{"__isSmartRef__":true,"id":121},{"__isSmartRef__":true,"id":123},{"__isSmartRef__":true,"id":125},{"__isSmartRef__":true,"id":127},{"__isSmartRef__":true,"id":129},{"__isSmartRef__":true,"id":131},{"__isSmartRef__":true,"id":133},{"__isSmartRef__":true,"id":135},{"__isSmartRef__":true,"id":137},{"__isSmartRef__":true,"id":139},{"__isSmartRef__":true,"id":141},{"__isSmartRef__":true,"id":143},{"__isSmartRef__":true,"id":145},{"__isSmartRef__":true,"id":147}],"charsReplaced":"var force =","lastFindLoc":43,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":149},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","F1D26890-7392-487D-B5DE-97C772B4E79E","F424F863-D7D2-41FE-AC82-690FB772BB74"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":78},"layout":{"__isSmartRef__":true,"id":150},"_WordBreak":"break-all","savedTextString":"function nextForce(obj) {\n    // returns the force to be applied on the object\n    return lively.pt(0, 0.98);\n    // change the constant, e.g. negate it, and save with Cmd+S\n    // create a slider and connect it to the gravity constant!\n    // use other types of force e.g.\n    //     return this.getCenter().subPt(obj.p).normalized();\n}","attributeConnections":[{"__isSmartRef__":true,"id":151},{"__isSmartRef__":true,"id":153}],"doNotSerialize":["$$savedTextString","$$textString","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors","parseErrors"],"doNotCopyProperties":["$$savedTextString","$$textString"],"#startLetters":"enable","syntaxHighlightingWhileTyping":true,"_lastSyntaxHighlightTime":34,"__serializedExpressions__":["_Position","textColor","_Padding"],"textString":"function nextForce(obj) {\n    // returns the force to be applied on the object\n    return lively.pt(0, 0.98);\n    // change the constant, e.g. negate it, and save with Cmd+S\n    // create a slider and connect it to the gravity constant!\n    // use other types of force e.g.\n    //     return this.getCenter().subPt(obj.p).normalized();\n}","_Rotation":0,"_Scale":1,"priorSelectionRange":[109,109],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(4.4,4.4)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)"},"80":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","_BorderRadius":4.44,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(534.5,132.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)","_Fill":"Color.rgb(255,255,255)"},"81":{"partsSpaceName":"PartsBin/Basic","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":82},{"__isSmartRef__":true,"id":84},{"__isSmartRef__":true,"id":86},{"__isSmartRef__":true,"id":88},{"__isSmartRef__":true,"id":90},{"__isSmartRef__":true,"id":92},{"__isSmartRef__":true,"id":94}],"revisionOnLoad":193597,"lastModifiedDate":{"__isSmartRef__":true,"id":96},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"82":{"date":{"__isSmartRef__":true,"id":83},"author":"jenslincke","message":"no comment","id":"A3BA0C1E-7E83-43BF-9EC6-4F4BB3835D62"},"83":{"isSerializedDate":true,"string":"Tue Mar 12 2013 09:31:56 GMT-0700 (PDT)"},"84":{"date":{"__isSmartRef__":true,"id":85},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"85":{"isSerializedDate":true,"string":"Tue May 08 2012 05:18:18 GMT-0700 (PDT)"},"86":{"date":{"__isSmartRef__":true,"id":87},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"87":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:32:09 GMT-0700 (PDT)"},"88":{"date":{"__isSmartRef__":true,"id":89},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"89":{"isSerializedDate":true,"string":"Fri Apr 20 2012 22:31:43 GMT-0700 (PDT)"},"90":{"date":{"__isSmartRef__":true,"id":91},"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"},"91":{"isSerializedDate":true,"string":"Sun Feb 26 2012 21:20:38 GMT-0800 (PST)"},"92":{"date":{"__isSmartRef__":true,"id":93},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"93":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:30:30 GMT-0700 (PDT)"},"94":{"date":{"__isSmartRef__":true,"id":95},"author":"jenslincke","message":"no comment","id":"9E495E1B-6E6D-4A89-9F9E-85AF618DC598"},"95":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:36:22 GMT-0700 (PDT)"},"96":{"isSerializedDate":true,"string":"Tue Mar 12 2013 10:35:33 GMT-0700 (PDT)"},"97":{"style":{"__isSmartRef__":true,"id":98},"chunkOwner":{"__isSmartRef__":true,"id":79},"_id":"_283","storedString":"function","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"98":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,139)"},"99":{"_id":"_284","style":{"__isSmartRef__":true,"id":100},"chunkOwner":{"__isSmartRef__":true,"id":79},"storedString":" nextForce(obj) ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"100":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"101":{"_id":"_285","style":{"__isSmartRef__":true,"id":102},"chunkOwner":{"__isSmartRef__":true,"id":79},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"102":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"103":{"_id":"_286","style":{"__isSmartRef__":true,"id":104},"chunkOwner":{"__isSmartRef__":true,"id":79},"storedString":"\n    ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"104":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"105":{"_id":"_287","style":{"__isSmartRef__":true,"id":106},"chunkOwner":{"__isSmartRef__":true,"id":79},"storedString":"//","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"106":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(128,0,0)"},"107":{"_id":"_288","style":{"__isSmartRef__":true,"id":108},"chunkOwner":{"__isSmartRef__":true,"id":79},"storedString":" returns the force to be applied on the object","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"108":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"109":{"_id":"_289","style":{"__isSmartRef__":true,"id":110},"chunkOwner":{"__isSmartRef__":true,"id":79},"storedString":"\n    ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"110":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"111":{"_id":"_290","style":{"__isSmartRef__":true,"id":112},"chunkOwner":{"__isSmartRef__":true,"id":79},"storedString":"return","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"112":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,128)"},"113":{"_id":"_291","style":{"__isSmartRef__":true,"id":114},"chunkOwner":{"__isSmartRef__":true,"id":79},"storedString":" lively.pt(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"114":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"115":{"_id":"_292","style":{"__isSmartRef__":true,"id":116},"chunkOwner":{"__isSmartRef__":true,"id":79},"storedString":"0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"116":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"117":{"_id":"_293","style":{"__isSmartRef__":true,"id":118},"chunkOwner":{"__isSmartRef__":true,"id":79},"storedString":", ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"118":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"119":{"_id":"_294","style":{"__isSmartRef__":true,"id":120},"chunkOwner":{"__isSmartRef__":true,"id":79},"storedString":"0.98","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"120":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,255)"},"121":{"_id":"_295","style":{"__isSmartRef__":true,"id":122},"chunkOwner":{"__isSmartRef__":true,"id":79},"storedString":");\n    ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"122":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"123":{"_id":"_296","style":{"__isSmartRef__":true,"id":124},"chunkOwner":{"__isSmartRef__":true,"id":79},"storedString":"//","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"124":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(128,0,0)"},"125":{"_id":"_297","style":{"__isSmartRef__":true,"id":126},"chunkOwner":{"__isSmartRef__":true,"id":79},"storedString":" change the constant, e.g. negate it, and save with Cmd+S","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"126":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"127":{"_id":"_298","style":{"__isSmartRef__":true,"id":128},"chunkOwner":{"__isSmartRef__":true,"id":79},"storedString":"\n    ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"128":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"129":{"_id":"_299","style":{"__isSmartRef__":true,"id":130},"chunkOwner":{"__isSmartRef__":true,"id":79},"storedString":"//","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"130":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(128,0,0)"},"131":{"_id":"_300","style":{"__isSmartRef__":true,"id":132},"chunkOwner":{"__isSmartRef__":true,"id":79},"storedString":" create a slider and connect it to the gravity constant!","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"132":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"133":{"_id":"_301","style":{"__isSmartRef__":true,"id":134},"chunkOwner":{"__isSmartRef__":true,"id":79},"storedString":"\n    ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"134":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"135":{"_id":"_302","style":{"__isSmartRef__":true,"id":136},"chunkOwner":{"__isSmartRef__":true,"id":79},"storedString":"//","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"136":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(128,0,0)"},"137":{"_id":"_303","style":{"__isSmartRef__":true,"id":138},"chunkOwner":{"__isSmartRef__":true,"id":79},"storedString":" use other types of force e.g.","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"138":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"139":{"_id":"_304","style":{"__isSmartRef__":true,"id":140},"chunkOwner":{"__isSmartRef__":true,"id":79},"storedString":"\n    ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"140":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"141":{"_id":"_305","style":{"__isSmartRef__":true,"id":142},"chunkOwner":{"__isSmartRef__":true,"id":79},"storedString":"//","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"142":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(128,0,0)"},"143":{"_id":"_306","style":{"__isSmartRef__":true,"id":144},"chunkOwner":{"__isSmartRef__":true,"id":79},"storedString":"     return this.getCenter().subPt(obj.p).normalized();","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"144":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"145":{"_id":"_307","style":{"__isSmartRef__":true,"id":146},"chunkOwner":{"__isSmartRef__":true,"id":79},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"146":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,0,0)"},"147":{"_id":"_308","style":{"__isSmartRef__":true,"id":148},"chunkOwner":{"__isSmartRef__":true,"id":79},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"148":{"__serializedExpressions__":["color"],"backgroundColor":null,"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore","color":"Color.rgb(0,128,0)"},"149":{"morph":{"__isSmartRef__":true,"id":79},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"150":{"resizeWidth":true},"151":{"sourceObj":{"__isSmartRef__":true,"id":79},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":2},"targetMethodName":"updateSimulation","varMapping":{"__isSmartRef__":true,"id":152},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"152":{"source":{"__isSmartRef__":true,"id":79},"target":{"__isSmartRef__":true,"id":2}},"153":{"sourceObj":{"__isSmartRef__":true,"id":79},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":79},"targetMethodName":"highlightSyntaxDebounced","varMapping":{"__isSmartRef__":true,"id":154},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"154":{"source":{"__isSmartRef__":true,"id":79},"target":{"__isSmartRef__":true,"id":79}},"155":{"submorphs":[{"__isSmartRef__":true,"id":156},{"__isSmartRef__":true,"id":179},{"__isSmartRef__":true,"id":196}],"scripts":[],"id":"E5972C05-0E7A-4D25-9B98-5F0B65103BBE","shape":{"__isSmartRef__":true,"id":213},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"Rectangle2","partsBinMetaInfo":{"__isSmartRef__":true,"id":14},"eventHandler":{"__isSmartRef__":true,"id":214},"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","9EBC2DA0-8105-4466-88DB-797B1FDC19A9"],"partTests":{"__isSmartRef__":true,"id":215},"_ClipMode":"visible","moved":true,"owner":{"__isSmartRef__":true,"id":78},"layout":{"__isSmartRef__":true,"id":220},"isInLayoutCycle":false,"__serializedExpressions__":["_Position"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(543.3,4.4)"},"156":{"submorphs":[{"__isSmartRef__":true,"id":157}],"scripts":[],"shape":{"__isSmartRef__":true,"id":162},"eventHandler":{"__isSmartRef__":true,"id":163},"_ClipMode":"visible","derivationIds":["EC7EBB28-54AE-4244-80ED-3E13650F82B7","8BF26D13-00CA-4B7A-B110-E5DB7093D8D0"],"id":"D7EB82F2-EE5B-4AE2-9D2D-45DF28ECBD99","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":157},"_PreviousBorderWidth":1,"isPressed":false,"showsHalos":false,"attributeConnections":[{"__isSmartRef__":true,"id":164},{"__isSmartRef__":true,"id":166}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"name":"Button1","partsBinMetaInfo":{"__isSmartRef__":true,"id":168},"owner":{"__isSmartRef__":true,"id":155},"isCopyMorphRef":true,"morphRefId":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":174},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(10.0,10.0)","distanceToDragEvent":"lively.pt(74.0,7.0)"},"157":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":158},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":159}],"eventHandler":{"__isSmartRef__":true,"id":161},"_ClipMode":"hidden","derivationIds":["7884E73F-0D17-44B3-907F-44A5223F1F3D","32855ADA-F9D0-4214-B3CC-35E2C40DDF75"],"id":"05F971E5-F626-43FC-A7C7-EC3517623D1A","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":156},"isLabel":true,"_Align":"center","eventsAreIgnored":true,"_TextStylingMode":true,"showsHalos":false,"eventsAreDisabled":true,"_PointerEvents":"none","__serializedExpressions__":["_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(0,0,0)"},"158":{"_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(100.0,20.0)","_Padding":"lively.rect(0,3,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"159":{"style":{"__isSmartRef__":true,"id":160},"chunkOwner":{"__isSmartRef__":true,"id":157},"_id":"_4217","storedString":"Reset","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"160":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"161":{"morph":{"__isSmartRef__":true,"id":157},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"162":{"_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(100.0,20.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"163":{"morph":{"__isSmartRef__":true,"id":156},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"164":{"sourceObj":{"__isSmartRef__":true,"id":156},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":156},"targetMethodName":"doAction","varMapping":{"__isSmartRef__":true,"id":165},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"165":{"source":{"__isSmartRef__":true,"id":156},"target":{"__isSmartRef__":true,"id":156}},"166":{"sourceObj":{"__isSmartRef__":true,"id":156},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":2},"targetMethodName":"reset","varMapping":{"__isSmartRef__":true,"id":167},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"167":{"source":{"__isSmartRef__":true,"id":156},"target":{"__isSmartRef__":true,"id":2}},"168":{"partName":"Button","requiredModules":[],"partsSpaceName":"PartsBin/Inputs","comment":"A simple button that calls a method #doAction when pressed.","changes":[{"__isSmartRef__":true,"id":169},{"__isSmartRef__":true,"id":171}],"migrationLevel":4,"lastModifiedDate":{"__isSmartRef__":true,"id":173},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"169":{"date":{"__isSmartRef__":true,"id":170},"author":null,"message":"no comment","id":"F8B70225-5143-4A51-ABB4-344B488B3811"},"170":{"isSerializedDate":true,"string":"Tue Dec 11 2012 13:15:42 GMT-0800 (PST)"},"171":{"date":{"__isSmartRef__":true,"id":172},"author":"robertkrahn","message":"no comment","id":"9B8B6BE4-4519-4A6C-8F47-70DE61BBB0FB"},"172":{"isSerializedDate":true,"string":"Tue Dec 11 2012 13:53:16 GMT-0800 (PST)"},"173":{"isSerializedDate":true,"string":"Wed Mar 06 2013 16:25:14 GMT-0800 (PST)"},"174":{"doAction":{"__isSmartRef__":true,"id":175}},"175":{"varMapping":{"__isSmartRef__":true,"id":176},"source":"function doAction() {\n    \n}","funcProperties":{"__isSmartRef__":true,"id":177},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"176":{"this":{"__isSmartRef__":true,"id":156}},"177":{"timestamp":{"__isSmartRef__":true,"id":178},"user":"undefined","tags":[]},"178":{"isSerializedDate":true,"string":"Tue Dec 11 2012 13:14:29 GMT-0800 (PST)"},"179":{"submorphs":[{"__isSmartRef__":true,"id":180}],"scripts":[],"shape":{"__isSmartRef__":true,"id":185},"eventHandler":{"__isSmartRef__":true,"id":186},"_ClipMode":"visible","derivationIds":["EC7EBB28-54AE-4244-80ED-3E13650F82B7","C96E1D16-78A0-42C1-876B-2014343C689B"],"id":"DFC8AC95-A8BF-45A6-BC44-D99B4B217121","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":180},"_PreviousBorderWidth":1,"isPressed":false,"showsHalos":false,"attributeConnections":[{"__isSmartRef__":true,"id":187},{"__isSmartRef__":true,"id":189}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"name":"Button2","partsBinMetaInfo":{"__isSmartRef__":true,"id":168},"owner":{"__isSmartRef__":true,"id":155},"isCopyMorphRef":true,"morphRefId":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":191},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(10.0,45.0)","distanceToDragEvent":"lively.pt(74.0,7.0)"},"180":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":181},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":182}],"eventHandler":{"__isSmartRef__":true,"id":184},"_ClipMode":"hidden","derivationIds":["7884E73F-0D17-44B3-907F-44A5223F1F3D","C3CD30C9-EA90-4177-9E31-10882D4F14BB"],"id":"04E71FF0-DD06-4BCC-8DAB-965EFDF7D649","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":179},"isLabel":true,"_Align":"center","eventsAreIgnored":true,"_TextStylingMode":true,"showsHalos":false,"eventsAreDisabled":true,"_PointerEvents":"none","__serializedExpressions__":["_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(0,0,0)"},"181":{"_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(100.0,20.0)","_Padding":"lively.rect(0,3,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"182":{"style":{"__isSmartRef__":true,"id":183},"chunkOwner":{"__isSmartRef__":true,"id":180},"_id":"_4358","storedString":"Stop","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"183":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"184":{"morph":{"__isSmartRef__":true,"id":180},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"185":{"_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(100.0,20.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"186":{"morph":{"__isSmartRef__":true,"id":179},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"187":{"sourceObj":{"__isSmartRef__":true,"id":179},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":179},"targetMethodName":"doAction","varMapping":{"__isSmartRef__":true,"id":188},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"188":{"source":{"__isSmartRef__":true,"id":179},"target":{"__isSmartRef__":true,"id":179}},"189":{"sourceObj":{"__isSmartRef__":true,"id":179},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":2},"targetMethodName":"stopStepping","varMapping":{"__isSmartRef__":true,"id":190},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"190":{"source":{"__isSmartRef__":true,"id":179},"target":{"__isSmartRef__":true,"id":2}},"191":{"doAction":{"__isSmartRef__":true,"id":192}},"192":{"varMapping":{"__isSmartRef__":true,"id":193},"source":"function doAction() {\n    \n}","funcProperties":{"__isSmartRef__":true,"id":194},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"193":{"this":{"__isSmartRef__":true,"id":179}},"194":{"timestamp":{"__isSmartRef__":true,"id":195},"user":"undefined","tags":[]},"195":{"isSerializedDate":true,"string":"Tue Dec 11 2012 13:14:29 GMT-0800 (PST)"},"196":{"submorphs":[{"__isSmartRef__":true,"id":197}],"scripts":[],"shape":{"__isSmartRef__":true,"id":202},"eventHandler":{"__isSmartRef__":true,"id":203},"_ClipMode":"visible","derivationIds":["EC7EBB28-54AE-4244-80ED-3E13650F82B7","9F02C145-82BE-40D0-8DAC-5F4293849B61"],"id":"8AA0B82E-0E1B-45CA-BA0E-470A03D0832F","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":197},"_PreviousBorderWidth":1,"isPressed":false,"showsHalos":false,"attributeConnections":[{"__isSmartRef__":true,"id":204},{"__isSmartRef__":true,"id":206}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"name":"Button3","partsBinMetaInfo":{"__isSmartRef__":true,"id":168},"owner":{"__isSmartRef__":true,"id":155},"isCopyMorphRef":true,"morphRefId":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":208},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(10.0,80.0)","distanceToDragEvent":"lively.pt(74.0,7.0)"},"197":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":198},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":199}],"eventHandler":{"__isSmartRef__":true,"id":201},"_ClipMode":"hidden","derivationIds":["7884E73F-0D17-44B3-907F-44A5223F1F3D","8686E8C5-70EB-4DC5-90D3-8EE0D9B57837"],"id":"26092E02-50E2-42E2-A07A-400757F59BB6","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":196},"isLabel":true,"_Align":"center","eventsAreIgnored":true,"_TextStylingMode":true,"showsHalos":false,"eventsAreDisabled":true,"_PointerEvents":"none","__serializedExpressions__":["_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(0,0,0)"},"198":{"_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(100.0,20.0)","_Padding":"lively.rect(0,3,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"199":{"style":{"__isSmartRef__":true,"id":200},"chunkOwner":{"__isSmartRef__":true,"id":197},"_id":"_5385","storedString":"Start","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"200":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"201":{"morph":{"__isSmartRef__":true,"id":197},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"202":{"_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(100.0,20.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"203":{"morph":{"__isSmartRef__":true,"id":196},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"204":{"sourceObj":{"__isSmartRef__":true,"id":196},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":196},"targetMethodName":"doAction","varMapping":{"__isSmartRef__":true,"id":205},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"205":{"source":{"__isSmartRef__":true,"id":196},"target":{"__isSmartRef__":true,"id":196}},"206":{"sourceObj":{"__isSmartRef__":true,"id":196},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":2},"targetMethodName":"start","varMapping":{"__isSmartRef__":true,"id":207},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"207":{"source":{"__isSmartRef__":true,"id":196},"target":{"__isSmartRef__":true,"id":2}},"208":{"doAction":{"__isSmartRef__":true,"id":209}},"209":{"varMapping":{"__isSmartRef__":true,"id":210},"source":"function doAction() {\n    \n}","funcProperties":{"__isSmartRef__":true,"id":211},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"210":{"this":{"__isSmartRef__":true,"id":196}},"211":{"timestamp":{"__isSmartRef__":true,"id":212},"user":"undefined","tags":[]},"212":{"isSerializedDate":true,"string":"Tue Dec 11 2012 13:14:29 GMT-0800 (PST)"},"213":{"_BorderWidth":0,"_ClipMode":"visible","_BorderRadius":5.18,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":true,"_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(120.0,112.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"214":{"morph":{"__isSmartRef__":true,"id":155},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"215":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":216}},"216":{"test01IsMorph":{"__isSmartRef__":true,"id":217}},"217":{"varMapping":{"__isSmartRef__":true,"id":218},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":219},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"218":{"this":{"__isSmartRef__":true,"id":215}},"219":{},"220":{"layouter":{"__isSmartRef__":true,"id":221},"resizeHeight":false,"__serializedExpressions__":["extentWithoutPlaceholder"],"extentWithoutPlaceholder":"lively.pt(120.0,112.0)"},"221":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":10,"spacing":15,"container":{"__isSmartRef__":true,"id":155},"__LivelyClassName__":"lively.morphic.Layout.VerticalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"222":{"_BorderWidth":0,"_ClipMode":"visible","_BorderRadius":4.81,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":true,"_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(667.8,140.9)","_BorderColor":"Color.rgb(118,118,118)","_Fill":"Color.rgb(0,0,204)","_Padding":"lively.rect(0,0,0,0)"},"223":{"morph":{"__isSmartRef__":true,"id":78},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"224":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":225}},"225":{"test01IsMorph":{"__isSmartRef__":true,"id":226}},"226":{"varMapping":{"__isSmartRef__":true,"id":227},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":228},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"227":{"this":{"__isSmartRef__":true,"id":224}},"228":{},"229":{"resizeWidth":true,"layouter":{"__isSmartRef__":true,"id":230},"__serializedExpressions__":["extentWithoutPlaceholder"],"extentWithoutPlaceholder":"lively.pt(669.8,158.9)"},"230":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":4.44,"spacing":4.41,"container":{"__isSmartRef__":true,"id":78},"__LivelyClassName__":"lively.morphic.Layout.HorizontalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"231":{"_BorderWidth":1.1840000000000002,"_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(674.0,421.0)","_BorderColor":"Color.rgb(95,94,95)","_Fill":"Color.rgb(215,215,215)","_Padding":"lively.rect(0,0,0,0)"},"232":{"morph":{"__isSmartRef__":true,"id":1},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"233":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":234}},"234":{"test01IsMorph":{"__isSmartRef__":true,"id":235}},"235":{"varMapping":{"__isSmartRef__":true,"id":236},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":237},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"236":{"this":{"__isSmartRef__":true,"id":233}},"237":{},"238":{"layouter":{"__isSmartRef__":true,"id":239},"resizeWidth":true,"resizeHeight":true,"__serializedExpressions__":["extentWithoutPlaceholder"],"extentWithoutPlaceholder":"lively.pt(676.0,427.0)"},"239":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":3.11,"spacing":4.135,"container":{"__isSmartRef__":true,"id":1},"__LivelyClassName__":"lively.morphic.Layout.VerticalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"240":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":241},"eventHandler":{"__isSmartRef__":true,"id":242},"_ClipMode":"visible","derivationIds":["361C3B11-9A3B-49EF-A8EB-66DE44FA4367"],"id":"E311F92B-7027-4CF3-9121-9D61A1720BD9","droppingEnabled":true,"halosEnabled":true,"_StyleClassNames":["reframe-handle right"],"owner":{"__isSmartRef__":true,"id":0},"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":243},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(680.0,0.0)"},"241":{"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(4.0,440.0)","_Padding":"lively.rect(0,0,0,0)"},"242":{"morph":{"__isSmartRef__":true,"id":240},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"243":{"onDragStart":{"__isSmartRef__":true,"id":244},"onDrag":{"__isSmartRef__":true,"id":251},"onDragEnd":{"__isSmartRef__":true,"id":258}},"244":{"varMapping":{"__isSmartRef__":true,"id":245},"source":"function onDragStart(evt) {\n            this.dragStartPoint = evt.mousePoint;\n            this.originalTargetExtent = this.owner.getExtent();\n        }","funcProperties":{"__isSmartRef__":true,"id":250},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"245":{"this":{"__isSmartRef__":true,"id":240},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":246}},"246":{"$super":{"__isSmartRef__":true,"id":247}},"247":{"varMapping":{"__isSmartRef__":true,"id":248},"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":249},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"248":{"obj":{"__isSmartRef__":true,"id":240},"name":"onDragStart"},"249":{},"250":{},"251":{"varMapping":{"__isSmartRef__":true,"id":252},"source":"function onDrag(evt) {\n            var moveDelta = pt(evt.mousePoint.subPt(this.dragStartPoint).x,0);\n            var newExtent = this.originalTargetExtent.addPt(moveDelta);\n            if (newExtent.x < this.owner.minWidth) newExtent.x = this.owner.minWidth;\n\n            this.owner.setExtent(newExtent);\n            this.align(this.bounds().topRight(), pt(this.owner.getExtent().x,0));\n        }","funcProperties":{"__isSmartRef__":true,"id":257},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"252":{"this":{"__isSmartRef__":true,"id":240},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":253}},"253":{"$super":{"__isSmartRef__":true,"id":254}},"254":{"varMapping":{"__isSmartRef__":true,"id":255},"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":256},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"255":{"obj":{"__isSmartRef__":true,"id":240},"name":"onDrag"},"256":{},"257":{},"258":{"varMapping":{"__isSmartRef__":true,"id":259},"source":"function onDragEnd(evt) {\n            this.dragStartPoint = null;\n            this.originalTargetExtent = null;\n            this.owner.alignReframeHandle();\n            this.owner.alignBottomReframeHandle();\n        }","funcProperties":{"__isSmartRef__":true,"id":264},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"259":{"this":{"__isSmartRef__":true,"id":240},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":260}},"260":{"$super":{"__isSmartRef__":true,"id":261}},"261":{"varMapping":{"__isSmartRef__":true,"id":262},"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":263},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"262":{"obj":{"__isSmartRef__":true,"id":240},"name":"onDragEnd"},"263":{},"264":{},"265":{"submorphs":[{"__isSmartRef__":true,"id":266},{"__isSmartRef__":true,"id":272},{"__isSmartRef__":true,"id":285},{"__isSmartRef__":true,"id":297}],"scripts":[],"shape":{"__isSmartRef__":true,"id":310},"eventHandler":{"__isSmartRef__":true,"id":311},"_ClipMode":"visible","derivationIds":["CDF5E713-D2CC-40C1-8B48-180D802E3C6B"],"id":"D74A0F74-56CF-47E4-9437-C0343168770C","droppingEnabled":false,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":312},"windowMorph":{"__isSmartRef__":true,"id":0},"label":{"__isSmartRef__":true,"id":266},"closeButton":{"__isSmartRef__":true,"id":272},"menuButton":{"__isSmartRef__":true,"id":285},"collapseButton":{"__isSmartRef__":true,"id":297},"_PreviousBorderWidth":0,"owner":{"__isSmartRef__":true,"id":0},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.TitleBar","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(0.0,0.0)"},"266":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":267},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":268}],"eventHandler":{"__isSmartRef__":true,"id":270},"_ClipMode":"hidden","derivationIds":["CE17BC31-8F51-4632-B6C9-9AF925DB9154"],"id":"9E0D9947-1CDE-4578-90D2-2A231413A232","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,"isLabel":true,"layout":{"__isSmartRef__":true,"id":271},"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":265},"_StyleClassNames":["window-title"],"_TextStylingMode":true,"showsHalos":false,"__serializedExpressions__":["_TextColor","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(64,64,64)","_Position":"lively.pt(20.0,3.0)"},"267":{"_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(625.0,18.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"268":{"style":{"__isSmartRef__":true,"id":269},"chunkOwner":{"__isSmartRef__":true,"id":266},"_id":"_16401","storedString":"Simulation","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"269":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"270":{"morph":{"__isSmartRef__":true,"id":266},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"271":{"resizeWidth":true},"272":{"submorphs":[{"__isSmartRef__":true,"id":273}],"scripts":[],"shape":{"__isSmartRef__":true,"id":278},"eventHandler":{"__isSmartRef__":true,"id":279},"_ClipMode":"visible","derivationIds":["4BF1AC40-E69E-4186-8C18-274C86C099FF"],"id":"82AFFB0B-0997-455D-949F-C6C69982F76B","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":273},"_PreviousBorderWidth":0,"owner":{"__isSmartRef__":true,"id":265},"layout":{"__isSmartRef__":true,"id":280},"_StyleClassNames":["close"],"attributeConnections":[{"__isSmartRef__":true,"id":281},{"__isSmartRef__":true,"id":283}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"isPressed":false,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(664.0,3.0)"},"273":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":274},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":275}],"eventHandler":{"__isSmartRef__":true,"id":277},"_ClipMode":"hidden","derivationIds":["5E576D23-D73E-4C41-9D41-CF486659BEF2"],"id":"CC577980-92EE-40BB-BD0A-32DB8F9F1A54","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WordBreak":"break-all","fixedHeight":true,"_InputAllowed":false,"_HandStyle":"default","allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":272},"isLabel":true,"eventsAreIgnored":true,"_TextStylingMode":true,"__serializedExpressions__":["_TextColor","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(64,64,64)","_Position":"lively.pt(0.0,-1.0)"},"274":{"_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(17.0,17.0)","_Padding":"lively.rect(4,2,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"275":{"style":{"__isSmartRef__":true,"id":276},"chunkOwner":{"__isSmartRef__":true,"id":273},"_id":"_713","storedString":"X","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"276":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"277":{"morph":{"__isSmartRef__":true,"id":273},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"278":{"_BorderWidth":1,"_StrokeOpacity":0,"_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(17.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"279":{"morph":{"__isSmartRef__":true,"id":272},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"280":{"moveHorizontal":true},"281":{"sourceObj":{"__isSmartRef__":true,"id":272},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":0},"targetMethodName":"getCloseHelp","varMapping":{"__isSmartRef__":true,"id":282},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"282":{"source":{"__isSmartRef__":true,"id":272},"target":{"__isSmartRef__":true,"id":0}},"283":{"sourceObj":{"__isSmartRef__":true,"id":272},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":0},"targetMethodName":"initiateShutdown","varMapping":{"__isSmartRef__":true,"id":284},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"284":{"source":{"__isSmartRef__":true,"id":272},"target":{"__isSmartRef__":true,"id":0}},"285":{"submorphs":[{"__isSmartRef__":true,"id":286}],"scripts":[],"shape":{"__isSmartRef__":true,"id":291},"eventHandler":{"__isSmartRef__":true,"id":292},"_ClipMode":"visible","derivationIds":["326DFB54-A1FC-4BC4-857F-2C336CBB871E"],"id":"2BC968B5-D7C5-42EC-85F6-C52F31A6026F","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":286},"_PreviousBorderWidth":0,"owner":{"__isSmartRef__":true,"id":265},"attributeConnections":[{"__isSmartRef__":true,"id":293},{"__isSmartRef__":true,"id":295}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"isPressed":false,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(3.0,3.0)"},"286":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":287},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":288}],"eventHandler":{"__isSmartRef__":true,"id":290},"_ClipMode":"hidden","derivationIds":["A962034D-38E2-4F63-93AC-0EFA36C6201E"],"id":"D27726D8-8AB5-4F15-B40A-91861E2FD994","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WordBreak":"break-all","fixedHeight":true,"_InputAllowed":false,"_HandStyle":"default","allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":285},"isLabel":true,"eventsAreIgnored":true,"_TextStylingMode":true,"__serializedExpressions__":["_TextColor","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(64,64,64)","_Position":"lively.pt(0.0,0.0)"},"287":{"_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(17.0,17.0)","_Padding":"lively.rect(4,2,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"288":{"style":{"__isSmartRef__":true,"id":289},"chunkOwner":{"__isSmartRef__":true,"id":286},"_id":"_715","storedString":"M","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"289":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"290":{"morph":{"__isSmartRef__":true,"id":286},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"291":{"_BorderWidth":1,"_StrokeOpacity":0,"_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(17.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"292":{"morph":{"__isSmartRef__":true,"id":285},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"293":{"sourceObj":{"__isSmartRef__":true,"id":285},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":0},"targetMethodName":"getMenuHelp","varMapping":{"__isSmartRef__":true,"id":294},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"294":{"source":{"__isSmartRef__":true,"id":285},"target":{"__isSmartRef__":true,"id":0}},"295":{"sourceObj":{"__isSmartRef__":true,"id":285},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":0},"targetMethodName":"showTargetMorphMenu","varMapping":{"__isSmartRef__":true,"id":296},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"296":{"source":{"__isSmartRef__":true,"id":285},"target":{"__isSmartRef__":true,"id":0}},"297":{"submorphs":[{"__isSmartRef__":true,"id":298}],"scripts":[],"shape":{"__isSmartRef__":true,"id":303},"eventHandler":{"__isSmartRef__":true,"id":304},"_ClipMode":"visible","derivationIds":["9AA70CF9-03F3-4B5D-959C-AE3C3265C73C"],"id":"3174E078-B729-48A0-BD0A-F8035EC08292","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":298},"_PreviousBorderWidth":0,"owner":{"__isSmartRef__":true,"id":265},"layout":{"__isSmartRef__":true,"id":305},"attributeConnections":[{"__isSmartRef__":true,"id":306},{"__isSmartRef__":true,"id":308}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"isPressed":false,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.WindowControl","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(645.0,3.0)"},"298":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":299},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":300}],"eventHandler":{"__isSmartRef__":true,"id":302},"_ClipMode":"hidden","derivationIds":["8A699584-AD3A-4626-912B-EA113AB19815"],"id":"76312E29-F9C2-4D35-9238-7F4289D30B92","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WordBreak":"break-all","fixedHeight":true,"_InputAllowed":false,"_HandStyle":"default","allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":297},"isLabel":true,"eventsAreIgnored":true,"_TextStylingMode":true,"__serializedExpressions__":["_TextColor","_Position"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_TextColor":"Color.rgb(64,64,64)","_Position":"lively.pt(0.0,1.0)"},"299":{"_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(17.0,17.0)","_Padding":"lively.rect(4,2,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"300":{"style":{"__isSmartRef__":true,"id":301},"chunkOwner":{"__isSmartRef__":true,"id":298},"_id":"_717","storedString":"–","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"301":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"302":{"morph":{"__isSmartRef__":true,"id":298},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"303":{"_BorderWidth":1,"_StrokeOpacity":0,"_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(17.0,17.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(189,190,192)"},"304":{"morph":{"__isSmartRef__":true,"id":297},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"305":{"moveHorizontal":true},"306":{"sourceObj":{"__isSmartRef__":true,"id":297},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":0},"targetMethodName":"getCollapseHelp","varMapping":{"__isSmartRef__":true,"id":307},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"307":{"source":{"__isSmartRef__":true,"id":297},"target":{"__isSmartRef__":true,"id":0}},"308":{"sourceObj":{"__isSmartRef__":true,"id":297},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":0},"targetMethodName":"toggleCollapse","varMapping":{"__isSmartRef__":true,"id":309},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"309":{"source":{"__isSmartRef__":true,"id":297},"target":{"__isSmartRef__":true,"id":0}},"310":{"_AppearanceStylingMode":true,"_BorderStylingMode":true,"_BorderWidth":0,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(684.0,22.0)","_Padding":"lively.rect(0,0,0,0)"},"311":{"morph":{"__isSmartRef__":true,"id":265},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"312":{"resizeWidth":true,"adjustForNewBounds":true},"313":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":314},"eventHandler":{"__isSmartRef__":true,"id":315},"_ClipMode":"visible","derivationIds":["C4D90E0F-1832-4127-A646-2821FE7F1302"],"id":"40D74CB1-6FC0-4971-9709-5916D4B083CD","droppingEnabled":true,"halosEnabled":true,"_StyleClassNames":["reframe-handle bottom"],"owner":{"__isSmartRef__":true,"id":0},"showsHalos":false,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":316},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,450.0)"},"314":{"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(670.0,4.0)","_Padding":"lively.rect(0,0,0,0)"},"315":{"morph":{"__isSmartRef__":true,"id":313},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"316":{"onDragStart":{"__isSmartRef__":true,"id":317},"onDrag":{"__isSmartRef__":true,"id":324},"onDragEnd":{"__isSmartRef__":true,"id":331}},"317":{"varMapping":{"__isSmartRef__":true,"id":318},"source":"function onDragStart(evt) {\n            this.dragStartPoint = evt.mousePoint;\n            this.originalTargetExtent = this.owner.getExtent();\n        }","funcProperties":{"__isSmartRef__":true,"id":323},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"318":{"this":{"__isSmartRef__":true,"id":313},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":319}},"319":{"$super":{"__isSmartRef__":true,"id":320}},"320":{"varMapping":{"__isSmartRef__":true,"id":321},"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":322},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"321":{"obj":{"__isSmartRef__":true,"id":313},"name":"onDragStart"},"322":{},"323":{},"324":{"varMapping":{"__isSmartRef__":true,"id":325},"source":"function onDrag(evt) {\n            var moveDelta = pt(0,evt.mousePoint.subPt(this.dragStartPoint).y);\n            var newExtent = this.originalTargetExtent.addPt(moveDelta);\n            if (newExtent.y < this.owner.minHeight) newExtent.y = this.owner.minHeight;\n            this.owner.setExtent(newExtent);\n\n            this.align(this.bounds().bottomLeft(), pt(0,this.owner.getExtent().y));\n        }","funcProperties":{"__isSmartRef__":true,"id":330},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"325":{"this":{"__isSmartRef__":true,"id":313},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":326}},"326":{"$super":{"__isSmartRef__":true,"id":327}},"327":{"varMapping":{"__isSmartRef__":true,"id":328},"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":329},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"328":{"obj":{"__isSmartRef__":true,"id":313},"name":"onDrag"},"329":{},"330":{},"331":{"varMapping":{"__isSmartRef__":true,"id":332},"source":"function onDragEnd(evt) {\n            this.dragStartPoint = null;\n            this.originalTargetExtent = null;\n            this.owner.alignReframeHandle();\n            this.owner.alignRightReframeHandle();\n        }","funcProperties":{"__isSmartRef__":true,"id":337},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"332":{"this":{"__isSmartRef__":true,"id":313},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":333}},"333":{"$super":{"__isSmartRef__":true,"id":334}},"334":{"varMapping":{"__isSmartRef__":true,"id":335},"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":336},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"335":{"obj":{"__isSmartRef__":true,"id":313},"name":"onDragEnd"},"336":{},"337":{},"338":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":339},"eventHandler":{"__isSmartRef__":true,"id":340},"_ClipMode":"visible","derivationIds":["B4321D2A-3E61-478C-94D4-5716D005F7CB"],"id":"650E084E-962B-468F-84DB-2A33A600E507","droppingEnabled":true,"halosEnabled":true,"_StyleClassNames":["reframe-handle corner"],"owner":{"__isSmartRef__":true,"id":0},"dragStartPoint":null,"originalTargetExtent":null,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":341},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(670.0,440.0)"},"339":{"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(14.0,14.0)","_Padding":"lively.rect(0,0,0,0)"},"340":{"morph":{"__isSmartRef__":true,"id":338},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"341":{"onDragStart":{"__isSmartRef__":true,"id":342},"onDrag":{"__isSmartRef__":true,"id":349},"onDragEnd":{"__isSmartRef__":true,"id":356}},"342":{"varMapping":{"__isSmartRef__":true,"id":343},"source":"function onDragStart(evt) {\n            this.dragStartPoint = evt.mousePoint;\n            this.originalTargetExtent = this.owner.getExtent();\n        }","funcProperties":{"__isSmartRef__":true,"id":348},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"343":{"this":{"__isSmartRef__":true,"id":338},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":344}},"344":{"$super":{"__isSmartRef__":true,"id":345}},"345":{"varMapping":{"__isSmartRef__":true,"id":346},"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":347},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"346":{"obj":{"__isSmartRef__":true,"id":338},"name":"onDragStart"},"347":{},"348":{},"349":{"varMapping":{"__isSmartRef__":true,"id":350},"source":"function onDrag(evt) {\n            var moveDelta = evt.mousePoint.subPt(this.dragStartPoint)\n            var newExtent = this.originalTargetExtent.addPt(moveDelta);\n            if (newExtent.x < this.owner.minWidth) newExtent.x = this.owner.minWidth;\n            if (newExtent.y < this.owner.minHeight) newExtent.y = this.owner.minHeight;\n            this.owner.setExtent(newExtent);\n            //console.log(\"WindowExtent: \"+this.owner.getExtent().x+\" ,  \"+this.owner.getExtent().y);\n            this.align(this.bounds().bottomRight(), this.owner.getExtent());\n        }","funcProperties":{"__isSmartRef__":true,"id":355},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"350":{"this":{"__isSmartRef__":true,"id":338},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":351}},"351":{"$super":{"__isSmartRef__":true,"id":352}},"352":{"varMapping":{"__isSmartRef__":true,"id":353},"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":354},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"353":{"obj":{"__isSmartRef__":true,"id":338},"name":"onDrag"},"354":{},"355":{},"356":{"varMapping":{"__isSmartRef__":true,"id":357},"source":"function onDragEnd(evt) {\n            this.dragStartPoint = null;\n            this.originalTargetExtent = null;\n            this.owner.alignBottomReframeHandle();\n            this.owner.alignRightReframeHandle();\n        }","funcProperties":{"__isSmartRef__":true,"id":362},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"357":{"this":{"__isSmartRef__":true,"id":338},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":358}},"358":{"$super":{"__isSmartRef__":true,"id":359}},"359":{"varMapping":{"__isSmartRef__":true,"id":360},"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":361},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"360":{"obj":{"__isSmartRef__":true,"id":338},"name":"onDragEnd"},"361":{},"362":{},"363":{"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_AppearanceStylingMode":true,"_BorderStylingMode":true,"__serializedExpressions__":["_Padding","_Extent"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Padding":"lively.rect(0,0,0,0)","_Extent":"lively.pt(684.0,454.0)"},"364":{"morph":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"365":{"adjustForNewBounds":true},"366":{"partsSpaceName":"PartsBin/Demos/","comment":"A very simple physics simulation workbench for experimentation.","migrationLevel":4,"partName":"Simulation","changes":[{"__isSmartRef__":true,"id":367},{"__isSmartRef__":true,"id":369},{"__isSmartRef__":true,"id":371},{"__isSmartRef__":true,"id":373},{"__isSmartRef__":true,"id":375},{"__isSmartRef__":true,"id":377},{"__isSmartRef__":true,"id":379},{"__isSmartRef__":true,"id":381},{"__isSmartRef__":true,"id":383},{"__isSmartRef__":true,"id":385},{"__isSmartRef__":true,"id":387},{"__isSmartRef__":true,"id":389},{"__isSmartRef__":true,"id":391},{"__isSmartRef__":true,"id":393}],"lastModifiedDate":{"__isSmartRef__":true,"id":395},"revisionOnLoad":194893,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"367":{"date":{"__isSmartRef__":true,"id":368},"author":"cschuster","message":"initial commit","id":"B3856683-C214-4C81-9D72-4F2C28A30F74"},"368":{"isSerializedDate":true,"string":"Mon Apr 08 2013 02:11:07 GMT-0700 (PDT)"},"369":{"date":{"__isSmartRef__":true,"id":370},"author":"cschuster","message":"initial commit","id":"1B6565D8-D94F-4C72-A9AF-2319B5954102"},"370":{"isSerializedDate":true,"string":"Mon Apr 08 2013 02:09:43 GMT-0700 (PDT)"},"371":{"date":{"__isSmartRef__":true,"id":372},"author":"jenslincke","message":"no comment","id":"AEB2F41B-2C88-4BBA-8875-93CD17CBA1C8"},"372":{"isSerializedDate":true,"string":"Wed Jan 23 2013 03:57:18 GMT-0800 (PST)"},"373":{"date":{"__isSmartRef__":true,"id":374},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"374":{"isSerializedDate":true,"string":"Thu May 03 2012 06:51:36 GMT-0700 (PDT)"},"375":{"date":{"__isSmartRef__":true,"id":376},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"376":{"isSerializedDate":true,"string":"Thu May 03 2012 06:51:30 GMT-0700 (PDT)"},"377":{"date":{"__isSmartRef__":true,"id":378},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"378":{"isSerializedDate":true,"string":"Wed Mar 14 2012 02:53:45 GMT-0700 (PDT)"},"379":{"date":{"__isSmartRef__":true,"id":380},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"380":{"isSerializedDate":true,"string":"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)"},"381":{"date":{"__isSmartRef__":true,"id":382},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"382":{"isSerializedDate":true,"string":"Wed Mar 14 2012 02:42:26 GMT-0700 (PDT)"},"383":{"date":{"__isSmartRef__":true,"id":384},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"384":{"isSerializedDate":true,"string":"Mon Apr 09 2012 04:42:07 GMT-0700 (PDT)"},"385":{"date":{"__isSmartRef__":true,"id":386},"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8"},"386":{"isSerializedDate":true,"string":"Mon Jun 18 2012 10:35:08 GMT-0700 (PDT)"},"387":{"date":{"__isSmartRef__":true,"id":388},"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205"},"388":{"isSerializedDate":true,"string":"Thu Nov 22 2012 01:35:51 GMT-0800 (PST)"},"389":{"date":{"__isSmartRef__":true,"id":390},"author":"jenslincke","message":"no comment","id":"A4B86A7E-A398-4C29-BEE0-4AA045ABABD2"},"390":{"isSerializedDate":true,"string":"Fri Jan 18 2013 07:42:31 GMT-0800 (PST)"},"391":{"date":{"__isSmartRef__":true,"id":392},"author":"jenslincke","message":"added legend","id":"7ADA3049-56C1-4D32-874B-F664A79DDB20"},"392":{"isSerializedDate":true,"string":"Fri Jan 18 2013 07:47:05 GMT-0800 (PST)"},"393":{"date":{"__isSmartRef__":true,"id":394},"author":"cschuster","message":"added onrestore script","id":"E4B98D06-B30A-47E8-B88C-AC30B9E52AA3"},"394":{"isSerializedDate":true,"string":"Mon Apr 08 2013 02:13:23 GMT-0700 (PDT)"},"395":{"isSerializedDate":true,"string":"Mon Apr 08 2013 02:08:33 GMT-0700 (PDT)"},"isSimplifiedRegistry":true}}