' + 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":508},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"503":{"this":{"__isSmartRef__":true,"id":465},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":504}},"504":{"$super":{"__isSmartRef__":true,"id":505}},"505":{"varMapping":{"__isSmartRef__":true,"id":506},"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":507},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"506":{"obj":{"__isSmartRef__":true,"id":465},"name":"morphMenuItems"},"507":{},"508":{},"509":{"morphMenuItems":{"__isSmartRef__":true,"id":510}},"510":{"time":{"__isSmartRef__":true,"id":511},"user":"jenslincke"},"511":{"isSerializedDate":true,"string":"Wed Jun 15 2011 13:00:28 GMT+0200 (CEST)"},"512":{"x":-24,"y":-317,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"513":{"morphMenuItems":{"__isSmartRef__":true,"id":514}},"514":{"varMapping":{"__isSmartRef__":true,"id":515},"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":520},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"515":{"this":{"__isSmartRef__":true,"id":431},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":516}},"516":{"$super":{"__isSmartRef__":true,"id":517}},"517":{"varMapping":{"__isSmartRef__":true,"id":518},"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":519},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"518":{"obj":{"__isSmartRef__":true,"id":431},"name":"morphMenuItems"},"519":{},"520":{},"521":{"morph":{"__isSmartRef__":true,"id":320},"position":{"__isSmartRef__":true,"id":522},"connectedControlPoints":[{"__isSmartRef__":true,"id":523},{"__isSmartRef__":true,"id":430}],"__SourceModuleName__":"Global.lively.morphic.Connectors","__LivelyClassName__":"lively.morphic.Magnet"},"522":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"523":{"morph":{"__isSmartRef__":true,"id":524},"index":1,"connectedMagnet":{"__isSmartRef__":true,"id":521},"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"524":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":525},"id":3849,"renderContextTable":{"__isSmartRef__":true,"id":534},"eventHandler":{"__isSmartRef__":true,"id":535},"droppingEnabled":true,"halosEnabled":true,"controlPoints":[{"__isSmartRef__":true,"id":536},{"__isSmartRef__":true,"id":947}],"con":{"__isSmartRef__":true,"id":761},"showsMorphMenu":true,"isCopyMorphRef":true,"morphRefId":1,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":996},"__LivelyClassName__":"lively.morphic.Path"},"525":{"dontChangeShape":false,"cachedVertices":[{"__isSmartRef__":true,"id":526},{"__isSmartRef__":true,"id":527}],"_PathElements":[{"__isSmartRef__":true,"id":528},{"__isSmartRef__":true,"id":529}],"renderContextTable":{"__isSmartRef__":true,"id":530},"_Position":{"__isSmartRef__":true,"id":531},"_Extent":{"__isSmartRef__":true,"id":532},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":533},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"526":{"x":28,"y":256,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"527":{"x":986.5012520027503,"y":279.5473210948677,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"528":{"isAbsolute":true,"x":28,"y":256,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"529":{"isAbsolute":true,"x":986.5012520027503,"y":279.5473210948677,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"530":{"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"},"531":{"x":28,"y":256,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"532":{"x":958.5012817382812,"y":23.547332763671875,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"533":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"534":{"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"},"535":{"morph":{"__isSmartRef__":true,"id":524},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"536":{"morph":{"__isSmartRef__":true,"id":524},"index":0,"connectedMagnet":{"__isSmartRef__":true,"id":537},"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"537":{"morph":{"__isSmartRef__":true,"id":538},"position":{"__isSmartRef__":true,"id":995},"connectedControlPoints":[{"__isSmartRef__":true,"id":536}],"__SourceModuleName__":"Global.lively.morphic.Connectors","__LivelyClassName__":"lively.morphic.Magnet"},"538":{"submorphs":[],"scripts":[],"id":3657,"shape":{"__isSmartRef__":true,"id":539},"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":545},"showsHalos":false,"_FontSize":9,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"logWindow","partsBinMetaInfo":{"__isSmartRef__":true,"id":546},"textChunks":[{"__isSmartRef__":true,"id":547}],"charsReplaced":"s","lastFindLoc":6,"priorSelectionRange":[25483,25483],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":549},"_TextColor":{"__isSmartRef__":true,"id":550},"_ClipMode":"auto","layout":{"__isSmartRef__":true,"id":551},"renderContextTable":{"__isSmartRef__":true,"id":552},"eventHandler":{"__isSmartRef__":true,"id":553},"attributeConnections":[{"__isSmartRef__":true,"id":554},{"__isSmartRef__":true,"id":761},{"__isSmartRef__":true,"id":990}],"doNotSerialize":["$$exec","$$serverResult","$$globalTransform"],"doNotCopyProperties":["$$exec","$$serverResult","$$globalTransform"],"connections":{"__isSmartRef__":true,"id":991},"magnets":[{"__isSmartRef__":true,"id":537}],"_Position":{"__isSmartRef__":true,"id":994},"_Scale":1,"_Rotation":0,"owner":{"__isSmartRef__":true,"id":555},"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"},"539":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":540},"_Extent":{"__isSmartRef__":true,"id":541},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":542},"_BorderRadius":0,"_Fill":{"__isSmartRef__":true,"id":543},"renderContextTable":{"__isSmartRef__":true,"id":544},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"540":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"541":{"x":649.997996995995,"y":250.0240360480601,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"542":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"543":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"544":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"545":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"546":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"547":{"style":{"__isSmartRef__":true,"id":548},"chunkOwner":{"__isSmartRef__":true,"id":538},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"548":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"549":{"x":649.997996995995,"y":250.0240360480601,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"550":{"r":0,"g":0.8,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"551":{"resizeWidth":true,"resizeHeight":true},"552":{"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"},"553":{"morph":{"__isSmartRef__":true,"id":538},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"554":{"sourceObj":{"__isSmartRef__":true,"id":538},"sourceAttrName":"exec","targetObj":{"__isSmartRef__":true,"id":555},"targetMethodName":"exec","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"555":{"submorphs":[{"__isSmartRef__":true,"id":538},{"__isSmartRef__":true,"id":556}],"scripts":[],"id":3656,"shape":{"__isSmartRef__":true,"id":574},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"CommandLine","partsBinMetaInfo":{"__isSmartRef__":true,"id":580},"__SourceModuleName__":"Global.lively.morphic.Core","priorExtent":{"__isSmartRef__":true,"id":581},"layout":{"__isSmartRef__":true,"id":582},"renderContextTable":{"__isSmartRef__":true,"id":583},"eventHandler":{"__isSmartRef__":true,"id":584},"attributeConnections":[{"__isSmartRef__":true,"id":585},{"__isSmartRef__":true,"id":586}],"doNotSerialize":["$$serverResult"],"doNotCopyProperties":["$$serverResult"],"connections":{"__isSmartRef__":true,"id":587},"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":590},"_Scale":1,"_Rotation":0,"owner":{"__isSmartRef__":true,"id":591},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":748},"__LivelyClassName__":"lively.morphic.Box"},"556":{"submorphs":[],"scripts":[],"id":3658,"shape":{"__isSmartRef__":true,"id":557},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Courier ","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":563},"_MaxTextWidth":615,"_MaxTextHeight":29.985978971964983,"textColor":{"__isSmartRef__":true,"id":564},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"inputLine","partsBinMetaInfo":{"__isSmartRef__":true,"id":565},"textChunks":[{"__isSmartRef__":true,"id":566}],"charsReplaced":"mpstat -P ALL 1 1","lastFindLoc":-17,"priorSelectionRange":[17,17],"prevScroll":[0,0],"_Scale":1,"priorExtent":{"__isSmartRef__":true,"id":568},"_TextColor":{"__isSmartRef__":true,"id":569},"_ClipMode":"hidden","owner":{"__isSmartRef__":true,"id":555},"isInputLine":true,"_WhiteSpaceHandling":"pre-wrap","allowInput":true,"attributeConnections":[{"__isSmartRef__":true,"id":570}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"layout":{"__isSmartRef__":true,"id":571},"savedTextString":"mpstat -P ALL 1 1","renderContextTable":{"__isSmartRef__":true,"id":572},"eventHandler":{"__isSmartRef__":true,"id":573},"__LivelyClassName__":"lively.morphic.Text"},"557":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":558},"_Extent":{"__isSmartRef__":true,"id":559},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":560},"_BorderRadius":0,"_Fill":{"__isSmartRef__":true,"id":561},"renderContextTable":{"__isSmartRef__":true,"id":562},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"558":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"559":{"x":615,"y":29.985978971964983,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"560":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"561":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"562":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"563":{"x":8.000000000000853,"y":262.99999999999983,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"564":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"565":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"566":{"style":{"__isSmartRef__":true,"id":567},"chunkOwner":{"__isSmartRef__":true,"id":556},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"567":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"568":{"x":615,"y":29.985978971964983,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"569":{"r":0,"g":0.8,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"570":{"sourceObj":{"__isSmartRef__":true,"id":556},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":555},"targetMethodName":"exec","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"571":{"resizeWidth":true,"resizeHeight":false,"moveVertical":true},"572":{"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"},"573":{"morph":{"__isSmartRef__":true,"id":556},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"574":{"position":{"__isSmartRef__":true,"id":575},"_Extent":{"__isSmartRef__":true,"id":576},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":577},"_Fill":{"__isSmartRef__":true,"id":578},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderRadius":0,"renderContextTable":{"__isSmartRef__":true,"id":579},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"575":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"576":{"x":650,"y":295,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"577":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"578":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"579":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"580":{"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"},"581":{"x":650,"y":295,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"582":{"adjustForNewBounds":true,"resizeWidth":true,"resizeHeight":true},"583":{"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"},"584":{"morph":{"__isSmartRef__":true,"id":555},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"585":{"sourceObj":{"__isSmartRef__":true,"id":555},"sourceAttrName":"serverResult","targetObj":{"__isSmartRef__":true,"id":538},"targetMethodName":"serverResult","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"586":{"sourceObj":{"__isSmartRef__":true,"id":555},"sourceAttrName":"serverResult","targetObj":{"__isSmartRef__":true,"id":555},"targetMethodName":"log","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"587":{"exec":{"__isSmartRef__":true,"id":588},"serverResult":{"__isSmartRef__":true,"id":589}},"588":{},"589":{},"590":{"x":0,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"591":{"submorphs":[{"__isSmartRef__":true,"id":555},{"__isSmartRef__":true,"id":592}],"scripts":[],"id":3655,"renderContextTable":{"__isSmartRef__":true,"id":738},"shape":{"__isSmartRef__":true,"id":739},"droppingEnabled":true,"halosEnabled":true,"draggingEnabled":true,"layout":{"__isSmartRef__":true,"id":742},"eventHandler":{"__isSmartRef__":true,"id":743},"LK2":true,"priorExtent":{"__isSmartRef__":true,"id":744},"targetMorph":{"__isSmartRef__":true,"id":555},"titleBar":{"__isSmartRef__":true,"id":592},"contentOffset":{"__isSmartRef__":true,"id":590},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":null,"expandedExtent":null,"ignoreEventsOnExpand":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":745},"name":"CommandLine","prevDragPos":{"__isSmartRef__":true,"id":746},"highlighted":true,"cameForward":false,"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Position":{"__isSmartRef__":true,"id":747},"_Scale":1,"_Rotation":0,"__LivelyClassName__":"lively.morphic.Window"},"592":{"submorphs":[{"__isSmartRef__":true,"id":593},{"__isSmartRef__":true,"id":605},{"__isSmartRef__":true,"id":651},{"__isSmartRef__":true,"id":685}],"scripts":[],"id":3659,"renderContextTable":{"__isSmartRef__":true,"id":720},"shape":{"__isSmartRef__":true,"id":721},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":734},"eventHandler":{"__isSmartRef__":true,"id":735},"_Position":{"__isSmartRef__":true,"id":736},"windowMorph":{"__isSmartRef__":true,"id":591},"label":{"__isSmartRef__":true,"id":593},"closeButton":{"__isSmartRef__":true,"id":605},"menuButton":{"__isSmartRef__":true,"id":651},"collapseButton":{"__isSmartRef__":true,"id":685},"priorExtent":{"__isSmartRef__":true,"id":737},"owner":{"__isSmartRef__":true,"id":591},"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.TitleBar"},"593":{"submorphs":[],"scripts":[],"id":3660,"renderContextTable":{"__isSmartRef__":true,"id":594},"textChunks":[{"__isSmartRef__":true,"id":595}],"shape":{"__isSmartRef__":true,"id":597},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":601},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","eventHandler":{"__isSmartRef__":true,"id":602},"_Position":{"__isSmartRef__":true,"id":603},"priorExtent":{"__isSmartRef__":true,"id":604},"_MaxTextWidth":null,"_MaxTextHeight":17,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"_PointerEvents":"none","_FontSize":10,"_Align":"center","owner":{"__isSmartRef__":true,"id":592},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"594":{"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"},"595":{"style":{"__isSmartRef__":true,"id":596},"chunkOwner":{"__isSmartRef__":true,"id":593},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"596":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"597":{"_Position":{"__isSmartRef__":true,"id":598},"renderContextTable":{"__isSmartRef__":true,"id":599},"_Extent":{"__isSmartRef__":true,"id":600},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":577},"_Fill":null,"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"598":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"599":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"600":{"x":591,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"601":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"602":{"morph":{"__isSmartRef__":true,"id":593},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"603":{"x":20,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"604":{"x":591,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"605":{"submorphs":[{"__isSmartRef__":true,"id":606}],"scripts":[],"id":3661,"renderContextTable":{"__isSmartRef__":true,"id":618},"shape":{"__isSmartRef__":true,"id":619},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"eventHandler":{"__isSmartRef__":true,"id":634},"_Position":{"__isSmartRef__":true,"id":635},"priorExtent":{"__isSmartRef__":true,"id":636},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":624},"lighterFill":{"__isSmartRef__":true,"id":637},"label":{"__isSmartRef__":true,"id":606},"owner":{"__isSmartRef__":true,"id":592},"layout":{"__isSmartRef__":true,"id":646},"attributeConnections":[{"__isSmartRef__":true,"id":647},{"__isSmartRef__":true,"id":649}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"606":{"submorphs":[],"scripts":[],"id":3662,"renderContextTable":{"__isSmartRef__":true,"id":607},"textChunks":[{"__isSmartRef__":true,"id":608}],"shape":{"__isSmartRef__":true,"id":610},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":614},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","eventHandler":{"__isSmartRef__":true,"id":615},"_Position":{"__isSmartRef__":true,"id":616},"priorExtent":{"__isSmartRef__":true,"id":617},"_MaxTextWidth":null,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":605},"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"_PointerEvents":"none","_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"607":{"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"},"608":{"style":{"__isSmartRef__":true,"id":609},"chunkOwner":{"__isSmartRef__":true,"id":606},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"609":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"610":{"_Position":{"__isSmartRef__":true,"id":611},"renderContextTable":{"__isSmartRef__":true,"id":612},"_Extent":{"__isSmartRef__":true,"id":613},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":577},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"611":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"612":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"613":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"614":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"615":{"morph":{"__isSmartRef__":true,"id":606},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"616":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"617":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"618":{"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"},"619":{"_Position":{"__isSmartRef__":true,"id":620},"renderContextTable":{"__isSmartRef__":true,"id":621},"_Extent":{"__isSmartRef__":true,"id":622},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":623},"_Fill":{"__isSmartRef__":true,"id":624},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"620":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"621":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"622":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"623":{"r":0.7411764705882353,"g":0.7450980392156863,"b":0.7529411764705882,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"624":{"stops":[{"__isSmartRef__":true,"id":625},{"__isSmartRef__":true,"id":627},{"__isSmartRef__":true,"id":629},{"__isSmartRef__":true,"id":631}],"vector":{"__isSmartRef__":true,"id":633},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"625":{"offset":0,"color":{"__isSmartRef__":true,"id":626}},"626":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"627":{"offset":0.4,"color":{"__isSmartRef__":true,"id":628}},"628":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"629":{"offset":0.6,"color":{"__isSmartRef__":true,"id":630}},"630":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"631":{"offset":1,"color":{"__isSmartRef__":true,"id":632}},"632":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"633":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"634":{"morph":{"__isSmartRef__":true,"id":605},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"635":{"x":630,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"636":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"637":{"stops":[{"__isSmartRef__":true,"id":638},{"__isSmartRef__":true,"id":640},{"__isSmartRef__":true,"id":642},{"__isSmartRef__":true,"id":644}],"vector":{"__isSmartRef__":true,"id":633},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"638":{"offset":0,"color":{"__isSmartRef__":true,"id":639}},"639":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"640":{"offset":0.4,"color":{"__isSmartRef__":true,"id":641}},"641":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"642":{"offset":0.6,"color":{"__isSmartRef__":true,"id":643}},"643":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"644":{"offset":1,"color":{"__isSmartRef__":true,"id":645}},"645":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"646":{"moveHorizontal":true},"647":{"sourceObj":{"__isSmartRef__":true,"id":605},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":591},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":648},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"648":{"source":{"__isSmartRef__":true,"id":605},"target":{"__isSmartRef__":true,"id":591}},"649":{"sourceObj":{"__isSmartRef__":true,"id":605},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":591},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":650},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"650":{"source":{"__isSmartRef__":true,"id":605},"target":{"__isSmartRef__":true,"id":591}},"651":{"submorphs":[{"__isSmartRef__":true,"id":652}],"scripts":[],"id":3663,"renderContextTable":{"__isSmartRef__":true,"id":664},"shape":{"__isSmartRef__":true,"id":665},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"eventHandler":{"__isSmartRef__":true,"id":669},"_Position":{"__isSmartRef__":true,"id":670},"priorExtent":{"__isSmartRef__":true,"id":671},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":624},"lighterFill":{"__isSmartRef__":true,"id":672},"label":{"__isSmartRef__":true,"id":652},"owner":{"__isSmartRef__":true,"id":592},"attributeConnections":[{"__isSmartRef__":true,"id":681},{"__isSmartRef__":true,"id":683}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"652":{"submorphs":[],"scripts":[],"id":3664,"renderContextTable":{"__isSmartRef__":true,"id":653},"textChunks":[{"__isSmartRef__":true,"id":654}],"shape":{"__isSmartRef__":true,"id":656},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":660},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","eventHandler":{"__isSmartRef__":true,"id":661},"_Position":{"__isSmartRef__":true,"id":662},"priorExtent":{"__isSmartRef__":true,"id":663},"_MaxTextWidth":null,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":651},"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"_PointerEvents":"none","_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"653":{"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"},"654":{"style":{"__isSmartRef__":true,"id":655},"chunkOwner":{"__isSmartRef__":true,"id":652},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"655":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"656":{"_Position":{"__isSmartRef__":true,"id":657},"renderContextTable":{"__isSmartRef__":true,"id":658},"_Extent":{"__isSmartRef__":true,"id":659},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":577},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"657":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"658":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"659":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"660":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"661":{"morph":{"__isSmartRef__":true,"id":652},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"662":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"663":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"664":{"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"},"665":{"_Position":{"__isSmartRef__":true,"id":666},"renderContextTable":{"__isSmartRef__":true,"id":667},"_Extent":{"__isSmartRef__":true,"id":668},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":623},"_Fill":{"__isSmartRef__":true,"id":624},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"666":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"667":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"668":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"669":{"morph":{"__isSmartRef__":true,"id":651},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"670":{"x":3,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"671":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"672":{"stops":[{"__isSmartRef__":true,"id":673},{"__isSmartRef__":true,"id":675},{"__isSmartRef__":true,"id":677},{"__isSmartRef__":true,"id":679}],"vector":{"__isSmartRef__":true,"id":633},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"673":{"offset":0,"color":{"__isSmartRef__":true,"id":674}},"674":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"675":{"offset":0.4,"color":{"__isSmartRef__":true,"id":676}},"676":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"677":{"offset":0.6,"color":{"__isSmartRef__":true,"id":678}},"678":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"679":{"offset":1,"color":{"__isSmartRef__":true,"id":680}},"680":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"681":{"sourceObj":{"__isSmartRef__":true,"id":651},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":591},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":682},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"682":{"source":{"__isSmartRef__":true,"id":651},"target":{"__isSmartRef__":true,"id":591}},"683":{"sourceObj":{"__isSmartRef__":true,"id":651},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":591},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":684},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"684":{"source":{"__isSmartRef__":true,"id":651},"target":{"__isSmartRef__":true,"id":591}},"685":{"submorphs":[{"__isSmartRef__":true,"id":686}],"scripts":[],"id":3665,"renderContextTable":{"__isSmartRef__":true,"id":698},"shape":{"__isSmartRef__":true,"id":699},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"eventHandler":{"__isSmartRef__":true,"id":703},"_Position":{"__isSmartRef__":true,"id":704},"priorExtent":{"__isSmartRef__":true,"id":705},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":624},"lighterFill":{"__isSmartRef__":true,"id":706},"label":{"__isSmartRef__":true,"id":686},"owner":{"__isSmartRef__":true,"id":592},"layout":{"__isSmartRef__":true,"id":715},"attributeConnections":[{"__isSmartRef__":true,"id":716},{"__isSmartRef__":true,"id":718}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"686":{"submorphs":[],"scripts":[],"id":3666,"renderContextTable":{"__isSmartRef__":true,"id":687},"textChunks":[{"__isSmartRef__":true,"id":688}],"shape":{"__isSmartRef__":true,"id":690},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":694},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","eventHandler":{"__isSmartRef__":true,"id":695},"_Position":{"__isSmartRef__":true,"id":696},"priorExtent":{"__isSmartRef__":true,"id":697},"_MaxTextWidth":null,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":685},"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"_PointerEvents":"none","_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"687":{"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"},"688":{"style":{"__isSmartRef__":true,"id":689},"chunkOwner":{"__isSmartRef__":true,"id":686},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"689":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"690":{"_Position":{"__isSmartRef__":true,"id":691},"renderContextTable":{"__isSmartRef__":true,"id":692},"_Extent":{"__isSmartRef__":true,"id":693},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":577},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"691":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"692":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"693":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"694":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"695":{"morph":{"__isSmartRef__":true,"id":686},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"696":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"697":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"698":{"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"},"699":{"_Position":{"__isSmartRef__":true,"id":700},"renderContextTable":{"__isSmartRef__":true,"id":701},"_Extent":{"__isSmartRef__":true,"id":702},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":623},"_Fill":{"__isSmartRef__":true,"id":624},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"700":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"701":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"702":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"703":{"morph":{"__isSmartRef__":true,"id":685},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"704":{"x":611,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"705":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"706":{"stops":[{"__isSmartRef__":true,"id":707},{"__isSmartRef__":true,"id":709},{"__isSmartRef__":true,"id":711},{"__isSmartRef__":true,"id":713}],"vector":{"__isSmartRef__":true,"id":633},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"707":{"offset":0,"color":{"__isSmartRef__":true,"id":708}},"708":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"709":{"offset":0.4,"color":{"__isSmartRef__":true,"id":710}},"710":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"711":{"offset":0.6,"color":{"__isSmartRef__":true,"id":712}},"712":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"713":{"offset":1,"color":{"__isSmartRef__":true,"id":714}},"714":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"715":{"moveHorizontal":true},"716":{"sourceObj":{"__isSmartRef__":true,"id":685},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":591},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":717},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"717":{"source":{"__isSmartRef__":true,"id":685},"target":{"__isSmartRef__":true,"id":591}},"718":{"sourceObj":{"__isSmartRef__":true,"id":685},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":591},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":719},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"719":{"source":{"__isSmartRef__":true,"id":685},"target":{"__isSmartRef__":true,"id":591}},"720":{"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"},"721":{"_Position":{"__isSmartRef__":true,"id":722},"renderContextTable":{"__isSmartRef__":true,"id":723},"_Extent":{"__isSmartRef__":true,"id":724},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":725},"_Fill":{"__isSmartRef__":true,"id":726},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"722":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"723":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"724":{"x":650,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"725":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"726":{"stops":[{"__isSmartRef__":true,"id":727},{"__isSmartRef__":true,"id":729},{"__isSmartRef__":true,"id":731}],"vector":{"__isSmartRef__":true,"id":733},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"727":{"offset":0,"color":{"__isSmartRef__":true,"id":728}},"728":{"r":0.8600000000000001,"g":0.8600000000000001,"b":0.8600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"729":{"offset":0.6,"color":{"__isSmartRef__":true,"id":730}},"730":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"731":{"offset":1,"color":{"__isSmartRef__":true,"id":732}},"732":{"r":0.8600000000000001,"g":0.8600000000000001,"b":0.8600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"733":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"734":{"resizeWidth":true,"adjustForNewBounds":true},"735":{"morph":{"__isSmartRef__":true,"id":592},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"736":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"737":{"x":650,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"738":{"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"},"739":{"renderContextTable":{"__isSmartRef__":true,"id":740},"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_Extent":{"__isSmartRef__":true,"id":741},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"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":650,"y":317,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"742":{"adjustForNewBounds":true},"743":{"morph":{"__isSmartRef__":true,"id":591},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"744":{"x":650,"y":317,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"745":{"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"},"746":{"x":373,"y":247,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"747":{"x":13,"y":234,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"748":{"setupConnections":{"__isSmartRef__":true,"id":749},"exec":{"__isSmartRef__":true,"id":752},"log":{"__isSmartRef__":true,"id":755},"reset":{"__isSmartRef__":true,"id":758}},"749":{"varMapping":{"__isSmartRef__":true,"id":750},"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":751},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"750":{"this":{"__isSmartRef__":true,"id":555}},"751":{},"752":{"varMapping":{"__isSmartRef__":true,"id":753},"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":754},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"753":{"this":{"__isSmartRef__":true,"id":555}},"754":{},"755":{"varMapping":{"__isSmartRef__":true,"id":756},"source":"function log(s) {\n this.get('logWindow').textString += '\\n' + s\n this.get('logWindow').scrollToBottom();\n}","funcProperties":{"__isSmartRef__":true,"id":757},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"756":{"this":{"__isSmartRef__":true,"id":555}},"757":{},"758":{"varMapping":{"__isSmartRef__":true,"id":759},"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":760},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"759":{"this":{"__isSmartRef__":true,"id":555}},"760":{},"761":{"sourceObj":{"__isSmartRef__":true,"id":538},"sourceAttrName":"serverResult","targetObj":{"__isSmartRef__":true,"id":762},"targetMethodName":"addDataColumnAndRender","visualConnector":{"__isSmartRef__":true,"id":524},"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":986},"__LivelyClassName__":"AttributeConnection"},"762":{"submorphs":[],"scripts":[],"id":3204,"shape":{"__isSmartRef__":true,"id":763},"droppingEnabled":true,"halosEnabled":true,"data":[[{"__isSmartRef__":true,"id":767},{"__isSmartRef__":true,"id":768},{"__isSmartRef__":true,"id":769},{"__isSmartRef__":true,"id":770},{"__isSmartRef__":true,"id":771},{"__isSmartRef__":true,"id":772},{"__isSmartRef__":true,"id":773},{"__isSmartRef__":true,"id":774},{"__isSmartRef__":true,"id":775},{"__isSmartRef__":true,"id":776},{"__isSmartRef__":true,"id":777},{"__isSmartRef__":true,"id":778},{"__isSmartRef__":true,"id":779},{"__isSmartRef__":true,"id":780},{"__isSmartRef__":true,"id":781},{"__isSmartRef__":true,"id":782},{"__isSmartRef__":true,"id":783},{"__isSmartRef__":true,"id":784},{"__isSmartRef__":true,"id":785},{"__isSmartRef__":true,"id":786},{"__isSmartRef__":true,"id":787},{"__isSmartRef__":true,"id":788},{"__isSmartRef__":true,"id":789},{"__isSmartRef__":true,"id":790},{"__isSmartRef__":true,"id":791},{"__isSmartRef__":true,"id":792},{"__isSmartRef__":true,"id":793},{"__isSmartRef__":true,"id":794},{"__isSmartRef__":true,"id":795},{"__isSmartRef__":true,"id":796},{"__isSmartRef__":true,"id":797},{"__isSmartRef__":true,"id":798},{"__isSmartRef__":true,"id":799},{"__isSmartRef__":true,"id":800},{"__isSmartRef__":true,"id":801},{"__isSmartRef__":true,"id":802},{"__isSmartRef__":true,"id":803},{"__isSmartRef__":true,"id":804},{"__isSmartRef__":true,"id":805},{"__isSmartRef__":true,"id":806},{"__isSmartRef__":true,"id":807},{"__isSmartRef__":true,"id":808},{"__isSmartRef__":true,"id":809},{"__isSmartRef__":true,"id":810},{"__isSmartRef__":true,"id":811},{"__isSmartRef__":true,"id":812},{"__isSmartRef__":true,"id":813}],[{"__isSmartRef__":true,"id":814},{"__isSmartRef__":true,"id":815},{"__isSmartRef__":true,"id":816},{"__isSmartRef__":true,"id":817},{"__isSmartRef__":true,"id":818},{"__isSmartRef__":true,"id":819},{"__isSmartRef__":true,"id":820},{"__isSmartRef__":true,"id":821},{"__isSmartRef__":true,"id":822},{"__isSmartRef__":true,"id":823},{"__isSmartRef__":true,"id":824},{"__isSmartRef__":true,"id":825},{"__isSmartRef__":true,"id":826},{"__isSmartRef__":true,"id":827},{"__isSmartRef__":true,"id":828},{"__isSmartRef__":true,"id":829},{"__isSmartRef__":true,"id":830},{"__isSmartRef__":true,"id":831},{"__isSmartRef__":true,"id":832},{"__isSmartRef__":true,"id":833},{"__isSmartRef__":true,"id":834},{"__isSmartRef__":true,"id":835},{"__isSmartRef__":true,"id":836},{"__isSmartRef__":true,"id":837},{"__isSmartRef__":true,"id":838},{"__isSmartRef__":true,"id":839},{"__isSmartRef__":true,"id":840},{"__isSmartRef__":true,"id":841},{"__isSmartRef__":true,"id":842},{"__isSmartRef__":true,"id":843},{"__isSmartRef__":true,"id":844},{"__isSmartRef__":true,"id":845},{"__isSmartRef__":true,"id":846},{"__isSmartRef__":true,"id":847},{"__isSmartRef__":true,"id":848},{"__isSmartRef__":true,"id":849},{"__isSmartRef__":true,"id":850},{"__isSmartRef__":true,"id":851},{"__isSmartRef__":true,"id":852},{"__isSmartRef__":true,"id":853},{"__isSmartRef__":true,"id":854},{"__isSmartRef__":true,"id":855},{"__isSmartRef__":true,"id":856},{"__isSmartRef__":true,"id":857},{"__isSmartRef__":true,"id":858},{"__isSmartRef__":true,"id":859},{"__isSmartRef__":true,"id":860}]],"doNotSerialize":["vis","$$globalTransform"],"showsHalos":false,"_Position":{"__isSmartRef__":true,"id":861},"name":"ProtovisMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":862},"__SourceModuleName__":"Global.apps.ProtoVisInterface","renderContextTable":{"__isSmartRef__":true,"id":863},"_Rotation":0,"_Scale":0.9980029960049944,"eventHandler":{"__isSmartRef__":true,"id":864},"connections":{"__isSmartRef__":true,"id":865},"owner":{"__isSmartRef__":true,"id":867},"priorExtent":{"__isSmartRef__":true,"id":944},"magnets":[{"__isSmartRef__":true,"id":945}],"attributeConnections":[{"__isSmartRef__":true,"id":948}],"doNotCopyProperties":["$$globalTransform"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":949},"__LivelyClassName__":"ProtoVisMorph"},"763":{"position":{"__isSmartRef__":true,"id":764},"_Extent":{"__isSmartRef__":true,"id":765},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":766},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"764":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"765":{"x":543.997999003999,"y":276.0120059760062,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"766":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"767":{"x":0,"y":0.5},"768":{"x":1,"y":0.5},"769":{"x":2,"y":2.9399999999999977},"770":{"x":3,"y":9},"771":{"x":4,"y":0},"772":{"x":5,"y":2.450000000000003},"773":{"x":6,"y":2.450000000000003},"774":{"x":7,"y":1.5},"775":{"x":8,"y":1},"776":{"x":9,"y":1.019999999999996},"777":{"x":10,"y":1.519999999999996},"778":{"x":11,"y":2.530000000000001},"779":{"x":12,"y":2.030000000000001},"780":{"x":13,"y":1.5499999999999972},"781":{"x":14,"y":1.0400000000000063},"782":{"x":15,"y":0.5},"783":{"x":16,"y":0.5},"784":{"x":17,"y":0.9899999999999949},"785":{"x":18,"y":1.5400000000000063},"786":{"x":19,"y":1.0300000000000011},"787":{"x":20,"y":0.5100000000000051},"788":{"x":21,"y":1.5499999999999972},"789":{"x":22,"y":1.9899999999999949},"790":{"x":23,"y":1.4899999999999949},"791":{"x":24,"y":1},"792":{"x":25,"y":0.5},"793":{"x":26,"y":0.5},"794":{"x":27,"y":0.5},"795":{"x":28,"y":0},"796":{"x":29,"y":0.5},"797":{"x":30,"y":0.519999999999996},"798":{"x":31,"y":9.549999999999997},"799":{"x":32,"y":9.599999999999994},"800":{"x":33,"y":9.090000000000003},"801":{"x":34,"y":5.079999999999998},"802":{"x":35,"y":0.5300000000000011},"803":{"x":36,"y":1},"804":{"x":37,"y":0.5},"805":{"x":38,"y":2.0400000000000063},"806":{"x":39,"y":1.9699999999999989},"807":{"x":40,"y":1.4699999999999989},"808":{"x":41,"y":2.010000000000005},"809":{"x":42,"y":1.519999999999996},"810":{"x":43,"y":2.049999999999997},"811":{"x":44,"y":1.5799999999999983},"812":{"x":45,"y":1.4699999999999989},"813":{"x":46,"y":0.980000000000004},"814":{"x":0,"y":1.0600000000000023},"815":{"x":1,"y":1},"816":{"x":2,"y":5.049999999999997},"817":{"x":3,"y":18},"818":{"x":4,"y":0},"819":{"x":5,"y":3.030000000000001},"820":{"x":6,"y":2.019999999999996},"821":{"x":7,"y":2},"822":{"x":8,"y":2.0600000000000023},"823":{"x":9,"y":2.1299999999999955},"824":{"x":10,"y":2.1099999999999994},"825":{"x":11,"y":3.1200000000000045},"826":{"x":12,"y":2.1299999999999955},"827":{"x":13,"y":2.1700000000000017},"828":{"x":14,"y":1.1099999999999994},"829":{"x":15,"y":1.0100000000000051},"830":{"x":16,"y":1.019999999999996},"831":{"x":17,"y":2},"832":{"x":18,"y":2.200000000000003},"833":{"x":19,"y":2.200000000000003},"834":{"x":20,"y":2.1099999999999994},"835":{"x":21,"y":2.200000000000003},"836":{"x":22,"y":1.0400000000000063},"837":{"x":23,"y":2},"838":{"x":24,"y":2.0799999999999983},"839":{"x":25,"y":1.0100000000000051},"840":{"x":26,"y":1.0300000000000011},"841":{"x":27,"y":1.0300000000000011},"842":{"x":28,"y":0},"843":{"x":29,"y":1.0400000000000063},"844":{"x":30,"y":1.1099999999999994},"845":{"x":31,"y":9.379999999999995},"846":{"x":32,"y":10.530000000000001},"847":{"x":33,"y":10.469999999999999},"848":{"x":34,"y":2.969999999999999},"849":{"x":35,"y":3.299999999999997},"850":{"x":36,"y":2.0400000000000063},"851":{"x":37,"y":1.0300000000000011},"852":{"x":38,"y":2.1500000000000057},"853":{"x":39,"y":3},"854":{"x":40,"y":2},"855":{"x":41,"y":3.1200000000000045},"856":{"x":42,"y":2.1500000000000057},"857":{"x":43,"y":3.3299999999999983},"858":{"x":44,"y":2.3299999999999983},"859":{"x":45,"y":1.980000000000004},"860":{"x":46,"y":1.980000000000004},"861":{"x":-253.48227898000812,"y":-190.68801613996595,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"862":{"migrationLevel":2,"partsSpaceName":"PartsBin/Visualization/","__SourceModuleName__":"Global.lively.PartsBin","partName":"ProtovisDrawing","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"863":{"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"},"864":{"morph":{"__isSmartRef__":true,"id":762},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"865":{"addDataAndRender":{"__isSmartRef__":true,"id":866}},"866":{},"867":{"submorphs":[{"__isSmartRef__":true,"id":762},{"__isSmartRef__":true,"id":868}],"scripts":[],"id":3203,"shape":{"__isSmartRef__":true,"id":919},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":926},"showsHalos":false,"name":"ProtovisStackDrawing","partsBinMetaInfo":{"__isSmartRef__":true,"id":927},"__SourceModuleName__":"Global.lively.morphic.Core","_Rotation":0,"_Scale":1.0040100200350561,"renderContextTable":{"__isSmartRef__":true,"id":928},"eventHandler":{"__isSmartRef__":true,"id":929},"layout":{"__isSmartRef__":true,"id":930},"priorExtent":{"__isSmartRef__":true,"id":931},"connections":{"__isSmartRef__":true,"id":932},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":934},"__LivelyClassName__":"lively.morphic.Box"},"868":{"submorphs":[{"__isSmartRef__":true,"id":869}],"scripts":[],"id":3205,"shape":{"__isSmartRef__":true,"id":883},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":898},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":886},"lighterFill":{"__isSmartRef__":true,"id":899},"label":{"__isSmartRef__":true,"id":869},"attributeConnections":[{"__isSmartRef__":true,"id":908},{"__isSmartRef__":true,"id":910}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","_Rotation":0,"padding":{"__isSmartRef__":true,"id":915},"name":"resetButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":916},"_Scale":1.089423869470782,"renderContextTable":{"__isSmartRef__":true,"id":917},"eventHandler":{"__isSmartRef__":true,"id":918},"owner":{"__isSmartRef__":true,"id":867},"__LivelyClassName__":"lively.morphic.Button"},"869":{"submorphs":[],"scripts":[],"id":3206,"shape":{"__isSmartRef__":true,"id":870},"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":875},"textColor":{"__isSmartRef__":true,"id":873},"owner":{"__isSmartRef__":true,"id":868},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":876}],"padding":{"__isSmartRef__":true,"id":878},"_Padding":{"__isSmartRef__":true,"id":879},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":880},"_FontFamily":"Helvetica, Sans-Serif","renderContextTable":{"__isSmartRef__":true,"id":881},"eventHandler":{"__isSmartRef__":true,"id":882},"_HandStyle":"default","_PointerEvents":"none","_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_Align":"center","__LivelyClassName__":"lively.morphic.Text"},"870":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":871},"_Extent":{"__isSmartRef__":true,"id":872},"_BorderColor":{"__isSmartRef__":true,"id":873},"renderContextTable":{"__isSmartRef__":true,"id":874},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"871":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"872":{"x":116,"y":18,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"873":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"874":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"875":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"876":{"style":{"__isSmartRef__":true,"id":877},"chunkOwner":{"__isSmartRef__":true,"id":869},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"877":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"878":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"879":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"880":{"x":116,"y":18,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"881":{"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"},"882":{"morph":{"__isSmartRef__":true,"id":869},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"883":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":884},"_Extent":{"__isSmartRef__":true,"id":885},"_Fill":{"__isSmartRef__":true,"id":886},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":896},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":897},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"884":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"885":{"x":116,"y":20,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"886":{"stops":[{"__isSmartRef__":true,"id":887},{"__isSmartRef__":true,"id":889},{"__isSmartRef__":true,"id":891},{"__isSmartRef__":true,"id":893}],"vector":{"__isSmartRef__":true,"id":895},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"887":{"offset":0,"color":{"__isSmartRef__":true,"id":888}},"888":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"889":{"offset":0.4,"color":{"__isSmartRef__":true,"id":890}},"890":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"891":{"offset":0.6,"color":{"__isSmartRef__":true,"id":892}},"892":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"893":{"offset":1,"color":{"__isSmartRef__":true,"id":894}},"894":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"895":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"896":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"897":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"898":{"x":103.58462358410429,"y":-222.1093371082231,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"899":{"stops":[{"__isSmartRef__":true,"id":900},{"__isSmartRef__":true,"id":902},{"__isSmartRef__":true,"id":904},{"__isSmartRef__":true,"id":906}],"vector":{"__isSmartRef__":true,"id":895},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"900":{"offset":0,"color":{"__isSmartRef__":true,"id":901}},"901":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"902":{"offset":0.4,"color":{"__isSmartRef__":true,"id":903}},"903":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"904":{"offset":0.6,"color":{"__isSmartRef__":true,"id":905}},"905":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"906":{"offset":1,"color":{"__isSmartRef__":true,"id":907}},"907":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"908":{"sourceObj":{"__isSmartRef__":true,"id":868},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":762},"targetMethodName":"reset","__SourceModuleName__":"Global.lively.bindings","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":909},"__LivelyClassName__":"AttributeConnection"},"909":{"source":{"__isSmartRef__":true,"id":868},"target":{"__isSmartRef__":true,"id":762}},"910":{"sourceObj":{"__isSmartRef__":true,"id":868},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":762},"targetMethodName":"render","converter":null,"converterString":null,"updaterString":"function ($upd) { this.targetObj.data = [[{x:0, y:0}]]; $upd() }","varMapping":{"__isSmartRef__":true,"id":911},"__SourceModuleName__":"Global.lively.bindings","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":912},"__LivelyClassName__":"AttributeConnection"},"911":{"source":{"__isSmartRef__":true,"id":868},"target":{"__isSmartRef__":true,"id":762}},"912":{"updater":{"__isSmartRef__":true,"id":913}},"913":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":911},"source":"function ($upd) { this.targetObj.data = [[{x:0, y:0}]]; $upd() }","funcProperties":{"__isSmartRef__":true,"id":914},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"914":{},"915":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"916":{"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"},"917":{"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"},"918":{"morph":{"__isSmartRef__":true,"id":868},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"919":{"position":{"__isSmartRef__":true,"id":920},"_Extent":{"__isSmartRef__":true,"id":921},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":922},"_Fill":{"__isSmartRef__":true,"id":923},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":924},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_Position":{"__isSmartRef__":true,"id":925},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"920":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"921":{"x":565.1704110039991,"y":359.0546128281011,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"922":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"923":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"924":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"925":{"x":-261.476262000004,"y":-235.5282360000009,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"926":{"x":1243,"y":473,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"927":{"migrationLevel":2,"partsSpaceName":"PartsBin/Visualization/","__SourceModuleName__":"Global.lively.PartsBin","partName":"ProtovisDrawing","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"928":{"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"},"929":{"morph":{"__isSmartRef__":true,"id":867},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"930":{},"931":{"x":565.1704110039991,"y":361.0546128281011,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"932":{"addDataAndRender":{"__isSmartRef__":true,"id":933}},"933":{},"934":{"addDataAndRender":{"__isSmartRef__":true,"id":935},"reset":{"__isSmartRef__":true,"id":938},"setupConnections":{"__isSmartRef__":true,"id":941}},"935":{"varMapping":{"__isSmartRef__":true,"id":936},"source":"function addDataAndRender(data) {\n this.get('ProtovisMorph').addDataAndRender(data)\n}","funcProperties":{"__isSmartRef__":true,"id":937},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"936":{"this":{"__isSmartRef__":true,"id":867}},"937":{},"938":{"varMapping":{"__isSmartRef__":true,"id":939},"source":"function reset() {\n this.connections = {addDataAndRender: {}}\n this.get('ProtovisMorph').reset();\n}","funcProperties":{"__isSmartRef__":true,"id":940},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"939":{"this":{"__isSmartRef__":true,"id":867}},"940":{},"941":{"varMapping":{"__isSmartRef__":true,"id":942},"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":943},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"942":{"this":{"__isSmartRef__":true,"id":867}},"943":{},"944":{"x":543.997999003999,"y":275.0120059760062,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"945":{"morph":{"__isSmartRef__":true,"id":762},"position":{"__isSmartRef__":true,"id":946},"connectedControlPoints":[{"__isSmartRef__":true,"id":947}],"__SourceModuleName__":"Global.lively.morphic.Connectors","__LivelyClassName__":"lively.morphic.Magnet"},"946":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"947":{"morph":{"__isSmartRef__":true,"id":524},"index":1,"connectedMagnet":{"__isSmartRef__":true,"id":945},"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"948":{"sourceObj":{"__isSmartRef__":true,"id":762},"sourceAttrName":"globalTransform","targetObj":{"__isSmartRef__":true,"id":947},"targetMethodName":"alignToMagnet","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"949":{"draw":{"__isSmartRef__":true,"id":950},"prepareForNewRenderContext":{"__isSmartRef__":true,"id":961},"addDataAndRender":{"__isSmartRef__":true,"id":968},"reset":{"__isSmartRef__":true,"id":971},"setChartType":{"__isSmartRef__":true,"id":974},"drawStackChart":{"__isSmartRef__":true,"id":957},"setupStackExample":{"__isSmartRef__":true,"id":977},"addDataColumnAndRender":{"__isSmartRef__":true,"id":980},"maxYofData":{"__isSmartRef__":true,"id":983}},"950":{"varMapping":{"__isSmartRef__":true,"id":951},"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":956},"__SourceModuleName__":"Global","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":960},"__LivelyClassName__":"lively.Closure"},"951":{"this":{"__isSmartRef__":true,"id":762},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":952}},"952":{"$super":{"__isSmartRef__":true,"id":953}},"953":{"varMapping":{"__isSmartRef__":true,"id":954},"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":955},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"954":{"obj":{"__isSmartRef__":true,"id":762},"name":"draw"},"955":{},"956":{"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":957}},"957":{"varMapping":{"__isSmartRef__":true,"id":958},"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":959},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"958":{"this":{"__isSmartRef__":true,"id":762}},"959":{},"960":{"originalFunc":{"__isSmartRef__":true,"id":957}},"961":{"varMapping":{"__isSmartRef__":true,"id":962},"source":"function prepareForNewRenderContext(renderCtx) {\n $super(renderCtx);\n lively.bindings.callWhenNotNull(Global, 'pv', this, 'render');\n}","funcProperties":{"__isSmartRef__":true,"id":967},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"962":{"this":{"__isSmartRef__":true,"id":762},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":963}},"963":{"$super":{"__isSmartRef__":true,"id":964}},"964":{"varMapping":{"__isSmartRef__":true,"id":965},"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":966},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"965":{"obj":{"__isSmartRef__":true,"id":762},"name":"prepareForNewRenderContext"},"966":{},"967":{},"968":{"varMapping":{"__isSmartRef__":true,"id":969},"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":970},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"969":{"this":{"__isSmartRef__":true,"id":762}},"970":{},"971":{"varMapping":{"__isSmartRef__":true,"id":972},"source":"function reset() {\n this.connections = {addDataColumnAndRender: {}}\n this.setupStackExample()\n // this.setChartType('stack');\n}","funcProperties":{"__isSmartRef__":true,"id":973},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"972":{"this":{"__isSmartRef__":true,"id":762}},"973":{},"974":{"varMapping":{"__isSmartRef__":true,"id":975},"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":976},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"975":{"this":{"__isSmartRef__":true,"id":762}},"976":{},"977":{"varMapping":{"__isSmartRef__":true,"id":978},"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":979},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"978":{"this":{"__isSmartRef__":true,"id":762}},"979":{},"980":{"varMapping":{"__isSmartRef__":true,"id":981},"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":982},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"981":{"this":{"__isSmartRef__":true,"id":762}},"982":{},"983":{"varMapping":{"__isSmartRef__":true,"id":984},"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":985},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"984":{"this":{"__isSmartRef__":true,"id":762}},"985":{},"986":{"converter":{"__isSmartRef__":true,"id":987}},"987":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":988},"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":989},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"988":{},"989":{},"990":{"sourceObj":{"__isSmartRef__":true,"id":538},"sourceAttrName":"globalTransform","targetObj":{"__isSmartRef__":true,"id":536},"targetMethodName":"alignToMagnet","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"991":{"exec":{"__isSmartRef__":true,"id":992},"serverResult":{"__isSmartRef__":true,"id":993}},"992":{},"993":{},"994":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"995":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"996":{"morphMenuItems":{"__isSmartRef__":true,"id":997}},"997":{"varMapping":{"__isSmartRef__":true,"id":998},"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":1003},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"998":{"this":{"__isSmartRef__":true,"id":524},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":999}},"999":{"$super":{"__isSmartRef__":true,"id":1000}},"1000":{"varMapping":{"__isSmartRef__":true,"id":1001},"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":1002},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1001":{"obj":{"__isSmartRef__":true,"id":524},"name":"morphMenuItems"},"1002":{},"1003":{},"1004":{"sourceObj":{"__isSmartRef__":true,"id":320},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":429},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":429},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1005":{"sourceObj":{"__isSmartRef__":true,"id":320},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":429},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":429},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1006":{"sourceObj":{"__isSmartRef__":true,"id":320},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":429},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":429},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1007":{"sourceObj":{"__isSmartRef__":true,"id":320},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":429},"targetMethodName":"updateOwners","converter":null,"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1008},"dependedBy":{"__isSmartRef__":true,"id":429},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1008":{"source":{"__isSmartRef__":true,"id":320},"target":{"__isSmartRef__":true,"id":429}},"1009":{"sourceObj":{"__isSmartRef__":true,"id":361},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":429},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":429},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1010":{"sourceObj":{"__isSmartRef__":true,"id":361},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":429},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":429},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1011":{"sourceObj":{"__isSmartRef__":true,"id":361},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":429},"targetMethodName":"updateOwners","converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1012},"dependedBy":{"__isSmartRef__":true,"id":429},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1013},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1012":{"source":{"__isSmartRef__":true,"id":361},"target":{"__isSmartRef__":true,"id":429}},"1013":{"converter":{"__isSmartRef__":true,"id":1014}},"1014":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":1012},"source":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","funcProperties":{"__isSmartRef__":true,"id":1015},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1015":{},"1016":{"sourceObj":{"__isSmartRef__":true,"id":142},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":429},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":429},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1017":{"sourceObj":{"__isSmartRef__":true,"id":142},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":429},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":429},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1018":{"sourceObj":{"__isSmartRef__":true,"id":142},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":429},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":429},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1019":{"sourceObj":{"__isSmartRef__":true,"id":142},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":429},"targetMethodName":"updateOwners","converter":null,"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1020},"dependedBy":{"__isSmartRef__":true,"id":429},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1020":{"source":{"__isSmartRef__":true,"id":142},"target":{"__isSmartRef__":true,"id":429}},"1021":{"d":1.0020050080140206,"a":1.0020050080140206,"f":421.5473210948677,"e":430.50125200275033,"c":0,"b":0,"matrix_":{"__isSmartRef__":true,"id":1022},"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Core"},"1022":{"a":1.0020050080140206,"b":0,"c":0,"d":1.0020050080140206,"e":430.50125200275033,"f":421.5473210948677,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Core"},"1023":{"addDataAndRender":{"__isSmartRef__":true,"id":1024},"reset":{"__isSmartRef__":true,"id":1027},"setupConnections":{"__isSmartRef__":true,"id":1030}},"1024":{"varMapping":{"__isSmartRef__":true,"id":1025},"source":"function addDataAndRender(data) {\n this.get('ProtovisMorph').addDataAndRender(data)\n}","funcProperties":{"__isSmartRef__":true,"id":1026},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1025":{"this":{"__isSmartRef__":true,"id":361}},"1026":{},"1027":{"varMapping":{"__isSmartRef__":true,"id":1028},"source":"function reset() {\n this.connections = {addDataAndRender: {}}\n this.get('ProtovisMorph').reset();\n}","funcProperties":{"__isSmartRef__":true,"id":1029},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1028":{"this":{"__isSmartRef__":true,"id":361}},"1029":{},"1030":{"varMapping":{"__isSmartRef__":true,"id":1031},"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":1032},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1031":{"this":{"__isSmartRef__":true,"id":361}},"1032":{},"1033":{"x":543.997999003999,"y":275.0120059760062,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1034":{"sourceObj":{"__isSmartRef__":true,"id":320},"sourceAttrName":"globalTransform","targetObj":{"__isSmartRef__":true,"id":523},"targetMethodName":"alignToMagnet","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1035":{"draw":{"__isSmartRef__":true,"id":1036},"prepareForNewRenderContext":{"__isSmartRef__":true,"id":1047},"addDataAndRender":{"__isSmartRef__":true,"id":1054},"reset":{"__isSmartRef__":true,"id":1057},"setChartType":{"__isSmartRef__":true,"id":1060},"drawStackChart":{"__isSmartRef__":true,"id":1043},"setupStackExample":{"__isSmartRef__":true,"id":1063},"addDataColumnAndRender":{"__isSmartRef__":true,"id":1066},"maxYofData":{"__isSmartRef__":true,"id":1069}},"1036":{"varMapping":{"__isSmartRef__":true,"id":1037},"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":1042},"__SourceModuleName__":"Global","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1046},"__LivelyClassName__":"lively.Closure"},"1037":{"this":{"__isSmartRef__":true,"id":320},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1038}},"1038":{"$super":{"__isSmartRef__":true,"id":1039}},"1039":{"varMapping":{"__isSmartRef__":true,"id":1040},"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":1041},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1040":{"obj":{"__isSmartRef__":true,"id":320},"name":"draw"},"1041":{},"1042":{"hasLivelyClosure":true,"livelyClosure":{"__isSmartRef__":true,"id":1043}},"1043":{"varMapping":{"__isSmartRef__":true,"id":1044},"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":1045},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1044":{"this":{"__isSmartRef__":true,"id":320}},"1045":{},"1046":{"originalFunc":{"__isSmartRef__":true,"id":1043}},"1047":{"varMapping":{"__isSmartRef__":true,"id":1048},"source":"function prepareForNewRenderContext(renderCtx) {\n $super(renderCtx);\n lively.bindings.callWhenNotNull(Global, 'pv', this, 'render');\n}","funcProperties":{"__isSmartRef__":true,"id":1053},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1048":{"this":{"__isSmartRef__":true,"id":320},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1049}},"1049":{"$super":{"__isSmartRef__":true,"id":1050}},"1050":{"varMapping":{"__isSmartRef__":true,"id":1051},"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":1052},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1051":{"obj":{"__isSmartRef__":true,"id":320},"name":"prepareForNewRenderContext"},"1052":{},"1053":{},"1054":{"varMapping":{"__isSmartRef__":true,"id":1055},"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":1056},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1055":{"this":{"__isSmartRef__":true,"id":320}},"1056":{},"1057":{"varMapping":{"__isSmartRef__":true,"id":1058},"source":"function reset() {\n this.connections = {addDataColumnAndRender: {}}\n this.setupStackExample()\n // this.setChartType('stack');\n}","funcProperties":{"__isSmartRef__":true,"id":1059},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1058":{"this":{"__isSmartRef__":true,"id":320}},"1059":{},"1060":{"varMapping":{"__isSmartRef__":true,"id":1061},"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":1062},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1061":{"this":{"__isSmartRef__":true,"id":320}},"1062":{},"1063":{"varMapping":{"__isSmartRef__":true,"id":1064},"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":1065},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1064":{"this":{"__isSmartRef__":true,"id":320}},"1065":{},"1066":{"varMapping":{"__isSmartRef__":true,"id":1067},"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":1068},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1067":{"this":{"__isSmartRef__":true,"id":320}},"1068":{},"1069":{"varMapping":{"__isSmartRef__":true,"id":1070},"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":1071},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1070":{"this":{"__isSmartRef__":true,"id":320}},"1071":{},"1072":{"converter":{"__isSmartRef__":true,"id":1073}},"1073":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":1074},"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}","funcProperties":{"__isSmartRef__":true,"id":1075},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1074":{},"1075":{},"1076":{"sourceObj":{"__isSmartRef__":true,"id":233},"sourceAttrName":"globalTransform","targetObj":{"__isSmartRef__":true,"id":461},"targetMethodName":"alignToMagnet","dependendConnections":[{"__isSmartRef__":true,"id":1077},{"__isSmartRef__":true,"id":1078},{"__isSmartRef__":true,"id":1079},{"__isSmartRef__":true,"id":1080},{"__isSmartRef__":true,"id":1085},{"__isSmartRef__":true,"id":1086},{"__isSmartRef__":true,"id":1087},{"__isSmartRef__":true,"id":1088}],"oldTransform":{"__isSmartRef__":true,"id":1090},"__LivelyClassName__":"lively.morphic.GeometryTransformConnection","__SourceModuleName__":"Global.lively.bindings.GeometryBindings"},"1077":{"sourceObj":{"__isSmartRef__":true,"id":233},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":1076},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":1076},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1078":{"sourceObj":{"__isSmartRef__":true,"id":233},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":1076},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":1076},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1079":{"sourceObj":{"__isSmartRef__":true,"id":233},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":1076},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":1076},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1080":{"sourceObj":{"__isSmartRef__":true,"id":233},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":1076},"targetMethodName":"updateOwners","converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1081},"dependedBy":{"__isSmartRef__":true,"id":1076},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1082},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1081":{"source":{"__isSmartRef__":true,"id":233},"target":{"__isSmartRef__":true,"id":1076}},"1082":{"converter":{"__isSmartRef__":true,"id":1083}},"1083":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":1081},"source":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","funcProperties":{"__isSmartRef__":true,"id":1084},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1084":{},"1085":{"sourceObj":{"__isSmartRef__":true,"id":142},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":1076},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":1076},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1086":{"sourceObj":{"__isSmartRef__":true,"id":142},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":1076},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":1076},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1087":{"sourceObj":{"__isSmartRef__":true,"id":142},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":1076},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":1076},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1088":{"sourceObj":{"__isSmartRef__":true,"id":142},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":1076},"targetMethodName":"updateOwners","converter":null,"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1089},"dependedBy":{"__isSmartRef__":true,"id":1076},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1089":{"source":{"__isSmartRef__":true,"id":142},"target":{"__isSmartRef__":true,"id":1076}},"1090":{"d":1,"a":1,"f":538,"e":139,"c":0,"b":0,"matrix_":{"__isSmartRef__":true,"id":1091},"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Core"},"1091":{"a":1,"b":0,"c":0,"d":1,"e":139,"f":538,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Core"},"1092":{"sourceObj":{"__isSmartRef__":true,"id":233},"sourceAttrName":"globalTransform","targetObj":{"__isSmartRef__":true,"id":464},"targetMethodName":"alignToMagnet","dependendConnections":[{"__isSmartRef__":true,"id":1093},{"__isSmartRef__":true,"id":1094},{"__isSmartRef__":true,"id":1095},{"__isSmartRef__":true,"id":1096},{"__isSmartRef__":true,"id":1101},{"__isSmartRef__":true,"id":1102},{"__isSmartRef__":true,"id":1103},{"__isSmartRef__":true,"id":1104}],"oldTransform":{"__isSmartRef__":true,"id":1106},"__LivelyClassName__":"lively.morphic.GeometryTransformConnection","__SourceModuleName__":"Global.lively.bindings.GeometryBindings"},"1093":{"sourceObj":{"__isSmartRef__":true,"id":233},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":1092},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":1092},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1094":{"sourceObj":{"__isSmartRef__":true,"id":233},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":1092},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":1092},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1095":{"sourceObj":{"__isSmartRef__":true,"id":233},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":1092},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":1092},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1096":{"sourceObj":{"__isSmartRef__":true,"id":233},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":1092},"targetMethodName":"updateOwners","converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1097},"dependedBy":{"__isSmartRef__":true,"id":1092},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1098},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1097":{"source":{"__isSmartRef__":true,"id":233},"target":{"__isSmartRef__":true,"id":1092}},"1098":{"converter":{"__isSmartRef__":true,"id":1099}},"1099":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":1097},"source":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","funcProperties":{"__isSmartRef__":true,"id":1100},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1100":{},"1101":{"sourceObj":{"__isSmartRef__":true,"id":142},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":1092},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":1092},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1102":{"sourceObj":{"__isSmartRef__":true,"id":142},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":1092},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":1092},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1103":{"sourceObj":{"__isSmartRef__":true,"id":142},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":1092},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":1092},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1104":{"sourceObj":{"__isSmartRef__":true,"id":142},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":1092},"targetMethodName":"updateOwners","converter":null,"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1105},"dependedBy":{"__isSmartRef__":true,"id":1092},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1105":{"source":{"__isSmartRef__":true,"id":142},"target":{"__isSmartRef__":true,"id":1092}},"1106":{"d":1,"a":1,"f":538,"e":139,"c":0,"b":0,"matrix_":{"__isSmartRef__":true,"id":1107},"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Core"},"1107":{"a":1,"b":0,"c":0,"d":1,"e":139,"f":538,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Core"},"1108":{"adjustForNewBounds":true},"1109":{"x":193.9080141874561,"y":67.00798003993009,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1110":{"resultFromServer":{"__isSmartRef__":true,"id":1111}},"1111":{},"1112":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/nodejs/SandboxServer/run","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"1113":{"x":115,"y":221,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1114":{"reset":{"__isSmartRef__":true,"id":1115},"onServerDo":{"__isSmartRef__":true,"id":1118},"createServerProxy":{"__isSmartRef__":true,"id":1121},"exec":{"__isSmartRef__":true,"id":1124},"setExtent":{"__isSmartRef__":true,"id":1127},"setupConnections":{"__isSmartRef__":true,"id":1134}},"1115":{"varMapping":{"__isSmartRef__":true,"id":1116},"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":1117},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1116":{"this":{"__isSmartRef__":true,"id":233}},"1117":{},"1118":{"varMapping":{"__isSmartRef__":true,"id":1119},"source":"function onServerDo() {\n runOnCommandLine('mpstat -P ALL 1 1', function(result, send) {\n send(result);\n })\n}","funcProperties":{"__isSmartRef__":true,"id":1120},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1119":{"this":{"__isSmartRef__":true,"id":233}},"1120":{},"1121":{"varMapping":{"__isSmartRef__":true,"id":1122},"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":1123},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1122":{"this":{"__isSmartRef__":true,"id":233}},"1123":{},"1124":{"varMapping":{"__isSmartRef__":true,"id":1125},"source":"function exec() {\n var serverProxy = this.createServerProxy();\n connect(serverProxy, 'result', this, 'resultFromServer')\n serverProxy.evalOnServer('(' + this.onServerDo + ')()');\n}","funcProperties":{"__isSmartRef__":true,"id":1126},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1125":{"this":{"__isSmartRef__":true,"id":233}},"1126":{},"1127":{"varMapping":{"__isSmartRef__":true,"id":1128},"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":1133},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1128":{"this":{"__isSmartRef__":true,"id":233},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1129}},"1129":{"$super":{"__isSmartRef__":true,"id":1130}},"1130":{"varMapping":{"__isSmartRef__":true,"id":1131},"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":1132},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1131":{"obj":{"__isSmartRef__":true,"id":233},"name":"setExtent"},"1132":{},"1133":{},"1134":{"varMapping":{"__isSmartRef__":true,"id":1135},"source":"function setupConnections() {\n connect(this.get('runButton'), 'fire', this, 'exec')\n}","funcProperties":{"__isSmartRef__":true,"id":1136},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1135":{"this":{"__isSmartRef__":true,"id":233}},"1136":{},"1137":{"sourceObj":{"__isSmartRef__":true,"id":143},"sourceAttrName":"globalTransform","targetObj":{"__isSmartRef__":true,"id":494},"targetMethodName":"alignToMagnet","dependendConnections":[{"__isSmartRef__":true,"id":1138},{"__isSmartRef__":true,"id":1139},{"__isSmartRef__":true,"id":1140},{"__isSmartRef__":true,"id":1141},{"__isSmartRef__":true,"id":1146},{"__isSmartRef__":true,"id":1147},{"__isSmartRef__":true,"id":1148},{"__isSmartRef__":true,"id":1149}],"oldTransform":{"__isSmartRef__":true,"id":1151},"__LivelyClassName__":"lively.morphic.GeometryTransformConnection","__SourceModuleName__":"Global.lively.bindings.GeometryBindings"},"1138":{"sourceObj":{"__isSmartRef__":true,"id":143},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":1137},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":1137},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1139":{"sourceObj":{"__isSmartRef__":true,"id":143},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":1137},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":1137},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1140":{"sourceObj":{"__isSmartRef__":true,"id":143},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":1137},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":1137},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1141":{"sourceObj":{"__isSmartRef__":true,"id":143},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":1137},"targetMethodName":"updateOwners","converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1142},"dependedBy":{"__isSmartRef__":true,"id":1137},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1143},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1142":{"source":{"__isSmartRef__":true,"id":143},"target":{"__isSmartRef__":true,"id":1137}},"1143":{"converter":{"__isSmartRef__":true,"id":1144}},"1144":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":1142},"source":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","funcProperties":{"__isSmartRef__":true,"id":1145},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1145":{},"1146":{"sourceObj":{"__isSmartRef__":true,"id":142},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":1137},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":1137},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1147":{"sourceObj":{"__isSmartRef__":true,"id":142},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":1137},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":1137},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1148":{"sourceObj":{"__isSmartRef__":true,"id":142},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":1137},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":1137},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1149":{"sourceObj":{"__isSmartRef__":true,"id":142},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":1137},"targetMethodName":"updateOwners","converter":null,"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1150},"dependedBy":{"__isSmartRef__":true,"id":1137},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"1150":{"source":{"__isSmartRef__":true,"id":142},"target":{"__isSmartRef__":true,"id":1137}},"1151":{"d":1,"a":1,"f":323,"e":30,"c":0,"b":0,"matrix_":{"__isSmartRef__":true,"id":1152},"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Core"},"1152":{"a":1,"b":0,"c":0,"d":1,"e":30,"f":323,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Core"},"1153":{"x":302.1904295202012,"y":46.21535372369033,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1154":{},"1155":{"tick":{"__isSmartRef__":true,"id":1156}},"1156":{},"1157":{"x":6,"y":6,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1158":{"updateTickingScripts":{"__isSmartRef__":true,"id":1159},"setupConnections":{"__isSmartRef__":true,"id":1162},"updateTick":{"__isSmartRef__":true,"id":1165}},"1159":{"varMapping":{"__isSmartRef__":true,"id":1160},"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":1161},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1160":{"this":{"__isSmartRef__":true,"id":143}},"1161":{},"1162":{"varMapping":{"__isSmartRef__":true,"id":1163},"source":"function setupConnections() {\n this.connections = {tick: {}}\n\tconnect(this, 'running', this, 'updateTickingScripts')\n}","funcProperties":{"__isSmartRef__":true,"id":1164},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1163":{"this":{"__isSmartRef__":true,"id":143}},"1164":{},"1165":{"varMapping":{"__isSmartRef__":true,"id":1166},"source":"function updateTick() {\n this.tick = Date.now()\n}","funcProperties":{"__isSmartRef__":true,"id":1167},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1166":{"this":{"__isSmartRef__":true,"id":143}},"1167":{},"1168":{"_Position":{"__isSmartRef__":true,"id":1169},"renderContextTable":{"__isSmartRef__":true,"id":1170},"_Extent":{"__isSmartRef__":true,"id":1171},"_BorderWidth":1.776,"_BorderRadius":22.21,"_Opacity":1,"_BorderStyle":"solid","_Fill":{"__isSmartRef__":true,"id":1172},"_BorderColor":{"__isSmartRef__":true,"id":1173},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1169":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1170":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1171":{"x":969.9119686260304,"y":424.02172007403885,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1172":{"r":0.921,"g":0.921,"b":0.921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1173":{"r":0.129,"g":0.129,"b":0.129,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1174":{"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"},"1175":{"morph":{"__isSmartRef__":true,"id":142},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1176":{"x":24,"y":317,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1177":{},"1178":{"partName":"NewCPUVisualization","requiredModules":[],"migrationLevel":2,"partsSpaceName":"PartsBin/","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1179":{"submorphs":[],"scripts":[],"id":226,"shape":{"__isSmartRef__":true,"id":1180},"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":1185},"eventHandler":{"__isSmartRef__":true,"id":1186},"showsHalos":false,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Position":{"__isSmartRef__":true,"id":1187},"_Scale":1,"_Rotation":0,"owner":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.HandMorph"},"1180":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1181},"_Extent":{"__isSmartRef__":true,"id":1182},"_Fill":{"__isSmartRef__":true,"id":1183},"renderContextTable":{"__isSmartRef__":true,"id":1184},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1181":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1182":{"x":2,"y":2,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1183":{"r":0.8,"g":0,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1184":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1185":{"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"},"1186":{"morph":{"__isSmartRef__":true,"id":1179},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1187":{"x":810,"y":425,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1188":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1189},"_Extent":{"__isSmartRef__":true,"id":1190},"_Fill":{"__isSmartRef__":true,"id":1191},"renderContextTable":{"__isSmartRef__":true,"id":1192},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1189":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1190":{"x":2800,"y":2900,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1191":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1192":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1193":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1194":{"name":"Local code","__LivelyClassName__":"ChangeSet","__SourceModuleName__":"Global.lively.ChangeSet"},"1195":{"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"},"1196":{"morph":{"__isSmartRef__":true,"id":0},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1197":{"protocol":"http:","hostname":"www.lively-kernel.org","pathname":"/repository/webwerkstatt/demos/LiveWeb/VisualBindings.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"1198":{"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":1199},"__SourceModuleName__":"Global.lively.bindings","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1200},"__LivelyClassName__":"AttributeConnection"},"1199":{"source":{"__isSmartRef__":true,"id":0},"target":{"__isSmartRef__":true,"id":0}},"1200":{"updater":{"__isSmartRef__":true,"id":1201}},"1201":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":1199},"source":"function ($upd, v) { \n if (v && v.toString() !== URL.source.toString()) {\n $upd(v) \n }\n }","funcProperties":{"__isSmartRef__":true,"id":1202},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1202":{},"isSimplifiedRegistry":true}}]]>