{"id":0,"registry":{"0":{"submorphs":[{"__isSmartRef__":true,"id":1},{"__isSmartRef__":true,"id":155}],"scripts":[],"id":"BE7A4D6D-1A0E-4C9F-B924-E7CE3F3A676E","shape":{"__isSmartRef__":true,"id":223},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"ggvis1a","partsBinMetaInfo":{"__isSmartRef__":true,"id":224},"eventHandler":{"__isSmartRef__":true,"id":237},"layout":{"__isSmartRef__":true,"id":238},"connections":{"__isSmartRef__":true,"id":240},"isInLayoutCycle":false,"scriptAnnotations":{"__isSmartRef__":true,"id":242},"tick":1309799475780,"time":1373575916956,"derivationIds":[4829,"1FA0A483-C5AC-4990-9F2B-DAE0CBDB49E8","E8E43B9B-A6AF-4047-B7E5-30D59D9306B8","0A1E5E07-5A39-4170-973C-E392D1F70E70","3E833992-F988-4478-97EE-C43C4DA002B4","DAF1BF07-61D5-4E64-AF12-98AB0032F4E6"],"_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(658.0,-10.0)","_Position":"lively.pt(0.0,0.0)"},"1":{"submorphs":[{"__isSmartRef__":true,"id":2},{"__isSmartRef__":true,"id":7}],"scripts":[],"id":"D01F3088-F517-409A-BA28-7CAE0DCB0317","shape":{"__isSmartRef__":true,"id":94},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"Rectangle1","partsBinMetaInfo":{"__isSmartRef__":true,"id":95},"eventHandler":{"__isSmartRef__":true,"id":111},"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","8BAD3D07-572C-4C99-AB0A-818C53EF8E8C"],"partTests":{"__isSmartRef__":true,"id":112},"_ClipMode":"visible","moved":true,"layout":{"__isSmartRef__":true,"id":117},"isInLayoutCycle":false,"_Rotation":0,"_Scale":1,"attributeConnections":[{"__isSmartRef__":true,"id":119},{"__isSmartRef__":true,"id":122},{"__isSmartRef__":true,"id":133},{"__isSmartRef__":true,"id":130}],"doNotSerialize":["$$_Rotation","$$_Scale"],"doNotCopyProperties":["$$_Rotation","$$_Scale"],"owner":{"__isSmartRef__":true,"id":0},"__serializedExpressions__":["distanceToDragEvent","_Position"],"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","distanceToDragEvent":"lively.pt(898.0,-14.0)","_Position":"lively.pt(8.6,8.6)"},"2":{"storedTextString":"parms: {\n    binwidth: \"0.5\",\n    binoffset: \"0\",\n    check1: \"FALSE\",\n    check2: \"FALSE\"\n},\n\ndata: [\n    'carsWorking <- mtcars',\n    'trialLine <- data.frame(wt=c(1.4,5.4),mpg=c(20,20))'\n],\n\nbasevis: [\n    'quote(carsWorking)',\n    'props(x ~ wt, y ~ mpg)',\n    'mark_symbol(props(fill=\"blue\", dragx=\"x,carsWorking,wt\", dragy=\"y,carsWorking,mpg\"))',\n    'scale_quantitative(\"x\", domain=c(0, 7.0), range=\"width\")',\n    'if (gvParms$check1) branch_smooth(props(stroke=\"red\", strokeWidth=3), method=\"lm\", n=2L)',\n    'mark_symbol(props(fill=\"green\", shape=\"diamond\", dragy=\"y,trialLine,mpg\"), trialLine)',\n    'mark_line(props(stroke=\"green\", strokeWidth=2), trialLine)',\n    'branch_histogram(props(fill=\"gray\", fillOpacity=0.3), binwidth=gvParms$binwidth, origin=gvParms$binwidth*gvParms$binoffset)'\n],\n\nscenarios: {\n    binoffset: \"seq(0.1, 0.9, 0.1)\"\n},\n\nscenariovis: [\n    'if (gvParms$check2) branch_histogram(props(fill=\"green\", stroke=NA, fillOpacity=0.1), binwidth=gvParms$binwidth, origin=gvParms$binwidth*gvParms$binoffset)'\n],\n\nmeasures: [\n    'r squared=rsquared(sluice(transform_scale(), props(x~wt, y~mpg), carsWorking), sluice(transform_scale(), props(x~wt, y~mpg), trialLine))'\n    ,'debug stuff=Sys.time()'\n    ],\n    \nvis2: [\n    'quote(carsWorking)',\n    'mark_table()'\n]\n","submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3},"derivationIds":["E19A3FE5-487E-41CA-84C5-C1C1DFF388A4"],"id":"E0B718C2-EFAA-4786-AB6D-7A37DC1442DF","grabbingEnabled":false,"droppingEnabled":true,"halosEnabled":true,"_FontSize":12,"doNotSerialize":["whenOpenedInWorldCallbacks"],"_ShowGutter":true,"_TextMode":"r","_Theme":"chrome","_LineWrapping":true,"_ShowInvisibles":false,"_ShowPrintMargin":false,"_ShowIndents":true,"_ShowActiveLine":false,"_SoftTabs":true,"_AutocompletionEnabled":true,"storedString":"3 + 4","owner":{"__isSmartRef__":true,"id":1},"eventHandler":{"__isSmartRef__":true,"id":4},"layout":{"__isSmartRef__":true,"id":5},"accessibleInInactiveWindow":true,"allowInput":true,"_isFocused":false,"prevScroll":[0,0],"showsHalos":false,"_Rotation":0,"_Scale":1,"name":"CodePanel","isCopyMorphRef":true,"morphRefId":1,"attributeConnections":[{"__isSmartRef__":true,"id":6}],"draggingEnabled":false,"_ShowWarnings":true,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.CodeEditor","__SourceModuleName__":"Global.lively.ide.CodeEditor","_Position":"lively.pt(0.0,0.0)"},"3":{"_BorderWidth":1,"__serializedExpressions__":["_Extent","_BorderColor","extent"],"__LivelyClassName__":"lively.morphic.CodeEditorShape","__SourceModuleName__":"Global.lively.ide.CodeEditor","_Extent":"lively.pt(567.0,945.0)","_BorderColor":"Color.rgb(95,94,95)","extent":"lively.pt(567.0,945.0)"},"4":{"morph":{"__isSmartRef__":true,"id":2},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5":{"resizeWidth":true,"resizeHeight":true},"6":{"sourceObj":{"__isSmartRef__":true,"id":2},"sourceAttrName":"doSave","targetObj":{"__isSmartRef__":true,"id":7},"targetMethodName":"runCode","varMapping":{"__isSmartRef__":true,"id":93},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"7":{"shape":{"__isSmartRef__":true,"id":8},"submorphs":[],"scripts":[],"_ClipMode":"visible","derivationIds":["4C9965B9-D959-4EB4-A1DB-EBCE9EC212B9","D615A9C8-4617-4E01-80EE-F911CB0CEFE5"],"id":"BBD2ECFB-AE8A-479F-BD0F-A36317B96A14","droppingEnabled":true,"halosEnabled":true,"eventHandler":{"__isSmartRef__":true,"id":9},"showsHalos":false,"isBeingDragged":false,"name":"ShinyGigvisMorph1","layout":{"__isSmartRef__":true,"id":10},"isCopyMorphRef":true,"morphRefId":1,"_Rotation":0,"_Scale":0.9900990099009901,"attributeConnections":[{"__isSmartRef__":true,"id":11},{"__isSmartRef__":true,"id":14},{"__isSmartRef__":true,"id":25},{"__isSmartRef__":true,"id":22}],"doNotSerialize":["$$_Rotation","$$_Scale"],"doNotCopyProperties":["$$_Rotation","$$_Scale"],"grabbingEnabled":false,"draggingEnabled":false,"owner":{"__isSmartRef__":true,"id":1},"RevalID":null,"__serializedExpressions__":["distanceToDragEvent","_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":47},"__LivelyClassName__":"lively.morphic.HtmlWrapperMorph","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","distanceToDragEvent":"lively.pt(381.4,-10.6)","_Position":"lively.pt(569.0,0.0)"},"8":{"stringifiedShapeNode":"<div style=\"overflow: visible; position: absolute; left: 0px; top: 0px; padding: 0px; width: 677.99px; height: 954px; background-color: rgb(249, 249, 249); border: 0px solid rgb(204, 0, 0); opacity: 1;\" data-lively-morphid=\"BBD2ECFB-AE8A-479F-BD0F-A36317B96A14\" class=\"shiny-top\" id=\"shinyTop\"><div class=\"ggvis-output\" id=\"plot1\"></div><div class=\"ggvis-output\" id=\"plot2\"></div><pre class=\"shiny-text-output\" id=\"measures1\"></pre></div>","_BorderWidth":0,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_Padding","_Fill","extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.External","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(678.0,954.0)","_Padding":"lively.rect(0,0,0,0)","_Fill":"Color.rgb(249,249,249)","extent":"lively.pt(678.0,954.0)","_BorderColor":"Color.rgb(204,0,0)"},"9":{"morph":{"__isSmartRef__":true,"id":7},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"10":{"resizeWidth":false},"11":{"sourceObj":{"__isSmartRef__":true,"id":7},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":12},"targetMethodName":"setRotation","varMapping":{"__isSmartRef__":true,"id":46},"dependedBy":{"__isSmartRef__":true,"id":14},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"12":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":13},"_ClipMode":"visible","derivationIds":[],"id":"1038F106-C79D-46F2-93EE-E5D6D9BACCE5","droppingEnabled":false,"halosEnabled":true,"isGrabShadow":true,"connections":[{"__isSmartRef__":true,"id":14},{"__isSmartRef__":true,"id":22}],"_Rotation":0,"_Scale":0.9900990099009901,"owner":null,"eventHandler":{"__isSmartRef__":true,"id":32},"submorphsForReconnect":[],"attributeConnections":[{"__isSmartRef__":true,"id":33}],"doNotSerialize":["$$owner"],"doNotCopyProperties":["$$owner"],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":35},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(717.0,0.0)"},"13":{"stringifiedShapeNode":"<div style=\"overflow: visible; position: absolute; left: 0px; top: 0px; padding: 0px; width: 669.99px; height: 456px; background-color: rgb(102, 102, 102); border: 0px solid rgb(204, 0, 0); opacity: 0.5; background-position: initial initial; background-repeat: initial initial;\" data-lively-morphid=\"1038F106-C79D-46F2-93EE-E5D6D9BACCE5\" class=\"Morph HtmlWrapperMorph\" id=\"null\"></div>","_BorderWidth":0,"_BorderRadius":0,"_Opacity":0.5,"_BorderStyle":"solid","_AppearanceStylingMode":false,"_BorderStylingMode":false,"__serializedExpressions__":["_Position","_Extent","_Padding","_Fill","extent","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.External","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(670.0,456.0)","_Padding":"lively.rect(0,0,0,0)","_Fill":"Color.rgb(102,102,102)","extent":"lively.pt(0.0,0.0)","_BorderColor":"Color.rgb(204,0,0)"},"14":{"sourceObj":{"__isSmartRef__":true,"id":7},"sourceAttrName":"rotation","targetObj":{"__isSmartRef__":true,"id":12},"targetMethodName":"setRotation","varMapping":{"__isSmartRef__":true,"id":15},"attributeConnections":[{"__isSmartRef__":true,"id":16},{"__isSmartRef__":true,"id":18},{"__isSmartRef__":true,"id":20}],"doNotSerialize":["$$converterString","$$updaterString","$$varMapping"],"doNotCopyProperties":["$$converterString","$$updaterString","$$varMapping"],"dependendConnections":[{"__isSmartRef__":true,"id":11}],"__LivelyClassName__":"lively.morphic.GeometryConnection","__SourceModuleName__":"Global.lively.bindings.GeometryBindings"},"15":{"source":{"__isSmartRef__":true,"id":7},"target":{"__isSmartRef__":true,"id":12}},"16":{"sourceObj":{"__isSmartRef__":true,"id":14},"sourceAttrName":"converterString","targetObj":{"__isSmartRef__":true,"id":11},"targetMethodName":"setConverter","varMapping":{"__isSmartRef__":true,"id":17},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"17":{"source":{"__isSmartRef__":true,"id":14},"target":{"__isSmartRef__":true,"id":11}},"18":{"sourceObj":{"__isSmartRef__":true,"id":14},"sourceAttrName":"updaterString","targetObj":{"__isSmartRef__":true,"id":11},"targetMethodName":"setUpdater","varMapping":{"__isSmartRef__":true,"id":19},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"19":{"source":{"__isSmartRef__":true,"id":14},"target":{"__isSmartRef__":true,"id":11}},"20":{"sourceObj":{"__isSmartRef__":true,"id":14},"sourceAttrName":"varMapping","targetObj":{"__isSmartRef__":true,"id":11},"targetMethodName":"varMapping","varMapping":{"__isSmartRef__":true,"id":21},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"21":{"source":{"__isSmartRef__":true,"id":14},"target":{"__isSmartRef__":true,"id":11}},"22":{"sourceObj":{"__isSmartRef__":true,"id":7},"sourceAttrName":"scale","targetObj":{"__isSmartRef__":true,"id":12},"targetMethodName":"setScale","varMapping":{"__isSmartRef__":true,"id":23},"attributeConnections":[{"__isSmartRef__":true,"id":24},{"__isSmartRef__":true,"id":28},{"__isSmartRef__":true,"id":30}],"doNotSerialize":["$$converterString","$$updaterString","$$varMapping"],"doNotCopyProperties":["$$converterString","$$updaterString","$$varMapping"],"dependendConnections":[{"__isSmartRef__":true,"id":25}],"__LivelyClassName__":"lively.morphic.GeometryConnection","__SourceModuleName__":"Global.lively.bindings.GeometryBindings"},"23":{"source":{"__isSmartRef__":true,"id":7},"target":{"__isSmartRef__":true,"id":12}},"24":{"sourceObj":{"__isSmartRef__":true,"id":22},"sourceAttrName":"converterString","targetObj":{"__isSmartRef__":true,"id":25},"targetMethodName":"setConverter","varMapping":{"__isSmartRef__":true,"id":27},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"25":{"sourceObj":{"__isSmartRef__":true,"id":7},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":12},"targetMethodName":"setScale","varMapping":{"__isSmartRef__":true,"id":26},"dependedBy":{"__isSmartRef__":true,"id":22},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"26":{"source":{"__isSmartRef__":true,"id":7},"target":{"__isSmartRef__":true,"id":12}},"27":{"source":{"__isSmartRef__":true,"id":22},"target":{"__isSmartRef__":true,"id":25}},"28":{"sourceObj":{"__isSmartRef__":true,"id":22},"sourceAttrName":"updaterString","targetObj":{"__isSmartRef__":true,"id":25},"targetMethodName":"setUpdater","varMapping":{"__isSmartRef__":true,"id":29},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"29":{"source":{"__isSmartRef__":true,"id":22},"target":{"__isSmartRef__":true,"id":25}},"30":{"sourceObj":{"__isSmartRef__":true,"id":22},"sourceAttrName":"varMapping","targetObj":{"__isSmartRef__":true,"id":25},"targetMethodName":"varMapping","varMapping":{"__isSmartRef__":true,"id":31},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"31":{"source":{"__isSmartRef__":true,"id":22},"target":{"__isSmartRef__":true,"id":25}},"32":{"morph":{"__isSmartRef__":true,"id":12},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"33":{"sourceObj":{"__isSmartRef__":true,"id":12},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":12},"targetMethodName":"reconnect","varMapping":{"__isSmartRef__":true,"id":34},"removeAfterUpdate":true,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"34":{"source":{"__isSmartRef__":true,"id":12},"target":{"__isSmartRef__":true,"id":12}},"35":{"remove":{"__isSmartRef__":true,"id":36},"reconnect":{"__isSmartRef__":true,"id":43}},"36":{"varMapping":{"__isSmartRef__":true,"id":37},"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":42},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37":{"this":{"__isSmartRef__":true,"id":12},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":38}},"38":{"$super":{"__isSmartRef__":true,"id":39}},"39":{"varMapping":{"__isSmartRef__":true,"id":40},"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":41},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"40":{"obj":{"__isSmartRef__":true,"id":12},"name":"remove"},"41":{},"42":{},"43":{"varMapping":{"__isSmartRef__":true,"id":44},"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":45},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"44":{"this":{"__isSmartRef__":true,"id":12}},"45":{},"46":{"source":{"__isSmartRef__":true,"id":7},"target":{"__isSmartRef__":true,"id":12}},"47":{"reset":{"__isSmartRef__":true,"id":48},"onLoad":{"__isSmartRef__":true,"id":51},"killR":{"__isSmartRef__":true,"id":54},"runCode":{"__isSmartRef__":true,"id":57},"startShiny":{"__isSmartRef__":true,"id":60},"runRCode":{"__isSmartRef__":true,"id":63},"haltShinyApp":{"__isSmartRef__":true,"id":66},"initialise":{"__isSmartRef__":true,"id":69},"wrapRSpec":{"__isSmartRef__":true,"id":72},"seeRResults":{"__isSmartRef__":true,"id":75},"haltAndReset":{"__isSmartRef__":true,"id":78},"isRReady":{"__isSmartRef__":true,"id":81},"loadVegaAndShiny":{"__isSmartRef__":true,"id":84},"ensureRAndLibs":{"__isSmartRef__":true,"id":87},"ensureR":{"__isSmartRef__":true,"id":90}},"48":{"varMapping":{"__isSmartRef__":true,"id":49},"source":"function reset() {\n    // this.reset()\n    var topDiv = this.renderContext().shapeNode;\n    topDiv.setAttribute( 'class', 'shiny-top' );\n    topDiv.setAttribute( 'id', 'shinyTop' );\n    lively.$(topDiv).html('');\n    for (var i=1; i<3; i++) {\n        var plotDiv = document.createElement( 'div' );\n        plotDiv.setAttribute( 'class', 'ggvis-output' );\n        plotDiv.setAttribute( 'id', 'plot'+i );\n        topDiv.appendChild( plotDiv );\n    }\n    var measurePre= document.createElement( 'pre' );\n    measurePre.setAttribute( 'class', 'shiny-text-output' );\n    measurePre.setAttribute( 'id', 'measures1' );\n    topDiv.appendChild( measurePre);\n\n    this.RevalID = null;\n}","funcProperties":{"__isSmartRef__":true,"id":50},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"49":{"this":{"__isSmartRef__":true,"id":7}},"50":{"user":"undefined","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Sep 15 2013 19:48:40 GMT-0700 (PDT)\")"},"51":{"varMapping":{"__isSmartRef__":true,"id":52},"source":"function onLoad() {\n    this.reset();\n}","funcProperties":{"__isSmartRef__":true,"id":53},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"52":{"this":{"__isSmartRef__":true,"id":7}},"53":{"user":"robertkrahn","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Wed Aug 07 2013 18:28:46 GMT-0700 (PDT)\")"},"54":{"varMapping":{"__isSmartRef__":true,"id":55},"source":"function killR() {\n    // this.killR()\n    // WARNING: kills every running R command on this system\n    // to focus on R commands with an established tcp connection (but it has to be established, rather than just listening), use something like   lsof -ta -i tcp@localhost:8100 -c 'R'\n\n    lively.shell.exec(\"killall R\", { sync: true })\n}","funcProperties":{"__isSmartRef__":true,"id":56},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"55":{"this":{"__isSmartRef__":true,"id":7}},"56":{"user":"undefined","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sat Sep 14 2013 09:59:04 GMT-0700 (PDT)\")"},"57":{"varMapping":{"__isSmartRef__":true,"id":58},"source":"function runCode() {\n    // this.runCode()\n    // This is connected to the interface Run button, and is also invoked if the user saves new code in the code pane.\n    var self = this;\n    function whenReady() {\n        var shinyStarted = false;\n        if (window.Shiny) {\n            self.haltShinyApp();\n            delay = 250;\n        } else { delay = 0 };\n        setTimeout(function() {\n            self.runRCode(function(err, results) {\n                // console.log(Date.now());\n                // long-lived function receiving results from R\n                if (results) {\n                    results.forEach(function(res) {\n                        // console.log(res)\n                        // Wait for R to print Shiny's \"Listening\" message before initialising Shiny at this end.\n                        if (res.message) {\n                            if (!shinyStarted && res.message.indexOf(\"Listening on port\") !== -1) {\n                                shinyStarted = true;\n                                var portNumber = Number(res.message.trim().split(\" \").last());\n                                console.log(portNumber)\n                                self.startShiny(portNumber);\n                            } else { console.log(res.message) }\n                        }\n                        if (res.warning) console.log(\"A warning: \", res.warning);\n                    })\n                }\n                // if R reports an error, immediately halt the Shiny app\n                if (err) {\n                    show(err);\n                    self.haltShinyApp();\n                }\n            });\n        }, delay);\n    };\n    \n    this.ensureRAndLibs(function(err, res) {\n        if (!err) whenReady()\n        });\n}","funcProperties":{"__isSmartRef__":true,"id":59},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"58":{"this":{"__isSmartRef__":true,"id":7}},"59":{"__serializedExpressions__":["timestamp"],"user":"AranLunzer","tags":[],"timestamp":"new Date(\"Mon Sep 16 2013 16:46:07 GMT-0700 (PDT)\")"},"60":{"varMapping":{"__isSmartRef__":true,"id":61},"source":"function startShiny(portNumber) {\n    // this.startShiny(8100)\n    Global.shinyServerURL = URL.source.hostname + ':' + String(portNumber);\n    window.Shiny.initShiny();\n    initShinyGgvis();\n    alertOK(\"Shiny running on \"+portNumber);\n}","funcProperties":{"__isSmartRef__":true,"id":62},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"61":{"this":{"__isSmartRef__":true,"id":7}},"62":{"__serializedExpressions__":["timestamp"],"user":"AranLunzer","tags":[],"timestamp":"new Date(\"Mon Sep 16 2013 17:25:48 GMT-0700 (PDT)\")"},"63":{"varMapping":{"__isSmartRef__":true,"id":64},"source":"function runRCode(resultProcessor) {\n    this.RevalID = apps.RInterface.doEval(this.wrapRSpec(), null, resultProcessor);          // null => no timeout (i.e., indefinite)\n}","funcProperties":{"__isSmartRef__":true,"id":65},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"64":{"this":{"__isSmartRef__":true,"id":7}},"65":{"__serializedExpressions__":["timestamp"],"user":"AranLunzer","tags":[],"timestamp":"new Date(\"Mon Sep 16 2013 16:46:39 GMT-0700 (PDT)\")"},"66":{"varMapping":{"__isSmartRef__":true,"id":67},"source":"function haltShinyApp() {\n    // this.haltShinyApp()\n    // This is connected to the interface's Stop button, and is intended to undo the effects of the Run button (e.g., prior to a new run).  Namely:\n    //   1. Stop evaluation of any R ggvis thread\n    //   2. Detach Shiny bindings from elements on the page\n    // It is also invoked if a running R/ggvis session hits an R error.\n    if (this.RevalID) {\n        apps.RInterface.livelyREvaluate_stopEval(this.RevalID, function(error, result) { if (error) show(error); else alertOK(\"old R eval stopped\") });\n        this.RevalID = null\n    }\n    // unbindAll only appears once Shiny has been initialised\n    if (window.Shiny && window.Shiny.unbindAll) window.Shiny.unbindAll();\n}","funcProperties":{"__isSmartRef__":true,"id":68},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"67":{"this":{"__isSmartRef__":true,"id":7}},"68":{"__serializedExpressions__":["timestamp"],"user":"AranLunzer","tags":[],"timestamp":"new Date(\"Mon Sep 16 2013 17:27:15 GMT-0700 (PDT)\")"},"69":{"varMapping":{"__isSmartRef__":true,"id":70},"source":"function initialise() {\n    // Prepare an R process, and load Vega and Shiny js (but don't start Shiny)\n    this.haltShinyApp();    // stop any running R thread and unbind Shiny\n    this.ensureRAndLoadLibs(function(err,res) {});\n}","funcProperties":{"__isSmartRef__":true,"id":71},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"70":{"this":{"__isSmartRef__":true,"id":7}},"71":{"__serializedExpressions__":["timestamp"],"user":"AranLunzer","tags":[],"timestamp":"new Date(\"Mon Sep 16 2013 16:51:42 GMT-0700 (PDT)\")"},"72":{"varMapping":{"__isSmartRef__":true,"id":73},"source":"function wrapRSpec() {\n    // this.wrapRSpec()\n\n    function fillTemplate(template,data){\n        return template.replace(/%(\\w*)%/g,function(m,key){return data.hasOwnProperty(key)?data[key]:\"\";});\n    }\n\n    var editor = this.get(\"CodePanel\");\n    var codeString = editor.getTextString();\n    var rawFillers = eval(\"({\"+codeString+\"})\");\n\n    var fillers = {}\n    fillers.gvParms = ($.map(rawFillers.parms, function( value, key )\n        { return key+\"=\"+value })).join(\",\");\n    fillers.inputObservers = ($.map(rawFillers.parms, function( value, key )\n        { return fillTemplate(\"if (!is.null(input$%var%)) { gvParms$%var% <<- eval(parse(text=input$%var%)); triggerRefresh() }\", { var: key }) })).join(\"\\n\");\n    fillers.outputObservers = \"\"\n    fillers.data = ($.map(rawFillers.data, function( value, key )\n        { return \"evalInTopEnv('\"+value+\"')\" })).join(\"\\n\")\n    fillers.basevis = rawFillers.basevis.join(\",\\n\")\n    fillers.vis2 = rawFillers.vis2.join(\",\\n\")\n    fillers.scenarios = fillers.scenariovis = \"NULL\"\n\n    /*\n    example of output observer:\n    observe({\n        output$measures <- renderText(\n            paste0(\n                paste0(\"binwidth = \", as.character(gvParms$binwidth)),\n                paste0(\"some other thing = \", as.character(some-expression))\n            ,collapse=\"\\n\"\n            )\n        )\n    })\n    */\n    \n    if (rawFillers.measures) {\n        fillers.outputObservers = ($.map(rawFillers.measures, function( value ) {\n            nameVal = value.split(\"=\");\n            return \"paste0('\" + nameVal[0] + \" = ', as.character(\" + nameVal[1] + \"))\"})).join(\",\\n\")\n    }\n\n    if (rawFillers.scenarios && rawFillers.scenariovis) {\n        fillers.scenarios =\n            \"data.frame(\"\n            + ($.map(rawFillers.scenarios, function( value, key )\n                { return key+\"=\"+value })).join(\", \")\n            + \")\";\n\n        fillers.scenariovis = rawFillers.scenariovis.join(\",\\n\");\n    }\n\n    function commentIn(f) {\n        return f.toString().\n            replace(/^[^\\/]+\\/\\*!?/, '').\n            replace(/\\*\\/[^\\/]+$/, '');\n    }\n\n    var codeTemplate = commentIn(function() {/*!\nwith(new.env(),{      # crucial so we don't fill the top env with large objects that then get copied on every fork\nevalInTopEnv = function(str) {\n    # do in the global environment for this invocation\n    eval(parse(text=str), envir=globalenv())\n}\n\npredictOnLine <- function(trialdata, datax){\n  slope <- (trialdata$y[1] -trialdata$y[2])/(trialdata$x[1] -trialdata$x[2])\n  intercept <- trialdata$y[1] - slope*trialdata$x[1]\n  y <- slope*datax + intercept\n  return(data.frame(datax, y))\n}\nrsquared <- function(realdata, trialdata){\n  ssTot <- sum((realdata$y-mean(realdata$y))^2)\n  ssRes <- sum((realdata$y-predictOnLine(trialdata, realdata$x)$y)^2)\n  return(round(1-ssRes/ssTot, digits=3))\n}\n\nevalInTopEnv('gvReactives <- reactiveValues(refresh=0, argList=NULL, measures=\"here are some measures\")')\nevalInTopEnv('gvParms <- list(%gvParms%)')\n\n%data%\n\nobserver = function(input,output) {\n  triggerRefresh = function() {\n    gvReactives$refresh <- isolate(gvReactives$refresh) + 1\n    }\n\n  observe({\n%inputObservers%\n  })\n  \n  observe({\n    gvReactives$refresh;\noutput$measures1 <- renderText(paste(%outputObservers%,sep=\"\\n\"))\n  })\n}\n\ngvReactives$argList1 <- reactive({\n    gvReactives$refresh;\n\n    # if (gvParms$binwidth < 0.3) warning(\"you shouldn't do that\")\n\n    # build the basic list\n    ls = list(\n%basevis%\n    )\n\n    # now add any scenario-specific stuff\n    scendf <- %scenarios%\n    if (!is.null(scendf)) {\n        evalInTopEnv('oldParms <- gvParms')\n        for (r in 1:nrow(scendf)) {\n            for (c in names(scendf)) {\n                evalInTopEnv(paste0('gvParms[[\"', as.character(c), '\"]] <-', as.character(scendf[r,c])))\n            }\n            evalInTopEnv(paste0('gvParms[[\"scenario\"]] <-',as.character(r)))\n            scenClauses <- list(\n%scenariovis%\n)\n            for (cl in scenClauses) { ls[[length(ls)+1]] <- cl }   # could include NULL\n        }\n        evalInTopEnv('gvParms <- oldParms')\n    }\n\n    # clear out any NULLs\n    ls[!is.null(ls)]\n}, label=\"build_gv_list1\")\ngv1 <- reactive({ do.call(\"ggvis\", gvReactives$argList1()) }, label=\"do_ggvis_call1\")\n\n# assume for now that vis2 defines a table\ngvReactives$argList2 <- reactive({\n    gvReactives$refresh;\n\n    # build the basic list\n    ls = list(\n%vis2%\n    )\n}, label=\"build_gv_list2\")\ngv2 <- reactive({ do.call(\"ggvis_table\", gvReactives$argList2()) }, label=\"do_ggvis_call2\")\n\nview_lively(c(list(gv1),list(gv2)), customObserver = observer)\n})\n*/});\n\n    return fillTemplate(codeTemplate, fillers);\n}","funcProperties":{"__isSmartRef__":true,"id":74},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"73":{"this":{"__isSmartRef__":true,"id":7}},"74":{"__serializedExpressions__":["timestamp"],"user":"AranLunzer","tags":[],"timestamp":"new Date(\"Tue Sep 17 2013 03:58:14 GMT-0700 (PDT)\")"},"75":{"varMapping":{"__isSmartRef__":true,"id":76},"source":"function seeRResults() {\n    // this.seeRResults()\n    apps.RInterface.livelyREvaluate_getResult(this.RevalID, function(error, result) { Rresults = { error: error, result: result} });\n}","funcProperties":{"__isSmartRef__":true,"id":77},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"76":{"this":{"__isSmartRef__":true,"id":7}},"77":{"user":"AranLunzer","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Thu Sep 05 2013 15:51:58 GMT-0700 (PDT)\")"},"78":{"varMapping":{"__isSmartRef__":true,"id":79},"source":"function haltAndReset() {\n    this.haltShinyApp();    // if it was running\n    this.reset();\n}","funcProperties":{"__isSmartRef__":true,"id":80},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"79":{"this":{"__isSmartRef__":true,"id":7}},"80":{"user":"undefined","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Sun Sep 15 2013 18:43:39 GMT-0700 (PDT)\")"},"81":{"varMapping":{"__isSmartRef__":true,"id":82},"source":"function isRReady(callback) {\n    // this.isRReady(function(ready) { show(String(ready)) })\n    // answer whether R is available and has ggvis loaded\n    require('apps.RInterface').toRun(function() {\n        var rReady = null;\n\n        var foundAnswer = function(bool) {\n            if (rReady === null) { rReady = bool }\n            }\n        setTimeout(foundAnswer.curry(false), 1000);\n        apps.RInterface.evalSync('exists(\"ggvis\")', function(err, res) {\n            foundAnswer(err === null && res !== null && res.include('TRUE'));\n        });\n    \n        var pollProcess = setInterval(function answerPoll() {\n            if (rReady !== null) {\n                clearInterval(pollProcess);\n                callback(rReady);\n            }\n        }, 200);\n    })\n}","funcProperties":{"__isSmartRef__":true,"id":83},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"82":{"this":{"__isSmartRef__":true,"id":7}},"83":{"__serializedExpressions__":["timestamp"],"user":"AranLunzer","tags":[],"timestamp":"new Date(\"Mon Sep 16 2013 17:13:26 GMT-0700 (PDT)\")"},"84":{"varMapping":{"__isSmartRef__":true,"id":85},"source":"function loadVegaAndShiny(thenDo) {\n    // this.loadVegaAndShiny(function(err,res) { show(\"done\") })\n    // load vega, and then shiny and shiny-ggvis without starting either\n    // This should be ok to run multiple times on a page: shiny.js will\n    // just replace any previously set up window.Shiny.\n    Global.deferredShinyInit = true;\n    Global.shinyGgvisInitialized = false;\n\n    var serverURL = Global.document.location.host;\n    [\n    // 1. load d3\n    function(next) {\n        require(\"apps.d3Interface\").toRun(function() {\n\n        // 2. load vega\n            var url = \"http://\" + serverURL + \"/R-libraries/ggvis/www/lib/vega.js\";\n            new WebResource(url).whenDone(function(src, status) {\n                if (!status.isSuccess()) {\n                    show('cannot load vega! %s', status);\n                } else {\n                    try { eval(src); next() } catch (e) {\n                        show('cannot load vega! %s', e.stack || e); }\n                }\n            }).beAsync().get();\n        })\n    },\n\n    // 3. load shiny (and change the websocket url)\n    // Function initShiny ends up sending a message\n    // to the server announcing that the page is ready to receive chart messages.\n    function(next) {\n        var url = \"http://\" + serverURL + \"/R-libraries/shiny/www/shared/shiny.js\";\n        new WebResource(url).whenDone(function(src, status) {\n            if (!status.isSuccess()) {\n                show('cannot load shiny! %s', status);\n            } else {\n                // hack the socket definition to pick up the URL we build\n                src = src.replace(/new WebSocket.*/, 'new WebSocket(Strings.format(\"ws://%s/\", Global.shinyServerURL),\"shiny\");');\n                // (earlier-binding version) src = src.replace(/new WebSocket.*/, Strings.format('new WebSocket(\"ws://%s/\", \"shiny\");', shinyServerURL));\n                try { eval(src); console.log(\"Loaded shiny\"); next(); } catch (e) {\n                    show('cannot load shiny! %s', e.stack || e); }\n            }\n        }).beAsync().get();\n    },\n    // 4. Load shiny-ggvis. This sets up the methods for handling messages from\n    // the server.\n    // In the current setup, the DOM entry for 'ShinyGigvisMorph' is set up with the id\n    // 'plot1', hard-coded into gigvis on the R side as the chart id.\n    function(next) {\n        var url = \"http://\" + serverURL + \"/R-libraries/ggvis/www/js/shiny-ggvis.js\";\n        new WebResource(url).whenDone(function(src, status) {\n            if (!status.isSuccess()) {\n                show('cannot load shiny-ggvis! %s', status);\n            } else {\n                try { eval(src); console.log(\"Loaded shiny-ggvis\"); next(); } catch (e) {\n                    show('cannot load shiny-ggvis! %s', e.stack || e); }\n            }\n        }).beAsync().get();\n    }\n    ].doAndContinue(null, function() {\n        alertOK(\"Shiny, ggvis, Vega loaded\");\n        thenDo(null, \"ok\");\n        });\n}","funcProperties":{"__isSmartRef__":true,"id":86},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"85":{"this":{"__isSmartRef__":true,"id":7}},"86":{"__serializedExpressions__":["timestamp"],"user":"AranLunzer","tags":[],"timestamp":"new Date(\"Mon Sep 16 2013 17:25:11 GMT-0700 (PDT)\")"},"87":{"varMapping":{"__isSmartRef__":true,"id":88},"source":"function ensureRAndLibs(thenDo) {\n    // this.ensureRAndLibs(function(err,res) { show(\"done\") })\n    var self = this;\n    this.ensureR(function(err, res) {\n        if (!err) { self.loadVegaAndShiny(thenDo) }\n    }, false)       // don't force R reload\n}","funcProperties":{"__isSmartRef__":true,"id":89},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"88":{"this":{"__isSmartRef__":true,"id":7}},"89":{"__serializedExpressions__":["timestamp"],"user":"AranLunzer","tags":[],"timestamp":"new Date(\"Mon Sep 16 2013 16:45:07 GMT-0700 (PDT)\")"},"90":{"varMapping":{"__isSmartRef__":true,"id":91},"source":"function ensureR(thenDo, forceReload) {\n    // this.ensureR(function(err,res) {}, true)  // to force reload\n    // Make sure the interface to R is running, and the top-level R process has [the latest versions of] the packages we need.\n    var self = this;\n    require('apps.RInterface').toRun(function() {\n        function initAndDo(thenDo) {\n            apps.RInterface.evalSync('if (exists(\"ggvis\")) detach(name=\"package:ggvis\",unload=TRUE)\\n if (exists(\"reactive\")) detach(name=\"package:shiny\",unload=TRUE)\\n library(shiny)\\n library(ggvis)\\n options(shiny.withlively=TRUE)\\n', function(err, result) {\n            if (err) show(err); else alertOK(\"R libraries (re)loaded\");\n            thenDo(err, result);\n            })\n        }\n\n        if (forceReload) {\n            initAndDo(thenDo);\n        } else {\n            self.isRReady(function(rReady) {\n                if (rReady) thenDo(null, \"R ready\"); else initAndDo(thenDo);\n            });\n        }\n    })\n}","funcProperties":{"__isSmartRef__":true,"id":92},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"91":{"this":{"__isSmartRef__":true,"id":7}},"92":{"__serializedExpressions__":["timestamp"],"user":"AranLunzer","tags":[],"timestamp":"new Date(\"Mon Sep 16 2013 17:19:13 GMT-0700 (PDT)\")"},"93":{"source":{"__isSmartRef__":true,"id":2},"target":{"__isSmartRef__":true,"id":7}},"94":{"_BorderWidth":0,"_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(1241.0,537.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"95":{"partsSpaceName":"PartsBin/Basic/","comment":"A plain simple rectangle","migrationLevel":4,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":96},{"__isSmartRef__":true,"id":97},{"__isSmartRef__":true,"id":98},{"__isSmartRef__":true,"id":99},{"__isSmartRef__":true,"id":100},{"__isSmartRef__":true,"id":101},{"__isSmartRef__":true,"id":102},{"__isSmartRef__":true,"id":103},{"__isSmartRef__":true,"id":104},{"__isSmartRef__":true,"id":105},{"__isSmartRef__":true,"id":106},{"__isSmartRef__":true,"id":107},{"__isSmartRef__":true,"id":108},{"__isSmartRef__":true,"id":109},{"__isSmartRef__":true,"id":110}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Jul 02 2013 15:37:06 GMT-0700 (PDT)\")"},"96":{"author":"robertkrahn","message":"no comment","id":"FBBB9C99-B61C-4D5F-8750-6E2987DF0C9C","__serializedExpressions__":["date"],"date":"new Date(\"Thu Jun 20 2013 15:16:24 GMT-0700 (PDT)\")"},"97":{"author":"robertkrahn","message":"no comment","id":"67FD74CD-7AE4-4050-ADC7-4DF73804258D","__serializedExpressions__":["date"],"date":"new Date(\"Thu May 30 2013 00:18:06 GMT-0700 (PDT)\")"},"98":{"author":"jenslincke","message":"no comment","id":"AEB2F41B-2C88-4BBA-8875-93CD17CBA1C8","__serializedExpressions__":["date"],"date":"new Date(\"Wed Jan 23 2013 03:57:18 GMT-0800 (PST)\")"},"99":{"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23","__serializedExpressions__":["date"],"date":"new Date(\"Thu May 03 2012 06:51:36 GMT-0700 (PDT)\")"},"100":{"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC","__serializedExpressions__":["date"],"date":"new Date(\"Thu May 03 2012 06:51:30 GMT-0700 (PDT)\")"},"101":{"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 14 2012 02:53:45 GMT-0700 (PDT)\")"},"102":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"103":{"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 14 2012 02:42:26 GMT-0700 (PDT)\")"},"104":{"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350","__serializedExpressions__":["date"],"date":"new Date(\"Mon Apr 09 2012 04:42:07 GMT-0700 (PDT)\")"},"105":{"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8","__serializedExpressions__":["date"],"date":"new Date(\"Mon Jun 18 2012 10:35:08 GMT-0700 (PDT)\")"},"106":{"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205","__serializedExpressions__":["date"],"date":"new Date(\"Thu Nov 22 2012 01:35:51 GMT-0800 (PST)\")"},"107":{"author":"jenslincke","message":"no comment","id":"A4B86A7E-A398-4C29-BEE0-4AA045ABABD2","__serializedExpressions__":["date"],"date":"new Date(\"Fri Jan 18 2013 07:42:31 GMT-0800 (PST)\")"},"108":{"author":"jenslincke","message":"added legend","id":"7ADA3049-56C1-4D32-874B-F664A79DDB20","__serializedExpressions__":["date"],"date":"new Date(\"Fri Jan 18 2013 07:47:05 GMT-0800 (PST)\")"},"109":{"author":"SAPLivelyScreen","message":"no comment","id":"EF145198-0649-41BD-A92E-521D98FEC49D","__serializedExpressions__":["date"],"date":"new Date(\"Wed May 29 2013 15:36:50 GMT-0700 (PDT)\")"},"110":{"author":"SAPLivelyScreen","message":"no comment","id":"7A44D8CA-6D5F-42A3-A4B4-4D7F51EECA52","__serializedExpressions__":["date"],"date":"new Date(\"Tue Jun 18 2013 11:49:27 GMT-0700 (PDT)\")"},"111":{"morph":{"__isSmartRef__":true,"id":1},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"112":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":113}},"113":{"test01IsMorph":{"__isSmartRef__":true,"id":114}},"114":{"varMapping":{"__isSmartRef__":true,"id":115},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":116},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"115":{"this":{"__isSmartRef__":true,"id":112}},"116":{},"117":{"layouter":{"__isSmartRef__":true,"id":118},"__serializedExpressions__":["extentWithoutPlaceholder"],"extentWithoutPlaceholder":"lively.pt(480.0,357.0)"},"118":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":1},"__LivelyClassName__":"lively.morphic.Layout.HorizontalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"119":{"sourceObj":{"__isSmartRef__":true,"id":1},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":120},"targetMethodName":"setRotation","varMapping":{"__isSmartRef__":true,"id":154},"dependedBy":{"__isSmartRef__":true,"id":122},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"120":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":121},"_ClipMode":"visible","derivationIds":[],"id":"B0749EF5-2FE1-4FD6-9988-1D4C38689A05","droppingEnabled":false,"halosEnabled":true,"isGrabShadow":true,"connections":[{"__isSmartRef__":true,"id":122},{"__isSmartRef__":true,"id":130}],"_Rotation":0,"_Scale":1,"isBeingDragged":false,"isPlaceholder":true,"eventsAreIgnored":true,"owner":null,"eventHandler":{"__isSmartRef__":true,"id":140},"submorphsForReconnect":[{"__isSmartRef__":true,"id":12}],"attributeConnections":[{"__isSmartRef__":true,"id":141}],"doNotSerialize":["$$owner"],"doNotCopyProperties":["$$owner"],"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":143},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(8.6,417.2)"},"121":{"_BorderWidth":0,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":0.5,"_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(1387.0,456.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(204,204,204)","_Padding":"lively.rect(0,0,0,0)"},"122":{"sourceObj":{"__isSmartRef__":true,"id":1},"sourceAttrName":"rotation","targetObj":{"__isSmartRef__":true,"id":120},"targetMethodName":"setRotation","varMapping":{"__isSmartRef__":true,"id":123},"attributeConnections":[{"__isSmartRef__":true,"id":124},{"__isSmartRef__":true,"id":126},{"__isSmartRef__":true,"id":128}],"doNotSerialize":["$$converterString","$$updaterString","$$varMapping"],"doNotCopyProperties":["$$converterString","$$updaterString","$$varMapping"],"dependendConnections":[{"__isSmartRef__":true,"id":119}],"__LivelyClassName__":"lively.morphic.GeometryConnection","__SourceModuleName__":"Global.lively.bindings.GeometryBindings"},"123":{"source":{"__isSmartRef__":true,"id":1},"target":{"__isSmartRef__":true,"id":120}},"124":{"sourceObj":{"__isSmartRef__":true,"id":122},"sourceAttrName":"converterString","targetObj":{"__isSmartRef__":true,"id":119},"targetMethodName":"setConverter","varMapping":{"__isSmartRef__":true,"id":125},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"125":{"source":{"__isSmartRef__":true,"id":122},"target":{"__isSmartRef__":true,"id":119}},"126":{"sourceObj":{"__isSmartRef__":true,"id":122},"sourceAttrName":"updaterString","targetObj":{"__isSmartRef__":true,"id":119},"targetMethodName":"setUpdater","varMapping":{"__isSmartRef__":true,"id":127},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"127":{"source":{"__isSmartRef__":true,"id":122},"target":{"__isSmartRef__":true,"id":119}},"128":{"sourceObj":{"__isSmartRef__":true,"id":122},"sourceAttrName":"varMapping","targetObj":{"__isSmartRef__":true,"id":119},"targetMethodName":"varMapping","varMapping":{"__isSmartRef__":true,"id":129},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"129":{"source":{"__isSmartRef__":true,"id":122},"target":{"__isSmartRef__":true,"id":119}},"130":{"sourceObj":{"__isSmartRef__":true,"id":1},"sourceAttrName":"scale","targetObj":{"__isSmartRef__":true,"id":120},"targetMethodName":"setScale","varMapping":{"__isSmartRef__":true,"id":131},"attributeConnections":[{"__isSmartRef__":true,"id":132},{"__isSmartRef__":true,"id":136},{"__isSmartRef__":true,"id":138}],"doNotSerialize":["$$converterString","$$updaterString","$$varMapping"],"doNotCopyProperties":["$$converterString","$$updaterString","$$varMapping"],"dependendConnections":[{"__isSmartRef__":true,"id":133}],"__LivelyClassName__":"lively.morphic.GeometryConnection","__SourceModuleName__":"Global.lively.bindings.GeometryBindings"},"131":{"source":{"__isSmartRef__":true,"id":1},"target":{"__isSmartRef__":true,"id":120}},"132":{"sourceObj":{"__isSmartRef__":true,"id":130},"sourceAttrName":"converterString","targetObj":{"__isSmartRef__":true,"id":133},"targetMethodName":"setConverter","varMapping":{"__isSmartRef__":true,"id":135},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"133":{"sourceObj":{"__isSmartRef__":true,"id":1},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":120},"targetMethodName":"setScale","varMapping":{"__isSmartRef__":true,"id":134},"dependedBy":{"__isSmartRef__":true,"id":130},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"134":{"source":{"__isSmartRef__":true,"id":1},"target":{"__isSmartRef__":true,"id":120}},"135":{"source":{"__isSmartRef__":true,"id":130},"target":{"__isSmartRef__":true,"id":133}},"136":{"sourceObj":{"__isSmartRef__":true,"id":130},"sourceAttrName":"updaterString","targetObj":{"__isSmartRef__":true,"id":133},"targetMethodName":"setUpdater","varMapping":{"__isSmartRef__":true,"id":137},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"137":{"source":{"__isSmartRef__":true,"id":130},"target":{"__isSmartRef__":true,"id":133}},"138":{"sourceObj":{"__isSmartRef__":true,"id":130},"sourceAttrName":"varMapping","targetObj":{"__isSmartRef__":true,"id":133},"targetMethodName":"varMapping","varMapping":{"__isSmartRef__":true,"id":139},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"139":{"source":{"__isSmartRef__":true,"id":130},"target":{"__isSmartRef__":true,"id":133}},"140":{"morph":{"__isSmartRef__":true,"id":120},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"141":{"sourceObj":{"__isSmartRef__":true,"id":120},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":120},"targetMethodName":"reconnect","varMapping":{"__isSmartRef__":true,"id":142},"removeAfterUpdate":true,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"142":{"source":{"__isSmartRef__":true,"id":120},"target":{"__isSmartRef__":true,"id":120}},"143":{"remove":{"__isSmartRef__":true,"id":144},"reconnect":{"__isSmartRef__":true,"id":151}},"144":{"varMapping":{"__isSmartRef__":true,"id":145},"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":150},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"145":{"this":{"__isSmartRef__":true,"id":120},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":146}},"146":{"$super":{"__isSmartRef__":true,"id":147}},"147":{"varMapping":{"__isSmartRef__":true,"id":148},"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":149},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"148":{"obj":{"__isSmartRef__":true,"id":120},"name":"remove"},"149":{},"150":{},"151":{"varMapping":{"__isSmartRef__":true,"id":152},"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":153},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"152":{"this":{"__isSmartRef__":true,"id":120}},"153":{},"154":{"source":{"__isSmartRef__":true,"id":1},"target":{"__isSmartRef__":true,"id":120}},"155":{"submorphs":[{"__isSmartRef__":true,"id":156},{"__isSmartRef__":true,"id":167},{"__isSmartRef__":true,"id":178},{"__isSmartRef__":true,"id":189}],"scripts":[],"id":"A58165F4-0D06-43EF-B312-CE625D376307","shape":{"__isSmartRef__":true,"id":200},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"ButtonWrapper","partsBinMetaInfo":{"__isSmartRef__":true,"id":201},"eventHandler":{"__isSmartRef__":true,"id":217},"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","4E8AC094-9986-4470-8458-C19C8698780B","89EE9893-9B5F-4517-B787-76F0331A3B91"],"partTests":{"__isSmartRef__":true,"id":218},"_ClipMode":"visible","moved":true,"owner":{"__isSmartRef__":true,"id":0},"isBeingDragged":false,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(9.6,961.2)","distanceToDragEvent":"lively.pt(831.4,-10.2)"},"156":{"submorphs":[{"__isSmartRef__":true,"id":157}],"scripts":[],"id":"5437F4CE-40EC-4EB9-BCE5-6F28C7C8A1F8","shape":{"__isSmartRef__":true,"id":162},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":157},"name":"Start","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":163},"eventHandler":{"__isSmartRef__":true,"id":164},"derivationIds":[4831,"4BF38ADB-1CF5-4975-82E6-FF03AAC66E24","72598B0F-135D-4BDA-87F6-20BC20B532A0","4B40972E-C4C2-4841-918B-97E94B40E76D","77DD7AF6-567D-43CC-8B74-DC1C7CCAED93","23887AB7-E289-4386-A4DD-349758A8471F"],"_ClipMode":"visible","isPressed":false,"_StyleClassNames":["Morph","Button"],"owner":{"__isSmartRef__":true,"id":155},"isCopyMorphRef":true,"morphRefId":1,"attributeConnections":[{"__isSmartRef__":true,"id":165}],"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)"},"157":{"submorphs":[],"scripts":[],"id":"D108BD00-B185-4FAD-8B0A-C79454E681DE","shape":{"__isSmartRef__":true,"id":158},"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":156},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":159}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":161},"_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","FD7AC272-71CD-4134-BB93-D73C93CCFB6B"],"_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)"},"158":{"_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)"},"159":{"style":{"__isSmartRef__":true,"id":160},"chunkOwner":{"__isSmartRef__":true,"id":157},"_id":"_923","storedString":"Initialise","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"160":{"__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.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)"},"163":{"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"},"164":{"morph":{"__isSmartRef__":true,"id":156},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"165":{"sourceObj":{"__isSmartRef__":true,"id":156},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":7},"targetMethodName":"initialise","varMapping":{"__isSmartRef__":true,"id":166},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"166":{"source":{"__isSmartRef__":true,"id":156},"target":{"__isSmartRef__":true,"id":7}},"167":{"submorphs":[{"__isSmartRef__":true,"id":168}],"scripts":[],"id":"D9B85148-67D9-4F00-8DF2-0FCF19245BDC","shape":{"__isSmartRef__":true,"id":173},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":168},"name":"Stop","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":174},"eventHandler":{"__isSmartRef__":true,"id":175},"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","74D46B38-A681-4FF3-8C20-D82B560D114F"],"_ClipMode":"visible","isPressed":false,"_StyleClassNames":["Morph","Button"],"owner":{"__isSmartRef__":true,"id":155},"attributeConnections":[{"__isSmartRef__":true,"id":176}],"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)"},"168":{"submorphs":[],"scripts":[],"id":"A96B5BBF-5102-4414-95DB-68FA1858CEFF","shape":{"__isSmartRef__":true,"id":169},"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":167},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":170}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":172},"_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","56C3B0D0-6FF7-420B-B321-68133DEA599B"],"_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)"},"169":{"_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)"},"170":{"style":{"__isSmartRef__":true,"id":171},"chunkOwner":{"__isSmartRef__":true,"id":168},"_id":"_2704","storedString":"Run","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"171":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"172":{"morph":{"__isSmartRef__":true,"id":168},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"173":{"_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)"},"174":{"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"},"175":{"morph":{"__isSmartRef__":true,"id":167},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"176":{"sourceObj":{"__isSmartRef__":true,"id":167},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":7},"targetMethodName":"runCode","varMapping":{"__isSmartRef__":true,"id":177},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"177":{"source":{"__isSmartRef__":true,"id":167},"target":{"__isSmartRef__":true,"id":7}},"178":{"submorphs":[{"__isSmartRef__":true,"id":179}],"scripts":[],"id":"24DD3B44-5011-4797-BFDF-25F7FE235580","shape":{"__isSmartRef__":true,"id":184},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":179},"name":"Clear","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":185},"eventHandler":{"__isSmartRef__":true,"id":186},"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","950C1703-9BEA-403A-ABA6-740C039C5BAA"],"_ClipMode":"visible","isPressed":false,"_StyleClassNames":["Morph","Button"],"owner":{"__isSmartRef__":true,"id":155},"isCopyMorphRef":true,"morphRefId":1,"attributeConnections":[{"__isSmartRef__":true,"id":187}],"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)"},"179":{"submorphs":[],"scripts":[],"id":"2AA70CA4-232F-4180-B9A3-92F0AB723A7A","shape":{"__isSmartRef__":true,"id":180},"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":178},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":181}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":183},"_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","92649758-FCD6-4EEF-B8D0-E6B5F0BA308B"],"_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)"},"180":{"_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)"},"181":{"style":{"__isSmartRef__":true,"id":182},"chunkOwner":{"__isSmartRef__":true,"id":179},"_id":"_4301","storedString":"Stop","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"182":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"183":{"morph":{"__isSmartRef__":true,"id":179},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"184":{"_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)"},"185":{"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"},"186":{"morph":{"__isSmartRef__":true,"id":178},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"187":{"sourceObj":{"__isSmartRef__":true,"id":178},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":7},"targetMethodName":"haltShinyApp","varMapping":{"__isSmartRef__":true,"id":188},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"188":{"source":{"__isSmartRef__":true,"id":178},"target":{"__isSmartRef__":true,"id":7}},"189":{"submorphs":[{"__isSmartRef__":true,"id":190}],"scripts":[],"id":"78FF33A0-BA38-4F3F-B7F1-FD7B7080F8F8","shape":{"__isSmartRef__":true,"id":195},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"label":{"__isSmartRef__":true,"id":190},"name":"resetButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":196},"eventHandler":{"__isSmartRef__":true,"id":197},"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","C7F4E17E-728D-4527-BF98-E69D26895F7B"],"_ClipMode":"visible","isPressed":false,"_StyleClassNames":["Morph","Button"],"isCopyMorphRef":true,"morphRefId":1,"owner":{"__isSmartRef__":true,"id":155},"attributeConnections":[{"__isSmartRef__":true,"id":198}],"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)"},"190":{"submorphs":[],"scripts":[],"id":"44A6FF91-92B2-4FE1-92B2-43095670DD73","shape":{"__isSmartRef__":true,"id":191},"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":189},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":192}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":194},"_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","B196D229-25EF-4FAF-B8CD-BCF3CD6658FD"],"_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)"},"191":{"_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)"},"192":{"style":{"__isSmartRef__":true,"id":193},"chunkOwner":{"__isSmartRef__":true,"id":190},"_id":"_1586","storedString":"Reset","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"193":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"194":{"morph":{"__isSmartRef__":true,"id":190},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"195":{"_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)"},"196":{"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"},"197":{"morph":{"__isSmartRef__":true,"id":189},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"198":{"sourceObj":{"__isSmartRef__":true,"id":189},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":7},"targetMethodName":"haltAndReset","varMapping":{"__isSmartRef__":true,"id":199},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"199":{"source":{"__isSmartRef__":true,"id":189},"target":{"__isSmartRef__":true,"id":7}},"200":{"_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(1239.0,27.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"201":{"partsSpaceName":"PartsBin/Basic","comment":"A plain simple rectangle","migrationLevel":4,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":202},{"__isSmartRef__":true,"id":203},{"__isSmartRef__":true,"id":204},{"__isSmartRef__":true,"id":205},{"__isSmartRef__":true,"id":206},{"__isSmartRef__":true,"id":207},{"__isSmartRef__":true,"id":208},{"__isSmartRef__":true,"id":209},{"__isSmartRef__":true,"id":210},{"__isSmartRef__":true,"id":211},{"__isSmartRef__":true,"id":212},{"__isSmartRef__":true,"id":213},{"__isSmartRef__":true,"id":214},{"__isSmartRef__":true,"id":215},{"__isSmartRef__":true,"id":216}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Thu Jun 20 2013 17:15:30 GMT-0700 (PDT)\")"},"202":{"author":"SAPLivelyScreen","message":"no comment","id":"7A44D8CA-6D5F-42A3-A4B4-4D7F51EECA52","__serializedExpressions__":["date"],"date":"new Date(\"Tue Jun 18 2013 11:49:27 GMT-0700 (PDT)\")"},"203":{"author":"SAPLivelyScreen","message":"no comment","id":"EF145198-0649-41BD-A92E-521D98FEC49D","__serializedExpressions__":["date"],"date":"new Date(\"Wed May 29 2013 15:36:50 GMT-0700 (PDT)\")"},"204":{"author":"jenslincke","message":"added legend","id":"7ADA3049-56C1-4D32-874B-F664A79DDB20","__serializedExpressions__":["date"],"date":"new Date(\"Fri Jan 18 2013 07:47:05 GMT-0800 (PST)\")"},"205":{"author":"jenslincke","message":"no comment","id":"A4B86A7E-A398-4C29-BEE0-4AA045ABABD2","__serializedExpressions__":["date"],"date":"new Date(\"Fri Jan 18 2013 07:42:31 GMT-0800 (PST)\")"},"206":{"author":"jenslincke","message":"I want my blue rectangle back!","id":"5AA9291A-869F-4D36-8095-4721B5A5B205","__serializedExpressions__":["date"],"date":"new Date(\"Thu Nov 22 2012 01:35:51 GMT-0800 (PST)\")"},"207":{"author":"bgnauk","message":"no comment","id":"0124E570-50B7-4CE3-83A1-6E7BA89B5CD8","__serializedExpressions__":["date"],"date":"new Date(\"Mon Jun 18 2012 10:35:08 GMT-0700 (PDT)\")"},"208":{"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350","__serializedExpressions__":["date"],"date":"new Date(\"Mon Apr 09 2012 04:42:07 GMT-0700 (PDT)\")"},"209":{"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 14 2012 02:42:26 GMT-0700 (PDT)\")"},"210":{"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B","__serializedExpressions__":["date"],"date":"new Date(\"Fri Feb 24 2012 17:59:09 GMT-0800 (PST)\")"},"211":{"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2","__serializedExpressions__":["date"],"date":"new Date(\"Wed Mar 14 2012 02:53:45 GMT-0700 (PDT)\")"},"212":{"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC","__serializedExpressions__":["date"],"date":"new Date(\"Thu May 03 2012 06:51:30 GMT-0700 (PDT)\")"},"213":{"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23","__serializedExpressions__":["date"],"date":"new Date(\"Thu May 03 2012 06:51:36 GMT-0700 (PDT)\")"},"214":{"author":"jenslincke","message":"no comment","id":"AEB2F41B-2C88-4BBA-8875-93CD17CBA1C8","__serializedExpressions__":["date"],"date":"new Date(\"Wed Jan 23 2013 03:57:18 GMT-0800 (PST)\")"},"215":{"author":"robertkrahn","message":"no comment","id":"67FD74CD-7AE4-4050-ADC7-4DF73804258D","__serializedExpressions__":["date"],"date":"new Date(\"Thu May 30 2013 00:18:06 GMT-0700 (PDT)\")"},"216":{"author":"robertkrahn","message":"no comment","id":"FBBB9C99-B61C-4D5F-8750-6E2987DF0C9C","__serializedExpressions__":["date"],"date":"new Date(\"Thu Jun 20 2013 15:16:24 GMT-0700 (PDT)\")"},"217":{"morph":{"__isSmartRef__":true,"id":155},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"218":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":219}},"219":{"test01IsMorph":{"__isSmartRef__":true,"id":220}},"220":{"varMapping":{"__isSmartRef__":true,"id":221},"source":"function test01IsMorph(aPart) {\n    this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":222},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"221":{"this":{"__isSmartRef__":true,"id":218}},"222":{},"223":{"_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(1258.2,1000.8)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"224":{"partsSpaceName":"PartsBin/Sandbox/","comment":"ggvis experiment","migrationLevel":8,"partName":"ggvis1a","changes":[{"__isSmartRef__":true,"id":225},{"__isSmartRef__":true,"id":226},{"__isSmartRef__":true,"id":227},{"__isSmartRef__":true,"id":228},{"__isSmartRef__":true,"id":229},{"__isSmartRef__":true,"id":230},{"__isSmartRef__":true,"id":231},{"__isSmartRef__":true,"id":232},{"__isSmartRef__":true,"id":233},{"__isSmartRef__":true,"id":234},{"__isSmartRef__":true,"id":235},{"__isSmartRef__":true,"id":236}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Tue Sep 17 2013 04:08:55 GMT-0700 (PDT)\")"},"225":{"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 (PDT)\")"},"226":{"author":"jenslincke","message":"added a display of seconds","__serializedExpressions__":["date"],"date":"new Date(\"Wed Oct 19 2011 07:06:21 GMT-0700 (PDT)\")"},"227":{"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 (PDT)\")"},"228":{"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 (PDT)\")"},"229":{"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 (PDT)\")"},"230":{"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 (PDT)\")"},"231":{"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 (PDT)\")"},"232":{"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 (PDT)\")"},"233":{"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 (PDT)\")"},"234":{"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 (PDT)\")"},"235":{"__serializedExpressions__":["date"],"author":"AranLunzer","message":"no comment","id":"06B8F8CF-B301-4774-AF81-17FDDE4B442A","date":"new Date(\"Tue Sep 17 2013 04:08:55 GMT-0700 (PDT)\")"},"236":{"__serializedExpressions__":["date"],"author":"AranLunzer","message":"no comment","id":"1B186ABC-A741-4969-A2F5-03CF37079F96","date":"new Date(\"Tue Sep 17 2013 04:11:23 GMT-0700 (PDT)\")"},"237":{"morph":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"238":{"layouter":{"__isSmartRef__":true,"id":239},"__serializedExpressions__":["extentWithoutPlaceholder"],"extentWithoutPlaceholder":"lively.pt(1166.2,506.8)"},"239":{"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"},"240":{"expired":{"__isSmartRef__":true,"id":241}},"241":{},"242":{"setupConnections":{"__isSmartRef__":true,"id":243},"updateTick":{"__isSmartRef__":true,"id":244},"updateTickingScripts":{"__isSmartRef__":true,"id":245}},"243":{"user":"robertkrahn","__serializedExpressions__":["time"],"time":"new Date(\"Mon Jul 04 2011 10:13:46 GMT-0700 (PDT)\")"},"244":{"user":"jenslincke","__serializedExpressions__":["time"],"time":"new Date(\"Wed Oct 19 2011 07:05:04 GMT-0700 (PDT)\")"},"245":{"user":"jenslincke","__serializedExpressions__":["time"],"time":"new Date(\"Wed Oct 19 2011 07:04:22 GMT-0700 (PDT)\")"},"isSimplifiedRegistry":true}}