this.data.length) {\n this.data.push([])\n }\n var x = this.data[0].length ;\n this.data.forEach(function(row, index) {\n row.push({x: x, y: data[index]})\n })\n\n this.render();\n}","funcProperties":{"__isSmartRef__":true,"id":570},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"569":{"this":{"__isSmartRef__":true,"id":350}},"570":{},"571":{"varMapping":{"__isSmartRef__":true,"id":572},"source":"function maxYofData(data) {\n // this.maxYofData([[{x: 1, y:1}]])\n // this.maxYofData([[{x: 1, y:1}, {x: 2, y:2}],[{x: 1, y:2},{x: 2, y:3}]])\n // this.maxYofData(this.data)\n // data = this.data\n\n if (!data) return undefined;\n\n var xlength = data[0].length\n var ylength = data.length\n var sums = []\n // when the data collections are layed out weired I have to do it manually..\n for(var i=0; i < xlength; i++) {\n var s = 0;\n for(var j=0; j < ylength; j++) {\n s += data[j][i].y\n };\n sums.push(s)\n }\n return pv.max(sums)\n}","funcProperties":{"__isSmartRef__":true,"id":573},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"572":{"this":{"__isSmartRef__":true,"id":350}},"573":{},"574":{"converter":{"__isSmartRef__":true,"id":575}},"575":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":576},"source":"function converter(s) {\n idleValues = Strings.tableize(s).slice(3,5).invoke('last')\n return idleValues.collect(function(ea) {return 100 - ea})\n}\n\n","funcProperties":{"__isSmartRef__":true,"id":577},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"576":{},"577":{},"578":{"sourceObj":{"__isSmartRef__":true,"id":126},"sourceAttrName":"globalTransform","targetObj":{"__isSmartRef__":true,"id":124},"targetMethodName":"alignToMagnet","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"579":{"exec":{"__isSmartRef__":true,"id":580},"serverResult":{"__isSmartRef__":true,"id":581}},"580":{},"581":{},"582":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"583":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"584":{"morphMenuItems":{"__isSmartRef__":true,"id":585}},"585":{"varMapping":{"__isSmartRef__":true,"id":586},"source":"function morphMenuItems() {\n var visualConnector = this, con = this.con, world = this.world();\n var items = [\n ['edit converter', function() {\n var source = con.converterString || 'function converter(value) {\\n return value\\n}',\n editor = new lively.morphic.Text(new Rectangle(0,0, 400, 200), source);\n editor.doitContext = con;\n connect(editor, 'savedTextString', con, 'converterString', {updater:\n function($upd, source) { this.targetObj.converter = null; $upd(source) }});\n connect(editor, 'savedTextString', world, 'alertOK', {converter: \n function() { return 'setting new converter' }})\n editor.applyStyle({syntaxHighlighting: true, fontFamily: 'Courier', resizeWidth: true, resizeHeight: true});\n var title = con.targetObj.name && con.sourceObj.name ?\n 'Editor for ' + con.targetObj.name + ' -> ' + con.sourceObj.name :\n 'Editor for converter function';\n var window = world.addFramedMorph(editor, title)\n window.align(window.bounds().topCenter(), visualConnector.bounds().bottomCenter())\n }],\n ['hide', function() {\n visualConnector.disconnectFromMagnets();\n visualConnector.remove();\n }],\n ['disconnect', function() {\n alertOK('Disconnected ' + visualConnector.con);\n visualConnector.con.visualDisconnect();\n }],\n ['cancel', function() {}],\n ];\n return items;\n }","funcProperties":{"__isSmartRef__":true,"id":591},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"586":{"this":{"__isSmartRef__":true,"id":112},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":587}},"587":{"$super":{"__isSmartRef__":true,"id":588}},"588":{"varMapping":{"__isSmartRef__":true,"id":589},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":590},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"589":{"obj":{"__isSmartRef__":true,"id":112},"name":"morphMenuItems"},"590":{},"591":{},"592":{"sourceObj":{"__isSmartRef__":true,"id":97},"sourceAttrName":"globalTransform","targetObj":{"__isSmartRef__":true,"id":111},"targetMethodName":"alignToMagnet","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"593":{"x":-253.48227898000812,"y":-190.68801613996595,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"594":{"draw":{"__isSmartRef__":true,"id":595},"prepareForNewRenderContext":{"__isSmartRef__":true,"id":606},"addDataAndRender":{"__isSmartRef__":true,"id":613},"reset":{"__isSmartRef__":true,"id":616},"setChartType":{"__isSmartRef__":true,"id":619},"drawStackChart":{"__isSmartRef__":true,"id":602},"setupStackExample":{"__isSmartRef__":true,"id":622},"addDataColumnAndRender":{"__isSmartRef__":true,"id":625},"maxYofData":{"__isSmartRef__":true,"id":628}},"595":{"varMapping":{"__isSmartRef__":true,"id":596},"source":"function drawStackChart(w, h) {\n w = w - 30;\n h = h - 25;\n \n var maxX = this.data[0].length,\n maxY = this.maxYofData(this.data) || 10;\n\n var x = pv.Scale.linear(0, maxX).range(0, w),\n y = pv.Scale.linear(0, maxY).range(0, h);\n\n var vis = new pv.Panel()\n .width(w)\n .height(h)\n .bottom(20)\n .left(20)\n .right(10)\n .top(5);\n\n /* X-axis and ticks. */\n vis.add(pv.Rule)\n .data(x.ticks())\n .visible(function(d){return d})\n .left(x)\n .bottom(-5)\n .height(5)\n .anchor(\"bottom\").add(pv.Label)\n .text(x.tickFormat);\n\n /* The stack layout. */\n vis.add(pv.Layout.Stack)\n .layers(this.data)\n .x(function(d){return x(d.x)})\n .y(function(d){return y(d.y)})\n .layer.add(pv.Area);\n\n /* Y-axis and ticks. */\n vis.add(pv.Rule)\n .data(y.ticks(3))\n .bottom(y)\n .strokeStyle(function(d){return d ? \"rgba(128,128,128,.2)\" : \"#000\"})\n .anchor(\"left\").add(pv.Label)\n .text(y.tickFormat);\n\n return vis;\n}","funcProperties":{"__isSmartRef__":true,"id":601},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":605},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"596":{"this":{"__isSmartRef__":true,"id":97},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":597}},"597":{"$super":{"__isSmartRef__":true,"id":598}},"598":{"varMapping":{"__isSmartRef__":true,"id":599},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":600},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"599":{"obj":{"__isSmartRef__":true,"id":97},"name":"draw"},"600":{},"601":{"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":602}},"602":{"varMapping":{"__isSmartRef__":true,"id":603},"source":"function drawStackChart(w, h) {\n w = w - 30;\n h = h - 25;\n \n var maxX = this.data[0].length,\n maxY = this.maxYofData(this.data) || 10;\n\n var x = pv.Scale.linear(0, maxX).range(0, w),\n y = pv.Scale.linear(0, maxY).range(0, h);\n\n var vis = new pv.Panel()\n .width(w)\n .height(h)\n .bottom(20)\n .left(20)\n .right(10)\n .top(5);\n\n /* X-axis and ticks. */\n vis.add(pv.Rule)\n .data(x.ticks())\n .visible(function(d){return d})\n .left(x)\n .bottom(-5)\n .height(5)\n .anchor(\"bottom\").add(pv.Label)\n .text(x.tickFormat);\n\n /* The stack layout. */\n vis.add(pv.Layout.Stack)\n .layers(this.data)\n .x(function(d){return x(d.x)})\n .y(function(d){return y(d.y)})\n .layer.add(pv.Area);\n\n /* Y-axis and ticks. */\n vis.add(pv.Rule)\n .data(y.ticks(3))\n .bottom(y)\n .strokeStyle(function(d){return d ? \"rgba(128,128,128,.2)\" : \"#000\"})\n .anchor(\"left\").add(pv.Label)\n .text(y.tickFormat);\n\n return vis;\n}","funcProperties":{"__isSmartRef__":true,"id":604},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"603":{"this":{"__isSmartRef__":true,"id":97}},"604":{},"605":{"originalFunc":{"__isSmartRef__":true,"id":602}},"606":{"varMapping":{"__isSmartRef__":true,"id":607},"source":"function prepareForNewRenderContext(renderCtx) {\n $super(renderCtx);\n lively.bindings.callWhenNotNull(Global, 'pv', this, 'render');\n}","funcProperties":{"__isSmartRef__":true,"id":612},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"607":{"this":{"__isSmartRef__":true,"id":97},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":608}},"608":{"$super":{"__isSmartRef__":true,"id":609}},"609":{"varMapping":{"__isSmartRef__":true,"id":610},"source":"function () {\n\t\t\t\ttry {\n\t\t\t\t\treturn obj.constructor.prototype[name].apply(obj, arguments)\n\t\t\t\t} catch(e) {\n\t\t\t\t\talert('Error in $super call: ' + e + '\\n' + e.stack);\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}","funcProperties":{"__isSmartRef__":true,"id":611},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"610":{"obj":{"__isSmartRef__":true,"id":97},"name":"prepareForNewRenderContext"},"611":{},"612":{},"613":{"varMapping":{"__isSmartRef__":true,"id":614},"source":"function addDataAndRender(data) {\n if (data == null) return;\n\n if ((typeof data == 'object') && !(data instanceof Array))\n data = [data.x, data.y];\n\n if (!this.data)\n this.data = [data];\n else\n this.data.push(data);\n\n\n this.render();\n}","funcProperties":{"__isSmartRef__":true,"id":615},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"614":{"this":{"__isSmartRef__":true,"id":97}},"615":{},"616":{"varMapping":{"__isSmartRef__":true,"id":617},"source":"function reset() {\n this.connections = {addDataColumnAndRender: {}}\n this.setupStackExample()\n // this.setChartType('stack');\n}","funcProperties":{"__isSmartRef__":true,"id":618},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"617":{"this":{"__isSmartRef__":true,"id":97}},"618":{},"619":{"varMapping":{"__isSmartRef__":true,"id":620},"source":"function setChartType(cType) {\n\tvar chart = this;\n\t// if (!chart.vis) {\n\t\t// alert('Chart type could not be set. Chart is missing!');\n\t\t// chart.render();\n\t\t// return;\n\t// }\n\n\tswitch (cType.toLowerCase()) {\n\tcase 'stack':\n\t\tchart.drawStackChart.asScriptOf(chart, 'draw');\n\t\tbreak;\n\n\tdefault:\n\t\talert('The chart type \"' + cType + '\" is unknown!');\n\t\treturn;\n\t}\n this.render()\n}","funcProperties":{"__isSmartRef__":true,"id":621},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"620":{"this":{"__isSmartRef__":true,"id":97}},"621":{},"622":{"varMapping":{"__isSmartRef__":true,"id":623},"source":"function setupStackExample() {\n // this.setupStackExample()\n \n this.data = pv.range(4).map(function() {\n return pv.range(0, 10, .1).map(function(x) {\n return {x: x, y: Math.sin(x) + Math.random() * .5 + 2};\n });\n });\n // this.data = [\n // [{x:0, y:0}, { x: 1, y: 1}]\n // ]\n this.setChartType('stack')\n\n // this.render();\n}","funcProperties":{"__isSmartRef__":true,"id":624},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"623":{"this":{"__isSmartRef__":true,"id":97}},"624":{},"625":{"varMapping":{"__isSmartRef__":true,"id":626},"source":"function addDataColumnAndRender(data) {\n if (data == null) return;\n \n if (!this.data || data.length !== this.data.length) {\n this.data = []; // reset because of data changed\n }\n\n while (data.length > this.data.length) {\n this.data.push([])\n }\n var x = this.data[0].length ;\n this.data.forEach(function(row, index) {\n row.push({x: x, y: data[index]})\n })\n\n this.render();\n}","funcProperties":{"__isSmartRef__":true,"id":627},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"626":{"this":{"__isSmartRef__":true,"id":97}},"627":{},"628":{"varMapping":{"__isSmartRef__":true,"id":629},"source":"function maxYofData(data) {\n // this.maxYofData([[{x: 1, y:1}]])\n // this.maxYofData([[{x: 1, y:1}, {x: 2, y:2}],[{x: 1, y:2},{x: 2, y:3}]])\n // this.maxYofData(this.data)\n // data = this.data\n\n if (!data) return undefined;\n\n var xlength = data[0].length\n var ylength = data.length\n var sums = []\n // when the data collections are layed out weired I have to do it manually..\n for(var i=0; i < xlength; i++) {\n var s = 0;\n for(var j=0; j < ylength; j++) {\n s += data[j][i].y\n };\n sums.push(s)\n }\n return pv.max(sums)\n}","funcProperties":{"__isSmartRef__":true,"id":630},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"629":{"this":{"__isSmartRef__":true,"id":97}},"630":{},"631":{"submorphs":[{"__isSmartRef__":true,"id":632}],"scripts":[],"id":2620,"shape":{"__isSmartRef__":true,"id":646},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":661},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":649},"lighterFill":{"__isSmartRef__":true,"id":662},"label":{"__isSmartRef__":true,"id":632},"attributeConnections":[{"__isSmartRef__":true,"id":671},{"__isSmartRef__":true,"id":673}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","_Rotation":0,"padding":{"__isSmartRef__":true,"id":678},"name":"resetButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":679},"_Scale":1.089423869470782,"renderContextTable":{"__isSmartRef__":true,"id":680},"eventHandler":{"__isSmartRef__":true,"id":681},"owner":{"__isSmartRef__":true,"id":96},"__LivelyClassName__":"lively.morphic.Button"},"632":{"submorphs":[],"scripts":[],"id":2621,"shape":{"__isSmartRef__":true,"id":633},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":116,"_MaxTextHeight":18,"fixedHeight":true,"allowsInput":false,"_OverflowMode":"visible","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":638},"textColor":{"__isSmartRef__":true,"id":636},"owner":{"__isSmartRef__":true,"id":631},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":639}],"padding":{"__isSmartRef__":true,"id":641},"_Padding":{"__isSmartRef__":true,"id":642},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":643},"_FontFamily":"Helvetica, Sans-Serif","renderContextTable":{"__isSmartRef__":true,"id":644},"eventHandler":{"__isSmartRef__":true,"id":645},"_HandStyle":"default","_PointerEvents":"none","_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_Align":"center","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"__LivelyClassName__":"lively.morphic.Text"},"633":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":634},"_Extent":{"__isSmartRef__":true,"id":635},"_BorderColor":{"__isSmartRef__":true,"id":636},"renderContextTable":{"__isSmartRef__":true,"id":637},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"634":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"635":{"x":116,"y":18,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"636":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"637":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"638":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"639":{"style":{"__isSmartRef__":true,"id":640},"chunkOwner":{"__isSmartRef__":true,"id":632},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"reset","__LivelyClassName__":"lively.morphic.TextChunk"},"640":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"641":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"642":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"643":{"x":116,"y":18,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"644":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML"},"645":{"morph":{"__isSmartRef__":true,"id":632},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"646":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":647},"_Extent":{"__isSmartRef__":true,"id":648},"_Fill":{"__isSmartRef__":true,"id":649},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":659},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":660},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"647":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"648":{"x":116,"y":20,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"649":{"stops":[{"__isSmartRef__":true,"id":650},{"__isSmartRef__":true,"id":652},{"__isSmartRef__":true,"id":654},{"__isSmartRef__":true,"id":656}],"vector":{"__isSmartRef__":true,"id":658},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"650":{"offset":0,"color":{"__isSmartRef__":true,"id":651}},"651":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"652":{"offset":0.4,"color":{"__isSmartRef__":true,"id":653}},"653":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"654":{"offset":0.6,"color":{"__isSmartRef__":true,"id":655}},"655":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"656":{"offset":1,"color":{"__isSmartRef__":true,"id":657}},"657":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"658":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"659":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"660":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"661":{"x":-140,"y":-220,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"662":{"stops":[{"__isSmartRef__":true,"id":663},{"__isSmartRef__":true,"id":665},{"__isSmartRef__":true,"id":667},{"__isSmartRef__":true,"id":669}],"vector":{"__isSmartRef__":true,"id":658},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"663":{"offset":0,"color":{"__isSmartRef__":true,"id":664}},"664":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"665":{"offset":0.4,"color":{"__isSmartRef__":true,"id":666}},"666":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"667":{"offset":0.6,"color":{"__isSmartRef__":true,"id":668}},"668":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"669":{"offset":1,"color":{"__isSmartRef__":true,"id":670}},"670":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"671":{"sourceObj":{"__isSmartRef__":true,"id":631},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":97},"targetMethodName":"reset","__SourceModuleName__":"Global.lively.bindings","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":672},"__LivelyClassName__":"AttributeConnection"},"672":{"source":{"__isSmartRef__":true,"id":631},"target":{"__isSmartRef__":true,"id":97}},"673":{"sourceObj":{"__isSmartRef__":true,"id":631},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":97},"targetMethodName":"render","converter":null,"converterString":null,"updaterString":"function ($upd) { this.targetObj.data = [[{x:0, y:0}]]; $upd() }","varMapping":{"__isSmartRef__":true,"id":674},"__SourceModuleName__":"Global.lively.bindings","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":675},"__LivelyClassName__":"AttributeConnection"},"674":{"source":{"__isSmartRef__":true,"id":631},"target":{"__isSmartRef__":true,"id":97}},"675":{"updater":{"__isSmartRef__":true,"id":676}},"676":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":674},"source":"function ($upd) { this.targetObj.data = [[{x:0, y:0}]]; $upd() }","funcProperties":{"__isSmartRef__":true,"id":677},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"677":{},"678":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"679":{"partsSpaceName":"PartsBin/Inputs/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"Simple button. Connect to 'fire' to trigger actions when the button is pressed.","partName":"Button","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"680":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"681":{"morph":{"__isSmartRef__":true,"id":631},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"682":{"submorphs":[],"scripts":[],"id":2136,"shape":{"__isSmartRef__":true,"id":683},"droppingEnabled":true,"halosEnabled":true,"checked":false,"showsHalos":false,"name":"CheckBox","partsBinMetaInfo":{"__isSmartRef__":true,"id":687},"priorExtent":{"__isSmartRef__":true,"id":688},"__SourceModuleName__":"Global.lively.morphic.Widgets","renderContextTable":{"__isSmartRef__":true,"id":689},"eventHandler":{"__isSmartRef__":true,"id":690},"attributeConnections":[{"__isSmartRef__":true,"id":691}],"doNotSerialize":[],"doNotCopyProperties":[],"magnets":[{"__isSmartRef__":true,"id":1338}],"_Position":{"__isSmartRef__":true,"id":1340},"_Scale":0.996005996001,"_Rotation":0,"owner":{"__isSmartRef__":true,"id":96},"__LivelyClassName__":"lively.morphic.CheckBox"},"683":{"stringifiedShapeNode":"","extent":{"__isSmartRef__":true,"id":684},"_Extent":{"__isSmartRef__":true,"id":685},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":686},"__LivelyClassName__":"lively.morphic.Shapes.External"},"684":{"x":12,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"685":{"x":12,"y":12,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"686":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getExtent":"getExtentHTML"},"687":{"requiredModules":[],"migrationLevel":2,"partsSpaceName":"PartsBin/Widgets/","__SourceModuleName__":"Global.lively.PartsBin","partName":"CheckBox","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"688":{"x":12,"y":12,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"689":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"690":{"morph":{"__isSmartRef__":true,"id":682},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"691":{"sourceObj":{"__isSmartRef__":true,"id":682},"sourceAttrName":"setChecked","targetObj":{"__isSmartRef__":true,"id":692},"targetMethodName":"setVisible","visualConnector":{"__isSmartRef__":true,"id":1316},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"692":{"submorphs":[{"__isSmartRef__":true,"id":693},{"__isSmartRef__":true,"id":709},{"__isSmartRef__":true,"id":913},{"__isSmartRef__":true,"id":810},{"__isSmartRef__":true,"id":797},{"__isSmartRef__":true,"id":900}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1305},"id":503,"renderContextTable":{"__isSmartRef__":true,"id":1310},"eventHandler":{"__isSmartRef__":true,"id":1311},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1312},"isGroup":true,"owner":{"__isSmartRef__":true,"id":96},"attributeConnections":[{"__isSmartRef__":true,"id":1064},{"__isSmartRef__":true,"id":1065},{"__isSmartRef__":true,"id":1066},{"__isSmartRef__":true,"id":1067},{"__isSmartRef__":true,"id":1090},{"__isSmartRef__":true,"id":1091},{"__isSmartRef__":true,"id":1092},{"__isSmartRef__":true,"id":1093},{"__isSmartRef__":true,"id":1014},{"__isSmartRef__":true,"id":1015},{"__isSmartRef__":true,"id":1016},{"__isSmartRef__":true,"id":1017},{"__isSmartRef__":true,"id":862},{"__isSmartRef__":true,"id":863},{"__isSmartRef__":true,"id":864},{"__isSmartRef__":true,"id":865}],"doNotSerialize":["$$_Position","$$_Scale","$$_Rotation","$$owner"],"doNotCopyProperties":["$$_Position","$$_Scale","$$_Rotation","$$owner"],"_Scale":0.996005996001,"_Rotation":0,"showsHalos":false,"layout":{"__isSmartRef__":true,"id":1313},"name":"Implementation","magnets":[{"__isSmartRef__":true,"id":1314}],"_Visible":false,"__SourceModuleName__":"Global.lively.morphic.Core","__LivelyClassName__":"lively.morphic.Box"},"693":{"submorphs":[{"__isSmartRef__":true,"id":694},{"__isSmartRef__":true,"id":1151}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1296},"id":6326,"renderContextTable":{"__isSmartRef__":true,"id":1299},"eventHandler":{"__isSmartRef__":true,"id":1300},"droppingEnabled":true,"halosEnabled":true,"draggingEnabled":true,"layout":{"__isSmartRef__":true,"id":1301},"LK2":true,"_Position":{"__isSmartRef__":true,"id":1302},"priorExtent":{"__isSmartRef__":true,"id":1303},"targetMorph":{"__isSmartRef__":true,"id":694},"titleBar":{"__isSmartRef__":true,"id":1151},"contentOffset":{"__isSmartRef__":true,"id":706},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":null,"expandedExtent":null,"ignoreEventsOnExpand":false,"owner":{"__isSmartRef__":true,"id":692},"highlighted":true,"_Scale":1,"prevDragPos":{"__isSmartRef__":true,"id":1304},"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Rotation":0,"__LivelyClassName__":"lively.morphic.Window"},"694":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":695},"id":6325,"renderContextTable":{"__isSmartRef__":true,"id":701},"textChunks":[{"__isSmartRef__":true,"id":702}],"eventHandler":{"__isSmartRef__":true,"id":704},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":705},"_ClipMode":"visible","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Courier","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":706},"priorExtent":{"__isSmartRef__":true,"id":707},"_MaxTextWidth":407.96809574463845,"_MaxTextHeight":118.32701861745568,"evalEnabled":false,"doitContext":{"__isSmartRef__":true,"id":708},"attributeConnections":[{"__isSmartRef__":true,"id":1139},{"__isSmartRef__":true,"id":1144},{"__isSmartRef__":true,"id":1149}],"doNotSerialize":["$$savedTextString","$$textString"],"doNotCopyProperties":["$$savedTextString","$$textString"],"savedTextString":"function converter(value) {\n return Strings.tableize(value)\n .slice(3,5)\n .collect(function(ea) { \n return (100-Number(ea.last())) / 2\n })\n}\n","layout":{"__isSmartRef__":true,"id":1150},"syntaxHighlightingWhileTyping":true,"lastSyntaxHighlightTime":1308088826345,"owner":{"__isSmartRef__":true,"id":693},"priorSelectionRange":[0,0],"charsReplaced":"function converter(value) {\n return value\n}","lastFindLoc":0,"prevScroll":[0,0],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.TextCore","textString":"function converter(value) {\n return Strings.tableize(value)\n .slice(3,5)\n .collect(function(ea) { \n return (100-Number(ea.last())) / 2\n })\n}\n","__LivelyClassName__":"lively.morphic.Text"},"695":{"_Position":{"__isSmartRef__":true,"id":696},"renderContextTable":{"__isSmartRef__":true,"id":697},"_Extent":{"__isSmartRef__":true,"id":698},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":699},"_Fill":{"__isSmartRef__":true,"id":700},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"696":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"697":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"698":{"x":407.96809574463845,"y":118.32701861745568,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"699":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"700":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"701":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML"},"702":{"style":{"__isSmartRef__":true,"id":703},"chunkOwner":{"__isSmartRef__":true,"id":694},"storedString":"function converter(value) {\n return Strings.tableize(value)\n .slice(3,5)\n .collect(function(ea) { \n return (100-Number(ea.last())) / 2\n })\n}\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"703":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"704":{"morph":{"__isSmartRef__":true,"id":694},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"705":{"x":2,"y":1,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"706":{"x":0,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"707":{"x":407.96809574463845,"y":118.32701861745568,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"708":{"sourceObj":{"__isSmartRef__":true,"id":709},"sourceAttrName":"resultFromServer","targetObj":{"__isSmartRef__":true,"id":810},"targetMethodName":"value","visualConnector":{"__isSmartRef__":true,"id":797},"converterString":"function converter(value) {\n return Strings.tableize(value)\n .slice(3,5)\n .collect(function(ea) { \n return (100-Number(ea.last())) / 2\n })\n}\n","__SourceModuleName__":"Global.lively.bindings","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1135},"__LivelyClassName__":"AttributeConnection"},"709":{"submorphs":[{"__isSmartRef__":true,"id":710},{"__isSmartRef__":true,"id":734}],"scripts":[],"id":5789,"shape":{"__isSmartRef__":true,"id":784},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":791},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":792},"eventHandler":{"__isSmartRef__":true,"id":793},"attributeConnections":[{"__isSmartRef__":true,"id":794},{"__isSmartRef__":true,"id":708},{"__isSmartRef__":true,"id":795},{"__isSmartRef__":true,"id":1055},{"__isSmartRef__":true,"id":1056},{"__isSmartRef__":true,"id":1057},{"__isSmartRef__":true,"id":1058},{"__isSmartRef__":true,"id":1080},{"__isSmartRef__":true,"id":1081},{"__isSmartRef__":true,"id":1082},{"__isSmartRef__":true,"id":1083},{"__isSmartRef__":true,"id":1084}],"doNotSerialize":["$$name","$$resultFromServer","$$_Position","$$_Scale","$$_Rotation","$$owner"],"doNotCopyProperties":["$$name","$$resultFromServer","$$_Position","$$_Scale","$$_Rotation","$$owner"],"layout":{"__isSmartRef__":true,"id":1106},"priorExtent":{"__isSmartRef__":true,"id":1107},"isInLayoutCycle":false,"connections":{"__isSmartRef__":true,"id":1108},"serverURL":{"__isSmartRef__":true,"id":1110},"magnets":[{"__isSmartRef__":true,"id":897}],"name":"CPUWorkload","_Position":{"__isSmartRef__":true,"id":1111},"_Scale":1,"_Rotation":0,"resultFromServer":"Linux 2.6.32-5-amd64 (lively) \t06/15/11 \t_x86_64_\t(2 CPU)\n\n11:00:05 CPU %usr %nice %sys %iowait %irq %soft %steal %guest %idle\n11:00:06 all 0.00 0.00 0.52 0.00 0.00 0.00 0.00 0.00 99.48\n11:00:06 0 0.00 0.00 1.14 0.00 0.00 0.00 0.00 0.00 98.86\n11:00:06 1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00\n\nAverage: CPU %usr %nice %sys %iowait %irq %soft %steal %guest %idle\nAverage: all 0.00 0.00 0.52 0.00 0.00 0.00 0.00 0.00 99.48\nAverage: 0 0.00 0.00 1.14 0.00 0.00 0.00 0.00 0.00 98.86\nAverage: 1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00\n","owner":{"__isSmartRef__":true,"id":692},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1112},"__LivelyClassName__":"lively.morphic.Box"},"710":{"submorphs":[],"scripts":[],"id":5790,"shape":{"__isSmartRef__":true,"id":711},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":716},"_MaxTextWidth":177.9080141874561,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":714},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"nameLabel","partsBinMetaInfo":{"__isSmartRef__":true,"id":717},"textChunks":[{"__isSmartRef__":true,"id":718}],"charsReplaced":"Grr","lastFindLoc":-3,"priorSelectionRange":[11,11],"prevScroll":[0,0],"_Scale":0.9999999999999997,"priorExtent":{"__isSmartRef__":true,"id":720},"attributeConnections":[{"__isSmartRef__":true,"id":721},{"__isSmartRef__":true,"id":722}],"doNotSerialize":["$$owner","$$savedTextString"],"doNotCopyProperties":["$$owner","$$savedTextString"],"isInputLine":true,"renderContextTable":{"__isSmartRef__":true,"id":723},"eventHandler":{"__isSmartRef__":true,"id":724},"oldOwner":{"__isSmartRef__":true,"id":709},"_Align":"center","layout":{"__isSmartRef__":true,"id":725},"_WhiteSpaceHandling":"pre-wrap","_TextColor":{"__isSmartRef__":true,"id":726},"owner":{"__isSmartRef__":true,"id":709},"savedTextString":"TopLeft","_Rotation":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":727},"__LivelyClassName__":"lively.morphic.Text"},"711":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":712},"_Extent":{"__isSmartRef__":true,"id":713},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":714},"renderContextTable":{"__isSmartRef__":true,"id":715},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"712":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"713":{"x":177.9080141874561,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"714":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"715":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"716":{"x":-101.5533404249384,"y":-30.836490691272104,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"717":{"partsSpaceName":"PartsBin/Widgets/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"Label that shows the name of a morph. Updates automatically.","partName":"NameLabel","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"718":{"style":{"__isSmartRef__":true,"id":719},"chunkOwner":{"__isSmartRef__":true,"id":710},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"CPUWorkload","__LivelyClassName__":"lively.morphic.TextChunk"},"719":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"720":{"x":177.9080141874561,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"721":{"sourceObj":{"__isSmartRef__":true,"id":710},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":710},"targetMethodName":"updateLabel","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"722":{"sourceObj":{"__isSmartRef__":true,"id":710},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":710},"targetMethodName":"renameOwner","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"723":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML"},"724":{"morph":{"__isSmartRef__":true,"id":710},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"725":{"resizeHeight":false,"resizeWidth":true},"726":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"727":{"updateLabel":{"__isSmartRef__":true,"id":728},"renameOwner":{"__isSmartRef__":true,"id":731}},"728":{"varMapping":{"__isSmartRef__":true,"id":729},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tif (this.oldOwner)\n\t\t\tdisconnect(this.oldOwner, 'name', this, 'updateLabel')\n\t\tif (this.owner)\n\t\t\tconnect(this.owner, 'name', this, 'updateLabel')\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar name = (this.owner ? this.owner.name : \"no owner\")\n\tif (this.textString != name)\n\tthis.setTextString(name)\n}","funcProperties":{"__isSmartRef__":true,"id":730},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"729":{"this":{"__isSmartRef__":true,"id":710}},"730":{},"731":{"varMapping":{"__isSmartRef__":true,"id":732},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":733},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"732":{"this":{"__isSmartRef__":true,"id":710}},"733":{},"734":{"submorphs":[{"__isSmartRef__":true,"id":735}],"scripts":[],"id":5791,"shape":{"__isSmartRef__":true,"id":749},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":764},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":753},"lighterFill":{"__isSmartRef__":true,"id":765},"label":{"__isSmartRef__":true,"id":735},"name":"runButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":774},"attributeConnections":[{"__isSmartRef__":true,"id":775},{"__isSmartRef__":true,"id":776}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","_Scale":1,"priorExtent":{"__isSmartRef__":true,"id":777},"renderContextTable":{"__isSmartRef__":true,"id":778},"eventHandler":{"__isSmartRef__":true,"id":779},"owner":{"__isSmartRef__":true,"id":709},"_Rotation":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":780},"__LivelyClassName__":"lively.morphic.Button"},"735":{"submorphs":[],"scripts":[],"id":5792,"shape":{"__isSmartRef__":true,"id":736},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":741},"_MaxTextWidth":67.13566067881189,"_MaxTextHeight":19.00798003993009,"textStyle":null,"padding":{"__isSmartRef__":true,"id":742},"_Padding":{"__isSmartRef__":true,"id":743},"owner":{"__isSmartRef__":true,"id":734},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":744},"textChunks":[{"__isSmartRef__":true,"id":745}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":747},"eventHandler":{"__isSmartRef__":true,"id":748},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"__LivelyClassName__":"lively.morphic.Text"},"736":{"position":{"__isSmartRef__":true,"id":737},"_Extent":{"__isSmartRef__":true,"id":738},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":739},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":740},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"737":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"738":{"x":67.13566067881189,"y":19.00798003993009,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"739":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"740":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"741":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"742":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"743":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"744":{"x":67.13566067881189,"y":19.00798003993009,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"745":{"style":{"__isSmartRef__":true,"id":746},"chunkOwner":{"__isSmartRef__":true,"id":735},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"exec","__LivelyClassName__":"lively.morphic.TextChunk"},"746":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"747":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML"},"748":{"morph":{"__isSmartRef__":true,"id":735},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"749":{"position":{"__isSmartRef__":true,"id":750},"_Extent":{"__isSmartRef__":true,"id":751},"_BorderWidth":1.1840000000000002,"_BorderColor":{"__isSmartRef__":true,"id":752},"_Fill":{"__isSmartRef__":true,"id":753},"_BorderRadius":5.2,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":763},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"750":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"751":{"x":67.13566067881189,"y":19.00798003993009,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"752":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"753":{"stops":[{"__isSmartRef__":true,"id":754},{"__isSmartRef__":true,"id":756},{"__isSmartRef__":true,"id":758},{"__isSmartRef__":true,"id":760}],"vector":{"__isSmartRef__":true,"id":762},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"754":{"offset":0,"color":{"__isSmartRef__":true,"id":755}},"755":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"756":{"offset":0.4,"color":{"__isSmartRef__":true,"id":757}},"757":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"758":{"offset":0.6,"color":{"__isSmartRef__":true,"id":759}},"759":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"760":{"offset":1,"color":{"__isSmartRef__":true,"id":761}},"761":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"762":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"763":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"764":{"x":-44.780658244389315,"y":8.155533244887522,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"765":{"stops":[{"__isSmartRef__":true,"id":766},{"__isSmartRef__":true,"id":768},{"__isSmartRef__":true,"id":770},{"__isSmartRef__":true,"id":772}],"vector":{"__isSmartRef__":true,"id":762},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"766":{"offset":0,"color":{"__isSmartRef__":true,"id":767}},"767":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"768":{"offset":0.4,"color":{"__isSmartRef__":true,"id":769}},"769":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"770":{"offset":0.6,"color":{"__isSmartRef__":true,"id":771}},"771":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"772":{"offset":1,"color":{"__isSmartRef__":true,"id":773}},"773":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"774":{"partsSpaceName":"PartsBin/Inputs","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"partName":"ScriptableButton","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"775":{"sourceObj":{"__isSmartRef__":true,"id":734},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":734},"targetMethodName":"onFire","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"776":{"sourceObj":{"__isSmartRef__":true,"id":734},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":709},"targetMethodName":"exec","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"777":{"x":67.13566067881189,"y":19.00798003993009,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"778":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"779":{"morph":{"__isSmartRef__":true,"id":734},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"780":{"onFire":{"__isSmartRef__":true,"id":781}},"781":{"varMapping":{"__isSmartRef__":true,"id":782},"source":"function onFire() {\n}","funcProperties":{"__isSmartRef__":true,"id":783},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"782":{"this":{"__isSmartRef__":true,"id":734}},"783":{},"784":{"position":{"__isSmartRef__":true,"id":785},"_Extent":{"__isSmartRef__":true,"id":786},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":787},"_Fill":{"__isSmartRef__":true,"id":788},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":789},"_BorderRadius":30.349999999999998,"_Opacity":1,"_BorderStyle":"solid","_Position":{"__isSmartRef__":true,"id":790},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"785":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"786":{"x":197.9080141874561,"y":76.00798003993009,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"787":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"788":{"r":0.662,"g":0.662,"b":0.662,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"789":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"790":{"x":-103.58524468029987,"y":-39.84047872319212,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"791":{"partsSpaceName":"PartsBin/Server/","__SourceModuleName__":"Global.lively.PartsBin","comment":"A component that let's you run your code on a nodejs server. Overwrite 'onServerDo'","migrationLevel":2,"partName":"CPUWorkload","requiredModules":["server.nodejs.RemoteJSInterface"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"792":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"793":{"morph":{"__isSmartRef__":true,"id":709},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"794":{"sourceObj":{"__isSmartRef__":true,"id":709},"sourceAttrName":"name","targetObj":{"__isSmartRef__":true,"id":710},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"795":{"sourceObj":{"__isSmartRef__":true,"id":709},"sourceAttrName":"globalTransform","targetObj":{"__isSmartRef__":true,"id":796},"targetMethodName":"alignToMagnet","dependendConnections":[{"__isSmartRef__":true,"id":1055},{"__isSmartRef__":true,"id":1056},{"__isSmartRef__":true,"id":1057},{"__isSmartRef__":true,"id":1058},{"__isSmartRef__":true,"id":1055},{"__isSmartRef__":true,"id":1056},{"__isSmartRef__":true,"id":1057},{"__isSmartRef__":true,"id":1058},{"__isSmartRef__":true,"id":1064},{"__isSmartRef__":true,"id":1065},{"__isSmartRef__":true,"id":1066},{"__isSmartRef__":true,"id":1067},{"__isSmartRef__":true,"id":1073},{"__isSmartRef__":true,"id":1074},{"__isSmartRef__":true,"id":1075},{"__isSmartRef__":true,"id":1076},{"__isSmartRef__":true,"id":1055},{"__isSmartRef__":true,"id":1056},{"__isSmartRef__":true,"id":1057},{"__isSmartRef__":true,"id":1058},{"__isSmartRef__":true,"id":1064},{"__isSmartRef__":true,"id":1065},{"__isSmartRef__":true,"id":1066},{"__isSmartRef__":true,"id":1067},{"__isSmartRef__":true,"id":1073},{"__isSmartRef__":true,"id":1074},{"__isSmartRef__":true,"id":1075},{"__isSmartRef__":true,"id":1076}],"oldTransform":{"__isSmartRef__":true,"id":1078},"__SourceModuleName__":"Global.lively.bindings.GeometryBindings","__LivelyClassName__":"lively.morphic.GeometryTransformConnection"},"796":{"morph":{"__isSmartRef__":true,"id":797},"index":0,"connectedMagnet":{"__isSmartRef__":true,"id":897},"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"797":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":798},"id":5971,"renderContextTable":{"__isSmartRef__":true,"id":806},"eventHandler":{"__isSmartRef__":true,"id":807},"droppingEnabled":true,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":692},"controlPoints":[{"__isSmartRef__":true,"id":796},{"__isSmartRef__":true,"id":808}],"con":{"__isSmartRef__":true,"id":708},"showsMorphMenu":true,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","isCopyMorphRef":true,"morphRefId":2,"_Position":{"__isSmartRef__":true,"id":888},"_Scale":1,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Rotation":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":889},"__LivelyClassName__":"lively.morphic.Path"},"798":{"dontChangeShape":false,"cachedVertices":[{"__isSmartRef__":true,"id":799},{"__isSmartRef__":true,"id":800}],"_PathElements":[{"__isSmartRef__":true,"id":801},{"__isSmartRef__":true,"id":802}],"renderContextTable":{"__isSmartRef__":true,"id":803},"_Position":{"__isSmartRef__":true,"id":804},"_Extent":{"__isSmartRef__":true,"id":805},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":699},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"799":{"x":180.2701901586047,"y":404.37288297656164,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"800":{"x":260.48255186234366,"y":463.9800598403983,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"801":{"isAbsolute":true,"x":180.2701901586047,"y":404.37288297656164,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"802":{"isAbsolute":true,"x":260.48255186234366,"y":463.9800598403983,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"803":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"804":{"x":180.2701873779297,"y":404.3728942871094,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"805":{"x":80.21235656738281,"y":59.607177734375,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"806":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"807":{"morph":{"__isSmartRef__":true,"id":797},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"808":{"morph":{"__isSmartRef__":true,"id":797},"index":1,"connectedMagnet":{"__isSmartRef__":true,"id":809},"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"809":{"morph":{"__isSmartRef__":true,"id":810},"position":{"__isSmartRef__":true,"id":887},"connectedControlPoints":[{"__isSmartRef__":true,"id":808}],"__SourceModuleName__":"Global.lively.morphic.Connectors","__LivelyClassName__":"lively.morphic.Magnet"},"810":{"submorphs":[],"scripts":[],"id":2544,"shape":{"__isSmartRef__":true,"id":811},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":312.47058776658247,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":817},"showsHalos":false,"_FontSize":9,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"JSONPrinter","partsBinMetaInfo":{"__isSmartRef__":true,"id":818},"textChunks":[{"__isSmartRef__":true,"id":819}],"charsReplaced":"1","lastFindLoc":2,"priorSelectionRange":[0,1],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":821},"renderContextTable":{"__isSmartRef__":true,"id":822},"eventHandler":{"__isSmartRef__":true,"id":823},"magnets":[{"__isSmartRef__":true,"id":809}],"attributeConnections":[{"__isSmartRef__":true,"id":824},{"__isSmartRef__":true,"id":829},{"__isSmartRef__":true,"id":852},{"__isSmartRef__":true,"id":853},{"__isSmartRef__":true,"id":854},{"__isSmartRef__":true,"id":855},{"__isSmartRef__":true,"id":856}],"doNotSerialize":["$$value","$$_Position","$$_Scale","$$_Rotation","$$owner"],"doNotCopyProperties":["$$value","$$_Position","$$_Scale","$$_Rotation","$$owner"],"layout":{"__isSmartRef__":true,"id":878},"savedTextString":"[1,2]\n","_Padding":{"__isSmartRef__":true,"id":879},"connections":{"__isSmartRef__":true,"id":880},"value":[0.259999999999998,0.5700000000000003],"_Position":{"__isSmartRef__":true,"id":882},"_Scale":1,"_Rotation":0,"owner":{"__isSmartRef__":true,"id":692},"isCopyMorphRef":true,"morphRefId":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":883},"__LivelyClassName__":"lively.morphic.Text"},"811":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":812},"_Extent":{"__isSmartRef__":true,"id":813},"_BorderWidth":1.778,"_BorderColor":{"__isSmartRef__":true,"id":814},"renderContextTable":{"__isSmartRef__":true,"id":815},"_BorderRadius":16.67,"_Opacity":1,"_BorderStyle":"solid","_Fill":{"__isSmartRef__":true,"id":816},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"812":{"x":-123.39082712817918,"y":-7.972083776558634,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"813":{"x":312.47058776658247,"y":29,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"814":{"r":0.619,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"815":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"816":{"r":1,"g":0.8164152534959416,"b":0.6715685727679689,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"817":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"818":{"partsSpaceName":"PartsBin/Basic/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"a simple text morph","partName":"JSONPrinter","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"819":{"style":{"__isSmartRef__":true,"id":820},"chunkOwner":{"__isSmartRef__":true,"id":810},"storedString":"[0.259999999999998,0.5700000000000003]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"820":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"821":{"x":312.47058776658247,"y":29,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"822":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML"},"823":{"morph":{"__isSmartRef__":true,"id":810},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"824":{"sourceObj":{"__isSmartRef__":true,"id":810},"sourceAttrName":"value","targetObj":{"__isSmartRef__":true,"id":810},"targetMethodName":"setTextString","converterString":"function (v) {\n try {\n return JSON.serialize(v)\n } catch(e) {\n return \"\"\n }\n }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":825},"__SourceModuleName__":"Global.lively.bindings","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":826},"__LivelyClassName__":"AttributeConnection"},"825":{"source":{"__isSmartRef__":true,"id":810},"target":{"__isSmartRef__":true,"id":810}},"826":{"converter":{"__isSmartRef__":true,"id":827}},"827":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":825},"source":"function (v) {\n try {\n return JSON.serialize(v)\n } catch(e) {\n return \"\"\n }\n }","funcProperties":{"__isSmartRef__":true,"id":828},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"828":{},"829":{"sourceObj":{"__isSmartRef__":true,"id":810},"sourceAttrName":"value","targetObj":{"__isSmartRef__":true,"id":97},"targetMethodName":"addDataColumnAndRender","visualConnector":{"__isSmartRef__":true,"id":830},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"830":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":831},"id":178,"renderContextTable":{"__isSmartRef__":true,"id":839},"eventHandler":{"__isSmartRef__":true,"id":840},"droppingEnabled":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":841},{"__isSmartRef__":true,"id":842}],"con":{"__isSmartRef__":true,"id":829},"showsMorphMenu":true,"_Position":{"__isSmartRef__":true,"id":843},"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Rotation":0,"_Scale":1,"isCopyMorphRef":true,"morphRefId":2,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":844},"__LivelyClassName__":"lively.morphic.Path"},"831":{"dontChangeShape":false,"cachedVertices":[{"__isSmartRef__":true,"id":832},{"__isSmartRef__":true,"id":833}],"_PathElements":[{"__isSmartRef__":true,"id":834},{"__isSmartRef__":true,"id":835}],"renderContextTable":{"__isSmartRef__":true,"id":836},"_Position":{"__isSmartRef__":true,"id":837},"_Extent":{"__isSmartRef__":true,"id":838},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":699},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"832":{"x":437.7726821805495,"y":364.3788630324174,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"833":{"x":776.1463171618533,"y":224.04981311681235,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"834":{"isAbsolute":true,"x":437.7726821805495,"y":364.3788630324174,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"835":{"isAbsolute":true,"x":776.1463171618533,"y":224.04981311681235,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"836":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"837":{"x":437.7726745605469,"y":224.04981994628906,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"838":{"x":338.3736267089844,"y":140.3290557861328,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"839":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"840":{"morph":{"__isSmartRef__":true,"id":830},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"841":{"morph":{"__isSmartRef__":true,"id":830},"index":0,"connectedMagnet":null,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"842":{"morph":{"__isSmartRef__":true,"id":830},"index":1,"connectedMagnet":null,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"843":{"x":-193.21036967980214,"y":-184.24626196708397,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"844":{"morphMenuItems":{"__isSmartRef__":true,"id":845}},"845":{"varMapping":{"__isSmartRef__":true,"id":846},"source":"function morphMenuItems() {\n var visualConnector = this, con = this.con, world = this.world();\n var items = [\n ['edit converter', function() {\n var source = con.converterString || 'function converter(value) {\\n return value\\n}',\n editor = new lively.morphic.Text(new Rectangle(0,0, 400, 200), source);\n editor.doitContext = con;\n connect(editor, 'savedTextString', con, 'converterString', {updater:\n function($upd, source) { this.targetObj.converter = null; $upd(source) }});\n connect(editor, 'savedTextString', world, 'alertOK', {converter: \n function() { return 'setting new converter' }})\n editor.applyStyle({syntaxHighlighting: true, fontFamily: 'Courier', resizeWidth: true, resizeHeight: true});\n var title = con.targetObj.name && con.sourceObj.name ?\n 'Editor for ' + con.targetObj.name + ' -> ' + con.sourceObj.name :\n 'Editor for converter function';\n var window = world.addFramedMorph(editor, title)\n window.align(window.bounds().topCenter(), visualConnector.bounds().bottomCenter())\n }],\n ['hide', function() {\n visualConnector.disconnectFromMagnets();\n visualConnector.remove();\n }],\n ['disconnect', function() {\n alertOK('Disconnected ' + visualConnector.con);\n visualConnector.con.visualDisconnect();\n }],\n ['cancel', function() {}],\n ];\n return items;\n }","funcProperties":{"__isSmartRef__":true,"id":851},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"846":{"this":{"__isSmartRef__":true,"id":830},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":847}},"847":{"$super":{"__isSmartRef__":true,"id":848}},"848":{"varMapping":{"__isSmartRef__":true,"id":849},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":850},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"849":{"obj":{"__isSmartRef__":true,"id":830},"name":"morphMenuItems"},"850":{},"851":{},"852":{"sourceObj":{"__isSmartRef__":true,"id":810},"sourceAttrName":"globalTransform","targetObj":{"__isSmartRef__":true,"id":808},"targetMethodName":"alignToMagnet","dependendConnections":[{"__isSmartRef__":true,"id":853},{"__isSmartRef__":true,"id":854},{"__isSmartRef__":true,"id":855},{"__isSmartRef__":true,"id":856},{"__isSmartRef__":true,"id":853},{"__isSmartRef__":true,"id":854},{"__isSmartRef__":true,"id":855},{"__isSmartRef__":true,"id":856},{"__isSmartRef__":true,"id":862},{"__isSmartRef__":true,"id":863},{"__isSmartRef__":true,"id":864},{"__isSmartRef__":true,"id":865},{"__isSmartRef__":true,"id":871},{"__isSmartRef__":true,"id":872},{"__isSmartRef__":true,"id":873},{"__isSmartRef__":true,"id":874},{"__isSmartRef__":true,"id":853},{"__isSmartRef__":true,"id":854},{"__isSmartRef__":true,"id":855},{"__isSmartRef__":true,"id":856},{"__isSmartRef__":true,"id":862},{"__isSmartRef__":true,"id":863},{"__isSmartRef__":true,"id":864},{"__isSmartRef__":true,"id":865},{"__isSmartRef__":true,"id":871},{"__isSmartRef__":true,"id":872},{"__isSmartRef__":true,"id":873},{"__isSmartRef__":true,"id":874}],"oldTransform":{"__isSmartRef__":true,"id":876},"__SourceModuleName__":"Global.lively.bindings.GeometryBindings","__LivelyClassName__":"lively.morphic.GeometryTransformConnection"},"853":{"sourceObj":{"__isSmartRef__":true,"id":810},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":852},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":852},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"854":{"sourceObj":{"__isSmartRef__":true,"id":810},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":852},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":852},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"855":{"sourceObj":{"__isSmartRef__":true,"id":810},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":852},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":852},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"856":{"sourceObj":{"__isSmartRef__":true,"id":810},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":852},"targetMethodName":"updateOwners","converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":857},"dependedBy":{"__isSmartRef__":true,"id":852},"__SourceModuleName__":"Global.lively.bindings","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":858},"__LivelyClassName__":"AttributeConnection"},"857":{"source":{"__isSmartRef__":true,"id":810},"target":{"__isSmartRef__":true,"id":852}},"858":{"converter":{"__isSmartRef__":true,"id":859}},"859":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":860},"source":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","funcProperties":{"__isSmartRef__":true,"id":861},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"860":{"source":{"__isSmartRef__":true,"id":810},"target":{"__isSmartRef__":true,"id":852}},"861":{},"862":{"sourceObj":{"__isSmartRef__":true,"id":692},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":852},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":852},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"863":{"sourceObj":{"__isSmartRef__":true,"id":692},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":852},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":852},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"864":{"sourceObj":{"__isSmartRef__":true,"id":692},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":852},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":852},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"865":{"sourceObj":{"__isSmartRef__":true,"id":692},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":852},"targetMethodName":"updateOwners","converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":866},"dependedBy":{"__isSmartRef__":true,"id":852},"__SourceModuleName__":"Global.lively.bindings","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":867},"__LivelyClassName__":"AttributeConnection"},"866":{"source":{"__isSmartRef__":true,"id":692},"target":{"__isSmartRef__":true,"id":852}},"867":{"converter":{"__isSmartRef__":true,"id":868}},"868":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":869},"source":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","funcProperties":{"__isSmartRef__":true,"id":870},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"869":{"source":{"__isSmartRef__":true,"id":692},"target":{"__isSmartRef__":true,"id":852}},"870":{},"871":{"sourceObj":{"__isSmartRef__":true,"id":96},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":852},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":852},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"872":{"sourceObj":{"__isSmartRef__":true,"id":96},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":852},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":852},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"873":{"sourceObj":{"__isSmartRef__":true,"id":96},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":852},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":852},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"874":{"sourceObj":{"__isSmartRef__":true,"id":96},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":852},"targetMethodName":"updateOwners","converter":null,"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":875},"dependedBy":{"__isSmartRef__":true,"id":852},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"875":{"source":{"__isSmartRef__":true,"id":96},"target":{"__isSmartRef__":true,"id":852}},"876":{"d":1,"a":1,"f":513.7886343082282,"e":1022.4396835072371,"c":0,"b":0,"matrix_":{"__isSmartRef__":true,"id":877},"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Core"},"877":{"a":1,"b":0,"c":0,"d":1,"e":1022.4396835072371,"f":513.7886343082282,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Core"},"878":{},"879":{"x":5,"y":5,"width":5,"height":5,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"880":{"value":{"__isSmartRef__":true,"id":881}},"881":{},"882":{"x":246.56231250074737,"y":182.13260106533346,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"883":{"reset":{"__isSmartRef__":true,"id":884}},"884":{"varMapping":{"__isSmartRef__":true,"id":885},"source":"function reset() {\n\tthis.connections = {\n value: {}\n };\n connect(this, 'value', this, 'setTextString', {\n converter: function(v) {\n try {\n return JSON.serialize(v)\n } catch(e) {\n return \"\"\n }\n }\n })\n}","funcProperties":{"__isSmartRef__":true,"id":886},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"885":{"this":{"__isSmartRef__":true,"id":810}},"886":{},"887":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"888":{"x":-15.92023936159623,"y":-283.8474587750648,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"889":{"morphMenuItems":{"__isSmartRef__":true,"id":890}},"890":{"varMapping":{"__isSmartRef__":true,"id":891},"source":"function morphMenuItems() {\n var visualConnector = this, con = this.con, world = this.world();\n var items = [\n ['edit converter', function() {\n var source = con.converterString || 'function converter(value) {\\n return value\\n}',\n editor = new lively.morphic.Text(new Rectangle(0,0, 400, 200), source);\n editor.doitContext = con;\n connect(editor, 'savedTextString', con, 'converterString', {updater:\n function($upd, source) { this.targetObj.converter = null; $upd(source) }});\n connect(editor, 'savedTextString', world, 'alertOK', {converter: \n function() { return 'setting new converter' }})\n editor.applyStyle({syntaxHighlighting: true, fontFamily: 'Courier', resizeWidth: true, resizeHeight: true});\n var title = con.targetObj.name && con.sourceObj.name ?\n 'Editor for ' + con.targetObj.name + ' -> ' + con.sourceObj.name :\n 'Editor for converter function';\n var window = world.addFramedMorph(editor, title)\n window.align(window.bounds().topCenter(), visualConnector.bounds().bottomCenter())\n }],\n ['hide', function() {\n visualConnector.disconnectFromMagnets();\n visualConnector.remove();\n }],\n ['disconnect', function() {\n alertOK('Disconnected ' + visualConnector.con);\n visualConnector.con.visualDisconnect();\n }],\n ['cancel', function() {}],\n ];\n return items;\n }","funcProperties":{"__isSmartRef__":true,"id":896},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"891":{"this":{"__isSmartRef__":true,"id":797},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":892}},"892":{"$super":{"__isSmartRef__":true,"id":893}},"893":{"varMapping":{"__isSmartRef__":true,"id":894},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":895},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"894":{"obj":{"__isSmartRef__":true,"id":797},"name":"morphMenuItems"},"895":{},"896":{},"897":{"morph":{"__isSmartRef__":true,"id":709},"position":{"__isSmartRef__":true,"id":898},"connectedControlPoints":[{"__isSmartRef__":true,"id":796},{"__isSmartRef__":true,"id":899}],"__SourceModuleName__":"Global.lively.morphic.Connectors","__LivelyClassName__":"lively.morphic.Magnet"},"898":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"899":{"morph":{"__isSmartRef__":true,"id":900},"index":1,"connectedMagnet":{"__isSmartRef__":true,"id":897},"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"900":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":901},"id":6859,"renderContextTable":{"__isSmartRef__":true,"id":909},"eventHandler":{"__isSmartRef__":true,"id":910},"droppingEnabled":true,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":692},"controlPoints":[{"__isSmartRef__":true,"id":911},{"__isSmartRef__":true,"id":899}],"con":{"__isSmartRef__":true,"id":1003},"showsMorphMenu":true,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","isCopyMorphRef":true,"morphRefId":3,"_Position":{"__isSmartRef__":true,"id":1046},"_Scale":1,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Rotation":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1047},"__LivelyClassName__":"lively.morphic.Path"},"901":{"dontChangeShape":false,"cachedVertices":[{"__isSmartRef__":true,"id":902},{"__isSmartRef__":true,"id":903}],"_PathElements":[{"__isSmartRef__":true,"id":904},{"__isSmartRef__":true,"id":905}],"renderContextTable":{"__isSmartRef__":true,"id":906},"_Position":{"__isSmartRef__":true,"id":907},"_Extent":{"__isSmartRef__":true,"id":908},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":699},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"902":{"x":184.25423803092434,"y":328.67597340249665,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"903":{"x":180.2701901586047,"y":404.37288297656164,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"904":{"isAbsolute":true,"x":184.25423803092434,"y":328.67597340249665,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"905":{"isAbsolute":true,"x":180.2701901586047,"y":404.37288297656164,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"906":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"907":{"x":180.2701873779297,"y":328.67596435546875,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"908":{"x":3.9840545654296875,"y":75.69692993164062,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"909":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"910":{"morph":{"__isSmartRef__":true,"id":900},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"911":{"morph":{"__isSmartRef__":true,"id":900},"index":0,"connectedMagnet":{"__isSmartRef__":true,"id":912},"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"912":{"morph":{"__isSmartRef__":true,"id":913},"position":{"__isSmartRef__":true,"id":1045},"connectedControlPoints":[{"__isSmartRef__":true,"id":911}],"__SourceModuleName__":"Global.lively.morphic.Connectors","__LivelyClassName__":"lively.morphic.Magnet"},"913":{"submorphs":[{"__isSmartRef__":true,"id":914},{"__isSmartRef__":true,"id":928},{"__isSmartRef__":true,"id":943}],"scripts":[],"id":729,"shape":{"__isSmartRef__":true,"id":992},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"Timer","partsBinMetaInfo":{"__isSmartRef__":true,"id":999},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":1000},"eventHandler":{"__isSmartRef__":true,"id":1001},"attributeConnections":[{"__isSmartRef__":true,"id":1002},{"__isSmartRef__":true,"id":1003},{"__isSmartRef__":true,"id":1004},{"__isSmartRef__":true,"id":1005},{"__isSmartRef__":true,"id":1006},{"__isSmartRef__":true,"id":1007},{"__isSmartRef__":true,"id":1008}],"doNotSerialize":["$$running","$$tick","$$_Position","$$_Scale","$$_Rotation","$$owner"],"doNotCopyProperties":["$$running","$$tick","$$_Position","$$_Scale","$$_Rotation","$$owner"],"priorExtent":{"__isSmartRef__":true,"id":1030},"layout":{"__isSmartRef__":true,"id":1031},"running":false,"connections":{"__isSmartRef__":true,"id":1032},"magnets":[{"__isSmartRef__":true,"id":912}],"_Position":{"__isSmartRef__":true,"id":1034},"_Scale":1,"_Rotation":0,"owner":{"__isSmartRef__":true,"id":692},"tick":1308128460772,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1035},"__LivelyClassName__":"lively.morphic.Box"},"914":{"submorphs":[],"scripts":[],"id":797,"shape":{"__isSmartRef__":true,"id":915},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":920},"_MaxTextWidth":79.35493484089704,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":918},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"Text1","partsBinMetaInfo":{"__isSmartRef__":true,"id":921},"textChunks":[{"__isSmartRef__":true,"id":922}],"charsReplaced":"some text","lastFindLoc":-9,"priorSelectionRange":[0,5],"prevScroll":[0,0],"_Scale":1,"priorExtent":{"__isSmartRef__":true,"id":924},"renderContextTable":{"__isSmartRef__":true,"id":925},"eventHandler":{"__isSmartRef__":true,"id":926},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"owner":{"__isSmartRef__":true,"id":913},"_WhiteSpaceHandling":"pre-wrap","_TextColor":{"__isSmartRef__":true,"id":927},"_Rotation":0,"__LivelyClassName__":"lively.morphic.Text"},"915":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":916},"_Extent":{"__isSmartRef__":true,"id":917},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":918},"renderContextTable":{"__isSmartRef__":true,"id":919},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"916":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"917":{"x":79.35493484089704,"y":12.039880319201927,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"918":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"919":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"920":{"x":-151.393819148131,"y":-26.89232313815478,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"921":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"a simple text morph","partName":"Text","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"922":{"style":{"__isSmartRef__":true,"id":923},"morph":{"__isSmartRef__":true,"id":914},"__SourceModuleName__":"Global.lively.morphic.TextCore","chunkOwner":{"__isSmartRef__":true,"id":914},"storedString":"Timer","__LivelyClassName__":"lively.morphic.TextChunk"},"923":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"924":{"x":79.35493484089704,"y":12.039880319201927,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"925":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML"},"926":{"morph":{"__isSmartRef__":true,"id":914},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"927":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"928":{"submorphs":[],"scripts":[],"id":1866,"shape":{"__isSmartRef__":true,"id":929},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":935},"_MaxTextWidth":85.33100664937592,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":932},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"tickInput","partsBinMetaInfo":{"__isSmartRef__":true,"id":936},"textChunks":[{"__isSmartRef__":true,"id":937}],"charsReplaced":"some text","lastFindLoc":-9,"priorSelectionRange":[4,4],"prevScroll":[0,0],"_Scale":1,"priorExtent":{"__isSmartRef__":true,"id":939},"renderContextTable":{"__isSmartRef__":true,"id":940},"eventHandler":{"__isSmartRef__":true,"id":941},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"owner":{"__isSmartRef__":true,"id":913},"layout":{"__isSmartRef__":true,"id":942},"_Rotation":0,"__LivelyClassName__":"lively.morphic.Text"},"929":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":930},"_Extent":{"__isSmartRef__":true,"id":931},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":932},"renderContextTable":{"__isSmartRef__":true,"id":933},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_Fill":{"__isSmartRef__":true,"id":934},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"930":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"931":{"x":85.33100664937592,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"932":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"933":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"934":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"935":{"x":-69.72083776558668,"y":-28.884347074314434,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"936":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"a simple text morph","partName":"Text","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"937":{"style":{"__isSmartRef__":true,"id":938},"chunkOwner":{"__isSmartRef__":true,"id":928},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"1000","__LivelyClassName__":"lively.morphic.TextChunk"},"938":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"939":{"x":85.33100664937592,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"940":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML"},"941":{"morph":{"__isSmartRef__":true,"id":928},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"942":{},"943":{"submorphs":[{"__isSmartRef__":true,"id":944}],"scripts":[],"id":2291,"shape":{"__isSmartRef__":true,"id":958},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":973},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":962},"lighterFill":{"__isSmartRef__":true,"id":974},"label":{"__isSmartRef__":true,"id":944},"name":"ScriptableButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":983},"attributeConnections":[{"__isSmartRef__":true,"id":984}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","_Scale":1,"priorExtent":{"__isSmartRef__":true,"id":985},"renderContextTable":{"__isSmartRef__":true,"id":986},"eventHandler":{"__isSmartRef__":true,"id":987},"owner":{"__isSmartRef__":true,"id":913},"_Rotation":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":988},"__LivelyClassName__":"lively.morphic.Button"},"944":{"submorphs":[],"scripts":[],"id":2292,"shape":{"__isSmartRef__":true,"id":945},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":950},"_MaxTextWidth":101,"_MaxTextHeight":21,"textStyle":null,"padding":{"__isSmartRef__":true,"id":951},"_Padding":{"__isSmartRef__":true,"id":952},"owner":{"__isSmartRef__":true,"id":943},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":953},"textChunks":[{"__isSmartRef__":true,"id":954}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":956},"eventHandler":{"__isSmartRef__":true,"id":957},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"__LivelyClassName__":"lively.morphic.Text"},"945":{"position":{"__isSmartRef__":true,"id":946},"_Extent":{"__isSmartRef__":true,"id":947},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":948},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":949},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"946":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"947":{"x":101,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"948":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"949":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"950":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"951":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"952":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"953":{"x":101,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"954":{"style":{"__isSmartRef__":true,"id":955},"chunkOwner":{"__isSmartRef__":true,"id":944},"storedString":"start","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"955":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"956":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML"},"957":{"morph":{"__isSmartRef__":true,"id":944},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"958":{"position":{"__isSmartRef__":true,"id":959},"_Extent":{"__isSmartRef__":true,"id":960},"_BorderWidth":1.1840000000000002,"_BorderColor":{"__isSmartRef__":true,"id":961},"_Fill":{"__isSmartRef__":true,"id":962},"_BorderRadius":5.2,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":972},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"959":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"960":{"x":101,"y":21,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"961":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"962":{"stops":[{"__isSmartRef__":true,"id":963},{"__isSmartRef__":true,"id":965},{"__isSmartRef__":true,"id":967},{"__isSmartRef__":true,"id":969}],"vector":{"__isSmartRef__":true,"id":971},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"963":{"offset":0,"color":{"__isSmartRef__":true,"id":964}},"964":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"965":{"offset":0.4,"color":{"__isSmartRef__":true,"id":966}},"966":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"967":{"offset":0.6,"color":{"__isSmartRef__":true,"id":968}},"968":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"969":{"offset":1,"color":{"__isSmartRef__":true,"id":970}},"970":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"971":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"972":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"973":{"x":30.876371010473918,"y":-27.88833510623462,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"974":{"stops":[{"__isSmartRef__":true,"id":975},{"__isSmartRef__":true,"id":977},{"__isSmartRef__":true,"id":979},{"__isSmartRef__":true,"id":981}],"vector":{"__isSmartRef__":true,"id":971},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"975":{"offset":0,"color":{"__isSmartRef__":true,"id":976}},"976":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"977":{"offset":0.4,"color":{"__isSmartRef__":true,"id":978}},"978":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"979":{"offset":0.6,"color":{"__isSmartRef__":true,"id":980}},"980":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"981":{"offset":1,"color":{"__isSmartRef__":true,"id":982}},"982":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"983":{"partsSpaceName":"PartsBin/Inputs","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"partName":"ScriptableButton","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"984":{"sourceObj":{"__isSmartRef__":true,"id":943},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":943},"targetMethodName":"onFire","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"985":{"x":101,"y":20,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"986":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"987":{"morph":{"__isSmartRef__":true,"id":943},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"988":{"onFire":{"__isSmartRef__":true,"id":989}},"989":{"varMapping":{"__isSmartRef__":true,"id":990},"source":"function onFire() {\n this.owner.running = !this.owner.running\n if (this.owner.running) {\n this.setLabel(\"stop\")\n } else {\n this.setLabel(\"start\")\n }\n}","funcProperties":{"__isSmartRef__":true,"id":991},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"990":{"this":{"__isSmartRef__":true,"id":943}},"991":{},"992":{"position":{"__isSmartRef__":true,"id":993},"_Extent":{"__isSmartRef__":true,"id":994},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":995},"_Fill":{"__isSmartRef__":true,"id":996},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":997},"_BorderRadius":14.425000000000002,"_Opacity":1,"_BorderStyle":"solid","_Position":{"__isSmartRef__":true,"id":998},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"993":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"994":{"x":301.1944175521214,"y":45.219341755610515,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"995":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"996":{"r":0.753,"g":0.753,"b":0.753,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"997":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"998":{"x":-166.33399866932814,"y":-42.82851462743173,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"999":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","comment":"A simple box morph. A really blue one. Its amazing what you can build out of simple boxes.... Who needs stars when you got blue rectangles!","migrationLevel":2,"partName":"Timer","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1000":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"1001":{"morph":{"__isSmartRef__":true,"id":913},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1002":{"sourceObj":{"__isSmartRef__":true,"id":913},"sourceAttrName":"running","targetObj":{"__isSmartRef__":true,"id":913},"targetMethodName":"updateTickingScripts","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1003":{"sourceObj":{"__isSmartRef__":true,"id":913},"sourceAttrName":"tick","targetObj":{"__isSmartRef__":true,"id":709},"targetMethodName":"exec","visualConnector":{"__isSmartRef__":true,"id":900},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1004":{"sourceObj":{"__isSmartRef__":true,"id":913},"sourceAttrName":"globalTransform","targetObj":{"__isSmartRef__":true,"id":911},"targetMethodName":"alignToMagnet","dependendConnections":[{"__isSmartRef__":true,"id":1005},{"__isSmartRef__":true,"id":1006},{"__isSmartRef__":true,"id":1007},{"__isSmartRef__":true,"id":1008},{"__isSmartRef__":true,"id":1005},{"__isSmartRef__":true,"id":1006},{"__isSmartRef__":true,"id":1007},{"__isSmartRef__":true,"id":1008},{"__isSmartRef__":true,"id":1014},{"__isSmartRef__":true,"id":1015},{"__isSmartRef__":true,"id":1016},{"__isSmartRef__":true,"id":1017},{"__isSmartRef__":true,"id":1023},{"__isSmartRef__":true,"id":1024},{"__isSmartRef__":true,"id":1025},{"__isSmartRef__":true,"id":1026},{"__isSmartRef__":true,"id":1005},{"__isSmartRef__":true,"id":1006},{"__isSmartRef__":true,"id":1007},{"__isSmartRef__":true,"id":1008},{"__isSmartRef__":true,"id":1014},{"__isSmartRef__":true,"id":1015},{"__isSmartRef__":true,"id":1016},{"__isSmartRef__":true,"id":1017},{"__isSmartRef__":true,"id":1023},{"__isSmartRef__":true,"id":1024},{"__isSmartRef__":true,"id":1025},{"__isSmartRef__":true,"id":1026}],"oldTransform":{"__isSmartRef__":true,"id":1028},"__SourceModuleName__":"Global.lively.bindings.GeometryBindings","__LivelyClassName__":"lively.morphic.GeometryTransformConnection"},"1005":{"sourceObj":{"__isSmartRef__":true,"id":913},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":1004},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":1004},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1006":{"sourceObj":{"__isSmartRef__":true,"id":913},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":1004},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":1004},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1007":{"sourceObj":{"__isSmartRef__":true,"id":913},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":1004},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":1004},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1008":{"sourceObj":{"__isSmartRef__":true,"id":913},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":1004},"targetMethodName":"updateOwners","converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1009},"dependedBy":{"__isSmartRef__":true,"id":1004},"__SourceModuleName__":"Global.lively.bindings","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1010},"__LivelyClassName__":"AttributeConnection"},"1009":{"source":{"__isSmartRef__":true,"id":913},"target":{"__isSmartRef__":true,"id":1004}},"1010":{"converter":{"__isSmartRef__":true,"id":1011}},"1011":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":1012},"source":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","funcProperties":{"__isSmartRef__":true,"id":1013},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1012":{"source":{"__isSmartRef__":true,"id":913},"target":{"__isSmartRef__":true,"id":1004}},"1013":{},"1014":{"sourceObj":{"__isSmartRef__":true,"id":692},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":1004},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":1004},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1015":{"sourceObj":{"__isSmartRef__":true,"id":692},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":1004},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":1004},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1016":{"sourceObj":{"__isSmartRef__":true,"id":692},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":1004},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":1004},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1017":{"sourceObj":{"__isSmartRef__":true,"id":692},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":1004},"targetMethodName":"updateOwners","converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1018},"dependedBy":{"__isSmartRef__":true,"id":1004},"__SourceModuleName__":"Global.lively.bindings","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1019},"__LivelyClassName__":"AttributeConnection"},"1018":{"source":{"__isSmartRef__":true,"id":692},"target":{"__isSmartRef__":true,"id":1004}},"1019":{"converter":{"__isSmartRef__":true,"id":1020}},"1020":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":1021},"source":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","funcProperties":{"__isSmartRef__":true,"id":1022},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1021":{"source":{"__isSmartRef__":true,"id":692},"target":{"__isSmartRef__":true,"id":1004}},"1022":{},"1023":{"sourceObj":{"__isSmartRef__":true,"id":96},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":1004},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":1004},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1024":{"sourceObj":{"__isSmartRef__":true,"id":96},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":1004},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":1004},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1025":{"sourceObj":{"__isSmartRef__":true,"id":96},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":1004},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":1004},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1026":{"sourceObj":{"__isSmartRef__":true,"id":96},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":1004},"targetMethodName":"updateOwners","converter":null,"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1027},"dependedBy":{"__isSmartRef__":true,"id":1004},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1027":{"source":{"__isSmartRef__":true,"id":96},"target":{"__isSmartRef__":true,"id":1004}},"1028":{"d":1,"a":1,"f":378.48454787032654,"e":946.2113696758179,"c":0,"b":0,"matrix_":{"__isSmartRef__":true,"id":1029},"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Core"},"1029":{"a":1,"b":0,"c":0,"d":1,"e":946.2113696758179,"f":378.48454787032654,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Core"},"1030":{"x":302.1904295202012,"y":46.21535372369033,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1031":{},"1032":{"tick":{"__isSmartRef__":true,"id":1033}},"1033":{},"1034":{"x":170.33399866932814,"y":46.82851462743173,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1035":{"updateTickingScripts":{"__isSmartRef__":true,"id":1036},"setupConnections":{"__isSmartRef__":true,"id":1039},"updateTick":{"__isSmartRef__":true,"id":1042}},"1036":{"varMapping":{"__isSmartRef__":true,"id":1037},"source":"function updateTickingScripts(bool) {\n var timeInMS = Number(this.get('tickInput').textString);\n\tif (bool)\n this.startStepping(timeInMS, 'updateTick')\n else\n this.stopStepping()\n}","funcProperties":{"__isSmartRef__":true,"id":1038},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1037":{"this":{"__isSmartRef__":true,"id":913}},"1038":{},"1039":{"varMapping":{"__isSmartRef__":true,"id":1040},"source":"function setupConnections() {\n this.connections = {tick: {}}\n\tconnect(this, 'running', this, 'updateTickingScripts')\n}","funcProperties":{"__isSmartRef__":true,"id":1041},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1040":{"this":{"__isSmartRef__":true,"id":913}},"1041":{},"1042":{"varMapping":{"__isSmartRef__":true,"id":1043},"source":"function updateTick() {\n this.tick = Date.now()\n}","funcProperties":{"__isSmartRef__":true,"id":1044},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1043":{"this":{"__isSmartRef__":true,"id":913}},"1044":{},"1045":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1046":{"x":-15.92023936159623,"y":-283.8474587750648,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1047":{"morphMenuItems":{"__isSmartRef__":true,"id":1048}},"1048":{"varMapping":{"__isSmartRef__":true,"id":1049},"source":"function morphMenuItems() {\n var visualConnector = this, con = this.con, world = this.world();\n var items = [\n ['edit converter', function() {\n var source = con.converterString || 'function converter(value) {\\n return value\\n}',\n editor = new lively.morphic.Text(new Rectangle(0,0, 400, 200), source);\n editor.doitContext = con;\n connect(editor, 'savedTextString', con, 'converterString', {updater:\n function($upd, source) { this.targetObj.converter = null; $upd(source) }});\n connect(editor, 'savedTextString', world, 'alertOK', {converter: \n function() { return 'setting new converter' }})\n editor.applyStyle({syntaxHighlighting: true, fontFamily: 'Courier', resizeWidth: true, resizeHeight: true});\n var title = con.targetObj.name && con.sourceObj.name ?\n 'Editor for ' + con.targetObj.name + ' -> ' + con.sourceObj.name :\n 'Editor for converter function';\n var window = world.addFramedMorph(editor, title)\n window.align(window.bounds().topCenter(), visualConnector.bounds().bottomCenter())\n }],\n ['hide', function() {\n visualConnector.disconnectFromMagnets();\n visualConnector.remove();\n }],\n ['disconnect', function() {\n alertOK('Disconnected ' + visualConnector.con);\n visualConnector.con.visualDisconnect();\n }],\n ['cancel', function() {}],\n ];\n return items;\n }","funcProperties":{"__isSmartRef__":true,"id":1054},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1049":{"this":{"__isSmartRef__":true,"id":900},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1050}},"1050":{"$super":{"__isSmartRef__":true,"id":1051}},"1051":{"varMapping":{"__isSmartRef__":true,"id":1052},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1053},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1052":{"obj":{"__isSmartRef__":true,"id":900},"name":"morphMenuItems"},"1053":{},"1054":{},"1055":{"sourceObj":{"__isSmartRef__":true,"id":709},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":795},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":795},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1056":{"sourceObj":{"__isSmartRef__":true,"id":709},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":795},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":795},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1057":{"sourceObj":{"__isSmartRef__":true,"id":709},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":795},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":795},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1058":{"sourceObj":{"__isSmartRef__":true,"id":709},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":795},"targetMethodName":"updateOwners","converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1059},"dependedBy":{"__isSmartRef__":true,"id":795},"__SourceModuleName__":"Global.lively.bindings","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1060},"__LivelyClassName__":"AttributeConnection"},"1059":{"source":{"__isSmartRef__":true,"id":709},"target":{"__isSmartRef__":true,"id":795}},"1060":{"converter":{"__isSmartRef__":true,"id":1061}},"1061":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":1062},"source":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","funcProperties":{"__isSmartRef__":true,"id":1063},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1062":{"source":{"__isSmartRef__":true,"id":709},"target":{"__isSmartRef__":true,"id":795}},"1063":{},"1064":{"sourceObj":{"__isSmartRef__":true,"id":692},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":795},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":795},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1065":{"sourceObj":{"__isSmartRef__":true,"id":692},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":795},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":795},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1066":{"sourceObj":{"__isSmartRef__":true,"id":692},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":795},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":795},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1067":{"sourceObj":{"__isSmartRef__":true,"id":692},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":795},"targetMethodName":"updateOwners","converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1068},"dependedBy":{"__isSmartRef__":true,"id":795},"__SourceModuleName__":"Global.lively.bindings","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1069},"__LivelyClassName__":"AttributeConnection"},"1068":{"source":{"__isSmartRef__":true,"id":692},"target":{"__isSmartRef__":true,"id":795}},"1069":{"converter":{"__isSmartRef__":true,"id":1070}},"1070":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":1071},"source":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","funcProperties":{"__isSmartRef__":true,"id":1072},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1071":{"source":{"__isSmartRef__":true,"id":692},"target":{"__isSmartRef__":true,"id":795}},"1072":{},"1073":{"sourceObj":{"__isSmartRef__":true,"id":96},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":795},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":795},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1074":{"sourceObj":{"__isSmartRef__":true,"id":96},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":795},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":795},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1075":{"sourceObj":{"__isSmartRef__":true,"id":96},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":795},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":795},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1076":{"sourceObj":{"__isSmartRef__":true,"id":96},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":795},"targetMethodName":"updateOwners","converter":null,"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1077},"dependedBy":{"__isSmartRef__":true,"id":795},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1077":{"source":{"__isSmartRef__":true,"id":96},"target":{"__isSmartRef__":true,"id":795}},"1078":{"d":1,"a":1,"f":454.1814574443915,"e":942.2273218034982,"c":0,"b":0,"matrix_":{"__isSmartRef__":true,"id":1079},"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Core"},"1079":{"a":1,"b":0,"c":0,"d":1,"e":942.2273218034982,"f":454.1814574443915,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Core"},"1080":{"sourceObj":{"__isSmartRef__":true,"id":709},"sourceAttrName":"globalTransform","targetObj":{"__isSmartRef__":true,"id":899},"targetMethodName":"alignToMagnet","dependendConnections":[{"__isSmartRef__":true,"id":1081},{"__isSmartRef__":true,"id":1082},{"__isSmartRef__":true,"id":1083},{"__isSmartRef__":true,"id":1084},{"__isSmartRef__":true,"id":1081},{"__isSmartRef__":true,"id":1082},{"__isSmartRef__":true,"id":1083},{"__isSmartRef__":true,"id":1084},{"__isSmartRef__":true,"id":1090},{"__isSmartRef__":true,"id":1091},{"__isSmartRef__":true,"id":1092},{"__isSmartRef__":true,"id":1093},{"__isSmartRef__":true,"id":1099},{"__isSmartRef__":true,"id":1100},{"__isSmartRef__":true,"id":1101},{"__isSmartRef__":true,"id":1102},{"__isSmartRef__":true,"id":1081},{"__isSmartRef__":true,"id":1082},{"__isSmartRef__":true,"id":1083},{"__isSmartRef__":true,"id":1084},{"__isSmartRef__":true,"id":1090},{"__isSmartRef__":true,"id":1091},{"__isSmartRef__":true,"id":1092},{"__isSmartRef__":true,"id":1093},{"__isSmartRef__":true,"id":1099},{"__isSmartRef__":true,"id":1100},{"__isSmartRef__":true,"id":1101},{"__isSmartRef__":true,"id":1102}],"oldTransform":{"__isSmartRef__":true,"id":1104},"__SourceModuleName__":"Global.lively.bindings.GeometryBindings","__LivelyClassName__":"lively.morphic.GeometryTransformConnection"},"1081":{"sourceObj":{"__isSmartRef__":true,"id":709},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":1080},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":1080},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1082":{"sourceObj":{"__isSmartRef__":true,"id":709},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":1080},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":1080},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1083":{"sourceObj":{"__isSmartRef__":true,"id":709},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":1080},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":1080},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1084":{"sourceObj":{"__isSmartRef__":true,"id":709},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":1080},"targetMethodName":"updateOwners","converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1085},"dependedBy":{"__isSmartRef__":true,"id":1080},"__SourceModuleName__":"Global.lively.bindings","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1086},"__LivelyClassName__":"AttributeConnection"},"1085":{"source":{"__isSmartRef__":true,"id":709},"target":{"__isSmartRef__":true,"id":1080}},"1086":{"converter":{"__isSmartRef__":true,"id":1087}},"1087":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":1088},"source":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","funcProperties":{"__isSmartRef__":true,"id":1089},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1088":{"source":{"__isSmartRef__":true,"id":709},"target":{"__isSmartRef__":true,"id":1080}},"1089":{},"1090":{"sourceObj":{"__isSmartRef__":true,"id":692},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":1080},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":1080},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1091":{"sourceObj":{"__isSmartRef__":true,"id":692},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":1080},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":1080},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1092":{"sourceObj":{"__isSmartRef__":true,"id":692},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":1080},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":1080},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1093":{"sourceObj":{"__isSmartRef__":true,"id":692},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":1080},"targetMethodName":"updateOwners","converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1094},"dependedBy":{"__isSmartRef__":true,"id":1080},"__SourceModuleName__":"Global.lively.bindings","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1095},"__LivelyClassName__":"AttributeConnection"},"1094":{"source":{"__isSmartRef__":true,"id":692},"target":{"__isSmartRef__":true,"id":1080}},"1095":{"converter":{"__isSmartRef__":true,"id":1096}},"1096":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":1097},"source":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","funcProperties":{"__isSmartRef__":true,"id":1098},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1097":{"source":{"__isSmartRef__":true,"id":692},"target":{"__isSmartRef__":true,"id":1080}},"1098":{},"1099":{"sourceObj":{"__isSmartRef__":true,"id":96},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":1080},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":1080},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1100":{"sourceObj":{"__isSmartRef__":true,"id":96},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":1080},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":1080},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1101":{"sourceObj":{"__isSmartRef__":true,"id":96},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":1080},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":1080},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1102":{"sourceObj":{"__isSmartRef__":true,"id":96},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":1080},"targetMethodName":"updateOwners","converter":null,"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1103},"dependedBy":{"__isSmartRef__":true,"id":1080},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1103":{"source":{"__isSmartRef__":true,"id":96},"target":{"__isSmartRef__":true,"id":1080}},"1104":{"d":1,"a":1,"f":454.1814574443915,"e":942.2273218034982,"c":0,"b":0,"matrix_":{"__isSmartRef__":true,"id":1105},"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Core"},"1105":{"a":1,"b":0,"c":0,"d":1,"e":942.2273218034982,"f":454.1814574443915,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Core"},"1106":{"adjustForNewBounds":true},"1107":{"x":197.9080141874561,"y":66.42298003993008,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1108":{"resultFromServer":{"__isSmartRef__":true,"id":1109}},"1109":{},"1110":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/nodejs/SandboxServer/run","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"1111":{"x":166.34995079700846,"y":122.52542420149678,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1112":{"reset":{"__isSmartRef__":true,"id":1113},"onServerDo":{"__isSmartRef__":true,"id":1116},"createServerProxy":{"__isSmartRef__":true,"id":1119},"exec":{"__isSmartRef__":true,"id":1122},"setExtent":{"__isSmartRef__":true,"id":1125},"setupConnections":{"__isSmartRef__":true,"id":1132}},"1113":{"varMapping":{"__isSmartRef__":true,"id":1114},"source":"function reset() {\n this.connections = {resultFromServer: {}, exec: {}};\n this.serverURL = new URL('http://lively-kernel.org/nodejs/SandboxServer/run');\n}","funcProperties":{"__isSmartRef__":true,"id":1115},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1114":{"this":{"__isSmartRef__":true,"id":709}},"1115":{},"1116":{"varMapping":{"__isSmartRef__":true,"id":1117},"source":"function onServerDo() {\n runOnCommandLine('mpstat -P ALL 1 1', function(result, send) {\n send(result);\n })\n}","funcProperties":{"__isSmartRef__":true,"id":1118},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1117":{"this":{"__isSmartRef__":true,"id":709}},"1118":{},"1119":{"varMapping":{"__isSmartRef__":true,"id":1120},"source":"function createServerProxy() {\n module('server.nodejs.RemoteJSInterface').load(true)\n return new server.nodejs.JSRemoteServer(this.serverURL, this.getName());\n}","funcProperties":{"__isSmartRef__":true,"id":1121},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1120":{"this":{"__isSmartRef__":true,"id":709}},"1121":{},"1122":{"varMapping":{"__isSmartRef__":true,"id":1123},"source":"function exec() {\n var serverProxy = this.createServerProxy();\n connect(serverProxy, 'result', this, 'resultFromServer')\n serverProxy.evalOnServer('(' + this.onServerDo + ')()');\n}","funcProperties":{"__isSmartRef__":true,"id":1124},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1123":{"this":{"__isSmartRef__":true,"id":709}},"1124":{},"1125":{"varMapping":{"__isSmartRef__":true,"id":1126},"source":"function setExtent(value) {\n $super(value);\n var myCenter = this.get('runButton').bounds().topCenter(),\n labelCenter = this.get('nameLabel').bounds().bottomCenter().addXY(0,5);\n this.get('runButton').align(\n myCenter,\n labelCenter)\n}","funcProperties":{"__isSmartRef__":true,"id":1131},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1126":{"this":{"__isSmartRef__":true,"id":709},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1127}},"1127":{"$super":{"__isSmartRef__":true,"id":1128}},"1128":{"varMapping":{"__isSmartRef__":true,"id":1129},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1130},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1129":{"obj":{"__isSmartRef__":true,"id":709},"name":"setExtent"},"1130":{},"1131":{},"1132":{"varMapping":{"__isSmartRef__":true,"id":1133},"source":"function setupConnections() {\n connect(this.get('runButton'), 'fire', this, 'exec')\n}","funcProperties":{"__isSmartRef__":true,"id":1134},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1133":{"this":{"__isSmartRef__":true,"id":709}},"1134":{},"1135":{"converter":{"__isSmartRef__":true,"id":1136}},"1136":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":1137},"source":"function converter(value) {\n return Strings.tableize(value)\n .slice(3,5)\n .collect(function(ea) { \n return (100-Number(ea.last())) / 2\n })\n}\n","funcProperties":{"__isSmartRef__":true,"id":1138},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1137":{},"1138":{},"1139":{"sourceObj":{"__isSmartRef__":true,"id":694},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":708},"targetMethodName":"converterString","converter":null,"converterString":null,"updaterString":"function ($upd, source) { this.targetObj.converter = null; $upd(source) }","varMapping":{"__isSmartRef__":true,"id":1140},"__SourceModuleName__":"Global.lively.bindings","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1141},"__LivelyClassName__":"AttributeConnection"},"1140":{"source":{"__isSmartRef__":true,"id":694},"target":{"__isSmartRef__":true,"id":708}},"1141":{"updater":{"__isSmartRef__":true,"id":1142}},"1142":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":1140},"source":"function ($upd, source) { this.targetObj.converter = null; $upd(source) }","funcProperties":{"__isSmartRef__":true,"id":1143},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1143":{},"1144":{"sourceObj":{"__isSmartRef__":true,"id":694},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":0},"targetMethodName":"alertOK","converterString":"function () { return 'setting new converter' }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1145},"__SourceModuleName__":"Global.lively.bindings","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1146},"__LivelyClassName__":"AttributeConnection"},"1145":{"source":{"__isSmartRef__":true,"id":694},"target":{"__isSmartRef__":true,"id":0}},"1146":{"converter":{"__isSmartRef__":true,"id":1147}},"1147":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":1145},"source":"function () { return 'setting new converter' }","funcProperties":{"__isSmartRef__":true,"id":1148},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1148":{},"1149":{"sourceObj":{"__isSmartRef__":true,"id":694},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":694},"targetMethodName":"highlightJavaScriptSyntax","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1150":{"resizeWidth":true,"resizeHeight":true},"1151":{"submorphs":[{"__isSmartRef__":true,"id":1152},{"__isSmartRef__":true,"id":1165},{"__isSmartRef__":true,"id":1211},{"__isSmartRef__":true,"id":1244}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1278},"id":6327,"renderContextTable":{"__isSmartRef__":true,"id":1291},"eventHandler":{"__isSmartRef__":true,"id":1292},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":1293},"_Position":{"__isSmartRef__":true,"id":1294},"windowMorph":{"__isSmartRef__":true,"id":693},"label":{"__isSmartRef__":true,"id":1152},"closeButton":{"__isSmartRef__":true,"id":1165},"menuButton":{"__isSmartRef__":true,"id":1211},"collapseButton":{"__isSmartRef__":true,"id":1244},"priorExtent":{"__isSmartRef__":true,"id":1295},"owner":{"__isSmartRef__":true,"id":693},"__SourceModuleName__":"Global.lively.morphic.Widgets","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"__LivelyClassName__":"lively.morphic.TitleBar"},"1152":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1153},"id":6328,"renderContextTable":{"__isSmartRef__":true,"id":1157},"textChunks":[{"__isSmartRef__":true,"id":1158}],"eventHandler":{"__isSmartRef__":true,"id":1160},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1161},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","layout":{"__isSmartRef__":true,"id":1162},"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","owner":{"__isSmartRef__":true,"id":1151},"priorExtent":{"__isSmartRef__":true,"id":1163},"_MaxTextWidth":348.96809574463845,"_MaxTextHeight":17,"_Position":{"__isSmartRef__":true,"id":1164},"__SourceModuleName__":"Global.lively.morphic.TextCore","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"__LivelyClassName__":"lively.morphic.Text"},"1153":{"_Position":{"__isSmartRef__":true,"id":1154},"renderContextTable":{"__isSmartRef__":true,"id":1155},"_Extent":{"__isSmartRef__":true,"id":1156},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":699},"_Fill":null,"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1154":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1155":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1156":{"x":348.96809574463845,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1157":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML"},"1158":{"style":{"__isSmartRef__":true,"id":1159},"chunkOwner":{"__isSmartRef__":true,"id":1152},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"Editor for JSONPrinter -> CPUWorkload","__LivelyClassName__":"lively.morphic.TextChunk"},"1159":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1160":{"morph":{"__isSmartRef__":true,"id":1152},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1161":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1162":{"resizeWidth":true},"1163":{"x":348.96809574463845,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1164":{"x":20,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1165":{"submorphs":[{"__isSmartRef__":true,"id":1166}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1178},"id":6329,"renderContextTable":{"__isSmartRef__":true,"id":1193},"eventHandler":{"__isSmartRef__":true,"id":1194},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1195},"priorExtent":{"__isSmartRef__":true,"id":1196},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1183},"lighterFill":{"__isSmartRef__":true,"id":1197},"label":{"__isSmartRef__":true,"id":1166},"owner":{"__isSmartRef__":true,"id":1151},"layout":{"__isSmartRef__":true,"id":1206},"attributeConnections":[{"__isSmartRef__":true,"id":1207},{"__isSmartRef__":true,"id":1209}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"1166":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1167},"id":6330,"renderContextTable":{"__isSmartRef__":true,"id":1171},"textChunks":[{"__isSmartRef__":true,"id":1172}],"eventHandler":{"__isSmartRef__":true,"id":1174},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1175},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_Position":{"__isSmartRef__":true,"id":1176},"priorExtent":{"__isSmartRef__":true,"id":1177},"_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1165},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"__LivelyClassName__":"lively.morphic.Text"},"1167":{"_Position":{"__isSmartRef__":true,"id":1168},"renderContextTable":{"__isSmartRef__":true,"id":1169},"_Extent":{"__isSmartRef__":true,"id":1170},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":699},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1168":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1169":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1170":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1171":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML"},"1172":{"style":{"__isSmartRef__":true,"id":1173},"chunkOwner":{"__isSmartRef__":true,"id":1166},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"X","__LivelyClassName__":"lively.morphic.TextChunk"},"1173":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1174":{"morph":{"__isSmartRef__":true,"id":1166},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1175":{"x":0,"y":3,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1176":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1177":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1178":{"_Position":{"__isSmartRef__":true,"id":1179},"renderContextTable":{"__isSmartRef__":true,"id":1180},"_Extent":{"__isSmartRef__":true,"id":1181},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1182},"_Fill":{"__isSmartRef__":true,"id":1183},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1179":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1180":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1181":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1182":{"r":0.7411764705882353,"g":0.7450980392156863,"b":0.7529411764705882,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1183":{"stops":[{"__isSmartRef__":true,"id":1184},{"__isSmartRef__":true,"id":1186},{"__isSmartRef__":true,"id":1188},{"__isSmartRef__":true,"id":1190}],"vector":{"__isSmartRef__":true,"id":1192},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1184":{"offset":0,"color":{"__isSmartRef__":true,"id":1185}},"1185":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1186":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1187}},"1187":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1188":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1189}},"1189":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1190":{"offset":1,"color":{"__isSmartRef__":true,"id":1191}},"1191":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1192":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1193":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"1194":{"morph":{"__isSmartRef__":true,"id":1165},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1195":{"x":387.96809574463845,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1196":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1197":{"stops":[{"__isSmartRef__":true,"id":1198},{"__isSmartRef__":true,"id":1200},{"__isSmartRef__":true,"id":1202},{"__isSmartRef__":true,"id":1204}],"vector":{"__isSmartRef__":true,"id":1192},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1198":{"offset":0,"color":{"__isSmartRef__":true,"id":1199}},"1199":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1200":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1201}},"1201":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1202":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1203}},"1203":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1204":{"offset":1,"color":{"__isSmartRef__":true,"id":1205}},"1205":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1206":{"moveHorizontal":true},"1207":{"sourceObj":{"__isSmartRef__":true,"id":1165},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":693},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1208},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1208":{"source":{"__isSmartRef__":true,"id":1165},"target":{"__isSmartRef__":true,"id":693}},"1209":{"sourceObj":{"__isSmartRef__":true,"id":1165},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":693},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1210},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1210":{"source":{"__isSmartRef__":true,"id":1165},"target":{"__isSmartRef__":true,"id":693}},"1211":{"submorphs":[{"__isSmartRef__":true,"id":1212}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1223},"id":6331,"renderContextTable":{"__isSmartRef__":true,"id":1227},"eventHandler":{"__isSmartRef__":true,"id":1228},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1229},"priorExtent":{"__isSmartRef__":true,"id":1230},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1183},"lighterFill":{"__isSmartRef__":true,"id":1231},"label":{"__isSmartRef__":true,"id":1212},"owner":{"__isSmartRef__":true,"id":1151},"attributeConnections":[{"__isSmartRef__":true,"id":1240},{"__isSmartRef__":true,"id":1242}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"1212":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1213},"id":6332,"renderContextTable":{"__isSmartRef__":true,"id":1217},"textChunks":[{"__isSmartRef__":true,"id":1218}],"eventHandler":{"__isSmartRef__":true,"id":1220},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1175},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_Position":{"__isSmartRef__":true,"id":1221},"priorExtent":{"__isSmartRef__":true,"id":1222},"_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1211},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"__LivelyClassName__":"lively.morphic.Text"},"1213":{"_Position":{"__isSmartRef__":true,"id":1214},"renderContextTable":{"__isSmartRef__":true,"id":1215},"_Extent":{"__isSmartRef__":true,"id":1216},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":699},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1214":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1215":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1216":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1217":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML"},"1218":{"style":{"__isSmartRef__":true,"id":1219},"chunkOwner":{"__isSmartRef__":true,"id":1212},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"M","__LivelyClassName__":"lively.morphic.TextChunk"},"1219":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1220":{"morph":{"__isSmartRef__":true,"id":1212},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1221":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1222":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1223":{"_Position":{"__isSmartRef__":true,"id":1224},"renderContextTable":{"__isSmartRef__":true,"id":1225},"_Extent":{"__isSmartRef__":true,"id":1226},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1182},"_Fill":{"__isSmartRef__":true,"id":1183},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1224":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1225":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1226":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1227":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"1228":{"morph":{"__isSmartRef__":true,"id":1211},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1229":{"x":3,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1230":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1231":{"stops":[{"__isSmartRef__":true,"id":1232},{"__isSmartRef__":true,"id":1234},{"__isSmartRef__":true,"id":1236},{"__isSmartRef__":true,"id":1238}],"vector":{"__isSmartRef__":true,"id":1192},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1232":{"offset":0,"color":{"__isSmartRef__":true,"id":1233}},"1233":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1234":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1235}},"1235":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1236":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1237}},"1237":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1238":{"offset":1,"color":{"__isSmartRef__":true,"id":1239}},"1239":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1240":{"sourceObj":{"__isSmartRef__":true,"id":1211},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":693},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1241},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1241":{"source":{"__isSmartRef__":true,"id":1211},"target":{"__isSmartRef__":true,"id":693}},"1242":{"sourceObj":{"__isSmartRef__":true,"id":1211},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":693},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1243},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1243":{"source":{"__isSmartRef__":true,"id":1211},"target":{"__isSmartRef__":true,"id":693}},"1244":{"submorphs":[{"__isSmartRef__":true,"id":1245}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1256},"id":6333,"renderContextTable":{"__isSmartRef__":true,"id":1260},"eventHandler":{"__isSmartRef__":true,"id":1261},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1262},"priorExtent":{"__isSmartRef__":true,"id":1263},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1183},"lighterFill":{"__isSmartRef__":true,"id":1264},"label":{"__isSmartRef__":true,"id":1245},"owner":{"__isSmartRef__":true,"id":1151},"layout":{"__isSmartRef__":true,"id":1273},"attributeConnections":[{"__isSmartRef__":true,"id":1274},{"__isSmartRef__":true,"id":1276}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"1245":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1246},"id":6334,"renderContextTable":{"__isSmartRef__":true,"id":1250},"textChunks":[{"__isSmartRef__":true,"id":1251}],"eventHandler":{"__isSmartRef__":true,"id":1253},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1175},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_Position":{"__isSmartRef__":true,"id":1254},"priorExtent":{"__isSmartRef__":true,"id":1255},"_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1244},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"__LivelyClassName__":"lively.morphic.Text"},"1246":{"_Position":{"__isSmartRef__":true,"id":1247},"renderContextTable":{"__isSmartRef__":true,"id":1248},"_Extent":{"__isSmartRef__":true,"id":1249},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":699},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1247":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1248":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1249":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1250":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML"},"1251":{"style":{"__isSmartRef__":true,"id":1252},"chunkOwner":{"__isSmartRef__":true,"id":1245},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"–","__LivelyClassName__":"lively.morphic.TextChunk"},"1252":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1253":{"morph":{"__isSmartRef__":true,"id":1245},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1254":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1255":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1256":{"_Position":{"__isSmartRef__":true,"id":1257},"renderContextTable":{"__isSmartRef__":true,"id":1258},"_Extent":{"__isSmartRef__":true,"id":1259},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1182},"_Fill":{"__isSmartRef__":true,"id":1183},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1257":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1258":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1259":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1260":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"1261":{"morph":{"__isSmartRef__":true,"id":1244},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1262":{"x":368.96809574463845,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1263":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1264":{"stops":[{"__isSmartRef__":true,"id":1265},{"__isSmartRef__":true,"id":1267},{"__isSmartRef__":true,"id":1269},{"__isSmartRef__":true,"id":1271}],"vector":{"__isSmartRef__":true,"id":1192},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1265":{"offset":0,"color":{"__isSmartRef__":true,"id":1266}},"1266":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1267":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1268}},"1268":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1269":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1270}},"1270":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1271":{"offset":1,"color":{"__isSmartRef__":true,"id":1272}},"1272":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1273":{"moveHorizontal":true},"1274":{"sourceObj":{"__isSmartRef__":true,"id":1244},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":693},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1275},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1275":{"source":{"__isSmartRef__":true,"id":1244},"target":{"__isSmartRef__":true,"id":693}},"1276":{"sourceObj":{"__isSmartRef__":true,"id":1244},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":693},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1277},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1277":{"source":{"__isSmartRef__":true,"id":1244},"target":{"__isSmartRef__":true,"id":693}},"1278":{"_Position":{"__isSmartRef__":true,"id":1279},"renderContextTable":{"__isSmartRef__":true,"id":1280},"_Extent":{"__isSmartRef__":true,"id":1281},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1282},"_Fill":{"__isSmartRef__":true,"id":1283},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1279":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1280":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1281":{"x":407.96809574463845,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1282":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1283":{"stops":[{"__isSmartRef__":true,"id":1284},{"__isSmartRef__":true,"id":1286},{"__isSmartRef__":true,"id":1288}],"vector":{"__isSmartRef__":true,"id":1290},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1284":{"offset":0,"color":{"__isSmartRef__":true,"id":1285}},"1285":{"r":0.7200000000000001,"g":0.7200000000000001,"b":0.7200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1286":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1287}},"1287":{"r":0.9,"g":0.9,"b":0.9,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1288":{"offset":1,"color":{"__isSmartRef__":true,"id":1289}},"1289":{"r":0.7200000000000001,"g":0.7200000000000001,"b":0.7200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1290":{"x":0,"y":1,"width":0,"height":-1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1291":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"1292":{"morph":{"__isSmartRef__":true,"id":1151},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1293":{"resizeWidth":true,"adjustForNewBounds":true},"1294":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1295":{"x":407.96809574463845,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1296":{"renderContextTable":{"__isSmartRef__":true,"id":1297},"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_Extent":{"__isSmartRef__":true,"id":1298},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1297":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1298":{"x":407.96809574463845,"y":140.32701861745568,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1299":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"1300":{"morph":{"__isSmartRef__":true,"id":693},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1301":{"adjustForNewBounds":true},"1302":{"x":35.33249585529643,"y":278.7378109536233,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1303":{"x":407.96809574463845,"y":140.32701861745568,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1304":{"x":352.5882367002522,"y":567.7268218054909,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1305":{"_Position":{"__isSmartRef__":true,"id":1306},"renderContextTable":{"__isSmartRef__":true,"id":1307},"_Extent":{"__isSmartRef__":true,"id":1308},"_BorderWidth":0,"_BorderRadius":31.365000000000006,"_Opacity":1,"_BorderStyle":"solid","_Fill":{"__isSmartRef__":true,"id":1309},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1306":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1307":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1308":{"x":483.3507265116041,"y":423.064829571079,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1309":{"r":0.921,"g":0.921,"b":0.921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1310":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"1311":{"morph":{"__isSmartRef__":true,"id":692},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1312":{"x":324.59766403795004,"y":-237.2847732007121,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1313":{},"1314":{"morph":{"__isSmartRef__":true,"id":692},"position":{"__isSmartRef__":true,"id":1315},"connectedControlPoints":[],"__SourceModuleName__":"Global.lively.morphic.Connectors","__LivelyClassName__":"lively.morphic.Magnet"},"1315":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1316":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1317},"id":2476,"renderContextTable":{"__isSmartRef__":true,"id":1326},"eventHandler":{"__isSmartRef__":true,"id":1327},"droppingEnabled":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":1328},{"__isSmartRef__":true,"id":1329}],"con":{"__isSmartRef__":true,"id":691},"showsMorphMenu":true,"isCopyMorphRef":true,"morphRefId":3,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1330},"__LivelyClassName__":"lively.morphic.Path"},"1317":{"dontChangeShape":false,"cachedVertices":[{"__isSmartRef__":true,"id":1318},{"__isSmartRef__":true,"id":1319}],"_PathElements":[{"__isSmartRef__":true,"id":1320},{"__isSmartRef__":true,"id":1321}],"renderContextTable":{"__isSmartRef__":true,"id":1322},"_Position":{"__isSmartRef__":true,"id":1323},"_Extent":{"__isSmartRef__":true,"id":1324},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1325},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"1318":{"x":581.6630132947678,"y":674.2921263261899,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1319":{"x":78.66101728678211,"y":335.6321050513742,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1320":{"isAbsolute":true,"x":581.6630132947678,"y":674.2921263261899,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"1321":{"isAbsolute":true,"x":78.66101728678211,"y":335.6321050513742,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"1322":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1323":{"x":78.66101837158203,"y":335.6321105957031,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1324":{"x":503.00201416015625,"y":338.6600036621094,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1325":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1326":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"1327":{"morph":{"__isSmartRef__":true,"id":1316},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1328":{"morph":{"__isSmartRef__":true,"id":1316},"index":0,"connectedMagnet":null,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"1329":{"morph":{"__isSmartRef__":true,"id":1316},"index":1,"connectedMagnet":null,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"1330":{"morphMenuItems":{"__isSmartRef__":true,"id":1331}},"1331":{"varMapping":{"__isSmartRef__":true,"id":1332},"source":"function morphMenuItems() {\n var visualConnector = this, con = this.con, world = this.world();\n var items = [\n ['edit converter', function() {\n var source = con.converterString || 'function converter(value) {\\n return value\\n}',\n editor = new lively.morphic.Text(new Rectangle(0,0, 400, 200), source);\n editor.doitContext = con;\n connect(editor, 'savedTextString', con, 'converterString', {updater:\n function($upd, source) { this.targetObj.converter = null; $upd(source) }});\n connect(editor, 'savedTextString', world, 'alertOK', {converter: \n function() { return 'setting new converter' }})\n editor.applyStyle({syntaxHighlighting: true, fontFamily: 'Courier', resizeWidth: true, resizeHeight: true});\n var title = con.targetObj.name && con.sourceObj.name ?\n 'Editor for ' + con.targetObj.name + ' -> ' + con.sourceObj.name :\n 'Editor for converter function';\n var window = world.addFramedMorph(editor, title)\n window.align(window.bounds().topCenter(), visualConnector.bounds().bottomCenter())\n }],\n ['hide', function() {\n visualConnector.disconnectFromMagnets();\n visualConnector.remove();\n }],\n ['disconnect', function() {\n alertOK('Disconnected ' + visualConnector.con);\n visualConnector.con.visualDisconnect();\n }],\n ['cancel', function() {}],\n ];\n return items;\n }","funcProperties":{"__isSmartRef__":true,"id":1337},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1332":{"this":{"__isSmartRef__":true,"id":1316},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1333}},"1333":{"$super":{"__isSmartRef__":true,"id":1334}},"1334":{"varMapping":{"__isSmartRef__":true,"id":1335},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1336},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1335":{"obj":{"__isSmartRef__":true,"id":1316},"name":"morphMenuItems"},"1336":{},"1337":{},"1338":{"morph":{"__isSmartRef__":true,"id":682},"position":{"__isSmartRef__":true,"id":1339},"connectedControlPoints":[],"__SourceModuleName__":"Global.lively.morphic.Connectors","__LivelyClassName__":"lively.morphic.Magnet"},"1339":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1340":{"x":-246.79796950986452,"y":165.49687548638315,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1341":{"submorphs":[{"__isSmartRef__":true,"id":1342}],"scripts":[],"id":447,"shape":{"__isSmartRef__":true,"id":1356},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1360},"lighterFill":{"__isSmartRef__":true,"id":1371},"label":{"__isSmartRef__":true,"id":1342},"name":"StartStopButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1380},"attributeConnections":[{"__isSmartRef__":true,"id":1381},{"__isSmartRef__":true,"id":1382},{"__isSmartRef__":true,"id":1383}],"doNotSerialize":["$$running","$$fire"],"doNotCopyProperties":["$$running","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","priorExtent":{"__isSmartRef__":true,"id":1405},"renderContextTable":{"__isSmartRef__":true,"id":1406},"eventHandler":{"__isSmartRef__":true,"id":1407},"connections":{"__isSmartRef__":true,"id":1408},"magnets":[{"__isSmartRef__":true,"id":1410}],"running":false,"_Position":{"__isSmartRef__":true,"id":2506},"_Scale":0.996005996001,"_Rotation":0,"owner":{"__isSmartRef__":true,"id":96},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2507},"__LivelyClassName__":"lively.morphic.Button"},"1342":{"submorphs":[],"scripts":[],"id":448,"shape":{"__isSmartRef__":true,"id":1343},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1348},"_MaxTextWidth":101,"_MaxTextHeight":21,"textStyle":null,"padding":{"__isSmartRef__":true,"id":1349},"_Padding":{"__isSmartRef__":true,"id":1350},"owner":{"__isSmartRef__":true,"id":1341},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":1351},"textChunks":[{"__isSmartRef__":true,"id":1352}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":1354},"eventHandler":{"__isSmartRef__":true,"id":1355},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"__LivelyClassName__":"lively.morphic.Text"},"1343":{"position":{"__isSmartRef__":true,"id":1344},"_Extent":{"__isSmartRef__":true,"id":1345},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1346},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1347},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1344":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1345":{"x":101,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1346":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1347":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1348":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1349":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1350":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"1351":{"x":101,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1352":{"style":{"__isSmartRef__":true,"id":1353},"chunkOwner":{"__isSmartRef__":true,"id":1342},"storedString":"start","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1353":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1354":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML"},"1355":{"morph":{"__isSmartRef__":true,"id":1342},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1356":{"position":{"__isSmartRef__":true,"id":1357},"_Extent":{"__isSmartRef__":true,"id":1358},"_BorderWidth":1.1840000000000002,"_BorderColor":{"__isSmartRef__":true,"id":1359},"_Fill":{"__isSmartRef__":true,"id":1360},"_BorderRadius":5.2,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1370},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1357":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1358":{"x":101,"y":21,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1359":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1360":{"stops":[{"__isSmartRef__":true,"id":1361},{"__isSmartRef__":true,"id":1363},{"__isSmartRef__":true,"id":1365},{"__isSmartRef__":true,"id":1367}],"vector":{"__isSmartRef__":true,"id":1369},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1361":{"offset":0,"color":{"__isSmartRef__":true,"id":1362}},"1362":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1363":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1364}},"1364":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1365":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1366}},"1366":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1367":{"offset":1,"color":{"__isSmartRef__":true,"id":1368}},"1368":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1369":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1370":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1371":{"stops":[{"__isSmartRef__":true,"id":1372},{"__isSmartRef__":true,"id":1374},{"__isSmartRef__":true,"id":1376},{"__isSmartRef__":true,"id":1378}],"vector":{"__isSmartRef__":true,"id":1369},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1372":{"offset":0,"color":{"__isSmartRef__":true,"id":1373}},"1373":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1374":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1375}},"1375":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1376":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1377}},"1377":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1378":{"offset":1,"color":{"__isSmartRef__":true,"id":1379}},"1379":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1380":{"partsSpaceName":"PartsBin/Inputs/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"partName":"StartStopButton","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1381":{"sourceObj":{"__isSmartRef__":true,"id":1341},"sourceAttrName":"running","targetObj":{"__isSmartRef__":true,"id":1341},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1382":{"sourceObj":{"__isSmartRef__":true,"id":1341},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1341},"targetMethodName":"onFire","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1383":{"sourceObj":{"__isSmartRef__":true,"id":1341},"sourceAttrName":"running","targetObj":{"__isSmartRef__":true,"id":913},"targetMethodName":"running","visualConnector":{"__isSmartRef__":true,"id":1384},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1384":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1385},"id":2903,"renderContextTable":{"__isSmartRef__":true,"id":1393},"eventHandler":{"__isSmartRef__":true,"id":1394},"droppingEnabled":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":1395},{"__isSmartRef__":true,"id":1396}],"con":{"__isSmartRef__":true,"id":1383},"showsMorphMenu":true,"isCopyMorphRef":true,"morphRefId":4,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1397},"__LivelyClassName__":"lively.morphic.Path"},"1385":{"dontChangeShape":false,"cachedVertices":[{"__isSmartRef__":true,"id":1386},{"__isSmartRef__":true,"id":1387}],"_PathElements":[{"__isSmartRef__":true,"id":1388},{"__isSmartRef__":true,"id":1389}],"renderContextTable":{"__isSmartRef__":true,"id":1390},"_Position":{"__isSmartRef__":true,"id":1391},"_Extent":{"__isSmartRef__":true,"id":1392},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1325},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"1386":{"x":571.7028936139695,"y":342.6201409556136,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1387":{"x":248.99501595611025,"y":382.4606196788059,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1388":{"isAbsolute":true,"x":571.7028936139695,"y":342.6201409556136,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"1389":{"isAbsolute":true,"x":248.99501595611025,"y":382.4606196788059,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"1390":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1391":{"x":248.99501037597656,"y":342.6201477050781,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1392":{"x":322.7078857421875,"y":39.840484619140625,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1393":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"1394":{"morph":{"__isSmartRef__":true,"id":1384},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1395":{"morph":{"__isSmartRef__":true,"id":1384},"index":0,"connectedMagnet":null,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"1396":{"morph":{"__isSmartRef__":true,"id":1384},"index":1,"connectedMagnet":null,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"1397":{"morphMenuItems":{"__isSmartRef__":true,"id":1398}},"1398":{"varMapping":{"__isSmartRef__":true,"id":1399},"source":"function morphMenuItems() {\n var visualConnector = this, con = this.con, world = this.world();\n var items = [\n ['edit converter', function() {\n var source = con.converterString || 'function converter(value) {\\n return value\\n}',\n editor = new lively.morphic.Text(new Rectangle(0,0, 400, 200), source);\n editor.doitContext = con;\n connect(editor, 'savedTextString', con, 'converterString', {updater:\n function($upd, source) { this.targetObj.converter = null; $upd(source) }});\n connect(editor, 'savedTextString', world, 'alertOK', {converter: \n function() { return 'setting new converter' }})\n editor.applyStyle({syntaxHighlighting: true, fontFamily: 'Courier', resizeWidth: true, resizeHeight: true});\n var title = con.targetObj.name && con.sourceObj.name ?\n 'Editor for ' + con.targetObj.name + ' -> ' + con.sourceObj.name :\n 'Editor for converter function';\n var window = world.addFramedMorph(editor, title)\n window.align(window.bounds().topCenter(), visualConnector.bounds().bottomCenter())\n }],\n ['hide', function() {\n visualConnector.disconnectFromMagnets();\n visualConnector.remove();\n }],\n ['disconnect', function() {\n alertOK('Disconnected ' + visualConnector.con);\n visualConnector.con.visualDisconnect();\n }],\n ['cancel', function() {}],\n ];\n return items;\n }","funcProperties":{"__isSmartRef__":true,"id":1404},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1399":{"this":{"__isSmartRef__":true,"id":1384},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1400}},"1400":{"$super":{"__isSmartRef__":true,"id":1401}},"1401":{"varMapping":{"__isSmartRef__":true,"id":1402},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":1403},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1402":{"obj":{"__isSmartRef__":true,"id":1384},"name":"morphMenuItems"},"1403":{},"1404":{},"1405":{"x":101,"y":20,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1406":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"1407":{"morph":{"__isSmartRef__":true,"id":1341},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1408":{"running":{"__isSmartRef__":true,"id":1409}},"1409":{},"1410":{"morph":{"__isSmartRef__":true,"id":1341},"position":{"__isSmartRef__":true,"id":1411},"connectedControlPoints":[{"__isSmartRef__":true,"id":1412}],"__SourceModuleName__":"Global.lively.morphic.Connectors","__LivelyClassName__":"lively.morphic.Magnet"},"1411":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1412":{"morph":{"__isSmartRef__":true,"id":1413},"index":0,"connectedMagnet":{"__isSmartRef__":true,"id":1410},"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"1413":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1414},"id":643,"renderContextTable":{"__isSmartRef__":true,"id":1423},"eventHandler":{"__isSmartRef__":true,"id":1424},"droppingEnabled":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":1425},{"__isSmartRef__":true,"id":1426}],"con":{"__isSmartRef__":true,"id":1427},"showsMorphMenu":true,"isCopyMorphRef":true,"morphRefId":5,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2498},"__LivelyClassName__":"lively.morphic.Path"},"1414":{"dontChangeShape":false,"cachedVertices":[{"__isSmartRef__":true,"id":1415},{"__isSmartRef__":true,"id":1416}],"_PathElements":[{"__isSmartRef__":true,"id":1417},{"__isSmartRef__":true,"id":1418}],"renderContextTable":{"__isSmartRef__":true,"id":1419},"_Position":{"__isSmartRef__":true,"id":1420},"_Extent":{"__isSmartRef__":true,"id":1421},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1422},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"1415":{"x":428.27717021047727,"y":243.0189441476329,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1416":{"x":184.25423803092437,"y":328.67597340249654,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1417":{"isAbsolute":true,"x":428.27717021047727,"y":243.0189441476329,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"1418":{"isAbsolute":true,"x":184.25423803092437,"y":328.67597340249654,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"1419":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1420":{"x":184.25424194335938,"y":243.01895141601562,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1421":{"x":244.02291870117188,"y":85.65701293945312,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1422":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1423":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"1424":{"morph":{"__isSmartRef__":true,"id":1413},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1425":{"morph":{"__isSmartRef__":true,"id":1413},"index":0,"connectedMagnet":null,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"1426":{"morph":{"__isSmartRef__":true,"id":1413},"index":1,"connectedMagnet":null,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"1427":{"sourceObj":{"__isSmartRef__":true,"id":1428},"sourceAttrName":"running","targetObj":{"__isSmartRef__":true,"id":1488},"targetMethodName":"running","visualConnector":{"__isSmartRef__":true,"id":1413},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1428":{"submorphs":[{"__isSmartRef__":true,"id":1429}],"scripts":[],"id":243,"shape":{"__isSmartRef__":true,"id":1443},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1447},"lighterFill":{"__isSmartRef__":true,"id":1458},"label":{"__isSmartRef__":true,"id":1429},"name":"StartStopButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1467},"attributeConnections":[{"__isSmartRef__":true,"id":1468},{"__isSmartRef__":true,"id":1469},{"__isSmartRef__":true,"id":1427}],"doNotSerialize":["$$fire","$$running"],"doNotCopyProperties":["$$fire","$$running"],"__SourceModuleName__":"Global.lively.morphic.Widgets","priorExtent":{"__isSmartRef__":true,"id":1470},"renderContextTable":{"__isSmartRef__":true,"id":1471},"eventHandler":{"__isSmartRef__":true,"id":1472},"running":false,"connections":{"__isSmartRef__":true,"id":1473},"magnets":[{"__isSmartRef__":true,"id":1475}],"_Position":{"__isSmartRef__":true,"id":1477},"_Scale":1,"_Rotation":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1478},"__LivelyClassName__":"lively.morphic.Button"},"1429":{"submorphs":[],"scripts":[],"id":244,"shape":{"__isSmartRef__":true,"id":1430},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1435},"_MaxTextWidth":101,"_MaxTextHeight":21,"textStyle":null,"padding":{"__isSmartRef__":true,"id":1436},"_Padding":{"__isSmartRef__":true,"id":1437},"owner":{"__isSmartRef__":true,"id":1428},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":1438},"textChunks":[{"__isSmartRef__":true,"id":1439}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":1441},"eventHandler":{"__isSmartRef__":true,"id":1442},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"__LivelyClassName__":"lively.morphic.Text"},"1430":{"position":{"__isSmartRef__":true,"id":1431},"_Extent":{"__isSmartRef__":true,"id":1432},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1433},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1434},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1431":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1432":{"x":101,"y":21,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1433":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1434":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1435":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1436":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1437":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1438":{"x":101,"y":21,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1439":{"style":{"__isSmartRef__":true,"id":1440},"chunkOwner":{"__isSmartRef__":true,"id":1429},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1440":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1441":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML"},"1442":{"morph":{"__isSmartRef__":true,"id":1429},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1443":{"position":{"__isSmartRef__":true,"id":1444},"_Extent":{"__isSmartRef__":true,"id":1445},"_BorderWidth":1.1840000000000002,"_BorderColor":{"__isSmartRef__":true,"id":1446},"_Fill":{"__isSmartRef__":true,"id":1447},"_BorderRadius":5.2,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1457},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1444":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1445":{"x":101,"y":21,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1446":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1447":{"stops":[{"__isSmartRef__":true,"id":1448},{"__isSmartRef__":true,"id":1450},{"__isSmartRef__":true,"id":1452},{"__isSmartRef__":true,"id":1454}],"vector":{"__isSmartRef__":true,"id":1456},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1448":{"offset":0,"color":{"__isSmartRef__":true,"id":1449}},"1449":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1450":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1451}},"1451":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1452":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1453}},"1453":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1454":{"offset":1,"color":{"__isSmartRef__":true,"id":1455}},"1455":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1456":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1457":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1458":{"stops":[{"__isSmartRef__":true,"id":1459},{"__isSmartRef__":true,"id":1461},{"__isSmartRef__":true,"id":1463},{"__isSmartRef__":true,"id":1465}],"vector":{"__isSmartRef__":true,"id":1456},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1459":{"offset":0,"color":{"__isSmartRef__":true,"id":1460}},"1460":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1461":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1462}},"1462":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1463":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1464}},"1464":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1465":{"offset":1,"color":{"__isSmartRef__":true,"id":1466}},"1466":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1467":{"partsSpaceName":"PartsBin/Inputs","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"partName":"StartStopButton","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1468":{"sourceObj":{"__isSmartRef__":true,"id":1428},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1428},"targetMethodName":"onFire","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1469":{"sourceObj":{"__isSmartRef__":true,"id":1428},"sourceAttrName":"running","targetObj":{"__isSmartRef__":true,"id":1428},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1470":{"x":101,"y":20,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1471":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"1472":{"morph":{"__isSmartRef__":true,"id":1428},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1473":{"running":{"__isSmartRef__":true,"id":1474}},"1474":{},"1475":{"morph":{"__isSmartRef__":true,"id":1428},"position":{"__isSmartRef__":true,"id":1476},"connectedControlPoints":[],"__SourceModuleName__":"Global.lively.morphic.Connectors","__LivelyClassName__":"lively.morphic.Magnet"},"1476":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1477":{"x":213.14656116907906,"y":301.791626328182,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1478":{"onFire":{"__isSmartRef__":true,"id":1479},"reset":{"__isSmartRef__":true,"id":1482},"updateLabel":{"__isSmartRef__":true,"id":1485}},"1479":{"varMapping":{"__isSmartRef__":true,"id":1480},"source":"function onFire() {\n this.running = !this.running\n}","funcProperties":{"__isSmartRef__":true,"id":1481},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1480":{"this":{"__isSmartRef__":true,"id":1428}},"1481":{},"1482":{"varMapping":{"__isSmartRef__":true,"id":1483},"source":"function reset() {\n this.connections = {running: {}}\n connect(this, 'running', this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":1484},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1483":{"this":{"__isSmartRef__":true,"id":1428}},"1484":{},"1485":{"varMapping":{"__isSmartRef__":true,"id":1486},"source":"function updateLabel() {\n if (this.running) {\n this.setLabel(\"stop\")\n } else {\n this.setLabel(\"start\")\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1487},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1486":{"this":{"__isSmartRef__":true,"id":1428}},"1487":{},"1488":{"submorphs":[{"__isSmartRef__":true,"id":1489},{"__isSmartRef__":true,"id":1503}],"scripts":[],"id":729,"shape":{"__isSmartRef__":true,"id":1518},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"Timer","partsBinMetaInfo":{"__isSmartRef__":true,"id":1525},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":1526},"eventHandler":{"__isSmartRef__":true,"id":1527},"attributeConnections":[{"__isSmartRef__":true,"id":1528},{"__isSmartRef__":true,"id":1529},{"__isSmartRef__":true,"id":2474},{"__isSmartRef__":true,"id":2475},{"__isSmartRef__":true,"id":2476},{"__isSmartRef__":true,"id":2477},{"__isSmartRef__":true,"id":2478}],"doNotSerialize":["$$running","$$tick","$$_Position","$$_Scale","$$_Rotation","$$owner"],"doNotCopyProperties":["$$running","$$tick","$$_Position","$$_Scale","$$_Rotation","$$owner"],"priorExtent":{"__isSmartRef__":true,"id":2482},"layout":{"__isSmartRef__":true,"id":2483},"running":false,"connections":{"__isSmartRef__":true,"id":2484},"magnets":[{"__isSmartRef__":true,"id":2376}],"_Position":{"__isSmartRef__":true,"id":2487},"_Scale":1,"_Rotation":0,"tick":1308090942491,"isCopyMorphRef":true,"morphRefId":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2488},"__LivelyClassName__":"lively.morphic.Box"},"1489":{"submorphs":[],"scripts":[],"id":797,"shape":{"__isSmartRef__":true,"id":1490},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1495},"_MaxTextWidth":79.35493484089704,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":1493},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"Text1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1496},"textChunks":[{"__isSmartRef__":true,"id":1497}],"charsReplaced":"some text","lastFindLoc":-9,"priorSelectionRange":[0,5],"prevScroll":[0,0],"_Scale":1,"priorExtent":{"__isSmartRef__":true,"id":1499},"renderContextTable":{"__isSmartRef__":true,"id":1500},"eventHandler":{"__isSmartRef__":true,"id":1501},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"owner":{"__isSmartRef__":true,"id":1488},"_Rotation":0,"_WhiteSpaceHandling":"pre-wrap","_TextColor":{"__isSmartRef__":true,"id":1502},"__LivelyClassName__":"lively.morphic.Text"},"1490":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1491},"_Extent":{"__isSmartRef__":true,"id":1492},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1493},"renderContextTable":{"__isSmartRef__":true,"id":1494},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1491":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1492":{"x":79.35493484089704,"y":12.039880319201927,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1493":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1494":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1495":{"x":-151.393819148131,"y":-26.89232313815478,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1496":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"a simple text morph","partName":"Text","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1497":{"style":{"__isSmartRef__":true,"id":1498},"chunkOwner":{"__isSmartRef__":true,"id":1489},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1498":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1499":{"x":79.35493484089704,"y":12.039880319201927,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1500":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML"},"1501":{"morph":{"__isSmartRef__":true,"id":1489},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1502":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1503":{"submorphs":[],"scripts":[],"id":1866,"shape":{"__isSmartRef__":true,"id":1504},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1510},"_MaxTextWidth":85.33100664937592,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":1507},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"tickInput","partsBinMetaInfo":{"__isSmartRef__":true,"id":1511},"textChunks":[{"__isSmartRef__":true,"id":1512}],"charsReplaced":"some text","lastFindLoc":-9,"priorSelectionRange":[4,4],"prevScroll":[0,0],"_Scale":1,"priorExtent":{"__isSmartRef__":true,"id":1514},"renderContextTable":{"__isSmartRef__":true,"id":1515},"eventHandler":{"__isSmartRef__":true,"id":1516},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"owner":{"__isSmartRef__":true,"id":1488},"_Rotation":0,"layout":{"__isSmartRef__":true,"id":1517},"__LivelyClassName__":"lively.morphic.Text"},"1504":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1505},"_Extent":{"__isSmartRef__":true,"id":1506},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1507},"renderContextTable":{"__isSmartRef__":true,"id":1508},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_Fill":{"__isSmartRef__":true,"id":1509},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1505":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1506":{"x":85.33100664937592,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1507":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1508":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1509":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1510":{"x":-69.72083776558668,"y":-28.884347074314434,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1511":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"a simple text morph","partName":"Text","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1512":{"style":{"__isSmartRef__":true,"id":1513},"chunkOwner":{"__isSmartRef__":true,"id":1503},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1513":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1514":{"x":85.33100664937592,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1515":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML"},"1516":{"morph":{"__isSmartRef__":true,"id":1503},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1517":{},"1518":{"position":{"__isSmartRef__":true,"id":1519},"_Extent":{"__isSmartRef__":true,"id":1520},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1521},"_Fill":{"__isSmartRef__":true,"id":1522},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1523},"_BorderRadius":14.425000000000002,"_Opacity":1,"_BorderStyle":"solid","_Position":{"__isSmartRef__":true,"id":1524},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1519":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1520":{"x":301.1944175521214,"y":45.219341755610515,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1521":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1522":{"r":0.753,"g":0.753,"b":0.753,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1523":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1524":{"x":-166.33399866932814,"y":-42.82851462743173,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1525":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","comment":"A simple box morph. A really blue one. Its amazing what you can build out of simple boxes.... Who needs stars when you got blue rectangles!","migrationLevel":2,"partName":"Timer","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1526":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"1527":{"morph":{"__isSmartRef__":true,"id":1488},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1528":{"sourceObj":{"__isSmartRef__":true,"id":1488},"sourceAttrName":"running","targetObj":{"__isSmartRef__":true,"id":1488},"targetMethodName":"updateTickingScripts","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1529":{"sourceObj":{"__isSmartRef__":true,"id":1488},"sourceAttrName":"tick","targetObj":{"__isSmartRef__":true,"id":1530},"targetMethodName":"exec","visualConnector":{"__isSmartRef__":true,"id":2364},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1530":{"submorphs":[{"__isSmartRef__":true,"id":1531},{"__isSmartRef__":true,"id":1555}],"scripts":[],"id":5789,"shape":{"__isSmartRef__":true,"id":1605},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1612},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":1613},"eventHandler":{"__isSmartRef__":true,"id":1614},"attributeConnections":[{"__isSmartRef__":true,"id":1615},{"__isSmartRef__":true,"id":1616},{"__isSmartRef__":true,"id":2428},{"__isSmartRef__":true,"id":2429},{"__isSmartRef__":true,"id":2430},{"__isSmartRef__":true,"id":2431},{"__isSmartRef__":true,"id":2432},{"__isSmartRef__":true,"id":2436},{"__isSmartRef__":true,"id":2437},{"__isSmartRef__":true,"id":2438},{"__isSmartRef__":true,"id":2439},{"__isSmartRef__":true,"id":2440}],"doNotSerialize":["$$name","$$resultFromServer","$$_Position","$$_Scale","$$_Rotation","$$owner"],"doNotCopyProperties":["$$name","$$resultFromServer","$$_Position","$$_Scale","$$_Rotation","$$owner"],"layout":{"__isSmartRef__":true,"id":2444},"priorExtent":{"__isSmartRef__":true,"id":2446},"isInLayoutCycle":false,"connections":{"__isSmartRef__":true,"id":2447},"serverURL":{"__isSmartRef__":true,"id":2449},"magnets":[{"__isSmartRef__":true,"id":2361}],"name":"CPUWorkload","_Position":{"__isSmartRef__":true,"id":2450},"_Scale":1,"_Rotation":0,"resultFromServer":"Linux 2.6.32-5-amd64 (lively) \t06/15/11 \t_x86_64_\t(2 CPU)\n\n00:34:48 CPU %usr %nice %sys %iowait %irq %soft %steal %guest %idle\n00:34:49 all 4.04 0.00 0.00 0.00 0.00 0.51 0.00 0.00 95.45\n00:34:49 0 7.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 92.00\n00:34:49 1 0.00 0.00 0.00 0.00 0.00 1.02 0.00 0.00 98.98\n\nAverage: CPU %usr %nice %sys %iowait %irq %soft %steal %guest %idle\nAverage: all 4.04 0.00 0.00 0.00 0.00 0.51 0.00 0.00 95.45\nAverage: 0 7.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 92.00\nAverage: 1 0.00 0.00 0.00 0.00 0.00 1.02 0.00 0.00 98.98\n","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2451},"__LivelyClassName__":"lively.morphic.Box"},"1531":{"submorphs":[],"scripts":[],"id":5790,"shape":{"__isSmartRef__":true,"id":1532},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1537},"_MaxTextWidth":177.9080141874561,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":1535},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"nameLabel","partsBinMetaInfo":{"__isSmartRef__":true,"id":1538},"textChunks":[{"__isSmartRef__":true,"id":1539}],"charsReplaced":"Grr","lastFindLoc":-3,"priorSelectionRange":[1,1],"prevScroll":[0,0],"_Scale":0.9999999999999997,"priorExtent":{"__isSmartRef__":true,"id":1541},"attributeConnections":[{"__isSmartRef__":true,"id":1542},{"__isSmartRef__":true,"id":1543}],"doNotSerialize":["$$owner","$$savedTextString"],"doNotCopyProperties":["$$owner","$$savedTextString"],"isInputLine":true,"renderContextTable":{"__isSmartRef__":true,"id":1544},"eventHandler":{"__isSmartRef__":true,"id":1545},"oldOwner":{"__isSmartRef__":true,"id":1530},"_Align":"center","layout":{"__isSmartRef__":true,"id":1546},"_WhiteSpaceHandling":"pre-wrap","_TextColor":{"__isSmartRef__":true,"id":1547},"owner":{"__isSmartRef__":true,"id":1530},"savedTextString":"TopLeft","_Rotation":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1548},"__LivelyClassName__":"lively.morphic.Text"},"1532":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1533},"_Extent":{"__isSmartRef__":true,"id":1534},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1535},"renderContextTable":{"__isSmartRef__":true,"id":1536},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1533":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1534":{"x":177.9080141874561,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1535":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1536":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1537":{"x":-94.58125664837985,"y":-49.76071808478832,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1538":{"partsSpaceName":"PartsBin/Widgets/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"Label that shows the name of a morph. Updates automatically.","partName":"NameLabel","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1539":{"style":{"__isSmartRef__":true,"id":1540},"chunkOwner":{"__isSmartRef__":true,"id":1531},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1540":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1541":{"x":177.9080141874561,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1542":{"sourceObj":{"__isSmartRef__":true,"id":1531},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":1531},"targetMethodName":"updateLabel","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1543":{"sourceObj":{"__isSmartRef__":true,"id":1531},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":1531},"targetMethodName":"renameOwner","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1544":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML"},"1545":{"morph":{"__isSmartRef__":true,"id":1531},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1546":{"resizeHeight":false,"resizeWidth":true},"1547":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1548":{"updateLabel":{"__isSmartRef__":true,"id":1549},"renameOwner":{"__isSmartRef__":true,"id":1552}},"1549":{"varMapping":{"__isSmartRef__":true,"id":1550},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tif (this.oldOwner)\n\t\t\tdisconnect(this.oldOwner, 'name', this, 'updateLabel')\n\t\tif (this.owner)\n\t\t\tconnect(this.owner, 'name', this, 'updateLabel')\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar name = (this.owner ? this.owner.name : \"no owner\")\n\tif (this.textString != name)\n\tthis.setTextString(name)\n}","funcProperties":{"__isSmartRef__":true,"id":1551},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1550":{"this":{"__isSmartRef__":true,"id":1531}},"1551":{},"1552":{"varMapping":{"__isSmartRef__":true,"id":1553},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":1554},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1553":{"this":{"__isSmartRef__":true,"id":1531}},"1554":{},"1555":{"submorphs":[{"__isSmartRef__":true,"id":1556}],"scripts":[],"id":5791,"shape":{"__isSmartRef__":true,"id":1570},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1585},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1574},"lighterFill":{"__isSmartRef__":true,"id":1586},"label":{"__isSmartRef__":true,"id":1556},"name":"runButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1595},"attributeConnections":[{"__isSmartRef__":true,"id":1596},{"__isSmartRef__":true,"id":1597}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","_Scale":1,"priorExtent":{"__isSmartRef__":true,"id":1598},"renderContextTable":{"__isSmartRef__":true,"id":1599},"eventHandler":{"__isSmartRef__":true,"id":1600},"owner":{"__isSmartRef__":true,"id":1530},"_Rotation":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1601},"__LivelyClassName__":"lively.morphic.Button"},"1556":{"submorphs":[],"scripts":[],"id":5792,"shape":{"__isSmartRef__":true,"id":1557},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1562},"_MaxTextWidth":67.13566067881189,"_MaxTextHeight":19.00798003993009,"textStyle":null,"padding":{"__isSmartRef__":true,"id":1563},"_Padding":{"__isSmartRef__":true,"id":1564},"owner":{"__isSmartRef__":true,"id":1555},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":1565},"textChunks":[{"__isSmartRef__":true,"id":1566}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":1568},"eventHandler":{"__isSmartRef__":true,"id":1569},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"__LivelyClassName__":"lively.morphic.Text"},"1557":{"position":{"__isSmartRef__":true,"id":1558},"_Extent":{"__isSmartRef__":true,"id":1559},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1560},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1561},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1558":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1559":{"x":67.13566067881189,"y":19.00798003993009,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1560":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1561":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1562":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1563":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1564":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1565":{"x":67.13566067881189,"y":19.00798003993009,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1566":{"style":{"__isSmartRef__":true,"id":1567},"chunkOwner":{"__isSmartRef__":true,"id":1556},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1567":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1568":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML"},"1569":{"morph":{"__isSmartRef__":true,"id":1556},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1570":{"position":{"__isSmartRef__":true,"id":1571},"_Extent":{"__isSmartRef__":true,"id":1572},"_BorderWidth":1.1840000000000002,"_BorderColor":{"__isSmartRef__":true,"id":1573},"_Fill":{"__isSmartRef__":true,"id":1574},"_BorderRadius":5.2,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1584},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1571":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1572":{"x":67.13566067881189,"y":19.00798003993009,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1573":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1574":{"stops":[{"__isSmartRef__":true,"id":1575},{"__isSmartRef__":true,"id":1577},{"__isSmartRef__":true,"id":1579},{"__isSmartRef__":true,"id":1581}],"vector":{"__isSmartRef__":true,"id":1583},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1575":{"offset":0,"color":{"__isSmartRef__":true,"id":1576}},"1576":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1577":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1578}},"1578":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1579":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1580}},"1580":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1581":{"offset":1,"color":{"__isSmartRef__":true,"id":1582}},"1582":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1583":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1584":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1585":{"x":-39.19507989405777,"y":-22.76071808478833,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1586":{"stops":[{"__isSmartRef__":true,"id":1587},{"__isSmartRef__":true,"id":1589},{"__isSmartRef__":true,"id":1591},{"__isSmartRef__":true,"id":1593}],"vector":{"__isSmartRef__":true,"id":1583},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1587":{"offset":0,"color":{"__isSmartRef__":true,"id":1588}},"1588":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1589":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1590}},"1590":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1591":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1592}},"1592":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1593":{"offset":1,"color":{"__isSmartRef__":true,"id":1594}},"1594":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1595":{"partsSpaceName":"PartsBin/Inputs","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"partName":"ScriptableButton","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1596":{"sourceObj":{"__isSmartRef__":true,"id":1555},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1555},"targetMethodName":"onFire","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1597":{"sourceObj":{"__isSmartRef__":true,"id":1555},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1530},"targetMethodName":"exec","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1598":{"x":67.13566067881189,"y":19.00798003993009,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1599":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"1600":{"morph":{"__isSmartRef__":true,"id":1555},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1601":{"onFire":{"__isSmartRef__":true,"id":1602}},"1602":{"varMapping":{"__isSmartRef__":true,"id":1603},"source":"function onFire() {\n}","funcProperties":{"__isSmartRef__":true,"id":1604},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1603":{"this":{"__isSmartRef__":true,"id":1555}},"1604":{},"1605":{"position":{"__isSmartRef__":true,"id":1606},"_Extent":{"__isSmartRef__":true,"id":1607},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1608},"_Fill":{"__isSmartRef__":true,"id":1609},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1610},"_BorderRadius":30.349999999999998,"_Opacity":1,"_BorderStyle":"solid","_Position":{"__isSmartRef__":true,"id":1611},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1606":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1607":{"x":197.9080141874561,"y":66.42298003993008,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1608":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1609":{"r":0.662,"g":0.662,"b":0.662,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1610":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1611":{"x":-104.58125664837985,"y":-59.76071808478832,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1612":{"partsSpaceName":"PartsBin/Server/","__SourceModuleName__":"Global.lively.PartsBin","comment":"A component that let's you run your code on a nodejs server. Overwrite 'onServerDo'","migrationLevel":2,"partName":"CPUWorkload","requiredModules":["server.nodejs.RemoteJSInterface"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1613":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"1614":{"morph":{"__isSmartRef__":true,"id":1530},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1615":{"sourceObj":{"__isSmartRef__":true,"id":1530},"sourceAttrName":"name","targetObj":{"__isSmartRef__":true,"id":1531},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1616":{"sourceObj":{"__isSmartRef__":true,"id":1530},"sourceAttrName":"resultFromServer","targetObj":{"__isSmartRef__":true,"id":1617},"targetMethodName":"value","visualConnector":{"__isSmartRef__":true,"id":2349},"converterString":"function converter(value) {\n return Strings.tableize(value)\n .slice(3,5)\n .collect(function(ea) { \n return (100-Number(ea.last())) / 2\n })\n}\n","__SourceModuleName__":"Global.lively.bindings","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2424},"__LivelyClassName__":"AttributeConnection"},"1617":{"submorphs":[],"scripts":[],"id":2544,"shape":{"__isSmartRef__":true,"id":1618},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":312.47058776658247,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":1624},"showsHalos":false,"_FontSize":9,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"JSONPrinter","partsBinMetaInfo":{"__isSmartRef__":true,"id":1625},"textChunks":[{"__isSmartRef__":true,"id":1626}],"charsReplaced":"1","lastFindLoc":2,"priorSelectionRange":[0,1],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":1628},"renderContextTable":{"__isSmartRef__":true,"id":1629},"eventHandler":{"__isSmartRef__":true,"id":1630},"magnets":[{"__isSmartRef__":true,"id":1631}],"attributeConnections":[{"__isSmartRef__":true,"id":2394},{"__isSmartRef__":true,"id":2338},{"__isSmartRef__":true,"id":2399},{"__isSmartRef__":true,"id":2400},{"__isSmartRef__":true,"id":2401},{"__isSmartRef__":true,"id":2402},{"__isSmartRef__":true,"id":2403},{"__isSmartRef__":true,"id":2407},{"__isSmartRef__":true,"id":2408},{"__isSmartRef__":true,"id":2409},{"__isSmartRef__":true,"id":2410},{"__isSmartRef__":true,"id":2411}],"doNotSerialize":["$$value","$$_Position","$$_Scale","$$_Rotation","$$owner"],"doNotCopyProperties":["$$value","$$_Position","$$_Scale","$$_Rotation","$$owner"],"layout":{"__isSmartRef__":true,"id":2415},"savedTextString":"[1,2]\n","_Padding":{"__isSmartRef__":true,"id":2416},"connections":{"__isSmartRef__":true,"id":2417},"value":[2.2749999999999986,4],"_Position":{"__isSmartRef__":true,"id":2419},"_Scale":1,"_Rotation":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2420},"__LivelyClassName__":"lively.morphic.Text"},"1618":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1619},"_Extent":{"__isSmartRef__":true,"id":1620},"_BorderWidth":1.778,"_BorderColor":{"__isSmartRef__":true,"id":1621},"renderContextTable":{"__isSmartRef__":true,"id":1622},"_BorderRadius":16.67,"_Opacity":1,"_BorderStyle":"solid","_Fill":{"__isSmartRef__":true,"id":1623},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1619":{"x":-123.39082712817918,"y":-7.972083776558634,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1620":{"x":312.47058776658247,"y":46.490527926183574,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1621":{"r":0.619,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1622":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1623":{"r":1,"g":0.8164152534959416,"b":0.6715685727679689,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1624":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1625":{"partsSpaceName":"PartsBin/Basic/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"a simple text morph","partName":"JSONPrinter","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1626":{"style":{"__isSmartRef__":true,"id":1627},"chunkOwner":{"__isSmartRef__":true,"id":1617},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1627":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1628":{"x":312.47058776658247,"y":46.490527926183574,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1629":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML"},"1630":{"morph":{"__isSmartRef__":true,"id":1617},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1631":{"morph":{"__isSmartRef__":true,"id":1617},"position":{"__isSmartRef__":true,"id":1632},"connectedControlPoints":[{"__isSmartRef__":true,"id":1633},{"__isSmartRef__":true,"id":2348}],"__SourceModuleName__":"Global.lively.morphic.Connectors","__LivelyClassName__":"lively.morphic.Magnet"},"1632":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1633":{"morph":{"__isSmartRef__":true,"id":1634},"index":0,"connectedMagnet":{"__isSmartRef__":true,"id":1631},"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"1634":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1635},"id":178,"renderContextTable":{"__isSmartRef__":true,"id":1644},"eventHandler":{"__isSmartRef__":true,"id":1645},"droppingEnabled":true,"halosEnabled":true,"controlPoints":[{"__isSmartRef__":true,"id":1633},{"__isSmartRef__":true,"id":1646}],"con":{"__isSmartRef__":true,"id":2338},"showsMorphMenu":true,"_Position":{"__isSmartRef__":true,"id":2339},"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2340},"__LivelyClassName__":"lively.morphic.Path"},"1635":{"dontChangeShape":false,"cachedVertices":[{"__isSmartRef__":true,"id":1636},{"__isSmartRef__":true,"id":1637}],"_PathElements":[{"__isSmartRef__":true,"id":1638},{"__isSmartRef__":true,"id":1639}],"renderContextTable":{"__isSmartRef__":true,"id":1640},"_Position":{"__isSmartRef__":true,"id":1641},"_Extent":{"__isSmartRef__":true,"id":1642},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1643},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"1636":{"x":437.7726821805495,"y":364.3788630324174,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1637":{"x":672.5610724815532,"y":281.8185072654411,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1638":{"isAbsolute":true,"x":437.7726821805495,"y":364.3788630324174,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"1639":{"isAbsolute":true,"x":672.5610724815532,"y":281.8185072654411,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"1640":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1641":{"x":437.7726821805495,"y":281.8185072654411,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1642":{"x":234.7883903010037,"y":82.56035576697633,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1643":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1644":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"1645":{"morph":{"__isSmartRef__":true,"id":1634},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1646":{"morph":{"__isSmartRef__":true,"id":1634},"index":1,"connectedMagnet":{"__isSmartRef__":true,"id":1647},"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"1647":{"morph":{"__isSmartRef__":true,"id":1648},"position":{"__isSmartRef__":true,"id":2337},"connectedControlPoints":[{"__isSmartRef__":true,"id":1728},{"__isSmartRef__":true,"id":1646}],"__SourceModuleName__":"Global.lively.morphic.Connectors","__LivelyClassName__":"lively.morphic.Magnet"},"1648":{"submorphs":[],"scripts":[],"id":2619,"shape":{"__isSmartRef__":true,"id":1649},"droppingEnabled":true,"halosEnabled":true,"data":[[{"__isSmartRef__":true,"id":1653},{"__isSmartRef__":true,"id":1654},{"__isSmartRef__":true,"id":1655},{"__isSmartRef__":true,"id":1656},{"__isSmartRef__":true,"id":1657},{"__isSmartRef__":true,"id":1658},{"__isSmartRef__":true,"id":1659},{"__isSmartRef__":true,"id":1660},{"__isSmartRef__":true,"id":1661},{"__isSmartRef__":true,"id":1662},{"__isSmartRef__":true,"id":1663},{"__isSmartRef__":true,"id":1664},{"__isSmartRef__":true,"id":1665},{"__isSmartRef__":true,"id":1666},{"__isSmartRef__":true,"id":1667},{"__isSmartRef__":true,"id":1668},{"__isSmartRef__":true,"id":1669},{"__isSmartRef__":true,"id":1670},{"__isSmartRef__":true,"id":1671},{"__isSmartRef__":true,"id":1672},{"__isSmartRef__":true,"id":1673},{"__isSmartRef__":true,"id":1674},{"__isSmartRef__":true,"id":1675},{"__isSmartRef__":true,"id":1676},{"__isSmartRef__":true,"id":1677},{"__isSmartRef__":true,"id":1678},{"__isSmartRef__":true,"id":1679},{"__isSmartRef__":true,"id":1680},{"__isSmartRef__":true,"id":1681},{"__isSmartRef__":true,"id":1682},{"__isSmartRef__":true,"id":1683},{"__isSmartRef__":true,"id":1684},{"__isSmartRef__":true,"id":1685},{"__isSmartRef__":true,"id":1686}],[{"__isSmartRef__":true,"id":1687},{"__isSmartRef__":true,"id":1688},{"__isSmartRef__":true,"id":1689},{"__isSmartRef__":true,"id":1690},{"__isSmartRef__":true,"id":1691},{"__isSmartRef__":true,"id":1692},{"__isSmartRef__":true,"id":1693},{"__isSmartRef__":true,"id":1694},{"__isSmartRef__":true,"id":1695},{"__isSmartRef__":true,"id":1696},{"__isSmartRef__":true,"id":1697},{"__isSmartRef__":true,"id":1698},{"__isSmartRef__":true,"id":1699},{"__isSmartRef__":true,"id":1700},{"__isSmartRef__":true,"id":1701},{"__isSmartRef__":true,"id":1702},{"__isSmartRef__":true,"id":1703},{"__isSmartRef__":true,"id":1704},{"__isSmartRef__":true,"id":1705},{"__isSmartRef__":true,"id":1706},{"__isSmartRef__":true,"id":1707},{"__isSmartRef__":true,"id":1708},{"__isSmartRef__":true,"id":1709},{"__isSmartRef__":true,"id":1710},{"__isSmartRef__":true,"id":1711},{"__isSmartRef__":true,"id":1712},{"__isSmartRef__":true,"id":1713},{"__isSmartRef__":true,"id":1714},{"__isSmartRef__":true,"id":1715},{"__isSmartRef__":true,"id":1716},{"__isSmartRef__":true,"id":1717},{"__isSmartRef__":true,"id":1718},{"__isSmartRef__":true,"id":1719},{"__isSmartRef__":true,"id":1720}]],"doNotSerialize":["vis","$$globalTransform","$$_Position","$$_Scale","$$_Rotation","$$owner"],"showsHalos":false,"name":"ProtovisMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":1721},"__SourceModuleName__":"Global.apps.ProtoVisInterface","renderContextTable":{"__isSmartRef__":true,"id":1722},"eventHandler":{"__isSmartRef__":true,"id":1723},"connections":{"__isSmartRef__":true,"id":1724},"priorExtent":{"__isSmartRef__":true,"id":1726},"magnets":[{"__isSmartRef__":true,"id":1647}],"attributeConnections":[{"__isSmartRef__":true,"id":1727},{"__isSmartRef__":true,"id":2209},{"__isSmartRef__":true,"id":2210},{"__isSmartRef__":true,"id":2211},{"__isSmartRef__":true,"id":2212},{"__isSmartRef__":true,"id":2213}],"doNotCopyProperties":["$$globalTransform","$$_Position","$$_Scale","$$_Rotation","$$owner"],"_Position":{"__isSmartRef__":true,"id":2299},"_Scale":0.9980029960049944,"_Rotation":0,"owner":{"__isSmartRef__":true,"id":2216},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2300},"__LivelyClassName__":"ProtoVisMorph"},"1649":{"position":{"__isSmartRef__":true,"id":1650},"_Extent":{"__isSmartRef__":true,"id":1651},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1652},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1650":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1651":{"x":543.997999003999,"y":276.0120059760062,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1652":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1653":{"x":0,"y":1.5},"1654":{"x":1,"y":1.7150000000000034},"1655":{"x":2,"y":1.9399999999999977},"1656":{"x":3,"y":1.9699999999999989},"1657":{"x":4,"y":2},"1658":{"x":5,"y":2.2849999999999966},"1659":{"x":6,"y":2.7349999999999994},"1660":{"x":7,"y":31.405},"1661":{"x":8,"y":20.97},"1662":{"x":9,"y":1.9699999999999989},"1663":{"x":10,"y":1.4549999999999983},"1664":{"x":11,"y":1.4650000000000034},"1665":{"x":12,"y":2.6850000000000023},"1666":{"x":13,"y":2.6850000000000023},"1667":{"x":14,"y":3.4650000000000034},"1668":{"x":15,"y":0.9750000000000014},"1669":{"x":16,"y":2.4399999999999977},"1670":{"x":17,"y":3.6599999999999966},"1671":{"x":18,"y":0.25},"1672":{"x":19,"y":0.24499999999999744},"1673":{"x":20,"y":0},"1674":{"x":21,"y":3.4299999999999997},"1675":{"x":22,"y":1.9600000000000009},"1676":{"x":23,"y":0.740000000000002},"1677":{"x":24,"y":11.939999999999998},"1678":{"x":25,"y":5.909999999999997},"1679":{"x":26,"y":7.075000000000003},"1680":{"x":27,"y":4.369999999999997},"1681":{"x":28,"y":1.9399999999999977},"1682":{"x":29,"y":1.2199999999999989},"1683":{"x":30,"y":0.9849999999999994},"1684":{"x":31,"y":1.2250000000000014},"1685":{"x":32,"y":1.2150000000000034},"1686":{"x":33,"y":2.2749999999999986},"1687":{"x":0,"y":2.5249999999999986},"1688":{"x":1,"y":3.5349999999999966},"1689":{"x":2,"y":4.454999999999998},"1690":{"x":3,"y":4},"1691":{"x":4,"y":4.5},"1692":{"x":5,"y":4.590000000000003},"1693":{"x":6,"y":5},"1694":{"x":7,"y":33.675},"1695":{"x":8,"y":16.145000000000003},"1696":{"x":9,"y":4.5},"1697":{"x":10,"y":2.5},"1698":{"x":11,"y":3.4650000000000034},"1699":{"x":12,"y":4.545000000000002},"1700":{"x":13,"y":5.555},"1701":{"x":14,"y":6.840000000000003},"1702":{"x":15,"y":2.4750000000000014},"1703":{"x":16,"y":5},"1704":{"x":17,"y":6.564999999999998},"1705":{"x":18,"y":0},"1706":{"x":19,"y":0.49499999999999744},"1707":{"x":20,"y":0.5},"1708":{"x":21,"y":7.424999999999997},"1709":{"x":22,"y":2.575000000000003},"1710":{"x":23,"y":1.0200000000000031},"1711":{"x":24,"y":19.8},"1712":{"x":25,"y":11.880000000000003},"1713":{"x":26,"y":11.11},"1714":{"x":27,"y":7},"1715":{"x":28,"y":3.5349999999999966},"1716":{"x":29,"y":2},"1717":{"x":30,"y":1.9799999999999969},"1718":{"x":31,"y":3},"1719":{"x":32,"y":2.5},"1720":{"x":33,"y":4},"1721":{"migrationLevel":2,"partsSpaceName":"PartsBin/Visualization/","__SourceModuleName__":"Global.lively.PartsBin","partName":"ProtovisDrawing","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1722":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"1723":{"morph":{"__isSmartRef__":true,"id":1648},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1724":{"addDataColumnAndRender":{"__isSmartRef__":true,"id":1725}},"1725":{},"1726":{"x":543.997999003999,"y":275.0120059760062,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1727":{"sourceObj":{"__isSmartRef__":true,"id":1648},"sourceAttrName":"globalTransform","targetObj":{"__isSmartRef__":true,"id":1728},"targetMethodName":"alignToMagnet","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1728":{"morph":{"__isSmartRef__":true,"id":1729},"index":1,"connectedMagnet":{"__isSmartRef__":true,"id":1647},"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"1729":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1730},"id":3849,"renderContextTable":{"__isSmartRef__":true,"id":1739},"eventHandler":{"__isSmartRef__":true,"id":1740},"droppingEnabled":true,"halosEnabled":true,"controlPoints":[{"__isSmartRef__":true,"id":1741},{"__isSmartRef__":true,"id":2152}],"con":{"__isSmartRef__":true,"id":1966},"showsMorphMenu":true,"isCopyMorphRef":true,"morphRefId":1,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2201},"__LivelyClassName__":"lively.morphic.Path"},"1730":{"dontChangeShape":false,"cachedVertices":[{"__isSmartRef__":true,"id":1731},{"__isSmartRef__":true,"id":1732}],"_PathElements":[{"__isSmartRef__":true,"id":1733},{"__isSmartRef__":true,"id":1734}],"renderContextTable":{"__isSmartRef__":true,"id":1735},"_Position":{"__isSmartRef__":true,"id":1736},"_Extent":{"__isSmartRef__":true,"id":1737},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1738},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"1731":{"x":28,"y":256,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1732":{"x":986.5012520027503,"y":279.5473210948677,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1733":{"isAbsolute":true,"x":28,"y":256,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"1734":{"isAbsolute":true,"x":986.5012520027503,"y":279.5473210948677,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"1735":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1736":{"x":28,"y":256,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1737":{"x":958.5012817382812,"y":23.547332763671875,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1738":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1739":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"1740":{"morph":{"__isSmartRef__":true,"id":1729},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1741":{"morph":{"__isSmartRef__":true,"id":1729},"index":0,"connectedMagnet":{"__isSmartRef__":true,"id":1742},"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"1742":{"morph":{"__isSmartRef__":true,"id":1743},"position":{"__isSmartRef__":true,"id":2200},"connectedControlPoints":[{"__isSmartRef__":true,"id":1741}],"__SourceModuleName__":"Global.lively.morphic.Connectors","__LivelyClassName__":"lively.morphic.Magnet"},"1743":{"submorphs":[],"scripts":[],"id":3657,"shape":{"__isSmartRef__":true,"id":1744},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Courier ","registeredForMouseEvents":true,"_MaxTextWidth":649.997996995995,"_MaxTextHeight":250.0240360480601,"textColor":{"__isSmartRef__":true,"id":1750},"showsHalos":false,"_FontSize":9,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"logWindow","partsBinMetaInfo":{"__isSmartRef__":true,"id":1751},"textChunks":[{"__isSmartRef__":true,"id":1752}],"charsReplaced":"s","lastFindLoc":6,"priorSelectionRange":[25483,25483],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":1754},"_TextColor":{"__isSmartRef__":true,"id":1755},"_ClipMode":"auto","layout":{"__isSmartRef__":true,"id":1756},"renderContextTable":{"__isSmartRef__":true,"id":1757},"eventHandler":{"__isSmartRef__":true,"id":1758},"attributeConnections":[{"__isSmartRef__":true,"id":1759},{"__isSmartRef__":true,"id":1966},{"__isSmartRef__":true,"id":2195}],"doNotSerialize":["$$exec","$$serverResult","$$globalTransform"],"doNotCopyProperties":["$$exec","$$serverResult","$$globalTransform"],"connections":{"__isSmartRef__":true,"id":2196},"magnets":[{"__isSmartRef__":true,"id":1742}],"_Position":{"__isSmartRef__":true,"id":2199},"_Scale":1,"_Rotation":0,"owner":{"__isSmartRef__":true,"id":1760},"serverResult":"Linux 2.6.32-5-amd64 (lively) \t06/13/11 \t_x86_64_\t(2 CPU)\n\n21:10:18 CPU %usr %nice %sys %iowait %irq %soft %steal %guest %idle\n21:10:19 all 0.49 0.00 0.49 0.00 0.00 0.00 0.00 0.00 99.02\n21:10:19 0 0.99 0.00 0.99 0.00 0.00 0.00 0.00 0.00 98.02\n21:10:19 1 0.00 0.00 0.96 0.00 0.00 0.00 0.00 0.00 99.04\n\nAverage: CPU %usr %nice %sys %iowait %irq %soft %steal %guest %idle\nAverage: all 0.49 0.00 0.49 0.00 0.00 0.00 0.00 0.00 99.02\nAverage: 0 0.99 0.00 0.99 0.00 0.00 0.00 0.00 0.00 98.02\nAverage: 1 0.00 0.00 0.96 0.00 0.00 0.00 0.00 0.00 99.04\n","__LivelyClassName__":"lively.morphic.Text"},"1744":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1745},"_Extent":{"__isSmartRef__":true,"id":1746},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1747},"_BorderRadius":0,"_Fill":{"__isSmartRef__":true,"id":1748},"renderContextTable":{"__isSmartRef__":true,"id":1749},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1745":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1746":{"x":649.997996995995,"y":250.0240360480601,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1747":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1748":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1749":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1750":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1751":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1752":{"style":{"__isSmartRef__":true,"id":1753},"chunkOwner":{"__isSmartRef__":true,"id":1743},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1753":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1754":{"x":649.997996995995,"y":250.0240360480601,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1755":{"r":0,"g":0.8,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1756":{"resizeWidth":true,"resizeHeight":true},"1757":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML"},"1758":{"morph":{"__isSmartRef__":true,"id":1743},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1759":{"sourceObj":{"__isSmartRef__":true,"id":1743},"sourceAttrName":"exec","targetObj":{"__isSmartRef__":true,"id":1760},"targetMethodName":"exec","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1760":{"submorphs":[{"__isSmartRef__":true,"id":1743},{"__isSmartRef__":true,"id":1761}],"scripts":[],"id":3656,"shape":{"__isSmartRef__":true,"id":1779},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"CommandLine","partsBinMetaInfo":{"__isSmartRef__":true,"id":1785},"__SourceModuleName__":"Global.lively.morphic.Core","priorExtent":{"__isSmartRef__":true,"id":1786},"layout":{"__isSmartRef__":true,"id":1787},"renderContextTable":{"__isSmartRef__":true,"id":1788},"eventHandler":{"__isSmartRef__":true,"id":1789},"attributeConnections":[{"__isSmartRef__":true,"id":1790},{"__isSmartRef__":true,"id":1791}],"doNotSerialize":["$$serverResult"],"doNotCopyProperties":["$$serverResult"],"connections":{"__isSmartRef__":true,"id":1792},"serverResult":"Linux 2.6.32-5-amd64 (lively) \t06/13/11 \t_x86_64_\t(2 CPU)\n\n21:10:18 CPU %usr %nice %sys %iowait %irq %soft %steal %guest %idle\n21:10:19 all 0.49 0.00 0.49 0.00 0.00 0.00 0.00 0.00 99.02\n21:10:19 0 0.99 0.00 0.99 0.00 0.00 0.00 0.00 0.00 98.02\n21:10:19 1 0.00 0.00 0.96 0.00 0.00 0.00 0.00 0.00 99.04\n\nAverage: CPU %usr %nice %sys %iowait %irq %soft %steal %guest %idle\nAverage: all 0.49 0.00 0.49 0.00 0.00 0.00 0.00 0.00 99.02\nAverage: 0 0.99 0.00 0.99 0.00 0.00 0.00 0.00 0.00 98.02\nAverage: 1 0.00 0.00 0.96 0.00 0.00 0.00 0.00 0.00 99.04\n","_Position":{"__isSmartRef__":true,"id":1795},"_Scale":1,"_Rotation":0,"owner":{"__isSmartRef__":true,"id":1796},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1953},"__LivelyClassName__":"lively.morphic.Box"},"1761":{"submorphs":[],"scripts":[],"id":3658,"shape":{"__isSmartRef__":true,"id":1762},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Courier ","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1768},"_MaxTextWidth":615,"_MaxTextHeight":29.985978971964983,"textColor":{"__isSmartRef__":true,"id":1769},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"inputLine","partsBinMetaInfo":{"__isSmartRef__":true,"id":1770},"textChunks":[{"__isSmartRef__":true,"id":1771}],"charsReplaced":"mpstat -P ALL 1 1","lastFindLoc":-17,"priorSelectionRange":[17,17],"prevScroll":[0,0],"_Scale":1,"priorExtent":{"__isSmartRef__":true,"id":1773},"_TextColor":{"__isSmartRef__":true,"id":1774},"_ClipMode":"hidden","owner":{"__isSmartRef__":true,"id":1760},"isInputLine":true,"_WhiteSpaceHandling":"pre-wrap","allowInput":true,"attributeConnections":[{"__isSmartRef__":true,"id":1775}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"layout":{"__isSmartRef__":true,"id":1776},"savedTextString":"mpstat -P ALL 1 1","renderContextTable":{"__isSmartRef__":true,"id":1777},"eventHandler":{"__isSmartRef__":true,"id":1778},"__LivelyClassName__":"lively.morphic.Text"},"1762":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1763},"_Extent":{"__isSmartRef__":true,"id":1764},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1765},"_BorderRadius":0,"_Fill":{"__isSmartRef__":true,"id":1766},"renderContextTable":{"__isSmartRef__":true,"id":1767},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1763":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1764":{"x":615,"y":29.985978971964983,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1765":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1766":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1767":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1768":{"x":8.000000000000853,"y":262.99999999999983,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1769":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1770":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1771":{"style":{"__isSmartRef__":true,"id":1772},"chunkOwner":{"__isSmartRef__":true,"id":1761},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1772":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1773":{"x":615,"y":29.985978971964983,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1774":{"r":0,"g":0.8,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1775":{"sourceObj":{"__isSmartRef__":true,"id":1761},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":1760},"targetMethodName":"exec","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1776":{"resizeWidth":true,"resizeHeight":false,"moveVertical":true},"1777":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML"},"1778":{"morph":{"__isSmartRef__":true,"id":1761},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1779":{"position":{"__isSmartRef__":true,"id":1780},"_Extent":{"__isSmartRef__":true,"id":1781},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":1782},"_Fill":{"__isSmartRef__":true,"id":1783},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderRadius":0,"renderContextTable":{"__isSmartRef__":true,"id":1784},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1780":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1781":{"x":650,"y":295,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1782":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1783":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1784":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1785":{"partsSpaceName":"PartsBin/Server/","__SourceModuleName__":"Global.lively.PartsBin","requiredModules":["server.nodejs.WebInterface"],"migrationLevel":2,"comment":"Access to the lively-kernel.org shell using nodejs.","partName":"CommandLine","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1786":{"x":650,"y":295,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1787":{"adjustForNewBounds":true,"resizeWidth":true,"resizeHeight":true},"1788":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"1789":{"morph":{"__isSmartRef__":true,"id":1760},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1790":{"sourceObj":{"__isSmartRef__":true,"id":1760},"sourceAttrName":"serverResult","targetObj":{"__isSmartRef__":true,"id":1743},"targetMethodName":"serverResult","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1791":{"sourceObj":{"__isSmartRef__":true,"id":1760},"sourceAttrName":"serverResult","targetObj":{"__isSmartRef__":true,"id":1760},"targetMethodName":"log","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1792":{"exec":{"__isSmartRef__":true,"id":1793},"serverResult":{"__isSmartRef__":true,"id":1794}},"1793":{},"1794":{},"1795":{"x":0,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1796":{"submorphs":[{"__isSmartRef__":true,"id":1760},{"__isSmartRef__":true,"id":1797}],"scripts":[],"id":3655,"renderContextTable":{"__isSmartRef__":true,"id":1943},"shape":{"__isSmartRef__":true,"id":1944},"droppingEnabled":true,"halosEnabled":true,"draggingEnabled":true,"layout":{"__isSmartRef__":true,"id":1947},"eventHandler":{"__isSmartRef__":true,"id":1948},"LK2":true,"priorExtent":{"__isSmartRef__":true,"id":1949},"targetMorph":{"__isSmartRef__":true,"id":1760},"titleBar":{"__isSmartRef__":true,"id":1797},"contentOffset":{"__isSmartRef__":true,"id":1795},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":null,"expandedExtent":null,"ignoreEventsOnExpand":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1950},"name":"CommandLine","prevDragPos":{"__isSmartRef__":true,"id":1951},"highlighted":true,"cameForward":false,"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Position":{"__isSmartRef__":true,"id":1952},"_Scale":1,"_Rotation":0,"__LivelyClassName__":"lively.morphic.Window"},"1797":{"submorphs":[{"__isSmartRef__":true,"id":1798},{"__isSmartRef__":true,"id":1810},{"__isSmartRef__":true,"id":1856},{"__isSmartRef__":true,"id":1890}],"scripts":[],"id":3659,"renderContextTable":{"__isSmartRef__":true,"id":1925},"shape":{"__isSmartRef__":true,"id":1926},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":1939},"eventHandler":{"__isSmartRef__":true,"id":1940},"_Position":{"__isSmartRef__":true,"id":1941},"windowMorph":{"__isSmartRef__":true,"id":1796},"label":{"__isSmartRef__":true,"id":1798},"closeButton":{"__isSmartRef__":true,"id":1810},"menuButton":{"__isSmartRef__":true,"id":1856},"collapseButton":{"__isSmartRef__":true,"id":1890},"priorExtent":{"__isSmartRef__":true,"id":1942},"owner":{"__isSmartRef__":true,"id":1796},"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.TitleBar"},"1798":{"submorphs":[],"scripts":[],"id":3660,"renderContextTable":{"__isSmartRef__":true,"id":1799},"textChunks":[{"__isSmartRef__":true,"id":1800}],"shape":{"__isSmartRef__":true,"id":1802},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1806},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","eventHandler":{"__isSmartRef__":true,"id":1807},"_Position":{"__isSmartRef__":true,"id":1808},"priorExtent":{"__isSmartRef__":true,"id":1809},"_MaxTextWidth":null,"_MaxTextHeight":17,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"_PointerEvents":"none","_FontSize":10,"_Align":"center","owner":{"__isSmartRef__":true,"id":1797},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"1799":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML"},"1800":{"style":{"__isSmartRef__":true,"id":1801},"chunkOwner":{"__isSmartRef__":true,"id":1798},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1801":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1802":{"_Position":{"__isSmartRef__":true,"id":1803},"renderContextTable":{"__isSmartRef__":true,"id":1804},"_Extent":{"__isSmartRef__":true,"id":1805},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1782},"_Fill":null,"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1803":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1804":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1805":{"x":591,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1806":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1807":{"morph":{"__isSmartRef__":true,"id":1798},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1808":{"x":20,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1809":{"x":591,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1810":{"submorphs":[{"__isSmartRef__":true,"id":1811}],"scripts":[],"id":3661,"renderContextTable":{"__isSmartRef__":true,"id":1823},"shape":{"__isSmartRef__":true,"id":1824},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"eventHandler":{"__isSmartRef__":true,"id":1839},"_Position":{"__isSmartRef__":true,"id":1840},"priorExtent":{"__isSmartRef__":true,"id":1841},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1829},"lighterFill":{"__isSmartRef__":true,"id":1842},"label":{"__isSmartRef__":true,"id":1811},"owner":{"__isSmartRef__":true,"id":1797},"layout":{"__isSmartRef__":true,"id":1851},"attributeConnections":[{"__isSmartRef__":true,"id":1852},{"__isSmartRef__":true,"id":1854}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"1811":{"submorphs":[],"scripts":[],"id":3662,"renderContextTable":{"__isSmartRef__":true,"id":1812},"textChunks":[{"__isSmartRef__":true,"id":1813}],"shape":{"__isSmartRef__":true,"id":1815},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1819},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","eventHandler":{"__isSmartRef__":true,"id":1820},"_Position":{"__isSmartRef__":true,"id":1821},"priorExtent":{"__isSmartRef__":true,"id":1822},"_MaxTextWidth":null,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1810},"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"_PointerEvents":"none","_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"1812":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML"},"1813":{"style":{"__isSmartRef__":true,"id":1814},"chunkOwner":{"__isSmartRef__":true,"id":1811},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1814":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1815":{"_Position":{"__isSmartRef__":true,"id":1816},"renderContextTable":{"__isSmartRef__":true,"id":1817},"_Extent":{"__isSmartRef__":true,"id":1818},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1782},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1816":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1817":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1818":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1819":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1820":{"morph":{"__isSmartRef__":true,"id":1811},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1821":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1822":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1823":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"1824":{"_Position":{"__isSmartRef__":true,"id":1825},"renderContextTable":{"__isSmartRef__":true,"id":1826},"_Extent":{"__isSmartRef__":true,"id":1827},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1828},"_Fill":{"__isSmartRef__":true,"id":1829},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1825":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1826":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1827":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1828":{"r":0.7411764705882353,"g":0.7450980392156863,"b":0.7529411764705882,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1829":{"stops":[{"__isSmartRef__":true,"id":1830},{"__isSmartRef__":true,"id":1832},{"__isSmartRef__":true,"id":1834},{"__isSmartRef__":true,"id":1836}],"vector":{"__isSmartRef__":true,"id":1838},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1830":{"offset":0,"color":{"__isSmartRef__":true,"id":1831}},"1831":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1832":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1833}},"1833":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1834":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1835}},"1835":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1836":{"offset":1,"color":{"__isSmartRef__":true,"id":1837}},"1837":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1838":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1839":{"morph":{"__isSmartRef__":true,"id":1810},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1840":{"x":630,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1841":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1842":{"stops":[{"__isSmartRef__":true,"id":1843},{"__isSmartRef__":true,"id":1845},{"__isSmartRef__":true,"id":1847},{"__isSmartRef__":true,"id":1849}],"vector":{"__isSmartRef__":true,"id":1838},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1843":{"offset":0,"color":{"__isSmartRef__":true,"id":1844}},"1844":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1845":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1846}},"1846":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1847":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1848}},"1848":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1849":{"offset":1,"color":{"__isSmartRef__":true,"id":1850}},"1850":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1851":{"moveHorizontal":true},"1852":{"sourceObj":{"__isSmartRef__":true,"id":1810},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":1796},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1853},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1853":{"source":{"__isSmartRef__":true,"id":1810},"target":{"__isSmartRef__":true,"id":1796}},"1854":{"sourceObj":{"__isSmartRef__":true,"id":1810},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1796},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1855},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1855":{"source":{"__isSmartRef__":true,"id":1810},"target":{"__isSmartRef__":true,"id":1796}},"1856":{"submorphs":[{"__isSmartRef__":true,"id":1857}],"scripts":[],"id":3663,"renderContextTable":{"__isSmartRef__":true,"id":1869},"shape":{"__isSmartRef__":true,"id":1870},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"eventHandler":{"__isSmartRef__":true,"id":1874},"_Position":{"__isSmartRef__":true,"id":1875},"priorExtent":{"__isSmartRef__":true,"id":1876},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1829},"lighterFill":{"__isSmartRef__":true,"id":1877},"label":{"__isSmartRef__":true,"id":1857},"owner":{"__isSmartRef__":true,"id":1797},"attributeConnections":[{"__isSmartRef__":true,"id":1886},{"__isSmartRef__":true,"id":1888}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"1857":{"submorphs":[],"scripts":[],"id":3664,"renderContextTable":{"__isSmartRef__":true,"id":1858},"textChunks":[{"__isSmartRef__":true,"id":1859}],"shape":{"__isSmartRef__":true,"id":1861},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1865},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","eventHandler":{"__isSmartRef__":true,"id":1866},"_Position":{"__isSmartRef__":true,"id":1867},"priorExtent":{"__isSmartRef__":true,"id":1868},"_MaxTextWidth":null,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1856},"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"_PointerEvents":"none","_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"1858":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML"},"1859":{"style":{"__isSmartRef__":true,"id":1860},"chunkOwner":{"__isSmartRef__":true,"id":1857},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1860":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1861":{"_Position":{"__isSmartRef__":true,"id":1862},"renderContextTable":{"__isSmartRef__":true,"id":1863},"_Extent":{"__isSmartRef__":true,"id":1864},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1782},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1862":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1863":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1864":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1865":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1866":{"morph":{"__isSmartRef__":true,"id":1857},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1867":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1868":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1869":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"1870":{"_Position":{"__isSmartRef__":true,"id":1871},"renderContextTable":{"__isSmartRef__":true,"id":1872},"_Extent":{"__isSmartRef__":true,"id":1873},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1828},"_Fill":{"__isSmartRef__":true,"id":1829},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1871":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1872":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1873":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1874":{"morph":{"__isSmartRef__":true,"id":1856},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1875":{"x":3,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1876":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1877":{"stops":[{"__isSmartRef__":true,"id":1878},{"__isSmartRef__":true,"id":1880},{"__isSmartRef__":true,"id":1882},{"__isSmartRef__":true,"id":1884}],"vector":{"__isSmartRef__":true,"id":1838},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1878":{"offset":0,"color":{"__isSmartRef__":true,"id":1879}},"1879":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1880":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1881}},"1881":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1882":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1883}},"1883":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1884":{"offset":1,"color":{"__isSmartRef__":true,"id":1885}},"1885":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1886":{"sourceObj":{"__isSmartRef__":true,"id":1856},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":1796},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1887},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1887":{"source":{"__isSmartRef__":true,"id":1856},"target":{"__isSmartRef__":true,"id":1796}},"1888":{"sourceObj":{"__isSmartRef__":true,"id":1856},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1796},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1889},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1889":{"source":{"__isSmartRef__":true,"id":1856},"target":{"__isSmartRef__":true,"id":1796}},"1890":{"submorphs":[{"__isSmartRef__":true,"id":1891}],"scripts":[],"id":3665,"renderContextTable":{"__isSmartRef__":true,"id":1903},"shape":{"__isSmartRef__":true,"id":1904},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"eventHandler":{"__isSmartRef__":true,"id":1908},"_Position":{"__isSmartRef__":true,"id":1909},"priorExtent":{"__isSmartRef__":true,"id":1910},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1829},"lighterFill":{"__isSmartRef__":true,"id":1911},"label":{"__isSmartRef__":true,"id":1891},"owner":{"__isSmartRef__":true,"id":1797},"layout":{"__isSmartRef__":true,"id":1920},"attributeConnections":[{"__isSmartRef__":true,"id":1921},{"__isSmartRef__":true,"id":1923}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"1891":{"submorphs":[],"scripts":[],"id":3666,"renderContextTable":{"__isSmartRef__":true,"id":1892},"textChunks":[{"__isSmartRef__":true,"id":1893}],"shape":{"__isSmartRef__":true,"id":1895},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1899},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","eventHandler":{"__isSmartRef__":true,"id":1900},"_Position":{"__isSmartRef__":true,"id":1901},"priorExtent":{"__isSmartRef__":true,"id":1902},"_MaxTextWidth":null,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1890},"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"_PointerEvents":"none","_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"1892":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML"},"1893":{"style":{"__isSmartRef__":true,"id":1894},"chunkOwner":{"__isSmartRef__":true,"id":1891},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1894":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1895":{"_Position":{"__isSmartRef__":true,"id":1896},"renderContextTable":{"__isSmartRef__":true,"id":1897},"_Extent":{"__isSmartRef__":true,"id":1898},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1782},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1896":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1897":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1898":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1899":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1900":{"morph":{"__isSmartRef__":true,"id":1891},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1901":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1902":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1903":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"1904":{"_Position":{"__isSmartRef__":true,"id":1905},"renderContextTable":{"__isSmartRef__":true,"id":1906},"_Extent":{"__isSmartRef__":true,"id":1907},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1828},"_Fill":{"__isSmartRef__":true,"id":1829},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1905":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1906":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1907":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1908":{"morph":{"__isSmartRef__":true,"id":1890},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1909":{"x":611,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1910":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1911":{"stops":[{"__isSmartRef__":true,"id":1912},{"__isSmartRef__":true,"id":1914},{"__isSmartRef__":true,"id":1916},{"__isSmartRef__":true,"id":1918}],"vector":{"__isSmartRef__":true,"id":1838},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1912":{"offset":0,"color":{"__isSmartRef__":true,"id":1913}},"1913":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1914":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1915}},"1915":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1916":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1917}},"1917":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1918":{"offset":1,"color":{"__isSmartRef__":true,"id":1919}},"1919":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1920":{"moveHorizontal":true},"1921":{"sourceObj":{"__isSmartRef__":true,"id":1890},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":1796},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1922},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1922":{"source":{"__isSmartRef__":true,"id":1890},"target":{"__isSmartRef__":true,"id":1796}},"1923":{"sourceObj":{"__isSmartRef__":true,"id":1890},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1796},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1924},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1924":{"source":{"__isSmartRef__":true,"id":1890},"target":{"__isSmartRef__":true,"id":1796}},"1925":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"1926":{"_Position":{"__isSmartRef__":true,"id":1927},"renderContextTable":{"__isSmartRef__":true,"id":1928},"_Extent":{"__isSmartRef__":true,"id":1929},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1930},"_Fill":{"__isSmartRef__":true,"id":1931},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1927":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1928":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1929":{"x":650,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1930":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1931":{"stops":[{"__isSmartRef__":true,"id":1932},{"__isSmartRef__":true,"id":1934},{"__isSmartRef__":true,"id":1936}],"vector":{"__isSmartRef__":true,"id":1938},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1932":{"offset":0,"color":{"__isSmartRef__":true,"id":1933}},"1933":{"r":0.8600000000000001,"g":0.8600000000000001,"b":0.8600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1934":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1935}},"1935":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1936":{"offset":1,"color":{"__isSmartRef__":true,"id":1937}},"1937":{"r":0.8600000000000001,"g":0.8600000000000001,"b":0.8600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1938":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1939":{"resizeWidth":true,"adjustForNewBounds":true},"1940":{"morph":{"__isSmartRef__":true,"id":1797},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1941":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1942":{"x":650,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1943":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"1944":{"renderContextTable":{"__isSmartRef__":true,"id":1945},"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_Extent":{"__isSmartRef__":true,"id":1946},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1945":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1946":{"x":650,"y":317,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1947":{"adjustForNewBounds":true},"1948":{"morph":{"__isSmartRef__":true,"id":1796},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1949":{"x":650,"y":317,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1950":{"partsSpaceName":"PartsBin/Server/","__SourceModuleName__":"Global.lively.PartsBin","requiredModules":["server.nodejs.WebInterface"],"migrationLevel":2,"comment":"Access to the lively-kernel.org shell using nodejs.","partName":"CommandLine","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1951":{"x":373,"y":247,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1952":{"x":13,"y":234,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1953":{"setupConnections":{"__isSmartRef__":true,"id":1954},"exec":{"__isSmartRef__":true,"id":1957},"log":{"__isSmartRef__":true,"id":1960},"reset":{"__isSmartRef__":true,"id":1963}},"1954":{"varMapping":{"__isSmartRef__":true,"id":1955},"source":"function setupConnections() {\n connect(this, 'serverResult', this, 'log')\n connect(this.get('inputLine'), 'savedTextString', this, 'exec')\n connect(this.get('logWindow'), 'exec', this, 'exec')\n connect(this, 'serverResult', this.get('logWindow'), 'serverResult')\n}","funcProperties":{"__isSmartRef__":true,"id":1956},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1955":{"this":{"__isSmartRef__":true,"id":1760}},"1956":{},"1957":{"varMapping":{"__isSmartRef__":true,"id":1958},"source":"function exec(cmdString) {\n cmdString = cmdString || this.get('inputLine').textString;\n var wd = \"/home/nodejs/svn/webwerkstatt/\" \n var cmdExec = new CommandLineServerInterface();\n connect(cmdExec, 'result', this, 'serverResult', {converter: function(ea) { return String(ea.stdout) }})\n this.log(wd + \"$ \" + cmdString)\n cmdExec.runCommand(cmdString, wd)\n}","funcProperties":{"__isSmartRef__":true,"id":1959},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1958":{"this":{"__isSmartRef__":true,"id":1760}},"1959":{},"1960":{"varMapping":{"__isSmartRef__":true,"id":1961},"source":"function log(s) {\n this.get('logWindow').textString += '\\n' + s\n this.get('logWindow').scrollToBottom();\n}","funcProperties":{"__isSmartRef__":true,"id":1962},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1961":{"this":{"__isSmartRef__":true,"id":1760}},"1962":{},"1963":{"varMapping":{"__isSmartRef__":true,"id":1964},"source":"function reset() {\n this.get('logWindow').textString = '';\n this.get('inputLine').textString = 'ls';\n this.connections = {exec: {}, serverResult: {}}\n this.get('logWindow').connections = {exec: {}, serverResult: {}}\n}","funcProperties":{"__isSmartRef__":true,"id":1965},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1964":{"this":{"__isSmartRef__":true,"id":1760}},"1965":{},"1966":{"sourceObj":{"__isSmartRef__":true,"id":1743},"sourceAttrName":"serverResult","targetObj":{"__isSmartRef__":true,"id":1967},"targetMethodName":"addDataColumnAndRender","visualConnector":{"__isSmartRef__":true,"id":1729},"converterString":"function converter(s) {\n idleValues = Strings.tableize(s).slice(3,5).invoke('last')\n return idleValues.collect(function(ea) {return 100 - ea})\n}\n\n","__SourceModuleName__":"Global.lively.bindings","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2191},"__LivelyClassName__":"AttributeConnection"},"1967":{"submorphs":[],"scripts":[],"id":3204,"shape":{"__isSmartRef__":true,"id":1968},"droppingEnabled":true,"halosEnabled":true,"data":[[{"__isSmartRef__":true,"id":1972},{"__isSmartRef__":true,"id":1973},{"__isSmartRef__":true,"id":1974},{"__isSmartRef__":true,"id":1975},{"__isSmartRef__":true,"id":1976},{"__isSmartRef__":true,"id":1977},{"__isSmartRef__":true,"id":1978},{"__isSmartRef__":true,"id":1979},{"__isSmartRef__":true,"id":1980},{"__isSmartRef__":true,"id":1981},{"__isSmartRef__":true,"id":1982},{"__isSmartRef__":true,"id":1983},{"__isSmartRef__":true,"id":1984},{"__isSmartRef__":true,"id":1985},{"__isSmartRef__":true,"id":1986},{"__isSmartRef__":true,"id":1987},{"__isSmartRef__":true,"id":1988},{"__isSmartRef__":true,"id":1989},{"__isSmartRef__":true,"id":1990},{"__isSmartRef__":true,"id":1991},{"__isSmartRef__":true,"id":1992},{"__isSmartRef__":true,"id":1993},{"__isSmartRef__":true,"id":1994},{"__isSmartRef__":true,"id":1995},{"__isSmartRef__":true,"id":1996},{"__isSmartRef__":true,"id":1997},{"__isSmartRef__":true,"id":1998},{"__isSmartRef__":true,"id":1999},{"__isSmartRef__":true,"id":2000},{"__isSmartRef__":true,"id":2001},{"__isSmartRef__":true,"id":2002},{"__isSmartRef__":true,"id":2003},{"__isSmartRef__":true,"id":2004},{"__isSmartRef__":true,"id":2005},{"__isSmartRef__":true,"id":2006},{"__isSmartRef__":true,"id":2007},{"__isSmartRef__":true,"id":2008},{"__isSmartRef__":true,"id":2009},{"__isSmartRef__":true,"id":2010},{"__isSmartRef__":true,"id":2011},{"__isSmartRef__":true,"id":2012},{"__isSmartRef__":true,"id":2013},{"__isSmartRef__":true,"id":2014},{"__isSmartRef__":true,"id":2015},{"__isSmartRef__":true,"id":2016},{"__isSmartRef__":true,"id":2017},{"__isSmartRef__":true,"id":2018}],[{"__isSmartRef__":true,"id":2019},{"__isSmartRef__":true,"id":2020},{"__isSmartRef__":true,"id":2021},{"__isSmartRef__":true,"id":2022},{"__isSmartRef__":true,"id":2023},{"__isSmartRef__":true,"id":2024},{"__isSmartRef__":true,"id":2025},{"__isSmartRef__":true,"id":2026},{"__isSmartRef__":true,"id":2027},{"__isSmartRef__":true,"id":2028},{"__isSmartRef__":true,"id":2029},{"__isSmartRef__":true,"id":2030},{"__isSmartRef__":true,"id":2031},{"__isSmartRef__":true,"id":2032},{"__isSmartRef__":true,"id":2033},{"__isSmartRef__":true,"id":2034},{"__isSmartRef__":true,"id":2035},{"__isSmartRef__":true,"id":2036},{"__isSmartRef__":true,"id":2037},{"__isSmartRef__":true,"id":2038},{"__isSmartRef__":true,"id":2039},{"__isSmartRef__":true,"id":2040},{"__isSmartRef__":true,"id":2041},{"__isSmartRef__":true,"id":2042},{"__isSmartRef__":true,"id":2043},{"__isSmartRef__":true,"id":2044},{"__isSmartRef__":true,"id":2045},{"__isSmartRef__":true,"id":2046},{"__isSmartRef__":true,"id":2047},{"__isSmartRef__":true,"id":2048},{"__isSmartRef__":true,"id":2049},{"__isSmartRef__":true,"id":2050},{"__isSmartRef__":true,"id":2051},{"__isSmartRef__":true,"id":2052},{"__isSmartRef__":true,"id":2053},{"__isSmartRef__":true,"id":2054},{"__isSmartRef__":true,"id":2055},{"__isSmartRef__":true,"id":2056},{"__isSmartRef__":true,"id":2057},{"__isSmartRef__":true,"id":2058},{"__isSmartRef__":true,"id":2059},{"__isSmartRef__":true,"id":2060},{"__isSmartRef__":true,"id":2061},{"__isSmartRef__":true,"id":2062},{"__isSmartRef__":true,"id":2063},{"__isSmartRef__":true,"id":2064},{"__isSmartRef__":true,"id":2065}]],"doNotSerialize":["vis","$$globalTransform"],"showsHalos":false,"_Position":{"__isSmartRef__":true,"id":2066},"name":"ProtovisMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":2067},"__SourceModuleName__":"Global.apps.ProtoVisInterface","renderContextTable":{"__isSmartRef__":true,"id":2068},"_Rotation":0,"_Scale":0.9980029960049944,"eventHandler":{"__isSmartRef__":true,"id":2069},"connections":{"__isSmartRef__":true,"id":2070},"owner":{"__isSmartRef__":true,"id":2072},"priorExtent":{"__isSmartRef__":true,"id":2149},"magnets":[{"__isSmartRef__":true,"id":2150}],"attributeConnections":[{"__isSmartRef__":true,"id":2153}],"doNotCopyProperties":["$$globalTransform"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2154},"__LivelyClassName__":"ProtoVisMorph"},"1968":{"position":{"__isSmartRef__":true,"id":1969},"_Extent":{"__isSmartRef__":true,"id":1970},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1971},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1969":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1970":{"x":543.997999003999,"y":276.0120059760062,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1971":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1972":{"x":0,"y":0.5},"1973":{"x":1,"y":0.5},"1974":{"x":2,"y":2.9399999999999977},"1975":{"x":3,"y":9},"1976":{"x":4,"y":0},"1977":{"x":5,"y":2.450000000000003},"1978":{"x":6,"y":2.450000000000003},"1979":{"x":7,"y":1.5},"1980":{"x":8,"y":1},"1981":{"x":9,"y":1.019999999999996},"1982":{"x":10,"y":1.519999999999996},"1983":{"x":11,"y":2.530000000000001},"1984":{"x":12,"y":2.030000000000001},"1985":{"x":13,"y":1.5499999999999972},"1986":{"x":14,"y":1.0400000000000063},"1987":{"x":15,"y":0.5},"1988":{"x":16,"y":0.5},"1989":{"x":17,"y":0.9899999999999949},"1990":{"x":18,"y":1.5400000000000063},"1991":{"x":19,"y":1.0300000000000011},"1992":{"x":20,"y":0.5100000000000051},"1993":{"x":21,"y":1.5499999999999972},"1994":{"x":22,"y":1.9899999999999949},"1995":{"x":23,"y":1.4899999999999949},"1996":{"x":24,"y":1},"1997":{"x":25,"y":0.5},"1998":{"x":26,"y":0.5},"1999":{"x":27,"y":0.5},"2000":{"x":28,"y":0},"2001":{"x":29,"y":0.5},"2002":{"x":30,"y":0.519999999999996},"2003":{"x":31,"y":9.549999999999997},"2004":{"x":32,"y":9.599999999999994},"2005":{"x":33,"y":9.090000000000003},"2006":{"x":34,"y":5.079999999999998},"2007":{"x":35,"y":0.5300000000000011},"2008":{"x":36,"y":1},"2009":{"x":37,"y":0.5},"2010":{"x":38,"y":2.0400000000000063},"2011":{"x":39,"y":1.9699999999999989},"2012":{"x":40,"y":1.4699999999999989},"2013":{"x":41,"y":2.010000000000005},"2014":{"x":42,"y":1.519999999999996},"2015":{"x":43,"y":2.049999999999997},"2016":{"x":44,"y":1.5799999999999983},"2017":{"x":45,"y":1.4699999999999989},"2018":{"x":46,"y":0.980000000000004},"2019":{"x":0,"y":1.0600000000000023},"2020":{"x":1,"y":1},"2021":{"x":2,"y":5.049999999999997},"2022":{"x":3,"y":18},"2023":{"x":4,"y":0},"2024":{"x":5,"y":3.030000000000001},"2025":{"x":6,"y":2.019999999999996},"2026":{"x":7,"y":2},"2027":{"x":8,"y":2.0600000000000023},"2028":{"x":9,"y":2.1299999999999955},"2029":{"x":10,"y":2.1099999999999994},"2030":{"x":11,"y":3.1200000000000045},"2031":{"x":12,"y":2.1299999999999955},"2032":{"x":13,"y":2.1700000000000017},"2033":{"x":14,"y":1.1099999999999994},"2034":{"x":15,"y":1.0100000000000051},"2035":{"x":16,"y":1.019999999999996},"2036":{"x":17,"y":2},"2037":{"x":18,"y":2.200000000000003},"2038":{"x":19,"y":2.200000000000003},"2039":{"x":20,"y":2.1099999999999994},"2040":{"x":21,"y":2.200000000000003},"2041":{"x":22,"y":1.0400000000000063},"2042":{"x":23,"y":2},"2043":{"x":24,"y":2.0799999999999983},"2044":{"x":25,"y":1.0100000000000051},"2045":{"x":26,"y":1.0300000000000011},"2046":{"x":27,"y":1.0300000000000011},"2047":{"x":28,"y":0},"2048":{"x":29,"y":1.0400000000000063},"2049":{"x":30,"y":1.1099999999999994},"2050":{"x":31,"y":9.379999999999995},"2051":{"x":32,"y":10.530000000000001},"2052":{"x":33,"y":10.469999999999999},"2053":{"x":34,"y":2.969999999999999},"2054":{"x":35,"y":3.299999999999997},"2055":{"x":36,"y":2.0400000000000063},"2056":{"x":37,"y":1.0300000000000011},"2057":{"x":38,"y":2.1500000000000057},"2058":{"x":39,"y":3},"2059":{"x":40,"y":2},"2060":{"x":41,"y":3.1200000000000045},"2061":{"x":42,"y":2.1500000000000057},"2062":{"x":43,"y":3.3299999999999983},"2063":{"x":44,"y":2.3299999999999983},"2064":{"x":45,"y":1.980000000000004},"2065":{"x":46,"y":1.980000000000004},"2066":{"x":-253.48227898000812,"y":-190.68801613996595,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2067":{"migrationLevel":2,"partsSpaceName":"PartsBin/Visualization/","__SourceModuleName__":"Global.lively.PartsBin","partName":"ProtovisDrawing","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"2068":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"2069":{"morph":{"__isSmartRef__":true,"id":1967},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2070":{"addDataAndRender":{"__isSmartRef__":true,"id":2071}},"2071":{},"2072":{"submorphs":[{"__isSmartRef__":true,"id":1967},{"__isSmartRef__":true,"id":2073}],"scripts":[],"id":3203,"shape":{"__isSmartRef__":true,"id":2124},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2131},"showsHalos":false,"name":"ProtovisStackDrawing","partsBinMetaInfo":{"__isSmartRef__":true,"id":2132},"__SourceModuleName__":"Global.lively.morphic.Core","_Rotation":0,"_Scale":1.0040100200350561,"renderContextTable":{"__isSmartRef__":true,"id":2133},"eventHandler":{"__isSmartRef__":true,"id":2134},"layout":{"__isSmartRef__":true,"id":2135},"priorExtent":{"__isSmartRef__":true,"id":2136},"connections":{"__isSmartRef__":true,"id":2137},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2139},"__LivelyClassName__":"lively.morphic.Box"},"2073":{"submorphs":[{"__isSmartRef__":true,"id":2074}],"scripts":[],"id":3205,"shape":{"__isSmartRef__":true,"id":2088},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2103},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":2091},"lighterFill":{"__isSmartRef__":true,"id":2104},"label":{"__isSmartRef__":true,"id":2074},"attributeConnections":[{"__isSmartRef__":true,"id":2113},{"__isSmartRef__":true,"id":2115}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","_Rotation":0,"padding":{"__isSmartRef__":true,"id":2120},"name":"resetButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":2121},"_Scale":1.089423869470782,"renderContextTable":{"__isSmartRef__":true,"id":2122},"eventHandler":{"__isSmartRef__":true,"id":2123},"owner":{"__isSmartRef__":true,"id":2072},"__LivelyClassName__":"lively.morphic.Button"},"2074":{"submorphs":[],"scripts":[],"id":3206,"shape":{"__isSmartRef__":true,"id":2075},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":116,"_MaxTextHeight":18,"fixedHeight":true,"allowsInput":false,"_OverflowMode":"visible","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2080},"textColor":{"__isSmartRef__":true,"id":2078},"owner":{"__isSmartRef__":true,"id":2073},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":2081}],"padding":{"__isSmartRef__":true,"id":2083},"_Padding":{"__isSmartRef__":true,"id":2084},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":2085},"_FontFamily":"Helvetica, Sans-Serif","renderContextTable":{"__isSmartRef__":true,"id":2086},"eventHandler":{"__isSmartRef__":true,"id":2087},"_HandStyle":"default","_PointerEvents":"none","_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_Align":"center","__LivelyClassName__":"lively.morphic.Text"},"2075":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":2076},"_Extent":{"__isSmartRef__":true,"id":2077},"_BorderColor":{"__isSmartRef__":true,"id":2078},"renderContextTable":{"__isSmartRef__":true,"id":2079},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2076":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2077":{"x":116,"y":18,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2078":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2079":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"2080":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2081":{"style":{"__isSmartRef__":true,"id":2082},"chunkOwner":{"__isSmartRef__":true,"id":2074},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2082":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2083":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"2084":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"2085":{"x":116,"y":18,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2086":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML"},"2087":{"morph":{"__isSmartRef__":true,"id":2074},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2088":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":2089},"_Extent":{"__isSmartRef__":true,"id":2090},"_Fill":{"__isSmartRef__":true,"id":2091},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2101},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":2102},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2089":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2090":{"x":116,"y":20,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2091":{"stops":[{"__isSmartRef__":true,"id":2092},{"__isSmartRef__":true,"id":2094},{"__isSmartRef__":true,"id":2096},{"__isSmartRef__":true,"id":2098}],"vector":{"__isSmartRef__":true,"id":2100},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"2092":{"offset":0,"color":{"__isSmartRef__":true,"id":2093}},"2093":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2094":{"offset":0.4,"color":{"__isSmartRef__":true,"id":2095}},"2095":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2096":{"offset":0.6,"color":{"__isSmartRef__":true,"id":2097}},"2097":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2098":{"offset":1,"color":{"__isSmartRef__":true,"id":2099}},"2099":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2100":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"2101":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2102":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"2103":{"x":103.58462358410429,"y":-222.1093371082231,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2104":{"stops":[{"__isSmartRef__":true,"id":2105},{"__isSmartRef__":true,"id":2107},{"__isSmartRef__":true,"id":2109},{"__isSmartRef__":true,"id":2111}],"vector":{"__isSmartRef__":true,"id":2100},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"2105":{"offset":0,"color":{"__isSmartRef__":true,"id":2106}},"2106":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2107":{"offset":0.4,"color":{"__isSmartRef__":true,"id":2108}},"2108":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2109":{"offset":0.6,"color":{"__isSmartRef__":true,"id":2110}},"2110":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2111":{"offset":1,"color":{"__isSmartRef__":true,"id":2112}},"2112":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2113":{"sourceObj":{"__isSmartRef__":true,"id":2073},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1967},"targetMethodName":"reset","__SourceModuleName__":"Global.lively.bindings","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":2114},"__LivelyClassName__":"AttributeConnection"},"2114":{"source":{"__isSmartRef__":true,"id":2073},"target":{"__isSmartRef__":true,"id":1967}},"2115":{"sourceObj":{"__isSmartRef__":true,"id":2073},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1967},"targetMethodName":"render","converter":null,"converterString":null,"updaterString":"function ($upd) { this.targetObj.data = [[{x:0, y:0}]]; $upd() }","varMapping":{"__isSmartRef__":true,"id":2116},"__SourceModuleName__":"Global.lively.bindings","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2117},"__LivelyClassName__":"AttributeConnection"},"2116":{"source":{"__isSmartRef__":true,"id":2073},"target":{"__isSmartRef__":true,"id":1967}},"2117":{"updater":{"__isSmartRef__":true,"id":2118}},"2118":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":2116},"source":"function ($upd) { this.targetObj.data = [[{x:0, y:0}]]; $upd() }","funcProperties":{"__isSmartRef__":true,"id":2119},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2119":{},"2120":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"2121":{"partsSpaceName":"PartsBin/Inputs/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"Simple button. Connect to 'fire' to trigger actions when the button is pressed.","partName":"Button","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"2122":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"2123":{"morph":{"__isSmartRef__":true,"id":2073},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2124":{"position":{"__isSmartRef__":true,"id":2125},"_Extent":{"__isSmartRef__":true,"id":2126},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2127},"_Fill":{"__isSmartRef__":true,"id":2128},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":2129},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_Position":{"__isSmartRef__":true,"id":2130},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2125":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2126":{"x":565.1704110039991,"y":359.0546128281011,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2127":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2128":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2129":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"2130":{"x":-261.476262000004,"y":-235.5282360000009,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2131":{"x":1243,"y":473,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2132":{"migrationLevel":2,"partsSpaceName":"PartsBin/Visualization/","__SourceModuleName__":"Global.lively.PartsBin","partName":"ProtovisDrawing","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"2133":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"2134":{"morph":{"__isSmartRef__":true,"id":2072},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2135":{},"2136":{"x":565.1704110039991,"y":361.0546128281011,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2137":{"addDataAndRender":{"__isSmartRef__":true,"id":2138}},"2138":{},"2139":{"addDataAndRender":{"__isSmartRef__":true,"id":2140},"reset":{"__isSmartRef__":true,"id":2143},"setupConnections":{"__isSmartRef__":true,"id":2146}},"2140":{"varMapping":{"__isSmartRef__":true,"id":2141},"source":"function addDataAndRender(data) {\n this.get('ProtovisMorph').addDataAndRender(data)\n}","funcProperties":{"__isSmartRef__":true,"id":2142},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2141":{"this":{"__isSmartRef__":true,"id":2072}},"2142":{},"2143":{"varMapping":{"__isSmartRef__":true,"id":2144},"source":"function reset() {\n this.connections = {addDataAndRender: {}}\n this.get('ProtovisMorph').reset();\n}","funcProperties":{"__isSmartRef__":true,"id":2145},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2144":{"this":{"__isSmartRef__":true,"id":2072}},"2145":{},"2146":{"varMapping":{"__isSmartRef__":true,"id":2147},"source":"function setupConnections() {\n connect(this.get('resetButton'), 'fire', this.get('ProtovisMorph'), 'render',\n {updater: function($upd) { this.targetObj.data = []; $upd() }})\n}","funcProperties":{"__isSmartRef__":true,"id":2148},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2147":{"this":{"__isSmartRef__":true,"id":2072}},"2148":{},"2149":{"x":543.997999003999,"y":275.0120059760062,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2150":{"morph":{"__isSmartRef__":true,"id":1967},"position":{"__isSmartRef__":true,"id":2151},"connectedControlPoints":[{"__isSmartRef__":true,"id":2152}],"__SourceModuleName__":"Global.lively.morphic.Connectors","__LivelyClassName__":"lively.morphic.Magnet"},"2151":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2152":{"morph":{"__isSmartRef__":true,"id":1729},"index":1,"connectedMagnet":{"__isSmartRef__":true,"id":2150},"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"2153":{"sourceObj":{"__isSmartRef__":true,"id":1967},"sourceAttrName":"globalTransform","targetObj":{"__isSmartRef__":true,"id":2152},"targetMethodName":"alignToMagnet","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2154":{"draw":{"__isSmartRef__":true,"id":2155},"prepareForNewRenderContext":{"__isSmartRef__":true,"id":2166},"addDataAndRender":{"__isSmartRef__":true,"id":2173},"reset":{"__isSmartRef__":true,"id":2176},"setChartType":{"__isSmartRef__":true,"id":2179},"drawStackChart":{"__isSmartRef__":true,"id":2162},"setupStackExample":{"__isSmartRef__":true,"id":2182},"addDataColumnAndRender":{"__isSmartRef__":true,"id":2185},"maxYofData":{"__isSmartRef__":true,"id":2188}},"2155":{"varMapping":{"__isSmartRef__":true,"id":2156},"source":"function drawStackChart(w, h) {\n w = w - 30;\n h = h - 25;\n \n var maxX = this.data[0].length,\n maxY = this.maxYofData(this.data) || 10;\n\n var x = pv.Scale.linear(0, maxX).range(0, w),\n y = pv.Scale.linear(0, maxY).range(0, h);\n\n var vis = new pv.Panel()\n .width(w)\n .height(h)\n .bottom(20)\n .left(20)\n .right(10)\n .top(5);\n\n /* X-axis and ticks. */\n vis.add(pv.Rule)\n .data(x.ticks())\n .visible(function(d){return d})\n .left(x)\n .bottom(-5)\n .height(5)\n .anchor(\"bottom\").add(pv.Label)\n .text(x.tickFormat);\n\n /* The stack layout. */\n vis.add(pv.Layout.Stack)\n .layers(this.data)\n .x(function(d){return x(d.x)})\n .y(function(d){return y(d.y)})\n .layer.add(pv.Area);\n\n /* Y-axis and ticks. */\n vis.add(pv.Rule)\n .data(y.ticks(3))\n .bottom(y)\n .strokeStyle(function(d){return d ? \"rgba(128,128,128,.2)\" : \"#000\"})\n .anchor(\"left\").add(pv.Label)\n .text(y.tickFormat);\n\n return vis;\n}","funcProperties":{"__isSmartRef__":true,"id":2161},"__SourceModuleName__":"Global","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2165},"__LivelyClassName__":"lively.Closure"},"2156":{"this":{"__isSmartRef__":true,"id":1967},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2157}},"2157":{"$super":{"__isSmartRef__":true,"id":2158}},"2158":{"varMapping":{"__isSmartRef__":true,"id":2159},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2160},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2159":{"obj":{"__isSmartRef__":true,"id":1967},"name":"draw"},"2160":{},"2161":{"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2162}},"2162":{"varMapping":{"__isSmartRef__":true,"id":2163},"source":"function drawStackChart(w, h) {\n w = w - 30;\n h = h - 25;\n \n var maxX = this.data[0].length,\n maxY = this.maxYofData(this.data) || 10;\n\n var x = pv.Scale.linear(0, maxX).range(0, w),\n y = pv.Scale.linear(0, maxY).range(0, h);\n\n var vis = new pv.Panel()\n .width(w)\n .height(h)\n .bottom(20)\n .left(20)\n .right(10)\n .top(5);\n\n /* X-axis and ticks. */\n vis.add(pv.Rule)\n .data(x.ticks())\n .visible(function(d){return d})\n .left(x)\n .bottom(-5)\n .height(5)\n .anchor(\"bottom\").add(pv.Label)\n .text(x.tickFormat);\n\n /* The stack layout. */\n vis.add(pv.Layout.Stack)\n .layers(this.data)\n .x(function(d){return x(d.x)})\n .y(function(d){return y(d.y)})\n .layer.add(pv.Area);\n\n /* Y-axis and ticks. */\n vis.add(pv.Rule)\n .data(y.ticks(3))\n .bottom(y)\n .strokeStyle(function(d){return d ? \"rgba(128,128,128,.2)\" : \"#000\"})\n .anchor(\"left\").add(pv.Label)\n .text(y.tickFormat);\n\n return vis;\n}","funcProperties":{"__isSmartRef__":true,"id":2164},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2163":{"this":{"__isSmartRef__":true,"id":1967}},"2164":{},"2165":{"originalFunc":{"__isSmartRef__":true,"id":2162}},"2166":{"varMapping":{"__isSmartRef__":true,"id":2167},"source":"function prepareForNewRenderContext(renderCtx) {\n $super(renderCtx);\n lively.bindings.callWhenNotNull(Global, 'pv', this, 'render');\n}","funcProperties":{"__isSmartRef__":true,"id":2172},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2167":{"this":{"__isSmartRef__":true,"id":1967},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2168}},"2168":{"$super":{"__isSmartRef__":true,"id":2169}},"2169":{"varMapping":{"__isSmartRef__":true,"id":2170},"source":"function () {\n\t\t\t\ttry {\n\t\t\t\t\treturn obj.constructor.prototype[name].apply(obj, arguments)\n\t\t\t\t} catch(e) {\n\t\t\t\t\talert('Error in $super call: ' + e + '\\n' + e.stack);\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}","funcProperties":{"__isSmartRef__":true,"id":2171},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2170":{"obj":{"__isSmartRef__":true,"id":1967},"name":"prepareForNewRenderContext"},"2171":{},"2172":{},"2173":{"varMapping":{"__isSmartRef__":true,"id":2174},"source":"function addDataAndRender(data) {\n if (data == null) return;\n\n if ((typeof data == 'object') && !(data instanceof Array))\n data = [data.x, data.y];\n\n if (!this.data)\n this.data = [data];\n else\n this.data.push(data);\n\n\n this.render();\n}","funcProperties":{"__isSmartRef__":true,"id":2175},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2174":{"this":{"__isSmartRef__":true,"id":1967}},"2175":{},"2176":{"varMapping":{"__isSmartRef__":true,"id":2177},"source":"function reset() {\n this.connections = {addDataColumnAndRender: {}}\n this.setupStackExample()\n // this.setChartType('stack');\n}","funcProperties":{"__isSmartRef__":true,"id":2178},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2177":{"this":{"__isSmartRef__":true,"id":1967}},"2178":{},"2179":{"varMapping":{"__isSmartRef__":true,"id":2180},"source":"function setChartType(cType) {\n\tvar chart = this;\n\t// if (!chart.vis) {\n\t\t// alert('Chart type could not be set. Chart is missing!');\n\t\t// chart.render();\n\t\t// return;\n\t// }\n\n\tswitch (cType.toLowerCase()) {\n\tcase 'stack':\n\t\tchart.drawStackChart.asScriptOf(chart, 'draw');\n\t\tbreak;\n\n\tdefault:\n\t\talert('The chart type \"' + cType + '\" is unknown!');\n\t\treturn;\n\t}\n this.render()\n}","funcProperties":{"__isSmartRef__":true,"id":2181},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2180":{"this":{"__isSmartRef__":true,"id":1967}},"2181":{},"2182":{"varMapping":{"__isSmartRef__":true,"id":2183},"source":"function setupStackExample() {\n // this.setupStackExample()\n \n this.data = pv.range(4).map(function() {\n return pv.range(0, 10, .1).map(function(x) {\n return {x: x, y: Math.sin(x) + Math.random() * .5 + 2};\n });\n });\n // this.data = [\n // [{x:0, y:0}, { x: 1, y: 1}]\n // ]\n this.setChartType('stack')\n\n // this.render();\n}","funcProperties":{"__isSmartRef__":true,"id":2184},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2183":{"this":{"__isSmartRef__":true,"id":1967}},"2184":{},"2185":{"varMapping":{"__isSmartRef__":true,"id":2186},"source":"function addDataColumnAndRender(data) {\n if (data == null) return;\n \n if (!this.data || data.length !== this.data.length) {\n this.data = []; // reset because of data changed\n }\n\n while (data.length > this.data.length) {\n this.data.push([])\n }\n var x = this.data[0].length ;\n this.data.forEach(function(row, index) {\n row.push({x: x, y: data[index]})\n })\n\n this.render();\n}","funcProperties":{"__isSmartRef__":true,"id":2187},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2186":{"this":{"__isSmartRef__":true,"id":1967}},"2187":{},"2188":{"varMapping":{"__isSmartRef__":true,"id":2189},"source":"function maxYofData(data) {\n // this.maxYofData([[{x: 1, y:1}]])\n // this.maxYofData([[{x: 1, y:1}, {x: 2, y:2}],[{x: 1, y:2},{x: 2, y:3}]])\n // this.maxYofData(this.data)\n // data = this.data\n\n if (!data) return undefined;\n\n var xlength = data[0].length\n var ylength = data.length\n var sums = []\n // when the data collections are layed out weired I have to do it manually..\n for(var i=0; i < xlength; i++) {\n var s = 0;\n for(var j=0; j < ylength; j++) {\n s += data[j][i].y\n };\n sums.push(s)\n }\n return pv.max(sums)\n}","funcProperties":{"__isSmartRef__":true,"id":2190},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2189":{"this":{"__isSmartRef__":true,"id":1967}},"2190":{},"2191":{"converter":{"__isSmartRef__":true,"id":2192}},"2192":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":2193},"source":"function converter(s) {\n idleValues = Strings.tableize(s).slice(3,5).invoke('last')\n return idleValues.collect(function(ea) {return 100 - ea})\n}\n\n","funcProperties":{"__isSmartRef__":true,"id":2194},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2193":{},"2194":{},"2195":{"sourceObj":{"__isSmartRef__":true,"id":1743},"sourceAttrName":"globalTransform","targetObj":{"__isSmartRef__":true,"id":1741},"targetMethodName":"alignToMagnet","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2196":{"exec":{"__isSmartRef__":true,"id":2197},"serverResult":{"__isSmartRef__":true,"id":2198}},"2197":{},"2198":{},"2199":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2200":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2201":{"morphMenuItems":{"__isSmartRef__":true,"id":2202}},"2202":{"varMapping":{"__isSmartRef__":true,"id":2203},"source":"function morphMenuItems() {\n var visualConnector = this, con = this.con, world = this.world();\n var items = [\n ['edit converter', function() {\n var source = con.converterString || 'function converter(value) {\\n return value\\n}',\n editor = new lively.morphic.Text(new Rectangle(0,0, 400, 200), source);\n editor.doitContext = con;\n connect(editor, 'savedTextString', con, 'converterString', {updater:\n function($upd, source) { this.targetObj.converter = null; $upd(source) }});\n connect(editor, 'savedTextString', world, 'alertOK', {converter: \n function() { return 'setting new converter' }})\n editor.applyStyle({syntaxHighlighting: true, fontFamily: 'Courier', resizeWidth: true, resizeHeight: true});\n var title = con.targetObj.name && con.sourceObj.name ?\n 'Editor for ' + con.targetObj.name + ' -> ' + con.sourceObj.name :\n 'Editor for converter function';\n var window = world.addFramedMorph(editor, title)\n window.align(window.bounds().topCenter(), visualConnector.bounds().bottomCenter())\n }],\n ['hide', function() {\n visualConnector.disconnectFromMagnets();\n visualConnector.remove();\n }],\n ['disconnect', function() {\n alertOK('Disconnected ' + visualConnector.con);\n visualConnector.con.visualDisconnect();\n }],\n ['cancel', function() {}],\n ];\n return items;\n }","funcProperties":{"__isSmartRef__":true,"id":2208},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2203":{"this":{"__isSmartRef__":true,"id":1729},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2204}},"2204":{"$super":{"__isSmartRef__":true,"id":2205}},"2205":{"varMapping":{"__isSmartRef__":true,"id":2206},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2207},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2206":{"obj":{"__isSmartRef__":true,"id":1729},"name":"morphMenuItems"},"2207":{},"2208":{},"2209":{"sourceObj":{"__isSmartRef__":true,"id":1648},"sourceAttrName":"globalTransform","targetObj":{"__isSmartRef__":true,"id":1646},"targetMethodName":"alignToMagnet","dependendConnections":[{"__isSmartRef__":true,"id":2210},{"__isSmartRef__":true,"id":2211},{"__isSmartRef__":true,"id":2212},{"__isSmartRef__":true,"id":2213},{"__isSmartRef__":true,"id":2215},{"__isSmartRef__":true,"id":2282},{"__isSmartRef__":true,"id":2283},{"__isSmartRef__":true,"id":2284},{"__isSmartRef__":true,"id":2210},{"__isSmartRef__":true,"id":2211},{"__isSmartRef__":true,"id":2212},{"__isSmartRef__":true,"id":2213},{"__isSmartRef__":true,"id":2215},{"__isSmartRef__":true,"id":2282},{"__isSmartRef__":true,"id":2283},{"__isSmartRef__":true,"id":2284},{"__isSmartRef__":true,"id":2210},{"__isSmartRef__":true,"id":2211},{"__isSmartRef__":true,"id":2212},{"__isSmartRef__":true,"id":2213},{"__isSmartRef__":true,"id":2215},{"__isSmartRef__":true,"id":2282},{"__isSmartRef__":true,"id":2283},{"__isSmartRef__":true,"id":2284},{"__isSmartRef__":true,"id":2210},{"__isSmartRef__":true,"id":2211},{"__isSmartRef__":true,"id":2212},{"__isSmartRef__":true,"id":2213},{"__isSmartRef__":true,"id":2215},{"__isSmartRef__":true,"id":2282},{"__isSmartRef__":true,"id":2283},{"__isSmartRef__":true,"id":2284}],"oldTransform":{"__isSmartRef__":true,"id":2297},"__SourceModuleName__":"Global.lively.bindings.GeometryBindings","__LivelyClassName__":"lively.morphic.GeometryTransformConnection"},"2210":{"sourceObj":{"__isSmartRef__":true,"id":1648},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":2209},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":2209},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2211":{"sourceObj":{"__isSmartRef__":true,"id":1648},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":2209},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":2209},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2212":{"sourceObj":{"__isSmartRef__":true,"id":1648},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":2209},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":2209},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2213":{"sourceObj":{"__isSmartRef__":true,"id":1648},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":2209},"targetMethodName":"updateOwners","converter":null,"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":2214},"dependedBy":{"__isSmartRef__":true,"id":2209},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2214":{"source":{"__isSmartRef__":true,"id":1648},"target":{"__isSmartRef__":true,"id":2209}},"2215":{"sourceObj":{"__isSmartRef__":true,"id":2216},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":2209},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":2209},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2216":{"submorphs":[{"__isSmartRef__":true,"id":1648},{"__isSmartRef__":true,"id":2217}],"scripts":[],"id":2618,"shape":{"__isSmartRef__":true,"id":2268},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"ProtovisStackDrawing","partsBinMetaInfo":{"__isSmartRef__":true,"id":2275},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":2276},"eventHandler":{"__isSmartRef__":true,"id":2277},"layout":{"__isSmartRef__":true,"id":2278},"priorExtent":{"__isSmartRef__":true,"id":2279},"connections":{"__isSmartRef__":true,"id":2280},"attributeConnections":[{"__isSmartRef__":true,"id":2215},{"__isSmartRef__":true,"id":2282},{"__isSmartRef__":true,"id":2283},{"__isSmartRef__":true,"id":2284}],"doNotSerialize":["$$_Position","$$_Scale","$$_Rotation","$$owner"],"doNotCopyProperties":["$$_Position","$$_Scale","$$_Rotation","$$owner"],"_Position":{"__isSmartRef__":true,"id":2286},"_Scale":1.0040100200350561,"_Rotation":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2287},"__LivelyClassName__":"lively.morphic.Box"},"2217":{"submorphs":[{"__isSmartRef__":true,"id":2218}],"scripts":[],"id":2620,"shape":{"__isSmartRef__":true,"id":2232},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2247},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":2235},"lighterFill":{"__isSmartRef__":true,"id":2248},"label":{"__isSmartRef__":true,"id":2218},"attributeConnections":[{"__isSmartRef__":true,"id":2257},{"__isSmartRef__":true,"id":2259}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","_Rotation":0,"padding":{"__isSmartRef__":true,"id":2264},"name":"resetButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":2265},"_Scale":1.089423869470782,"renderContextTable":{"__isSmartRef__":true,"id":2266},"eventHandler":{"__isSmartRef__":true,"id":2267},"owner":{"__isSmartRef__":true,"id":2216},"__LivelyClassName__":"lively.morphic.Button"},"2218":{"submorphs":[],"scripts":[],"id":2621,"shape":{"__isSmartRef__":true,"id":2219},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":116,"_MaxTextHeight":18,"fixedHeight":true,"allowsInput":false,"_OverflowMode":"visible","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2224},"textColor":{"__isSmartRef__":true,"id":2222},"owner":{"__isSmartRef__":true,"id":2217},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":2225}],"padding":{"__isSmartRef__":true,"id":2227},"_Padding":{"__isSmartRef__":true,"id":2228},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":2229},"_FontFamily":"Helvetica, Sans-Serif","renderContextTable":{"__isSmartRef__":true,"id":2230},"eventHandler":{"__isSmartRef__":true,"id":2231},"_HandStyle":"default","_PointerEvents":"none","_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_Align":"center","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"__LivelyClassName__":"lively.morphic.Text"},"2219":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":2220},"_Extent":{"__isSmartRef__":true,"id":2221},"_BorderColor":{"__isSmartRef__":true,"id":2222},"renderContextTable":{"__isSmartRef__":true,"id":2223},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2220":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2221":{"x":116,"y":18,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2222":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2223":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"2224":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2225":{"style":{"__isSmartRef__":true,"id":2226},"chunkOwner":{"__isSmartRef__":true,"id":2218},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2226":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2227":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"2228":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"2229":{"x":116,"y":18,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2230":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML"},"2231":{"morph":{"__isSmartRef__":true,"id":2218},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2232":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":2233},"_Extent":{"__isSmartRef__":true,"id":2234},"_Fill":{"__isSmartRef__":true,"id":2235},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2245},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":2246},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2233":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2234":{"x":116,"y":20,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2235":{"stops":[{"__isSmartRef__":true,"id":2236},{"__isSmartRef__":true,"id":2238},{"__isSmartRef__":true,"id":2240},{"__isSmartRef__":true,"id":2242}],"vector":{"__isSmartRef__":true,"id":2244},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"2236":{"offset":0,"color":{"__isSmartRef__":true,"id":2237}},"2237":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2238":{"offset":0.4,"color":{"__isSmartRef__":true,"id":2239}},"2239":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2240":{"offset":0.6,"color":{"__isSmartRef__":true,"id":2241}},"2241":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2242":{"offset":1,"color":{"__isSmartRef__":true,"id":2243}},"2243":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2244":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"2245":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2246":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"2247":{"x":103.58462358410429,"y":-222.1093371082231,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2248":{"stops":[{"__isSmartRef__":true,"id":2249},{"__isSmartRef__":true,"id":2251},{"__isSmartRef__":true,"id":2253},{"__isSmartRef__":true,"id":2255}],"vector":{"__isSmartRef__":true,"id":2244},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"2249":{"offset":0,"color":{"__isSmartRef__":true,"id":2250}},"2250":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2251":{"offset":0.4,"color":{"__isSmartRef__":true,"id":2252}},"2252":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2253":{"offset":0.6,"color":{"__isSmartRef__":true,"id":2254}},"2254":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2255":{"offset":1,"color":{"__isSmartRef__":true,"id":2256}},"2256":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2257":{"sourceObj":{"__isSmartRef__":true,"id":2217},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1648},"targetMethodName":"reset","__SourceModuleName__":"Global.lively.bindings","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":2258},"__LivelyClassName__":"AttributeConnection"},"2258":{"source":{"__isSmartRef__":true,"id":2217},"target":{"__isSmartRef__":true,"id":1648}},"2259":{"sourceObj":{"__isSmartRef__":true,"id":2217},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1648},"targetMethodName":"render","converter":null,"converterString":null,"updaterString":"function ($upd) { this.targetObj.data = [[{x:0, y:0}]]; $upd() }","varMapping":{"__isSmartRef__":true,"id":2260},"__SourceModuleName__":"Global.lively.bindings","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2261},"__LivelyClassName__":"AttributeConnection"},"2260":{"source":{"__isSmartRef__":true,"id":2217},"target":{"__isSmartRef__":true,"id":1648}},"2261":{"updater":{"__isSmartRef__":true,"id":2262}},"2262":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":2260},"source":"function ($upd) { this.targetObj.data = [[{x:0, y:0}]]; $upd() }","funcProperties":{"__isSmartRef__":true,"id":2263},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2263":{},"2264":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"2265":{"partsSpaceName":"PartsBin/Inputs/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"Simple button. Connect to 'fire' to trigger actions when the button is pressed.","partName":"Button","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"2266":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"2267":{"morph":{"__isSmartRef__":true,"id":2217},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2268":{"position":{"__isSmartRef__":true,"id":2269},"_Extent":{"__isSmartRef__":true,"id":2270},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2271},"_Fill":{"__isSmartRef__":true,"id":2272},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":2273},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_Position":{"__isSmartRef__":true,"id":2274},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2269":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2270":{"x":565.1704110039991,"y":359.0546128281011,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2271":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2272":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2273":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"2274":{"x":-261.476262000004,"y":-235.5282360000009,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2275":{"migrationLevel":2,"partsSpaceName":"PartsBin/Visualization/","__SourceModuleName__":"Global.lively.PartsBin","partName":"ProtovisStackDrawing","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"2276":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"2277":{"morph":{"__isSmartRef__":true,"id":2216},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2278":{},"2279":{"x":565.1704110039991,"y":361.0546128281011,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2280":{"addDataAndRender":{"__isSmartRef__":true,"id":2281}},"2281":{},"2282":{"sourceObj":{"__isSmartRef__":true,"id":2216},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":2209},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":2209},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2283":{"sourceObj":{"__isSmartRef__":true,"id":2216},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":2209},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":2209},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2284":{"sourceObj":{"__isSmartRef__":true,"id":2216},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":2209},"targetMethodName":"updateOwners","converter":null,"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":2285},"dependedBy":{"__isSmartRef__":true,"id":2209},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2285":{"source":{"__isSmartRef__":true,"id":2216},"target":{"__isSmartRef__":true,"id":2209}},"2286":{"x":751.769690160597,"y":574.8723829785542,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2287":{"addDataAndRender":{"__isSmartRef__":true,"id":2288},"reset":{"__isSmartRef__":true,"id":2291},"setupConnections":{"__isSmartRef__":true,"id":2294}},"2288":{"varMapping":{"__isSmartRef__":true,"id":2289},"source":"function addDataAndRender(data) {\n this.get('ProtovisMorph').addDataAndRender(data)\n}","funcProperties":{"__isSmartRef__":true,"id":2290},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2289":{"this":{"__isSmartRef__":true,"id":2216}},"2290":{},"2291":{"varMapping":{"__isSmartRef__":true,"id":2292},"source":"function reset() {\n this.connections = {addDataAndRender: {}}\n this.get('ProtovisMorph').reset();\n}","funcProperties":{"__isSmartRef__":true,"id":2293},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2292":{"this":{"__isSmartRef__":true,"id":2216}},"2293":{},"2294":{"varMapping":{"__isSmartRef__":true,"id":2295},"source":"function setupConnections() {\n connect(this.get('resetButton'), 'fire', this.get('ProtovisMorph'), 'render',\n {updater: function($upd) { this.targetObj.data = []; $upd() }})\n}","funcProperties":{"__isSmartRef__":true,"id":2296},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2295":{"this":{"__isSmartRef__":true,"id":2216}},"2296":{},"2297":{"d":1.0020050080140206,"a":1.0020050080140206,"f":383.41970407342194,"e":497.2709421633473,"c":0,"b":0,"matrix_":{"__isSmartRef__":true,"id":2298},"__SourceModuleName__":"Global.lively.morphic.Core","__LivelyClassName__":"lively.morphic.Similitude"},"2298":{"a":1.0020050080140206,"b":0,"c":0,"d":1.0020050080140206,"e":497.2709421633473,"f":383.41970407342194,"__SourceModuleName__":"Global.lively.morphic.Core","__LivelyClassName__":"lively.morphic.Similitude"},"2299":{"x":-253.48227898000812,"y":-190.68801613996595,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2300":{"draw":{"__isSmartRef__":true,"id":2301},"prepareForNewRenderContext":{"__isSmartRef__":true,"id":2312},"addDataAndRender":{"__isSmartRef__":true,"id":2319},"reset":{"__isSmartRef__":true,"id":2322},"setChartType":{"__isSmartRef__":true,"id":2325},"drawStackChart":{"__isSmartRef__":true,"id":2308},"setupStackExample":{"__isSmartRef__":true,"id":2328},"addDataColumnAndRender":{"__isSmartRef__":true,"id":2331},"maxYofData":{"__isSmartRef__":true,"id":2334}},"2301":{"varMapping":{"__isSmartRef__":true,"id":2302},"source":"function drawStackChart(w, h) {\n w = w - 30;\n h = h - 25;\n \n var maxX = this.data[0].length,\n maxY = this.maxYofData(this.data) || 10;\n\n var x = pv.Scale.linear(0, maxX).range(0, w),\n y = pv.Scale.linear(0, maxY).range(0, h);\n\n var vis = new pv.Panel()\n .width(w)\n .height(h)\n .bottom(20)\n .left(20)\n .right(10)\n .top(5);\n\n /* X-axis and ticks. */\n vis.add(pv.Rule)\n .data(x.ticks())\n .visible(function(d){return d})\n .left(x)\n .bottom(-5)\n .height(5)\n .anchor(\"bottom\").add(pv.Label)\n .text(x.tickFormat);\n\n /* The stack layout. */\n vis.add(pv.Layout.Stack)\n .layers(this.data)\n .x(function(d){return x(d.x)})\n .y(function(d){return y(d.y)})\n .layer.add(pv.Area);\n\n /* Y-axis and ticks. */\n vis.add(pv.Rule)\n .data(y.ticks(3))\n .bottom(y)\n .strokeStyle(function(d){return d ? \"rgba(128,128,128,.2)\" : \"#000\"})\n .anchor(\"left\").add(pv.Label)\n .text(y.tickFormat);\n\n return vis;\n}","funcProperties":{"__isSmartRef__":true,"id":2307},"__SourceModuleName__":"Global","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2311},"__LivelyClassName__":"lively.Closure"},"2302":{"this":{"__isSmartRef__":true,"id":1648},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2303}},"2303":{"$super":{"__isSmartRef__":true,"id":2304}},"2304":{"varMapping":{"__isSmartRef__":true,"id":2305},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2306},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2305":{"obj":{"__isSmartRef__":true,"id":1648},"name":"draw"},"2306":{},"2307":{"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":2308}},"2308":{"varMapping":{"__isSmartRef__":true,"id":2309},"source":"function drawStackChart(w, h) {\n w = w - 30;\n h = h - 25;\n \n var maxX = this.data[0].length,\n maxY = this.maxYofData(this.data) || 10;\n\n var x = pv.Scale.linear(0, maxX).range(0, w),\n y = pv.Scale.linear(0, maxY).range(0, h);\n\n var vis = new pv.Panel()\n .width(w)\n .height(h)\n .bottom(20)\n .left(20)\n .right(10)\n .top(5);\n\n /* X-axis and ticks. */\n vis.add(pv.Rule)\n .data(x.ticks())\n .visible(function(d){return d})\n .left(x)\n .bottom(-5)\n .height(5)\n .anchor(\"bottom\").add(pv.Label)\n .text(x.tickFormat);\n\n /* The stack layout. */\n vis.add(pv.Layout.Stack)\n .layers(this.data)\n .x(function(d){return x(d.x)})\n .y(function(d){return y(d.y)})\n .layer.add(pv.Area);\n\n /* Y-axis and ticks. */\n vis.add(pv.Rule)\n .data(y.ticks(3))\n .bottom(y)\n .strokeStyle(function(d){return d ? \"rgba(128,128,128,.2)\" : \"#000\"})\n .anchor(\"left\").add(pv.Label)\n .text(y.tickFormat);\n\n return vis;\n}","funcProperties":{"__isSmartRef__":true,"id":2310},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2309":{"this":{"__isSmartRef__":true,"id":1648}},"2310":{},"2311":{"originalFunc":{"__isSmartRef__":true,"id":2308}},"2312":{"varMapping":{"__isSmartRef__":true,"id":2313},"source":"function prepareForNewRenderContext(renderCtx) {\n $super(renderCtx);\n lively.bindings.callWhenNotNull(Global, 'pv', this, 'render');\n}","funcProperties":{"__isSmartRef__":true,"id":2318},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2313":{"this":{"__isSmartRef__":true,"id":1648},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2314}},"2314":{"$super":{"__isSmartRef__":true,"id":2315}},"2315":{"varMapping":{"__isSmartRef__":true,"id":2316},"source":"function () {\n\t\t\t\ttry {\n\t\t\t\t\treturn obj.constructor.prototype[name].apply(obj, arguments)\n\t\t\t\t} catch(e) {\n\t\t\t\t\talert('Error in $super call: ' + e + '\\n' + e.stack);\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}","funcProperties":{"__isSmartRef__":true,"id":2317},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2316":{"obj":{"__isSmartRef__":true,"id":1648},"name":"prepareForNewRenderContext"},"2317":{},"2318":{},"2319":{"varMapping":{"__isSmartRef__":true,"id":2320},"source":"function addDataAndRender(data) {\n if (data == null) return;\n\n if ((typeof data == 'object') && !(data instanceof Array))\n data = [data.x, data.y];\n\n if (!this.data)\n this.data = [data];\n else\n this.data.push(data);\n\n\n this.render();\n}","funcProperties":{"__isSmartRef__":true,"id":2321},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2320":{"this":{"__isSmartRef__":true,"id":1648}},"2321":{},"2322":{"varMapping":{"__isSmartRef__":true,"id":2323},"source":"function reset() {\n this.connections = {addDataColumnAndRender: {}}\n this.setupStackExample()\n // this.setChartType('stack');\n}","funcProperties":{"__isSmartRef__":true,"id":2324},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2323":{"this":{"__isSmartRef__":true,"id":1648}},"2324":{},"2325":{"varMapping":{"__isSmartRef__":true,"id":2326},"source":"function setChartType(cType) {\n\tvar chart = this;\n\t// if (!chart.vis) {\n\t\t// alert('Chart type could not be set. Chart is missing!');\n\t\t// chart.render();\n\t\t// return;\n\t// }\n\n\tswitch (cType.toLowerCase()) {\n\tcase 'stack':\n\t\tchart.drawStackChart.asScriptOf(chart, 'draw');\n\t\tbreak;\n\n\tdefault:\n\t\talert('The chart type \"' + cType + '\" is unknown!');\n\t\treturn;\n\t}\n this.render()\n}","funcProperties":{"__isSmartRef__":true,"id":2327},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2326":{"this":{"__isSmartRef__":true,"id":1648}},"2327":{},"2328":{"varMapping":{"__isSmartRef__":true,"id":2329},"source":"function setupStackExample() {\n // this.setupStackExample()\n \n this.data = pv.range(4).map(function() {\n return pv.range(0, 10, .1).map(function(x) {\n return {x: x, y: Math.sin(x) + Math.random() * .5 + 2};\n });\n });\n // this.data = [\n // [{x:0, y:0}, { x: 1, y: 1}]\n // ]\n this.setChartType('stack')\n\n // this.render();\n}","funcProperties":{"__isSmartRef__":true,"id":2330},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2329":{"this":{"__isSmartRef__":true,"id":1648}},"2330":{},"2331":{"varMapping":{"__isSmartRef__":true,"id":2332},"source":"function addDataColumnAndRender(data) {\n if (data == null) return;\n \n if (!this.data || data.length !== this.data.length) {\n this.data = []; // reset because of data changed\n }\n\n while (data.length > this.data.length) {\n this.data.push([])\n }\n var x = this.data[0].length ;\n this.data.forEach(function(row, index) {\n row.push({x: x, y: data[index]})\n })\n\n this.render();\n}","funcProperties":{"__isSmartRef__":true,"id":2333},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2332":{"this":{"__isSmartRef__":true,"id":1648}},"2333":{},"2334":{"varMapping":{"__isSmartRef__":true,"id":2335},"source":"function maxYofData(data) {\n // this.maxYofData([[{x: 1, y:1}]])\n // this.maxYofData([[{x: 1, y:1}, {x: 2, y:2}],[{x: 1, y:2},{x: 2, y:3}]])\n // this.maxYofData(this.data)\n // data = this.data\n\n if (!data) return undefined;\n\n var xlength = data[0].length\n var ylength = data.length\n var sums = []\n // when the data collections are layed out weired I have to do it manually..\n for(var i=0; i < xlength; i++) {\n var s = 0;\n for(var j=0; j < ylength; j++) {\n s += data[j][i].y\n };\n sums.push(s)\n }\n return pv.max(sums)\n}","funcProperties":{"__isSmartRef__":true,"id":2336},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2335":{"this":{"__isSmartRef__":true,"id":1648}},"2336":{},"2337":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2338":{"sourceObj":{"__isSmartRef__":true,"id":1617},"sourceAttrName":"value","targetObj":{"__isSmartRef__":true,"id":1648},"targetMethodName":"addDataColumnAndRender","visualConnector":{"__isSmartRef__":true,"id":1634},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2339":{"x":-177.2901303182059,"y":99.60119680798084,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2340":{"morphMenuItems":{"__isSmartRef__":true,"id":2341}},"2341":{"varMapping":{"__isSmartRef__":true,"id":2342},"source":"function morphMenuItems() {\n var visualConnector = this, con = this.con, world = this.world();\n var items = [\n ['edit converter', function() {\n var source = con.converterString || 'function converter(value) {\\n return value\\n}',\n editor = new lively.morphic.Text(new Rectangle(0,0, 400, 200), source);\n editor.doitContext = con;\n connect(editor, 'savedTextString', con, 'converterString', {updater:\n function($upd, source) { this.targetObj.converter = null; $upd(source) }});\n connect(editor, 'savedTextString', world, 'alertOK', {converter: \n function() { return 'setting new converter' }})\n editor.applyStyle({syntaxHighlighting: true, fontFamily: 'Courier', resizeWidth: true, resizeHeight: true});\n var title = con.targetObj.name && con.sourceObj.name ?\n 'Editor for ' + con.targetObj.name + ' -> ' + con.sourceObj.name :\n 'Editor for converter function';\n var window = world.addFramedMorph(editor, title)\n window.align(window.bounds().topCenter(), visualConnector.bounds().bottomCenter())\n }],\n ['hide', function() {\n visualConnector.disconnectFromMagnets();\n visualConnector.remove();\n }],\n ['disconnect', function() {\n alertOK('Disconnected ' + visualConnector.con);\n visualConnector.con.visualDisconnect();\n }],\n ['cancel', function() {}],\n ];\n return items;\n }","funcProperties":{"__isSmartRef__":true,"id":2347},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2342":{"this":{"__isSmartRef__":true,"id":1634},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2343}},"2343":{"$super":{"__isSmartRef__":true,"id":2344}},"2344":{"varMapping":{"__isSmartRef__":true,"id":2345},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2346},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2345":{"obj":{"__isSmartRef__":true,"id":1634},"name":"morphMenuItems"},"2346":{},"2347":{},"2348":{"morph":{"__isSmartRef__":true,"id":2349},"index":1,"connectedMagnet":{"__isSmartRef__":true,"id":1631},"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"2349":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2350},"id":5971,"renderContextTable":{"__isSmartRef__":true,"id":2358},"eventHandler":{"__isSmartRef__":true,"id":2359},"droppingEnabled":true,"halosEnabled":true,"controlPoints":[{"__isSmartRef__":true,"id":2360},{"__isSmartRef__":true,"id":2348}],"con":{"__isSmartRef__":true,"id":1616},"showsMorphMenu":true,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2386},"__LivelyClassName__":"lively.morphic.Path"},"2350":{"dontChangeShape":false,"cachedVertices":[{"__isSmartRef__":true,"id":2351},{"__isSmartRef__":true,"id":2352}],"_PathElements":[{"__isSmartRef__":true,"id":2353},{"__isSmartRef__":true,"id":2354}],"renderContextTable":{"__isSmartRef__":true,"id":2355},"_Position":{"__isSmartRef__":true,"id":2356},"_Extent":{"__isSmartRef__":true,"id":2357},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1643},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"2351":{"x":181.26620212668476,"y":424.2931223381578,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2352":{"x":260.4825518623436,"y":463.98005984039827,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2353":{"isAbsolute":true,"x":181.26620212668476,"y":424.2931223381578,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"2354":{"isAbsolute":true,"x":260.4825518623436,"y":463.98005984039827,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"2355":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"2356":{"x":181.26620212668476,"y":424.2931223381578,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2357":{"x":79.21634973565884,"y":39.68693750224048,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2358":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"2359":{"morph":{"__isSmartRef__":true,"id":2349},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2360":{"morph":{"__isSmartRef__":true,"id":2349},"index":0,"connectedMagnet":{"__isSmartRef__":true,"id":2361},"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"2361":{"morph":{"__isSmartRef__":true,"id":1530},"position":{"__isSmartRef__":true,"id":2362},"connectedControlPoints":[{"__isSmartRef__":true,"id":2360},{"__isSmartRef__":true,"id":2363}],"__SourceModuleName__":"Global.lively.morphic.Connectors","__LivelyClassName__":"lively.morphic.Magnet"},"2362":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2363":{"morph":{"__isSmartRef__":true,"id":2364},"index":1,"connectedMagnet":{"__isSmartRef__":true,"id":2361},"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"2364":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2365},"id":6859,"renderContextTable":{"__isSmartRef__":true,"id":2373},"eventHandler":{"__isSmartRef__":true,"id":2374},"droppingEnabled":true,"halosEnabled":true,"controlPoints":[{"__isSmartRef__":true,"id":2375},{"__isSmartRef__":true,"id":2363}],"con":{"__isSmartRef__":true,"id":1529},"showsMorphMenu":true,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2378},"__LivelyClassName__":"lively.morphic.Path"},"2365":{"dontChangeShape":false,"cachedVertices":[{"__isSmartRef__":true,"id":2366},{"__isSmartRef__":true,"id":2367}],"_PathElements":[{"__isSmartRef__":true,"id":2368},{"__isSmartRef__":true,"id":2369}],"renderContextTable":{"__isSmartRef__":true,"id":2370},"_Position":{"__isSmartRef__":true,"id":2371},"_Extent":{"__isSmartRef__":true,"id":2372},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1643},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"2366":{"x":184.25423803092437,"y":328.67597340249654,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2367":{"x":181.26620212668476,"y":424.2931223381578,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2368":{"isAbsolute":true,"x":184.25423803092437,"y":328.67597340249654,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"2369":{"isAbsolute":true,"x":181.26620212668476,"y":424.2931223381578,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"2370":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"2371":{"x":181.26620212668476,"y":328.67597340249654,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2372":{"x":2.9880359042396094,"y":95.61714893566125,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2373":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"2374":{"morph":{"__isSmartRef__":true,"id":2364},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2375":{"morph":{"__isSmartRef__":true,"id":2364},"index":0,"connectedMagnet":{"__isSmartRef__":true,"id":2376},"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"2376":{"morph":{"__isSmartRef__":true,"id":1488},"position":{"__isSmartRef__":true,"id":2377},"connectedControlPoints":[{"__isSmartRef__":true,"id":2375}],"__SourceModuleName__":"Global.lively.morphic.Connectors","__LivelyClassName__":"lively.morphic.Magnet"},"2377":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2378":{"morphMenuItems":{"__isSmartRef__":true,"id":2379}},"2379":{"varMapping":{"__isSmartRef__":true,"id":2380},"source":"function morphMenuItems() {\n var visualConnector = this, con = this.con, world = this.world();\n var items = [\n ['edit converter', function() {\n var source = con.converterString || 'function converter(value) {\\n return value\\n}',\n editor = new lively.morphic.Text(new Rectangle(0,0, 400, 200), source);\n editor.doitContext = con;\n connect(editor, 'savedTextString', con, 'converterString', {updater:\n function($upd, source) { this.targetObj.converter = null; $upd(source) }});\n connect(editor, 'savedTextString', world, 'alertOK', {converter: \n function() { return 'setting new converter' }})\n editor.applyStyle({syntaxHighlighting: true, fontFamily: 'Courier', resizeWidth: true, resizeHeight: true});\n var title = con.targetObj.name && con.sourceObj.name ?\n 'Editor for ' + con.targetObj.name + ' -> ' + con.sourceObj.name :\n 'Editor for converter function';\n var window = world.addFramedMorph(editor, title)\n window.align(window.bounds().topCenter(), visualConnector.bounds().bottomCenter())\n }],\n ['hide', function() {\n visualConnector.disconnectFromMagnets();\n visualConnector.remove();\n }],\n ['disconnect', function() {\n alertOK('Disconnected ' + visualConnector.con);\n visualConnector.con.visualDisconnect();\n }],\n ['cancel', function() {}],\n ];\n return items;\n }","funcProperties":{"__isSmartRef__":true,"id":2385},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2380":{"this":{"__isSmartRef__":true,"id":2364},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2381}},"2381":{"$super":{"__isSmartRef__":true,"id":2382}},"2382":{"varMapping":{"__isSmartRef__":true,"id":2383},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2384},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2383":{"obj":{"__isSmartRef__":true,"id":2364},"name":"morphMenuItems"},"2384":{},"2385":{},"2386":{"morphMenuItems":{"__isSmartRef__":true,"id":2387}},"2387":{"varMapping":{"__isSmartRef__":true,"id":2388},"source":"function morphMenuItems() {\n var visualConnector = this, con = this.con, world = this.world();\n var items = [\n ['edit converter', function() {\n var source = con.converterString || 'function converter(value) {\\n return value\\n}',\n editor = new lively.morphic.Text(new Rectangle(0,0, 400, 200), source);\n editor.doitContext = con;\n connect(editor, 'savedTextString', con, 'converterString', {updater:\n function($upd, source) { this.targetObj.converter = null; $upd(source) }});\n connect(editor, 'savedTextString', world, 'alertOK', {converter: \n function() { return 'setting new converter' }})\n editor.applyStyle({syntaxHighlighting: true, fontFamily: 'Courier', resizeWidth: true, resizeHeight: true});\n var title = con.targetObj.name && con.sourceObj.name ?\n 'Editor for ' + con.targetObj.name + ' -> ' + con.sourceObj.name :\n 'Editor for converter function';\n var window = world.addFramedMorph(editor, title)\n window.align(window.bounds().topCenter(), visualConnector.bounds().bottomCenter())\n }],\n ['hide', function() {\n visualConnector.disconnectFromMagnets();\n visualConnector.remove();\n }],\n ['disconnect', function() {\n alertOK('Disconnected ' + visualConnector.con);\n visualConnector.con.visualDisconnect();\n }],\n ['cancel', function() {}],\n ];\n return items;\n }","funcProperties":{"__isSmartRef__":true,"id":2393},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2388":{"this":{"__isSmartRef__":true,"id":2349},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2389}},"2389":{"$super":{"__isSmartRef__":true,"id":2390}},"2390":{"varMapping":{"__isSmartRef__":true,"id":2391},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2392},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2391":{"obj":{"__isSmartRef__":true,"id":2349},"name":"morphMenuItems"},"2392":{},"2393":{},"2394":{"sourceObj":{"__isSmartRef__":true,"id":1617},"sourceAttrName":"value","targetObj":{"__isSmartRef__":true,"id":1617},"targetMethodName":"setTextString","converterString":"function (v) {\n try {\n return JSON.serialize(v)\n } catch(e) {\n return \"\"\n }\n }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":2395},"__SourceModuleName__":"Global.lively.bindings","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2396},"__LivelyClassName__":"AttributeConnection"},"2395":{"source":{"__isSmartRef__":true,"id":1617},"target":{"__isSmartRef__":true,"id":1617}},"2396":{"converter":{"__isSmartRef__":true,"id":2397}},"2397":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":2395},"source":"function (v) {\n try {\n return JSON.serialize(v)\n } catch(e) {\n return \"\"\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2398},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2398":{},"2399":{"sourceObj":{"__isSmartRef__":true,"id":1617},"sourceAttrName":"globalTransform","targetObj":{"__isSmartRef__":true,"id":1633},"targetMethodName":"alignToMagnet","dependendConnections":[{"__isSmartRef__":true,"id":2400},{"__isSmartRef__":true,"id":2401},{"__isSmartRef__":true,"id":2402},{"__isSmartRef__":true,"id":2403},{"__isSmartRef__":true,"id":2400},{"__isSmartRef__":true,"id":2401},{"__isSmartRef__":true,"id":2402},{"__isSmartRef__":true,"id":2403},{"__isSmartRef__":true,"id":2400},{"__isSmartRef__":true,"id":2401},{"__isSmartRef__":true,"id":2402},{"__isSmartRef__":true,"id":2403},{"__isSmartRef__":true,"id":2400},{"__isSmartRef__":true,"id":2401},{"__isSmartRef__":true,"id":2402},{"__isSmartRef__":true,"id":2403}],"oldTransform":{"__isSmartRef__":true,"id":2405},"__SourceModuleName__":"Global.lively.bindings.GeometryBindings","__LivelyClassName__":"lively.morphic.GeometryTransformConnection"},"2400":{"sourceObj":{"__isSmartRef__":true,"id":1617},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":2399},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":2399},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2401":{"sourceObj":{"__isSmartRef__":true,"id":1617},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":2399},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":2399},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2402":{"sourceObj":{"__isSmartRef__":true,"id":1617},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":2399},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":2399},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2403":{"sourceObj":{"__isSmartRef__":true,"id":1617},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":2399},"targetMethodName":"updateOwners","converter":null,"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":2404},"dependedBy":{"__isSmartRef__":true,"id":2399},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2404":{"source":{"__isSmartRef__":true,"id":1617},"target":{"__isSmartRef__":true,"id":2399}},"2405":{"d":1,"a":1,"f":465.98005984039827,"e":262.4825518623436,"c":0,"b":0,"matrix_":{"__isSmartRef__":true,"id":2406},"__SourceModuleName__":"Global.lively.morphic.Core","__LivelyClassName__":"lively.morphic.Similitude"},"2406":{"a":1,"b":0,"c":0,"d":1,"e":262.4825518623436,"f":465.98005984039827,"__SourceModuleName__":"Global.lively.morphic.Core","__LivelyClassName__":"lively.morphic.Similitude"},"2407":{"sourceObj":{"__isSmartRef__":true,"id":1617},"sourceAttrName":"globalTransform","targetObj":{"__isSmartRef__":true,"id":2348},"targetMethodName":"alignToMagnet","dependendConnections":[{"__isSmartRef__":true,"id":2408},{"__isSmartRef__":true,"id":2409},{"__isSmartRef__":true,"id":2410},{"__isSmartRef__":true,"id":2411},{"__isSmartRef__":true,"id":2408},{"__isSmartRef__":true,"id":2409},{"__isSmartRef__":true,"id":2410},{"__isSmartRef__":true,"id":2411},{"__isSmartRef__":true,"id":2408},{"__isSmartRef__":true,"id":2409},{"__isSmartRef__":true,"id":2410},{"__isSmartRef__":true,"id":2411},{"__isSmartRef__":true,"id":2408},{"__isSmartRef__":true,"id":2409},{"__isSmartRef__":true,"id":2410},{"__isSmartRef__":true,"id":2411}],"oldTransform":{"__isSmartRef__":true,"id":2413},"__SourceModuleName__":"Global.lively.bindings.GeometryBindings","__LivelyClassName__":"lively.morphic.GeometryTransformConnection"},"2408":{"sourceObj":{"__isSmartRef__":true,"id":1617},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":2407},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":2407},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2409":{"sourceObj":{"__isSmartRef__":true,"id":1617},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":2407},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":2407},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2410":{"sourceObj":{"__isSmartRef__":true,"id":1617},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":2407},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":2407},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2411":{"sourceObj":{"__isSmartRef__":true,"id":1617},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":2407},"targetMethodName":"updateOwners","converter":null,"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":2412},"dependedBy":{"__isSmartRef__":true,"id":2407},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2412":{"source":{"__isSmartRef__":true,"id":1617},"target":{"__isSmartRef__":true,"id":2407}},"2413":{"d":1,"a":1,"f":465.98005984039827,"e":262.4825518623436,"c":0,"b":0,"matrix_":{"__isSmartRef__":true,"id":2414},"__SourceModuleName__":"Global.lively.morphic.Core","__LivelyClassName__":"lively.morphic.Similitude"},"2414":{"a":1,"b":0,"c":0,"d":1,"e":262.4825518623436,"f":465.98005984039827,"__SourceModuleName__":"Global.lively.morphic.Core","__LivelyClassName__":"lively.morphic.Similitude"},"2415":{},"2416":{"x":5,"y":5,"width":5,"height":5,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"2417":{"value":{"__isSmartRef__":true,"id":2418}},"2418":{},"2419":{"x":262.4825518623436,"y":465.98005984039827,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2420":{"reset":{"__isSmartRef__":true,"id":2421}},"2421":{"varMapping":{"__isSmartRef__":true,"id":2422},"source":"function reset() {\n\tthis.connections = {\n value: {}\n };\n connect(this, 'value', this, 'setTextString', {\n converter: function(v) {\n try {\n return JSON.serialize(v)\n } catch(e) {\n return \"\"\n }\n }\n })\n}","funcProperties":{"__isSmartRef__":true,"id":2423},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2422":{"this":{"__isSmartRef__":true,"id":1617}},"2423":{},"2424":{"converter":{"__isSmartRef__":true,"id":2425}},"2425":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":2426},"source":"function converter(value) {\n return Strings.tableize(value)\n .slice(3,5)\n .collect(function(ea) { \n return (100-Number(ea.last())) / 2\n })\n}\n","funcProperties":{"__isSmartRef__":true,"id":2427},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2426":{},"2427":{},"2428":{"sourceObj":{"__isSmartRef__":true,"id":1530},"sourceAttrName":"globalTransform","targetObj":{"__isSmartRef__":true,"id":2360},"targetMethodName":"alignToMagnet","dependendConnections":[{"__isSmartRef__":true,"id":2429},{"__isSmartRef__":true,"id":2430},{"__isSmartRef__":true,"id":2431},{"__isSmartRef__":true,"id":2432},{"__isSmartRef__":true,"id":2429},{"__isSmartRef__":true,"id":2430},{"__isSmartRef__":true,"id":2431},{"__isSmartRef__":true,"id":2432},{"__isSmartRef__":true,"id":2429},{"__isSmartRef__":true,"id":2430},{"__isSmartRef__":true,"id":2431},{"__isSmartRef__":true,"id":2432},{"__isSmartRef__":true,"id":2429},{"__isSmartRef__":true,"id":2430},{"__isSmartRef__":true,"id":2431},{"__isSmartRef__":true,"id":2432}],"oldTransform":{"__isSmartRef__":true,"id":2434},"__SourceModuleName__":"Global.lively.bindings.GeometryBindings","__LivelyClassName__":"lively.morphic.GeometryTransformConnection"},"2429":{"sourceObj":{"__isSmartRef__":true,"id":1530},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":2428},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":2428},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2430":{"sourceObj":{"__isSmartRef__":true,"id":1530},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":2428},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":2428},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2431":{"sourceObj":{"__isSmartRef__":true,"id":1530},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":2428},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":2428},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2432":{"sourceObj":{"__isSmartRef__":true,"id":1530},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":2428},"targetMethodName":"updateOwners","converter":null,"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":2433},"dependedBy":{"__isSmartRef__":true,"id":2428},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2433":{"source":{"__isSmartRef__":true,"id":1530},"target":{"__isSmartRef__":true,"id":2428}},"2434":{"d":1,"a":1,"f":426.2931223381578,"e":183.26620212668476,"c":0,"b":0,"matrix_":{"__isSmartRef__":true,"id":2435},"__SourceModuleName__":"Global.lively.morphic.Core","__LivelyClassName__":"lively.morphic.Similitude"},"2435":{"a":1,"b":0,"c":0,"d":1,"e":183.26620212668476,"f":426.2931223381578,"__SourceModuleName__":"Global.lively.morphic.Core","__LivelyClassName__":"lively.morphic.Similitude"},"2436":{"sourceObj":{"__isSmartRef__":true,"id":1530},"sourceAttrName":"globalTransform","targetObj":{"__isSmartRef__":true,"id":2363},"targetMethodName":"alignToMagnet","dependendConnections":[{"__isSmartRef__":true,"id":2437},{"__isSmartRef__":true,"id":2438},{"__isSmartRef__":true,"id":2439},{"__isSmartRef__":true,"id":2440},{"__isSmartRef__":true,"id":2437},{"__isSmartRef__":true,"id":2438},{"__isSmartRef__":true,"id":2439},{"__isSmartRef__":true,"id":2440},{"__isSmartRef__":true,"id":2437},{"__isSmartRef__":true,"id":2438},{"__isSmartRef__":true,"id":2439},{"__isSmartRef__":true,"id":2440},{"__isSmartRef__":true,"id":2437},{"__isSmartRef__":true,"id":2438},{"__isSmartRef__":true,"id":2439},{"__isSmartRef__":true,"id":2440}],"oldTransform":{"__isSmartRef__":true,"id":2442},"__SourceModuleName__":"Global.lively.bindings.GeometryBindings","__LivelyClassName__":"lively.morphic.GeometryTransformConnection"},"2437":{"sourceObj":{"__isSmartRef__":true,"id":1530},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":2436},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":2436},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2438":{"sourceObj":{"__isSmartRef__":true,"id":1530},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":2436},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":2436},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2439":{"sourceObj":{"__isSmartRef__":true,"id":1530},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":2436},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":2436},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2440":{"sourceObj":{"__isSmartRef__":true,"id":1530},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":2436},"targetMethodName":"updateOwners","converter":null,"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":2441},"dependedBy":{"__isSmartRef__":true,"id":2436},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2441":{"source":{"__isSmartRef__":true,"id":1530},"target":{"__isSmartRef__":true,"id":2436}},"2442":{"d":1,"a":1,"f":426.2931223381578,"e":183.26620212668476,"c":0,"b":0,"matrix_":{"__isSmartRef__":true,"id":2443},"__SourceModuleName__":"Global.lively.morphic.Core","__LivelyClassName__":"lively.morphic.Similitude"},"2443":{"a":1,"b":0,"c":0,"d":1,"e":183.26620212668476,"f":426.2931223381578,"__SourceModuleName__":"Global.lively.morphic.Core","__LivelyClassName__":"lively.morphic.Similitude"},"2444":{"layouter":{"__isSmartRef__":true,"id":2445},"adjustForNewBounds":true},"2445":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":10,"spacing":5.415,"container":{"__isSmartRef__":true,"id":1530},"__SourceModuleName__":"Global.lively.morphic.Layout","__LivelyClassName__":"lively.morphic.Layout.JournalLayout"},"2446":{"x":198.90402416749106,"y":66.42298003993008,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2447":{"resultFromServer":{"__isSmartRef__":true,"id":2448}},"2448":{},"2449":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/nodejs/SandboxServer/run","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2450":{"x":183.26620212668476,"y":426.2931223381578,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2451":{"reset":{"__isSmartRef__":true,"id":2452},"onServerDo":{"__isSmartRef__":true,"id":2455},"createServerProxy":{"__isSmartRef__":true,"id":2458},"exec":{"__isSmartRef__":true,"id":2461},"setExtent":{"__isSmartRef__":true,"id":2464},"setupConnections":{"__isSmartRef__":true,"id":2471}},"2452":{"varMapping":{"__isSmartRef__":true,"id":2453},"source":"function reset() {\n this.connections = {resultFromServer: {}, exec: {}};\n this.serverURL = new URL('http://lively-kernel.org/nodejs/SandboxServer/run');\n}","funcProperties":{"__isSmartRef__":true,"id":2454},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2453":{"this":{"__isSmartRef__":true,"id":1530}},"2454":{},"2455":{"varMapping":{"__isSmartRef__":true,"id":2456},"source":"function onServerDo() {\n runOnCommandLine('mpstat -P ALL 1 1', function(result, send) {\n send(result);\n })\n}","funcProperties":{"__isSmartRef__":true,"id":2457},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2456":{"this":{"__isSmartRef__":true,"id":1530}},"2457":{},"2458":{"varMapping":{"__isSmartRef__":true,"id":2459},"source":"function createServerProxy() {\n module('server.nodejs.RemoteJSInterface').load(true)\n return new server.nodejs.JSRemoteServer(this.serverURL, this.getName());\n}","funcProperties":{"__isSmartRef__":true,"id":2460},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2459":{"this":{"__isSmartRef__":true,"id":1530}},"2460":{},"2461":{"varMapping":{"__isSmartRef__":true,"id":2462},"source":"function exec() {\n var serverProxy = this.createServerProxy();\n connect(serverProxy, 'result', this, 'resultFromServer')\n serverProxy.evalOnServer('(' + this.onServerDo + ')()');\n}","funcProperties":{"__isSmartRef__":true,"id":2463},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2462":{"this":{"__isSmartRef__":true,"id":1530}},"2463":{},"2464":{"varMapping":{"__isSmartRef__":true,"id":2465},"source":"function setExtent(value) {\n $super(value);\n var myCenter = this.get('runButton').bounds().topCenter(),\n labelCenter = this.get('nameLabel').bounds().bottomCenter().addXY(0,5);\n this.get('runButton').align(\n myCenter,\n labelCenter)\n}","funcProperties":{"__isSmartRef__":true,"id":2470},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2465":{"this":{"__isSmartRef__":true,"id":1530},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2466}},"2466":{"$super":{"__isSmartRef__":true,"id":2467}},"2467":{"varMapping":{"__isSmartRef__":true,"id":2468},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2469},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2468":{"obj":{"__isSmartRef__":true,"id":1530},"name":"setExtent"},"2469":{},"2470":{},"2471":{"varMapping":{"__isSmartRef__":true,"id":2472},"source":"function setupConnections() {\n connect(this.get('runButton'), 'fire', this, 'exec')\n}","funcProperties":{"__isSmartRef__":true,"id":2473},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2472":{"this":{"__isSmartRef__":true,"id":1530}},"2473":{},"2474":{"sourceObj":{"__isSmartRef__":true,"id":1488},"sourceAttrName":"globalTransform","targetObj":{"__isSmartRef__":true,"id":2375},"targetMethodName":"alignToMagnet","dependendConnections":[{"__isSmartRef__":true,"id":2475},{"__isSmartRef__":true,"id":2476},{"__isSmartRef__":true,"id":2477},{"__isSmartRef__":true,"id":2478},{"__isSmartRef__":true,"id":2475},{"__isSmartRef__":true,"id":2476},{"__isSmartRef__":true,"id":2477},{"__isSmartRef__":true,"id":2478},{"__isSmartRef__":true,"id":2475},{"__isSmartRef__":true,"id":2476},{"__isSmartRef__":true,"id":2477},{"__isSmartRef__":true,"id":2478},{"__isSmartRef__":true,"id":2475},{"__isSmartRef__":true,"id":2476},{"__isSmartRef__":true,"id":2477},{"__isSmartRef__":true,"id":2478}],"oldTransform":{"__isSmartRef__":true,"id":2480},"__SourceModuleName__":"Global.lively.bindings.GeometryBindings","__LivelyClassName__":"lively.morphic.GeometryTransformConnection"},"2475":{"sourceObj":{"__isSmartRef__":true,"id":1488},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":2474},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":2474},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2476":{"sourceObj":{"__isSmartRef__":true,"id":1488},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":2474},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":2474},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2477":{"sourceObj":{"__isSmartRef__":true,"id":1488},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":2474},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":2474},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2478":{"sourceObj":{"__isSmartRef__":true,"id":1488},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":2474},"targetMethodName":"updateOwners","converter":null,"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":2479},"dependedBy":{"__isSmartRef__":true,"id":2474},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2479":{"source":{"__isSmartRef__":true,"id":1488},"target":{"__isSmartRef__":true,"id":2474}},"2480":{"d":1,"a":1,"f":330.67597340249654,"e":186.25423803092437,"c":0,"b":0,"matrix_":{"__isSmartRef__":true,"id":2481},"__SourceModuleName__":"Global.lively.morphic.Core","__LivelyClassName__":"lively.morphic.Similitude"},"2481":{"a":1,"b":0,"c":0,"d":1,"e":186.25423803092437,"f":330.67597340249654,"__SourceModuleName__":"Global.lively.morphic.Core","__LivelyClassName__":"lively.morphic.Similitude"},"2482":{"x":302.1904295202012,"y":46.21535372369033,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2483":{},"2484":{"tick":{"__isSmartRef__":true,"id":2485},"running":{"__isSmartRef__":true,"id":2486}},"2485":{},"2486":{},"2487":{"x":186.25423803092437,"y":330.67597340249654,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2488":{"updateTickingScripts":{"__isSmartRef__":true,"id":2489},"setupConnections":{"__isSmartRef__":true,"id":2492},"updateTick":{"__isSmartRef__":true,"id":2495}},"2489":{"varMapping":{"__isSmartRef__":true,"id":2490},"source":"function updateTickingScripts(bool) {\n var timeInMS = Number(this.get('tickInput').textString);\n\tif (bool)\n this.startStepping(timeInMS, 'updateTick')\n else\n this.stopStepping()\n}","funcProperties":{"__isSmartRef__":true,"id":2491},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2490":{"this":{"__isSmartRef__":true,"id":1488}},"2491":{},"2492":{"varMapping":{"__isSmartRef__":true,"id":2493},"source":"function setupConnections() {\n this.connections = {tick: {}, running: {}}\n\tconnect(this, 'running', this, 'updateTickingScripts')\n}","funcProperties":{"__isSmartRef__":true,"id":2494},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2493":{"this":{"__isSmartRef__":true,"id":1488}},"2494":{},"2495":{"varMapping":{"__isSmartRef__":true,"id":2496},"source":"function updateTick() {\n this.tick = Date.now()\n}","funcProperties":{"__isSmartRef__":true,"id":2497},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2496":{"this":{"__isSmartRef__":true,"id":1488}},"2497":{},"2498":{"morphMenuItems":{"__isSmartRef__":true,"id":2499}},"2499":{"varMapping":{"__isSmartRef__":true,"id":2500},"source":"function morphMenuItems() {\n var visualConnector = this, con = this.con, world = this.world();\n var items = [\n ['edit converter', function() {\n var source = con.converterString || 'function converter(value) {\\n return value\\n}',\n editor = new lively.morphic.Text(new Rectangle(0,0, 400, 200), source);\n editor.doitContext = con;\n connect(editor, 'savedTextString', con, 'converterString', {updater:\n function($upd, source) { this.targetObj.converter = null; $upd(source) }});\n connect(editor, 'savedTextString', world, 'alertOK', {converter: \n function() { return 'setting new converter' }})\n editor.applyStyle({syntaxHighlighting: true, fontFamily: 'Courier', resizeWidth: true, resizeHeight: true});\n var title = con.targetObj.name && con.sourceObj.name ?\n 'Editor for ' + con.targetObj.name + ' -> ' + con.sourceObj.name :\n 'Editor for converter function';\n var window = world.addFramedMorph(editor, title)\n window.align(window.bounds().topCenter(), visualConnector.bounds().bottomCenter())\n }],\n ['hide', function() {\n visualConnector.disconnectFromMagnets();\n visualConnector.remove();\n }],\n ['disconnect', function() {\n alertOK('Disconnected ' + visualConnector.con);\n visualConnector.con.visualDisconnect();\n }],\n ['cancel', function() {}],\n ];\n return items;\n }","funcProperties":{"__isSmartRef__":true,"id":2505},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2500":{"this":{"__isSmartRef__":true,"id":1413},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2501}},"2501":{"$super":{"__isSmartRef__":true,"id":2502}},"2502":{"varMapping":{"__isSmartRef__":true,"id":2503},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":2504},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2503":{"obj":{"__isSmartRef__":true,"id":1413},"name":"morphMenuItems"},"2504":{},"2505":{},"2506":{"x":-250,"y":-220,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2507":{"onFire":{"__isSmartRef__":true,"id":2508},"reset":{"__isSmartRef__":true,"id":2511},"updateLabel":{"__isSmartRef__":true,"id":2514}},"2508":{"varMapping":{"__isSmartRef__":true,"id":2509},"source":"function onFire() {\n this.running = !this.running\n}","funcProperties":{"__isSmartRef__":true,"id":2510},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2509":{"this":{"__isSmartRef__":true,"id":1341}},"2510":{},"2511":{"varMapping":{"__isSmartRef__":true,"id":2512},"source":"function reset() {\n this.connections = {running: {}}\n connect(this, 'running', this, 'updateLabel')\n connect(this, 'fire', this, 'onFire')\n}","funcProperties":{"__isSmartRef__":true,"id":2513},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2512":{"this":{"__isSmartRef__":true,"id":1341}},"2513":{},"2514":{"varMapping":{"__isSmartRef__":true,"id":2515},"source":"function updateLabel() {\n if (this.running) {\n this.setLabel(\"stop\")\n } else {\n this.setLabel(\"start\")\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2516},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2515":{"this":{"__isSmartRef__":true,"id":1341}},"2516":{},"2517":{"submorphs":[],"scripts":[],"id":3104,"shape":{"__isSmartRef__":true,"id":2518},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2523},"_MaxTextWidth":168,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":2521},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"Text2","partsBinMetaInfo":{"__isSmartRef__":true,"id":2524},"textChunks":[{"__isSmartRef__":true,"id":2525}],"charsReplaced":"some text","lastFindLoc":-9,"priorSelectionRange":[0,0],"prevScroll":[0,0],"_Scale":0.996005996001,"priorExtent":{"__isSmartRef__":true,"id":2527},"renderContextTable":{"__isSmartRef__":true,"id":2528},"eventHandler":{"__isSmartRef__":true,"id":2529},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"owner":{"__isSmartRef__":true,"id":96},"_Rotation":0,"__LivelyClassName__":"lively.morphic.Text"},"2518":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":2519},"_Extent":{"__isSmartRef__":true,"id":2520},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2521},"renderContextTable":{"__isSmartRef__":true,"id":2522},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2519":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2520":{"x":168,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2521":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2522":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"2523":{"x":-227.94932555623063,"y":163.49687548638258,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2524":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"a simple text morph","partName":"Text","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"2525":{"style":{"__isSmartRef__":true,"id":2526},"morph":{"__isSmartRef__":true,"id":2517},"__SourceModuleName__":"Global.lively.morphic.TextCore","chunkOwner":{"__isSmartRef__":true,"id":2517},"storedString":"show implementation","__LivelyClassName__":"lively.morphic.TextChunk"},"2526":{"__SourceModuleName__":"Global.lively.morphic.TextCore","fontSize":10,"__LivelyClassName__":"lively.morphic.TextEmphasis"},"2527":{"x":168,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2528":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML"},"2529":{"morph":{"__isSmartRef__":true,"id":2517},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2530":{"position":{"__isSmartRef__":true,"id":2531},"_Extent":{"__isSmartRef__":true,"id":2532},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2533},"_Fill":{"__isSmartRef__":true,"id":2534},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":2535},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_Position":{"__isSmartRef__":true,"id":2536},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2531":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2532":{"x":562.1823750997598,"y":422.7993787852088,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2533":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2534":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"2535":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"2536":{"x":-261.476262000004,"y":-235.5282360000009,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2537":{"migrationLevel":2,"partsSpaceName":"PartsBin/Visualization/","__SourceModuleName__":"Global.lively.PartsBin","partName":"CPUVisualization","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"2538":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"2539":{"morph":{"__isSmartRef__":true,"id":96},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2540":{},"2541":{"x":562.1823750997598,"y":420.80735484904915,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2542":{"addDataAndRender":{"__isSmartRef__":true,"id":2543}},"2543":{},"2544":{"x":449.97806383241505,"y":569.8923231381555,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2545":{"addDataAndRender":{"__isSmartRef__":true,"id":2546},"reset":{"__isSmartRef__":true,"id":2549},"setupConnections":{"__isSmartRef__":true,"id":2552}},"2546":{"varMapping":{"__isSmartRef__":true,"id":2547},"source":"function addDataAndRender(data) {\n this.get('ProtovisMorph').addDataAndRender(data)\n}","funcProperties":{"__isSmartRef__":true,"id":2548},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2547":{"this":{"__isSmartRef__":true,"id":96}},"2548":{},"2549":{"varMapping":{"__isSmartRef__":true,"id":2550},"source":"function reset() {\n this.connections = {addDataAndRender: {}}\n this.get('ProtovisMorph').reset();\n}","funcProperties":{"__isSmartRef__":true,"id":2551},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2550":{"this":{"__isSmartRef__":true,"id":96}},"2551":{},"2552":{"varMapping":{"__isSmartRef__":true,"id":2553},"source":"function setupConnections() {\n connect(this.get('resetButton'), 'fire', this.get('ProtovisMorph'), 'render',\n {updater: function($upd) { this.targetObj.data = []; $upd() }})\n}","funcProperties":{"__isSmartRef__":true,"id":2554},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2553":{"this":{"__isSmartRef__":true,"id":96}},"2554":{},"2555":{"submorphs":[],"scripts":[],"id":3941,"shape":{"__isSmartRef__":true,"id":2556},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2561},"_MaxTextWidth":411,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":2559},"showsHalos":false,"_FontSize":9,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"Text3","partsBinMetaInfo":{"__isSmartRef__":true,"id":2562},"textChunks":[{"__isSmartRef__":true,"id":2563},{"__isSmartRef__":true,"id":2565}],"charsReplaced":"","lastFindLoc":249,"priorSelectionRange":[272,272],"prevScroll":[0,0],"_Scale":1,"priorExtent":{"__isSmartRef__":true,"id":2567},"renderContextTable":{"__isSmartRef__":true,"id":2568},"eventHandler":{"__isSmartRef__":true,"id":2569},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"owner":{"__isSmartRef__":true,"id":0},"_Rotation":0,"__LivelyClassName__":"lively.morphic.Text"},"2556":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":2557},"_Extent":{"__isSmartRef__":true,"id":2558},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2559},"renderContextTable":{"__isSmartRef__":true,"id":2560},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2557":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2558":{"x":411,"y":84,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2559":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2560":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"2561":{"x":56.84047872319229,"y":785.750749997012,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2562":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"a simple text morph","partName":"Text","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"2563":{"style":{"__isSmartRef__":true,"id":2564},"chunkOwner":{"__isSmartRef__":true,"id":2555},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"Meta:","__LivelyClassName__":"lively.morphic.TextChunk"},"2564":{"textDecoration":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","fontWeight":"bold","__LivelyClassName__":"lively.morphic.TextEmphasis"},"2565":{"style":{"__isSmartRef__":true,"id":2566},"chunkOwner":{"__isSmartRef__":true,"id":2555},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"\n- bidirectional connections (Example StartStopButton -> emulates view)\n- self denial of service attacks with nodejs\n- make TextMorph serialize even if not in submorph hierrachy\n- don't allow invisible morphs to accept drops or is that wanted?\n- PartsBin: remove HTML file on parts remove","__LivelyClassName__":"lively.morphic.TextChunk"},"2566":{"textDecoration":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"2567":{"x":411,"y":84,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2568":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML"},"2569":{"morph":{"__isSmartRef__":true,"id":2555},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2570":{"submorphs":[],"scripts":[],"id":226,"shape":{"__isSmartRef__":true,"id":2571},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":false,"registeredForMouseEvents":true,"_world":{"__isSmartRef__":true,"id":0},"__SourceModuleName__":"Global.lively.morphic.Events","carriesGrabbedMorphs":false,"renderContextTable":{"__isSmartRef__":true,"id":2576},"eventHandler":{"__isSmartRef__":true,"id":2577},"showsHalos":false,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Position":{"__isSmartRef__":true,"id":2578},"_Scale":1,"_Rotation":0,"owner":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.HandMorph"},"2571":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":2572},"_Extent":{"__isSmartRef__":true,"id":2573},"_Fill":{"__isSmartRef__":true,"id":2574},"renderContextTable":{"__isSmartRef__":true,"id":2575},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2572":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2573":{"x":2,"y":2,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2574":{"r":0.8,"g":0,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"2575":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"2576":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"2577":{"morph":{"__isSmartRef__":true,"id":2570},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2578":{"x":177.9244029139925,"y":650.6578529920456,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2579":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":2580},"_Extent":{"__isSmartRef__":true,"id":2581},"_Fill":{"__isSmartRef__":true,"id":2582},"renderContextTable":{"__isSmartRef__":true,"id":2583},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2580":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2581":{"x":2800,"y":2900,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2582":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"2583":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"2584":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2585":{"name":"Local code","__LivelyClassName__":"ChangeSet","__SourceModuleName__":"Global.lively.ChangeSet"},"2586":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML"},"2587":{"morph":{"__isSmartRef__":true,"id":0},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2588":{"protocol":"http:","hostname":"www.lively-kernel.org","pathname":"/repository/webwerkstatt/demos/LiveWeb/VisualBindings.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2589":{"sourceObj":{"__isSmartRef__":true,"id":0},"sourceAttrName":"savedWorldAsURL","targetObj":{"__isSmartRef__":true,"id":0},"targetMethodName":"visitNewPageAfterSaveAs","converter":null,"converterString":null,"updaterString":"function ($upd, v) { \n if (v && v.toString() !== URL.source.toString()) {\n $upd(v) \n }\n }","varMapping":{"__isSmartRef__":true,"id":2590},"__SourceModuleName__":"Global.lively.bindings","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2591},"__LivelyClassName__":"AttributeConnection"},"2590":{"source":{"__isSmartRef__":true,"id":0},"target":{"__isSmartRef__":true,"id":0}},"2591":{"updater":{"__isSmartRef__":true,"id":2592}},"2592":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":2590},"source":"function ($upd, v) { \n if (v && v.toString() !== URL.source.toString()) {\n $upd(v) \n }\n }","funcProperties":{"__isSmartRef__":true,"id":2593},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2593":{},"isSimplifiedRegistry":true}}]]>