{"id":0,"registry":{"0":{"submorphs":[{"__isSmartRef__":true,"id":1},{"__isSmartRef__":true,"id":12}],"scripts":[],"id":"3E833992-F988-4478-97EE-C43C4DA002B4","shape":{"__isSmartRef__":true,"id":160},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"Box2DBinomial","partsBinMetaInfo":{"__isSmartRef__":true,"id":161},"eventHandler":{"__isSmartRef__":true,"id":176},"layout":{"__isSmartRef__":true,"id":177},"connections":{"__isSmartRef__":true,"id":179},"isInLayoutCycle":false,"scriptAnnotations":{"__isSmartRef__":true,"id":181},"tick":1309799475780,"time":1373575916956,"derivationIds":[4829,"1FA0A483-C5AC-4990-9F2B-DAE0CBDB49E8","E8E43B9B-A6AF-4047-B7E5-30D59D9306B8","0A1E5E07-5A39-4170-973C-E392D1F70E70"],"_ClipMode":"visible","remaining":264,"updateTickingScripts":true,"autosaveNumber":1,"running":false,"isBeingDragged":false,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["distanceToDragEvent","_Position"],"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","distanceToDragEvent":"lively.pt(73.0,-13.0)","_Position":"lively.pt(0.0,0.0)"},"1":{"submorphs":[{"__isSmartRef__":true,"id":2},{"__isSmartRef__":true,"id":93},{"__isSmartRef__":true,"id":104},{"__isSmartRef__":true,"id":115},{"__isSmartRef__":true,"id":126}],"scripts":[],"id":"4E8AC094-9986-4470-8458-C19C8698780B","shape":{"__isSmartRef__":true,"id":137},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"ButtonWrapper","partsBinMetaInfo":{"__isSmartRef__":true,"id":138},"eventHandler":{"__isSmartRef__":true,"id":154},"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","FE91EA31-D8AE-461B-8A49-95DA5FBAE5B4","F38439A3-2F4E-4AC2-BF73-2633C00B1393","6748F5B5-2284-4748-A6EE-F1A261CBAD0B","BBAFB862-93AE-4F89-BCFF-9F1C67B7FE4C","7EC17E78-593A-4CC8-B7E3-859BCBBFE785","BD8BECDB-A9A1-4009-B433-C925F0AFCCFC","F2677A9D-5855-4DF2-B248-94545B34B762"],"partTests":{"__isSmartRef__":true,"id":155},"_ClipMode":"visible","moved":true,"owner":{"__isSmartRef__":true,"id":0},"isBeingDragged":false,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(8.6,417.2)"},"2":{"submorphs":[{"__isSmartRef__":true,"id":3}],"scripts":[],"id":"77DD7AF6-567D-43CC-8B74-DC1C7CCAED93","shape":{"__isSmartRef__":true,"id":8},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":3},"name":"Start","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":9},"eventHandler":{"__isSmartRef__":true,"id":10},"derivationIds":[4831,"4BF38ADB-1CF5-4975-82E6-FF03AAC66E24","72598B0F-135D-4BDA-87F6-20BC20B532A0","4B40972E-C4C2-4841-918B-97E94B40E76D"],"_ClipMode":"visible","isPressed":false,"_StyleClassNames":["Morph","Button"],"owner":{"__isSmartRef__":true,"id":1},"isCopyMorphRef":true,"morphRefId":1,"attributeConnections":[{"__isSmartRef__":true,"id":11}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","normalFill","lighterFill","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(2.0,1.2)","normalFill":"lively.morphic.Gradient.create({\n  stops: [{\n    color: Color.rgb(245,245,245),\n    offset: 0\n  },{\n    color: Color.rgb(209,209,209),\n    offset: 0.4\n  },{\n    color: Color.rgb(209,209,209),\n    offset: 0.6\n  },{\n    color: Color.rgb(240,240,240),\n    offset: 1\n  }],\n  type: \"linear\",\n  vector: lively.rect(0,0,0,1)\n})","lighterFill":"lively.morphic.Gradient.create({\n  stops: [{\n    color: Color.rgb(250,250,250),\n    offset: 0\n  },{\n    color: Color.rgb(232,232,232),\n    offset: 0.4\n  },{\n    color: Color.rgb(232,232,232),\n    offset: 0.6\n  },{\n    color: Color.rgb(248,248,248),\n    offset: 1\n  }],\n  type: \"linear\",\n  vector: lively.rect(0,0,0,1)\n})","distanceToDragEvent":"lively.pt(63.4,-10.4)"},"3":{"submorphs":[],"scripts":[],"id":"AAE0E83A-EAC5-4A4F-901B-9695B3ABFAFA","shape":{"__isSmartRef__":true,"id":4},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":86,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":2},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":5}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":7},"_HandStyle":"default","_PointerEvents":"none","_MinTextWidth":86,"_MinTextHeight":null,"derivationIds":[4832,"83C6D421-CE38-4B59-B90B-9766A32DA7B6","888D57D4-A262-4FA5-9129-2015FBC09B4E","DB7AD765-3561-4C03-B5FB-69E855320855"],"_InputAllowed":false,"_FontSize":10,"__serializedExpressions__":["_Position","padding","_Padding","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"4":{"_BorderWidth":0,"_Fill":null,"_ClipMode":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(86.0,21.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"5":{"style":{"__isSmartRef__":true,"id":6},"chunkOwner":{"__isSmartRef__":true,"id":3},"_id":"_950","storedString":"Start","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"7":{"morph":{"__isSmartRef__":true,"id":3},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"8":{"_BorderWidth":1.1840000000000002,"_BorderRadius":5.2,"_ClipMode":"visible","__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(86.0,21.0)","_BorderColor":"Color.rgb(214,214,214)","_Fill":"lively.morphic.Gradient.create({\n  stops: [{\n    color: Color.rgb(245,245,245),\n    offset: 0\n  },{\n    color: Color.rgb(209,209,209),\n    offset: 0.4\n  },{\n    color: Color.rgb(209,209,209),\n    offset: 0.6\n  },{\n    color: Color.rgb(240,240,240),\n    offset: 1\n  }],\n  type: \"linear\",\n  vector: lively.rect(0,0,0,1)\n})","_Padding":"lively.rect(0,0,0,0)"},"9":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":2,"partName":"ScriptableButton","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"10":{"morph":{"__isSmartRef__":true,"id":2},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"11":{"sourceObj":{"__isSmartRef__":true,"id":2},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":12},"targetMethodName":"start","varMapping":{"__isSmartRef__":true,"id":92},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"12":{"shape":{"__isSmartRef__":true,"id":13},"submorphs":[],"scripts":[],"_ClipMode":"visible","derivationIds":[],"id":"8A651207-F3BE-493D-96CD-93195C7245CC","droppingEnabled":true,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":0},"eventHandler":{"__isSmartRef__":true,"id":14},"isBeingDragged":false,"showsHalos":false,"box2dWorld":null,"running":false,"libsLoaded":true,"libPolling":38,"_Rotation":0,"_Scale":1,"attributeConnections":[{"__isSmartRef__":true,"id":15},{"__isSmartRef__":true,"id":18},{"__isSmartRef__":true,"id":29},{"__isSmartRef__":true,"id":26}],"doNotSerialize":["$$_Rotation","$$_Scale"],"doNotCopyProperties":["$$_Rotation","$$_Scale"],"isCopyMorphRef":true,"morphRefId":1,"binBounds":null,"__serializedExpressions__":["_Position"],"partsBinMetaInfo":{"__isSmartRef__":true,"id":51},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":52},"__LivelyClassName__":"lively.morphic.HtmlWrapperMorph","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(8.6,8.6)"},"13":{"stringifiedShapeNode":"<div data-lively-morphid=\"8A651207-F3BE-493D-96CD-93195C7245CC\" class=\"Morph HtmlWrapperMorph\" id=\"null\" style=\"overflow: visible; position: absolute; left: 0px; top: 0px; padding: 0px; width: 600px; height: 400px; background-color: rgb(200, 200, 200);\"></div>","__serializedExpressions__":["_Position","_Extent","_Padding","_Fill","extent"],"__LivelyClassName__":"lively.morphic.Shapes.External","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(600.0,400.0)","_Padding":"lively.rect(0,0,0,0)","_Fill":"Color.rgb(200,200,200)","extent":"lively.pt(600.0,400.0)"},"14":{"morph":{"__isSmartRef__":true,"id":12},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"15":{"sourceObj":{"__isSmartRef__":true,"id":12},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":16},"targetMethodName":"setRotation","varMapping":{"__isSmartRef__":true,"id":50},"dependedBy":{"__isSmartRef__":true,"id":18},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"16":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":17},"_ClipMode":"visible","derivationIds":[],"id":"E8311307-D245-430F-AF9F-0710638613BC","droppingEnabled":false,"halosEnabled":true,"isGrabShadow":true,"connections":[{"__isSmartRef__":true,"id":18},{"__isSmartRef__":true,"id":26}],"_Rotation":0,"_Scale":1,"isBeingDragged":false,"isPlaceholder":true,"eventsAreIgnored":true,"owner":null,"eventHandler":{"__isSmartRef__":true,"id":36},"submorphsForReconnect":[],"attributeConnections":[{"__isSmartRef__":true,"id":37}],"doNotSerialize":["$$owner"],"doNotCopyProperties":["$$owner"],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":39},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(8.6,417.2)"},"17":{"stringifiedShapeNode":"<div data-lively-morphid=\"E8311307-D245-430F-AF9F-0710638613BC\" class=\"Morph HtmlWrapperMorph\" id=\"null\" style=\"overflow: visible; position: absolute; left: 0px; top: 0px; padding: 0px; width: 600px; height: 400px; background-color: rgb(204, 204, 204); opacity: 0.5; border: 0px solid rgb(204, 0, 0); background-position: initial initial; background-repeat: initial initial;\"></div>","_Opacity":0.5,"_BorderWidth":0,"__serializedExpressions__":["_Position","_Extent","_Padding","_Fill","extent"],"__LivelyClassName__":"lively.morphic.Shapes.External","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(600.0,400.0)","_Padding":"lively.rect(0,0,0,0)","_Fill":"Color.rgb(204,204,204)","extent":"lively.pt(0.0,0.0)"},"18":{"sourceObj":{"__isSmartRef__":true,"id":12},"sourceAttrName":"rotation","targetObj":{"__isSmartRef__":true,"id":16},"targetMethodName":"setRotation","varMapping":{"__isSmartRef__":true,"id":19},"attributeConnections":[{"__isSmartRef__":true,"id":20},{"__isSmartRef__":true,"id":22},{"__isSmartRef__":true,"id":24}],"doNotSerialize":["$$converterString","$$updaterString","$$varMapping"],"doNotCopyProperties":["$$converterString","$$updaterString","$$varMapping"],"dependendConnections":[{"__isSmartRef__":true,"id":15}],"__LivelyClassName__":"lively.morphic.GeometryConnection","__SourceModuleName__":"Global.lively.bindings.GeometryBindings"},"19":{"source":{"__isSmartRef__":true,"id":12},"target":{"__isSmartRef__":true,"id":16}},"20":{"sourceObj":{"__isSmartRef__":true,"id":18},"sourceAttrName":"converterString","targetObj":{"__isSmartRef__":true,"id":15},"targetMethodName":"setConverter","varMapping":{"__isSmartRef__":true,"id":21},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"21":{"source":{"__isSmartRef__":true,"id":18},"target":{"__isSmartRef__":true,"id":15}},"22":{"sourceObj":{"__isSmartRef__":true,"id":18},"sourceAttrName":"updaterString","targetObj":{"__isSmartRef__":true,"id":15},"targetMethodName":"setUpdater","varMapping":{"__isSmartRef__":true,"id":23},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"23":{"source":{"__isSmartRef__":true,"id":18},"target":{"__isSmartRef__":true,"id":15}},"24":{"sourceObj":{"__isSmartRef__":true,"id":18},"sourceAttrName":"varMapping","targetObj":{"__isSmartRef__":true,"id":15},"targetMethodName":"varMapping","varMapping":{"__isSmartRef__":true,"id":25},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"25":{"source":{"__isSmartRef__":true,"id":18},"target":{"__isSmartRef__":true,"id":15}},"26":{"sourceObj":{"__isSmartRef__":true,"id":12},"sourceAttrName":"scale","targetObj":{"__isSmartRef__":true,"id":16},"targetMethodName":"setScale","varMapping":{"__isSmartRef__":true,"id":27},"attributeConnections":[{"__isSmartRef__":true,"id":28},{"__isSmartRef__":true,"id":32},{"__isSmartRef__":true,"id":34}],"doNotSerialize":["$$converterString","$$updaterString","$$varMapping"],"doNotCopyProperties":["$$converterString","$$updaterString","$$varMapping"],"dependendConnections":[{"__isSmartRef__":true,"id":29}],"__LivelyClassName__":"lively.morphic.GeometryConnection","__SourceModuleName__":"Global.lively.bindings.GeometryBindings"},"27":{"source":{"__isSmartRef__":true,"id":12},"target":{"__isSmartRef__":true,"id":16}},"28":{"sourceObj":{"__isSmartRef__":true,"id":26},"sourceAttrName":"converterString","targetObj":{"__isSmartRef__":true,"id":29},"targetMethodName":"setConverter","varMapping":{"__isSmartRef__":true,"id":31},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"29":{"sourceObj":{"__isSmartRef__":true,"id":12},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":16},"targetMethodName":"setScale","varMapping":{"__isSmartRef__":true,"id":30},"dependedBy":{"__isSmartRef__":true,"id":26},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"30":{"source":{"__isSmartRef__":true,"id":12},"target":{"__isSmartRef__":true,"id":16}},"31":{"source":{"__isSmartRef__":true,"id":26},"target":{"__isSmartRef__":true,"id":29}},"32":{"sourceObj":{"__isSmartRef__":true,"id":26},"sourceAttrName":"updaterString","targetObj":{"__isSmartRef__":true,"id":29},"targetMethodName":"setUpdater","varMapping":{"__isSmartRef__":true,"id":33},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"33":{"source":{"__isSmartRef__":true,"id":26},"target":{"__isSmartRef__":true,"id":29}},"34":{"sourceObj":{"__isSmartRef__":true,"id":26},"sourceAttrName":"varMapping","targetObj":{"__isSmartRef__":true,"id":29},"targetMethodName":"varMapping","varMapping":{"__isSmartRef__":true,"id":35},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"35":{"source":{"__isSmartRef__":true,"id":26},"target":{"__isSmartRef__":true,"id":29}},"36":{"morph":{"__isSmartRef__":true,"id":16},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"37":{"sourceObj":{"__isSmartRef__":true,"id":16},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":16},"targetMethodName":"reconnect","varMapping":{"__isSmartRef__":true,"id":38},"removeAfterUpdate":true,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"38":{"source":{"__isSmartRef__":true,"id":16},"target":{"__isSmartRef__":true,"id":16}},"39":{"remove":{"__isSmartRef__":true,"id":40},"reconnect":{"__isSmartRef__":true,"id":47}},"40":{"varMapping":{"__isSmartRef__":true,"id":41},"source":"function remove() {\n            $super();\n            this.connections.invoke('disconnect');\n            this.submorphsForReconnect = this.submorphs.clone();\n            this.submorphs.invoke('remove');\n            lively.bindings.callWhenNotNull(this, 'owner', this, 'reconnect');\n        }","funcProperties":{"__isSmartRef__":true,"id":46},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41":{"this":{"__isSmartRef__":true,"id":16},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":42}},"42":{"$super":{"__isSmartRef__":true,"id":43}},"43":{"varMapping":{"__isSmartRef__":true,"id":44},"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":45},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"44":{"obj":{"__isSmartRef__":true,"id":16},"name":"remove"},"45":{},"46":{},"47":{"varMapping":{"__isSmartRef__":true,"id":48},"source":"function reconnect(newOwner) {\n            this.connections.invoke('connect');\n            this.submorphsForReconnect.forEach(function(ea) { this.addMorph(ea) }, this);\n            delete this.submorphsForReconnect;\n        }","funcProperties":{"__isSmartRef__":true,"id":49},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"48":{"this":{"__isSmartRef__":true,"id":16}},"49":{},"50":{"source":{"__isSmartRef__":true,"id":12},"target":{"__isSmartRef__":true,"id":16}},"51":{"requiredModules":[],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"52":{"ensureLibLoad":{"__isSmartRef__":true,"id":53},"reset":{"__isSmartRef__":true,"id":56},"start":{"__isSmartRef__":true,"id":59},"init":{"__isSmartRef__":true,"id":62},"animate":{"__isSmartRef__":true,"id":65},"stop":{"__isSmartRef__":true,"id":68},"onLoad":{"__isSmartRef__":true,"id":71},"reload":{"__isSmartRef__":true,"id":74},"createCircle":{"__isSmartRef__":true,"id":77},"makeTree":{"__isSmartRef__":true,"id":80},"dropCircles":{"__isSmartRef__":true,"id":83},"createBox":{"__isSmartRef__":true,"id":86},"analyze":{"__isSmartRef__":true,"id":89}},"53":{"varMapping":{"__isSmartRef__":true,"id":54},"source":"function ensureLibLoad() {\n    // this.ensureLibLoad()\n    this.libsLoaded = false;\n\n    if (typeof Box2D !== 'object') {\n        var urlString = URL.codeBase.withFilename('lib/box2dWeb/Box2dWeb-2.1.a.3.js').toString()\n        JSLoader.loadJs(urlString);\n    }\n\n    this.libPolling = Global.setInterval(function() {\n        this.libsLoaded = typeof Box2D === 'object';\n        if (this.libsLoaded) {\n            Global.clearInterval(this.libPolling);\n        }\n    }.bind(this), 50);\n}","funcProperties":{"__isSmartRef__":true,"id":55},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"54":{"this":{"__isSmartRef__":true,"id":12}},"55":{"user":"Matthew Goldberg","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Thu Jul 18 2013 15:15:45 GMT-0700 (Pacific Daylight Time)\")"},"56":{"varMapping":{"__isSmartRef__":true,"id":57},"source":"function reset() {\n    // this.reset()\n    this.renderContext().shapeNode.innerHTML = '';\n    this.box2dWorld = null;\n    this.binBounds = null;\n}","funcProperties":{"__isSmartRef__":true,"id":58},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"57":{"this":{"__isSmartRef__":true,"id":12}},"58":{"user":"Matthew Goldberg","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon Aug 05 2013 11:27:03 GMT-0700 (Pacific Daylight Time)\")"},"59":{"varMapping":{"__isSmartRef__":true,"id":60},"source":"function start() {\n    if (this.running)\n        return false;\n    // this.start()\n    this.init();\n    this.running = true;\n    this.animate();\n}","funcProperties":{"__isSmartRef__":true,"id":61},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"60":{"this":{"__isSmartRef__":true,"id":12}},"61":{"user":"Matthew Goldberg","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Fri Jul 26 2013 13:12:23 GMT-0700 (Pacific Daylight Time)\")"},"62":{"varMapping":{"__isSmartRef__":true,"id":63},"source":"function init() {\n    // this.init()\n    var b2Canvas = document.createElement( 'canvas' );\n    b2Canvas.id = 'box2dCanvas';\n    b2Canvas.width = 600; \n    b2Canvas.height = 400;\n    b2Canvas.style.backgroundColor = 'black';\n    this.renderContext().shapeNode.appendChild( b2Canvas );\n\n    this.box2dCanvas = b2Canvas;\n\n    var b2Vec2 = Box2D.Common.Math.b2Vec2\n        , b2AABB = Box2D.Collision.b2AABB\n        , b2BodyDef = Box2D.Dynamics.b2BodyDef\n        , b2Body = Box2D.Dynamics.b2Body\n        , b2FixtureDef = Box2D.Dynamics.b2FixtureDef\n        , b2Fixture = Box2D.Dynamics.b2Fixture\n        , b2World = Box2D.Dynamics.b2World\n        , b2MassData = Box2D.Collision.Shapes.b2MassData\n        , b2PolygonShape = Box2D.Collision.Shapes.b2PolygonShape\n        , b2CircleShape = Box2D.Collision.Shapes.b2CircleShape\n        , b2DebugDraw = Box2D.Dynamics.b2DebugDraw\n        , b2MouseJointDef =  Box2D.Dynamics.Joints.b2MouseJointDef\n        , b2DistanceJointDef =  Box2D.Dynamics.Joints.b2DistanceJointDef\n        , b2Shape = Box2D.Collision.Shapes.b2Shape\n        , b2Joint = Box2D.Dynamics.Joints.b2Joint\n        , b2Settings = Box2D.Common.b2Settings;\n     \n    var world = new b2World(new b2Vec2(0, 10),  true); //vec is gravity\n    \n    //setup debug draw\n    var debugDraw = new b2DebugDraw();\n    debugDraw.SetSprite(b2Canvas.getContext(\"2d\"));\n    debugDraw.SetDrawScale(30.0);\n    debugDraw.SetFillAlpha(0.5);\n    debugDraw.SetLineThickness(1.0);\n    debugDraw.SetFlags(b2DebugDraw.e_shapeBit | b2DebugDraw.e_jointBit);\n    world.SetDebugDraw(debugDraw);\n    \n    this.box2dWorld = world;\n    \n    var arr = [];\n    arr.push(this.createCircle(9.6, .5, b2Body.b2_staticBody));\n    arr.push(this.createCircle(10.4, .5, b2Body.b2_staticBody));    \n    this.makeTree(arr, 18);\n    this.createBox(10, 15, 20, 2, b2Body.b2_staticBody);  \n    this.startStepping(500, 'dropCircles');\n}","funcProperties":{"__isSmartRef__":true,"id":64},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"63":{"this":{"__isSmartRef__":true,"id":12}},"64":{"user":"Matthew Goldberg","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon Aug 05 2013 13:37:29 GMT-0700 (Pacific Daylight Time)\")"},"65":{"varMapping":{"__isSmartRef__":true,"id":66},"source":"function animate() {\n    if (!this.running) return;\n\n     requestAnimationFrame( this.animate.bind(this) );    // line up the next one before we start calculating\n\n    var world = this.box2dWorld;\n    world.Step(\n           1 / 30   //frame-rate\n        ,  10       //velocity iterations\n        ,  10       //position iterations\n    );\n    world.DrawDebugData();\n    world.ClearForces();\n\n}","funcProperties":{"__isSmartRef__":true,"id":67},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"66":{"this":{"__isSmartRef__":true,"id":12}},"67":{"user":"Matthew Goldberg","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Wed Jul 31 2013 15:58:57 GMT-0700 (Pacific Daylight Time)\")"},"68":{"varMapping":{"__isSmartRef__":true,"id":69},"source":"function stop() {\n    this.running = false;\n    this.stopStepping();\n}","funcProperties":{"__isSmartRef__":true,"id":70},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"69":{"this":{"__isSmartRef__":true,"id":12}},"70":{"user":"Matthew Goldberg","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Thu Aug 01 2013 14:56:08 GMT-0700 (Pacific Daylight Time)\")"},"71":{"varMapping":{"__isSmartRef__":true,"id":72},"source":"function onLoad() {\n    this.ensureLibLoad();\n}","funcProperties":{"__isSmartRef__":true,"id":73},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"72":{"this":{"__isSmartRef__":true,"id":12}},"73":{"user":"Matthew Goldberg","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Thu Jul 18 2013 15:19:22 GMT-0700 (Pacific Daylight Time)\")"},"74":{"varMapping":{"__isSmartRef__":true,"id":75},"source":"function reload() {\n    while(this.running) {\n        this.stop();\n    }\n    this.reset();\n    this.start();\n}","funcProperties":{"__isSmartRef__":true,"id":76},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"75":{"this":{"__isSmartRef__":true,"id":12}},"76":{"user":"Matthew Goldberg","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon Jul 22 2013 15:11:25 GMT-0700 (Pacific Daylight Time)\")"},"77":{"varMapping":{"__isSmartRef__":true,"id":78},"source":"function createCircle(x, y, bodyType) {\n    \n    var b2Vec2 = Box2D.Common.Math.b2Vec2\n        , b2BodyDef = Box2D.Dynamics.b2BodyDef\n        , b2FixtureDef = Box2D.Dynamics.b2FixtureDef\n        , b2CircleShape = Box2D.Collision.Shapes.b2CircleShape;\n\n    var fixDef = new b2FixtureDef;\n    fixDef.density = 1.0;\n    fixDef.friction = 0.5;\n    fixDef.restitution = 0.2;\n    var bodyDef = new b2BodyDef;\n    var radius = 0.1;\n    bodyDef.type = bodyType;  \n    fixDef.shape = new b2CircleShape(radius);\n    bodyDef.position.x = x;\n    bodyDef.position.y = y;\n    var a = this.box2dWorld.CreateBody(bodyDef);\n    a.CreateFixture(fixDef);\n    return a;    \n}","funcProperties":{"__isSmartRef__":true,"id":79},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"78":{"this":{"__isSmartRef__":true,"id":12}},"79":{"user":"Matthew Goldberg","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Wed Jul 31 2013 10:26:54 GMT-0700 (Pacific Daylight Time)\")"},"80":{"varMapping":{"__isSmartRef__":true,"id":81},"source":"function makeTree(prevLevel, levels) {\n    if (levels <= 0)\n        return;\n    var curLevel = [];\n    var   b2BodyDef = Box2D.Dynamics.b2BodyDef\n        , b2Body = Box2D.Dynamics.b2Body;\n    for (var j = 0; j < levels; j++){\n        for(var i = 0; i < prevLevel.length; i++){\n            if (i === 0)\n                curLevel.push(this.createCircle(prevLevel[i].GetPosition().x - 0.4, prevLevel[i].GetPosition().y + 0.4, b2Body.b2_staticBody));\n            curLevel.push(this.createCircle(prevLevel[i].GetPosition().x + 0.4, prevLevel[i].GetPosition().y + 0.4, b2Body.b2_staticBody));\n        }\n        prevLevel = curLevel;\n        curLevel = [];\n        if (j === levels - 1)\n        {\n            for(var k = 0; k < prevLevel.length; k++){\n                this.createBox(prevLevel[k].GetPosition().x, prevLevel[k].GetPosition().y + 3, .1, 2.5, b2Body.b2_staticBody);\n            }\n        }    \n    }\n    this.binBounds = [];\n    this.binBounds.push(0);\n    for (var i = 0; i < prevLevel.length; i++){\n        this.binBounds.push(prevLevel[i].GetPosition().x - 0.05);\n    }\n    this.binBounds.push(20);\n    //show(this.binBounds.toString());\n    prevLevel = null;\n    curLevel = null;\n}","funcProperties":{"__isSmartRef__":true,"id":82},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"81":{"this":{"__isSmartRef__":true,"id":12}},"82":{"user":"Matthew Goldberg","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon Aug 05 2013 14:42:08 GMT-0700 (Pacific Daylight Time)\")"},"83":{"varMapping":{"__isSmartRef__":true,"id":84},"source":"function dropCircles() {\n    var b2Body = Box2D.Dynamics.b2Body;\n    this.createCircle(9.6 + Math.random() * .8, .5 - i/10, b2Body.b2_dynamicBody);\n}","funcProperties":{"__isSmartRef__":true,"id":85},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"84":{"this":{"__isSmartRef__":true,"id":12}},"85":{"user":"Matthew Goldberg","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Thu Aug 01 2013 15:58:57 GMT-0700 (Pacific Daylight Time)\")"},"86":{"varMapping":{"__isSmartRef__":true,"id":87},"source":"function createBox(x, y, width, height, bodyType) {\n    \n    var b2Vec2 = Box2D.Common.Math.b2Vec2\n        , b2BodyDef = Box2D.Dynamics.b2BodyDef\n        , b2FixtureDef = Box2D.Dynamics.b2FixtureDef\n        , b2PolygonShape = Box2D.Collision.Shapes.b2PolygonShape;\n\n    var fixDef = new b2FixtureDef;\n    fixDef.density = 1.0;\n    fixDef.friction = 0.5;\n    fixDef.restitution = 0.2;\n    var bodyDef = new b2BodyDef;\n    bodyDef.type = bodyType;  \n    fixDef.shape = new b2PolygonShape();\n    fixDef.shape.SetAsBox(width, height);\n    bodyDef.position.x = x;\n    bodyDef.position.y = y;\n    var a = this.box2dWorld.CreateBody(bodyDef);\n    a.CreateFixture(fixDef);\n    return a;    \n}","funcProperties":{"__isSmartRef__":true,"id":88},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"87":{"this":{"__isSmartRef__":true,"id":12}},"88":{"user":"Matthew Goldberg","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Thu Aug 01 2013 15:44:41 GMT-0700 (Pacific Daylight Time)\")"},"89":{"varMapping":{"__isSmartRef__":true,"id":90},"source":"function analyze() {\n    if (this.box2dWorld === null)\n        return;\n    \n    var binCounts = [];\n    binCounts.length = this.binBounds.length - 1;\n    for (var i = 0; i < binCounts.length; i++)\n        binCounts[i] = 0;\n    \n    for(var body = this.box2dWorld.GetBodyList(); body; body = body.GetNext())\n    {\n        if (body.m_type === 2) // 2 represents dynamicBody\n        {\n            for (var j = 0; j < binCounts.length; j++)\n            {\n                if (body.GetPosition().x >= this.binBounds[j] && body.GetPosition().x <= this.binBounds[j+1] && body.GetPosition().y >= 7)\n                {\n                    binCounts[j] += 1;\n                }\n            }\n        }\n    }\n    show(binCounts.toString());\n    binCounts = null;    \n}","funcProperties":{"__isSmartRef__":true,"id":91},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"90":{"this":{"__isSmartRef__":true,"id":12}},"91":{"user":"Matthew Goldberg","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon Aug 05 2013 14:47:37 GMT-0700 (Pacific Daylight Time)\")"},"92":{"source":{"__isSmartRef__":true,"id":2},"target":{"__isSmartRef__":true,"id":12}},"93":{"submorphs":[{"__isSmartRef__":true,"id":94}],"scripts":[],"id":"A8C8ACE8-7FF2-4FE6-968C-B6D5CD007ED5","shape":{"__isSmartRef__":true,"id":99},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":94},"name":"Stop","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":100},"eventHandler":{"__isSmartRef__":true,"id":101},"derivationIds":[4831,"4BF38ADB-1CF5-4975-82E6-FF03AAC66E24","72598B0F-135D-4BDA-87F6-20BC20B532A0","4B40972E-C4C2-4841-918B-97E94B40E76D","77DD7AF6-567D-43CC-8B74-DC1C7CCAED93"],"_ClipMode":"visible","isPressed":false,"_StyleClassNames":["Morph","Button"],"owner":{"__isSmartRef__":true,"id":1},"attributeConnections":[{"__isSmartRef__":true,"id":102}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","normalFill","lighterFill","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(92.0,1.2)","normalFill":"lively.morphic.Gradient.create({\n  stops: [{\n    color: Color.rgb(245,245,245),\n    offset: 0\n  },{\n    color: Color.rgb(209,209,209),\n    offset: 0.4\n  },{\n    color: Color.rgb(209,209,209),\n    offset: 0.6\n  },{\n    color: Color.rgb(240,240,240),\n    offset: 1\n  }],\n  type: \"linear\",\n  vector: lively.rect(0,0,0,1)\n})","lighterFill":"lively.morphic.Gradient.create({\n  stops: [{\n    color: Color.rgb(250,250,250),\n    offset: 0\n  },{\n    color: Color.rgb(232,232,232),\n    offset: 0.4\n  },{\n    color: Color.rgb(232,232,232),\n    offset: 0.6\n  },{\n    color: Color.rgb(248,248,248),\n    offset: 1\n  }],\n  type: \"linear\",\n  vector: lively.rect(0,0,0,1)\n})","distanceToDragEvent":"lively.pt(58.4,-9.4)"},"94":{"submorphs":[],"scripts":[],"id":"6D27C166-5B44-45B4-A42B-665AEF81D9D5","shape":{"__isSmartRef__":true,"id":95},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":86,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":93},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":96}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":98},"_HandStyle":"default","_PointerEvents":"none","_MinTextWidth":86,"_MinTextHeight":null,"derivationIds":[4832,"83C6D421-CE38-4B59-B90B-9766A32DA7B6","888D57D4-A262-4FA5-9129-2015FBC09B4E","DB7AD765-3561-4C03-B5FB-69E855320855","AAE0E83A-EAC5-4A4F-901B-9695B3ABFAFA"],"_InputAllowed":false,"_FontSize":10,"__serializedExpressions__":["_Position","padding","_Padding","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"95":{"_BorderWidth":0,"_Fill":null,"_ClipMode":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(86.0,21.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"96":{"style":{"__isSmartRef__":true,"id":97},"chunkOwner":{"__isSmartRef__":true,"id":94},"_id":"_551","storedString":"Stop","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"97":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"98":{"morph":{"__isSmartRef__":true,"id":94},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"99":{"_BorderWidth":1.1840000000000002,"_BorderRadius":5.2,"_ClipMode":"visible","__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(86.0,21.0)","_BorderColor":"Color.rgb(214,214,214)","_Fill":"lively.morphic.Gradient.create({\n  stops: [{\n    color: Color.rgb(245,245,245),\n    offset: 0\n  },{\n    color: Color.rgb(209,209,209),\n    offset: 0.4\n  },{\n    color: Color.rgb(209,209,209),\n    offset: 0.6\n  },{\n    color: Color.rgb(240,240,240),\n    offset: 1\n  }],\n  type: \"linear\",\n  vector: lively.rect(0,0,0,1)\n})","_Padding":"lively.rect(0,0,0,0)"},"100":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":2,"partName":"ScriptableButton","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"101":{"morph":{"__isSmartRef__":true,"id":93},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"102":{"sourceObj":{"__isSmartRef__":true,"id":93},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":12},"targetMethodName":"stop","varMapping":{"__isSmartRef__":true,"id":103},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"103":{"source":{"__isSmartRef__":true,"id":93},"target":{"__isSmartRef__":true,"id":12}},"104":{"submorphs":[{"__isSmartRef__":true,"id":105}],"scripts":[],"id":"6A1A15ED-AF55-45D4-9F31-DD1F48CB8CD6","shape":{"__isSmartRef__":true,"id":110},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":105},"name":"Clear","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":111},"eventHandler":{"__isSmartRef__":true,"id":112},"derivationIds":[4831,"4BF38ADB-1CF5-4975-82E6-FF03AAC66E24","72598B0F-135D-4BDA-87F6-20BC20B532A0","4B40972E-C4C2-4841-918B-97E94B40E76D","77DD7AF6-567D-43CC-8B74-DC1C7CCAED93","A8C8ACE8-7FF2-4FE6-968C-B6D5CD007ED5"],"_ClipMode":"visible","isPressed":false,"_StyleClassNames":["Morph","Button"],"owner":{"__isSmartRef__":true,"id":1},"isCopyMorphRef":true,"morphRefId":1,"attributeConnections":[{"__isSmartRef__":true,"id":113}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","normalFill","lighterFill","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(182.0,2.2)","normalFill":"lively.morphic.Gradient.create({\n  stops: [{\n    color: Color.rgb(245,245,245),\n    offset: 0\n  },{\n    color: Color.rgb(209,209,209),\n    offset: 0.4\n  },{\n    color: Color.rgb(209,209,209),\n    offset: 0.6\n  },{\n    color: Color.rgb(240,240,240),\n    offset: 1\n  }],\n  type: \"linear\",\n  vector: lively.rect(0,0,0,1)\n})","lighterFill":"lively.morphic.Gradient.create({\n  stops: [{\n    color: Color.rgb(250,250,250),\n    offset: 0\n  },{\n    color: Color.rgb(232,232,232),\n    offset: 0.4\n  },{\n    color: Color.rgb(232,232,232),\n    offset: 0.6\n  },{\n    color: Color.rgb(248,248,248),\n    offset: 1\n  }],\n  type: \"linear\",\n  vector: lively.rect(0,0,0,1)\n})","distanceToDragEvent":"lively.pt(63.4,-10.4)"},"105":{"submorphs":[],"scripts":[],"id":"6C4569B4-1F83-4E0C-A72C-1881D666F52A","shape":{"__isSmartRef__":true,"id":106},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":86,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":104},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":107}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":109},"_HandStyle":"default","_PointerEvents":"none","_MinTextWidth":86,"_MinTextHeight":null,"derivationIds":[4832,"83C6D421-CE38-4B59-B90B-9766A32DA7B6","888D57D4-A262-4FA5-9129-2015FBC09B4E","DB7AD765-3561-4C03-B5FB-69E855320855","AAE0E83A-EAC5-4A4F-901B-9695B3ABFAFA","6D27C166-5B44-45B4-A42B-665AEF81D9D5"],"_InputAllowed":false,"_FontSize":10,"__serializedExpressions__":["_Position","padding","_Padding","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"106":{"_BorderWidth":0,"_Fill":null,"_ClipMode":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(86.0,21.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"107":{"style":{"__isSmartRef__":true,"id":108},"chunkOwner":{"__isSmartRef__":true,"id":105},"_id":"_239","storedString":"Clear","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"108":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"109":{"morph":{"__isSmartRef__":true,"id":105},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"110":{"_BorderWidth":1.1840000000000002,"_BorderRadius":5.2,"_ClipMode":"visible","__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(86.0,21.0)","_BorderColor":"Color.rgb(214,214,214)","_Fill":"lively.morphic.Gradient.create({\n  stops: [{\n    color: Color.rgb(245,245,245),\n    offset: 0\n  },{\n    color: Color.rgb(209,209,209),\n    offset: 0.4\n  },{\n    color: Color.rgb(209,209,209),\n    offset: 0.6\n  },{\n    color: Color.rgb(240,240,240),\n    offset: 1\n  }],\n  type: \"linear\",\n  vector: lively.rect(0,0,0,1)\n})","_Padding":"lively.rect(0,0,0,0)"},"111":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":2,"partName":"ScriptableButton","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"112":{"morph":{"__isSmartRef__":true,"id":104},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"113":{"sourceObj":{"__isSmartRef__":true,"id":104},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":12},"targetMethodName":"reset","varMapping":{"__isSmartRef__":true,"id":114},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"114":{"source":{"__isSmartRef__":true,"id":104},"target":{"__isSmartRef__":true,"id":12}},"115":{"submorphs":[{"__isSmartRef__":true,"id":116}],"scripts":[],"id":"FB17BF0C-AE27-4C9B-B483-B2D03166004C","shape":{"__isSmartRef__":true,"id":121},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":116},"name":"Reload","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":122},"eventHandler":{"__isSmartRef__":true,"id":123},"derivationIds":[4831,"4BF38ADB-1CF5-4975-82E6-FF03AAC66E24","72598B0F-135D-4BDA-87F6-20BC20B532A0","4B40972E-C4C2-4841-918B-97E94B40E76D","77DD7AF6-567D-43CC-8B74-DC1C7CCAED93","A8C8ACE8-7FF2-4FE6-968C-B6D5CD007ED5","6A1A15ED-AF55-45D4-9F31-DD1F48CB8CD6"],"_ClipMode":"visible","isPressed":false,"_StyleClassNames":["Morph","Button"],"isCopyMorphRef":true,"morphRefId":1,"owner":{"__isSmartRef__":true,"id":1},"attributeConnections":[{"__isSmartRef__":true,"id":124}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","normalFill","lighterFill","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(270.0,2.2)","normalFill":"lively.morphic.Gradient.create({\n  stops: [{\n    color: Color.rgb(245,245,245),\n    offset: 0\n  },{\n    color: Color.rgb(209,209,209),\n    offset: 0.4\n  },{\n    color: Color.rgb(209,209,209),\n    offset: 0.6\n  },{\n    color: Color.rgb(240,240,240),\n    offset: 1\n  }],\n  type: \"linear\",\n  vector: lively.rect(0,0,0,1)\n})","lighterFill":"lively.morphic.Gradient.create({\n  stops: [{\n    color: Color.rgb(250,250,250),\n    offset: 0\n  },{\n    color: Color.rgb(232,232,232),\n    offset: 0.4\n  },{\n    color: Color.rgb(232,232,232),\n    offset: 0.6\n  },{\n    color: Color.rgb(248,248,248),\n    offset: 1\n  }],\n  type: \"linear\",\n  vector: lively.rect(0,0,0,1)\n})","distanceToDragEvent":"lively.pt(63.4,-10.4)"},"116":{"submorphs":[],"scripts":[],"id":"3BBB4A91-66FC-4CD4-B5CB-B659B1B5DB3A","shape":{"__isSmartRef__":true,"id":117},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":86,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":115},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":118}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":120},"_HandStyle":"default","_PointerEvents":"none","_MinTextWidth":86,"_MinTextHeight":null,"derivationIds":[4832,"83C6D421-CE38-4B59-B90B-9766A32DA7B6","888D57D4-A262-4FA5-9129-2015FBC09B4E","DB7AD765-3561-4C03-B5FB-69E855320855","AAE0E83A-EAC5-4A4F-901B-9695B3ABFAFA","6D27C166-5B44-45B4-A42B-665AEF81D9D5","6C4569B4-1F83-4E0C-A72C-1881D666F52A"],"_InputAllowed":false,"_FontSize":10,"__serializedExpressions__":["_Position","padding","_Padding","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"117":{"_BorderWidth":0,"_Fill":null,"_ClipMode":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(86.0,21.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"118":{"style":{"__isSmartRef__":true,"id":119},"chunkOwner":{"__isSmartRef__":true,"id":116},"_id":"_619","storedString":"Reload","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"119":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"120":{"morph":{"__isSmartRef__":true,"id":116},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"121":{"_BorderWidth":1.1840000000000002,"_BorderRadius":5.2,"_ClipMode":"visible","__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(86.0,21.0)","_BorderColor":"Color.rgb(214,214,214)","_Fill":"lively.morphic.Gradient.create({\n  stops: [{\n    color: Color.rgb(245,245,245),\n    offset: 0\n  },{\n    color: Color.rgb(209,209,209),\n    offset: 0.4\n  },{\n    color: Color.rgb(209,209,209),\n    offset: 0.6\n  },{\n    color: Color.rgb(240,240,240),\n    offset: 1\n  }],\n  type: \"linear\",\n  vector: lively.rect(0,0,0,1)\n})","_Padding":"lively.rect(0,0,0,0)"},"122":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":2,"partName":"ScriptableButton","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"123":{"morph":{"__isSmartRef__":true,"id":115},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"124":{"sourceObj":{"__isSmartRef__":true,"id":115},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":12},"targetMethodName":"reload","varMapping":{"__isSmartRef__":true,"id":125},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"125":{"source":{"__isSmartRef__":true,"id":115},"target":{"__isSmartRef__":true,"id":12}},"126":{"submorphs":[{"__isSmartRef__":true,"id":127}],"scripts":[],"id":"21CB8BB0-56D0-46CF-8BCB-4ED517715E62","shape":{"__isSmartRef__":true,"id":132},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":127},"name":"Analyze","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":133},"eventHandler":{"__isSmartRef__":true,"id":134},"derivationIds":[4831,"4BF38ADB-1CF5-4975-82E6-FF03AAC66E24","72598B0F-135D-4BDA-87F6-20BC20B532A0","4B40972E-C4C2-4841-918B-97E94B40E76D","77DD7AF6-567D-43CC-8B74-DC1C7CCAED93","A8C8ACE8-7FF2-4FE6-968C-B6D5CD007ED5","6A1A15ED-AF55-45D4-9F31-DD1F48CB8CD6","FB17BF0C-AE27-4C9B-B483-B2D03166004C"],"_ClipMode":"visible","isPressed":false,"_StyleClassNames":["Morph","Button"],"isCopyMorphRef":true,"morphRefId":1,"attributeConnections":[{"__isSmartRef__":true,"id":135}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"owner":{"__isSmartRef__":true,"id":1},"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","normalFill","lighterFill","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(354.0,1.2)","normalFill":"lively.morphic.Gradient.create({\n  stops: [{\n    color: Color.rgb(245,245,245),\n    offset: 0\n  },{\n    color: Color.rgb(209,209,209),\n    offset: 0.4\n  },{\n    color: Color.rgb(209,209,209),\n    offset: 0.6\n  },{\n    color: Color.rgb(240,240,240),\n    offset: 1\n  }],\n  type: \"linear\",\n  vector: lively.rect(0,0,0,1)\n})","lighterFill":"lively.morphic.Gradient.create({\n  stops: [{\n    color: Color.rgb(250,250,250),\n    offset: 0\n  },{\n    color: Color.rgb(232,232,232),\n    offset: 0.4\n  },{\n    color: Color.rgb(232,232,232),\n    offset: 0.6\n  },{\n    color: Color.rgb(248,248,248),\n    offset: 1\n  }],\n  type: \"linear\",\n  vector: lively.rect(0,0,0,1)\n})","distanceToDragEvent":"lively.pt(63.4,-10.4)"},"127":{"submorphs":[],"scripts":[],"id":"F02269BD-2F35-4A7F-8044-295B38EF994F","shape":{"__isSmartRef__":true,"id":128},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":86,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":126},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":129}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":131},"_HandStyle":"default","_PointerEvents":"none","_MinTextWidth":86,"_MinTextHeight":null,"derivationIds":[4832,"83C6D421-CE38-4B59-B90B-9766A32DA7B6","888D57D4-A262-4FA5-9129-2015FBC09B4E","DB7AD765-3561-4C03-B5FB-69E855320855","AAE0E83A-EAC5-4A4F-901B-9695B3ABFAFA","6D27C166-5B44-45B4-A42B-665AEF81D9D5","6C4569B4-1F83-4E0C-A72C-1881D666F52A","3BBB4A91-66FC-4CD4-B5CB-B659B1B5DB3A"],"_InputAllowed":false,"_FontSize":10,"__serializedExpressions__":["_Position","padding","_Padding","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"128":{"_BorderWidth":0,"_Fill":null,"_ClipMode":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(86.0,21.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"129":{"style":{"__isSmartRef__":true,"id":130},"chunkOwner":{"__isSmartRef__":true,"id":127},"_id":"_3042","storedString":"Analyze","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"130":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"131":{"morph":{"__isSmartRef__":true,"id":127},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"132":{"_BorderWidth":1.1840000000000002,"_BorderRadius":5.2,"_ClipMode":"visible","__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(86.0,21.0)","_BorderColor":"Color.rgb(214,214,214)","_Fill":"lively.morphic.Gradient.create({\n  stops: [{\n    color: Color.rgb(245,245,245),\n    offset: 0\n  },{\n    color: Color.rgb(209,209,209),\n    offset: 0.4\n  },{\n    color: Color.rgb(209,209,209),\n    offset: 0.6\n  },{\n    color: Color.rgb(240,240,240),\n    offset: 1\n  }],\n  type: \"linear\",\n  vector: lively.rect(0,0,0,1)\n})","_Padding":"lively.rect(0,0,0,0)"},"133":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":2,"partName":"ScriptableButton","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"134":{"morph":{"__isSmartRef__":true,"id":126},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"135":{"sourceObj":{"__isSmartRef__":true,"id":126},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":12},"targetMethodName":"analyze","varMapping":{"__isSmartRef__":true,"id":136},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"136":{"source":{"__isSmartRef__":true,"id":126},"target":{"__isSmartRef__":true,"id":12}},"137":{"_BorderWidth":1,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(600.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"138":{"partsSpaceName":"PartsBin/Basic","comment":"A plain simple rectangle","migrationLevel":4,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":139},{"__isSmartRef__":true,"id":140},{"__isSmartRef__":true,"id":141},{"__isSmartRef__":true,"id":142},{"__isSmartRef__":true,"id":143},{"__isSmartRef__":true,"id":144},{"__isSmartRef__":true,"id":145},{"__isSmartRef__":true,"id":146},{"__isSmartRef__":true,"id":147},{"__isSmartRef__":true,"id":148},{"__isSmartRef__":true,"id":149},{"__isSmartRef__":true,"id":150},{"__isSmartRef__":true,"id":151},{"__isSmartRef__":true,"id":152},{"__isSmartRef__":true,"id":153}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Thu Jun 20 2013 17:15:30 GMT-0700 (Pacific Daylight Time)\")"},"139":{"author":"SAPLivelyScreen","message":"no comment","id":"7A44D8CA-6D5F-42A3-A4B4-4D7F51EECA52","__serializedExpressions__":["date"],"date":"new Date(\"Tue Jun 18 2013 11:49:27 GMT-0700 (Pacific Daylight Time)\")"},"140":{"author":"SAPLivelyScreen","message":"no comment","id":"EF145198-0649-41BD-A92E-521D98FEC49D","__serializedExpressions__":["date"],"date":"new Date(\"Wed May 29 2013 15:36:50 GMT-0700 (Pacific Daylight Time)\")"},"141":{"author":"jenslincke","message":"added legend","id":"7ADA3049-56C1-4D32-874B-F664A79DDB20","__serializedExpressions__":["date"],"date":"new Date(\"Fri Jan 18 2013 07:47:05 GMT-0800 (Pacific Standard Time)\")"},"142":{"author":"jenslincke","message":"no comment","id":"A4B86A7E-A398-4C29-BEE0-4AA045ABABD2","__serializedExpressions__":["date"],"date":"new Date(\"Fri Jan 18 2013 07:42:31 GMT-0800 (Pacific Standard Time)\")"},"143":{"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205","__serializedExpressions__":["date"],"date":"new Date(\"Thu Nov 22 2012 01:35:51 GMT-0800 (Pacific Standard Time)\")"},"144":{"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8","__serializedExpressions__":["date"],"date":"new Date(\"Mon Jun 18 2012 10:35:08 GMT-0700 (Pacific Daylight Time)\")"},"145":{"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350","__serializedExpressions__":["date"],"date":"new Date(\"Mon Apr 09 2012 04:42:07 GMT-0700 (Pacific Daylight Time)\")"},"146":{"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 14 2012 02:42:26 GMT-0700 (Pacific Daylight Time)\")"},"147":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (Pacific Standard Time)\")"},"148":{"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 14 2012 02:53:45 GMT-0700 (Pacific Daylight Time)\")"},"149":{"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC","__serializedExpressions__":["date"],"date":"new Date(\"Thu May 03 2012 06:51:30 GMT-0700 (Pacific Daylight Time)\")"},"150":{"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23","__serializedExpressions__":["date"],"date":"new Date(\"Thu May 03 2012 06:51:36 GMT-0700 (Pacific Daylight Time)\")"},"151":{"author":"jenslincke","message":"no comment","id":"AEB2F41B-2C88-4BBA-8875-93CD17CBA1C8","__serializedExpressions__":["date"],"date":"new Date(\"Wed Jan 23 2013 03:57:18 GMT-0800 (Pacific Standard Time)\")"},"152":{"author":"robertkrahn","message":"no comment","id":"67FD74CD-7AE4-4050-ADC7-4DF73804258D","__serializedExpressions__":["date"],"date":"new Date(\"Thu May 30 2013 00:18:06 GMT-0700 (Pacific Daylight Time)\")"},"153":{"author":"robertkrahn","message":"no comment","id":"FBBB9C99-B61C-4D5F-8750-6E2987DF0C9C","__serializedExpressions__":["date"],"date":"new Date(\"Thu Jun 20 2013 15:16:24 GMT-0700 (Pacific Daylight Time)\")"},"154":{"morph":{"__isSmartRef__":true,"id":1},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"155":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":156}},"156":{"test01IsMorph":{"__isSmartRef__":true,"id":157}},"157":{"varMapping":{"__isSmartRef__":true,"id":158},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":159},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"158":{"this":{"__isSmartRef__":true,"id":155}},"159":{},"160":{"_BorderWidth":0,"_BorderRadius":14.425000000000002,"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"visible","_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(617.2,450.8)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"161":{"partsSpaceName":"PartsBin/Physics/","comment":"Canvas for the Box2D physics engine, updated to display a simulated bean machine for visualizing the binomial distribution.","migrationLevel":8,"partName":"Box2DBinomial","changes":[{"__isSmartRef__":true,"id":162},{"__isSmartRef__":true,"id":163},{"__isSmartRef__":true,"id":164},{"__isSmartRef__":true,"id":165},{"__isSmartRef__":true,"id":166},{"__isSmartRef__":true,"id":167},{"__isSmartRef__":true,"id":168},{"__isSmartRef__":true,"id":169},{"__isSmartRef__":true,"id":170},{"__isSmartRef__":true,"id":171},{"__isSmartRef__":true,"id":172},{"__isSmartRef__":true,"id":173},{"__isSmartRef__":true,"id":174},{"__isSmartRef__":true,"id":175}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Aug 06 2013 10:26:22 GMT-0700 (Pacific Daylight Time)\")"},"162":{"author":null,"message":"no comment","id":"596F5071-50BB-4602-A25E-DF88F8D8936E","__serializedExpressions__":["date"],"date":"new Date(\"Thu Jul 11 2013 16:56:09 GMT-0700 (Pacific Daylight Time)\")"},"163":{"author":"jenslincke","message":"added a display of seconds","__serializedExpressions__":["date"],"date":"new Date(\"Wed Oct 19 2011 07:06:21 GMT-0700 (Pacific Daylight Time)\")"},"164":{"author":null,"message":"no comment","id":"FF7FFEB2-AEF1-45F6-AA38-7D87F4CC4B2F","__serializedExpressions__":["date"],"date":"new Date(\"Thu Jul 11 2013 15:15:26 GMT-0700 (Pacific Daylight Time)\")"},"165":{"author":null,"message":"no comment","id":"A2475E13-348C-43E3-9FBD-E23810722F54","__serializedExpressions__":["date"],"date":"new Date(\"Thu Jul 11 2013 15:19:03 GMT-0700 (Pacific Daylight Time)\")"},"166":{"author":null,"message":"no comment","id":"A1E084C6-D8F0-4414-80DC-A66A1A30C41E","__serializedExpressions__":["date"],"date":"new Date(\"Thu Jul 11 2013 15:41:32 GMT-0700 (Pacific Daylight Time)\")"},"167":{"author":null,"message":"no comment","id":"53733322-66C1-41C2-91C7-1D7201D2FEC7","__serializedExpressions__":["date"],"date":"new Date(\"Thu Jul 11 2013 15:44:22 GMT-0700 (Pacific Daylight Time)\")"},"168":{"author":null,"message":"no comment","id":"B79AE858-0DBF-4E9D-9E0D-030CB0D2193A","__serializedExpressions__":["date"],"date":"new Date(\"Thu Jul 11 2013 16:02:23 GMT-0700 (Pacific Daylight Time)\")"},"169":{"author":null,"message":"no comment","id":"3C07AEAE-AA82-42B1-9539-3661647C0F0B","__serializedExpressions__":["date"],"date":"new Date(\"Thu Jul 11 2013 16:11:15 GMT-0700 (Pacific Daylight Time)\")"},"170":{"author":null,"message":"no comment","id":"A38B02BB-5B1D-49CE-A41E-6191FFE540B0","__serializedExpressions__":["date"],"date":"new Date(\"Thu Jul 11 2013 16:20:38 GMT-0700 (Pacific Daylight Time)\")"},"171":{"author":null,"message":"no comment","id":"B7D2BE93-A17E-42B1-A20E-F2EFD5B1E323","__serializedExpressions__":["date"],"date":"new Date(\"Thu Jul 11 2013 16:26:11 GMT-0700 (Pacific Daylight Time)\")"},"172":{"__serializedExpressions__":["date"],"author":"Matthew Goldberg","message":"no comment","id":"B761707D-D7DC-417A-9D5D-4CE9C3CDA9AE","date":"new Date(\"Tue Aug 06 2013 10:24:12 GMT-0700 (Pacific Daylight Time)\")"},"173":{"__serializedExpressions__":["date"],"author":"Matthew Goldberg","message":"no comment","id":"5C0A077E-8217-4C2D-B51F-852EB905DC0C","date":"new Date(\"Tue Aug 06 2013 10:25:56 GMT-0700 (Pacific Daylight Time)\")"},"174":{"__serializedExpressions__":["date"],"author":"Matthew Goldberg","message":"no comment","id":"324A429D-70EF-471D-BC0E-87674BCEC37E","date":"new Date(\"Tue Aug 06 2013 10:26:22 GMT-0700 (Pacific Daylight Time)\")"},"175":{"__serializedExpressions__":["date"],"author":"Matthew Goldberg","message":"no comment","id":"15001B01-19F2-4256-8F9E-5F8BCC463928","date":"new Date(\"Tue Aug 06 2013 10:30:15 GMT-0700 (Pacific Daylight Time)\")"},"176":{"morph":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"177":{"layouter":{"__isSmartRef__":true,"id":178},"__serializedExpressions__":["extentWithoutPlaceholder"],"extentWithoutPlaceholder":"lively.pt(617.2,450.8)"},"178":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":8.58,"spacing":8.610000000000001,"container":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.Layout.VerticalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"179":{"expired":{"__isSmartRef__":true,"id":180}},"180":{},"181":{"setupConnections":{"__isSmartRef__":true,"id":182},"updateTick":{"__isSmartRef__":true,"id":183},"updateTickingScripts":{"__isSmartRef__":true,"id":184}},"182":{"user":"robertkrahn","__serializedExpressions__":["time"],"time":"new Date(\"Mon Jul 04 2011 10:13:46 GMT-0700 (Pacific Daylight Time)\")"},"183":{"user":"jenslincke","__serializedExpressions__":["time"],"time":"new Date(\"Wed Oct 19 2011 07:05:04 GMT-0700 (Pacific Daylight Time)\")"},"184":{"user":"jenslincke","__serializedExpressions__":["time"],"time":"new Date(\"Wed Oct 19 2011 07:04:22 GMT-0700 (Pacific Daylight Time)\")"},"isSimplifiedRegistry":true}}