","draggingEnabled":true,"_Scale":1,"attributeConnections":[{"__isSmartRef__":true,"id":3033}],"doNotSerialize":["$$savedWorldAsURL"],"doNotCopyProperties":["$$savedWorldAsURL"],"eventStartPos":null,"savedWorldAsURL":{"__isSmartRef__":true,"id":3034},"__LivelyClassName__":"lively.morphic.World"},"936":{"submorphs":[],"scripts":[],"id":257,"shape":{"__isSmartRef__":true,"id":937},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":941},"_MaxTextWidth":202.48973819619198,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":942},"showsHalos":false,"_FontSize":25,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"Title","partsBinMetaInfo":{"__isSmartRef__":true,"id":943},"_TextColor":{"__isSmartRef__":true,"id":944},"owner":{"__isSmartRef__":true,"id":935},"_Rotation":0,"textChunks":[{"__isSmartRef__":true,"id":945}],"charsReplaced":"Use this page as a template for your own worlds","lastFindLoc":-47,"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":947},"priorSelectionRange":[0,12],"_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":948},"__LivelyClassName__":"lively.morphic.Text"},"937":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":938},"_Extent":{"__isSmartRef__":true,"id":939},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":940},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"938":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"939":{"x":202.48973819619198,"y":-65.1020523607616,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"940":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"941":{"x":9.72943880505045,"y":12.687814005827482,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"942":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"943":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"944":{"r":0,"g":0.309,"b":0.595,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"945":{"style":{"__isSmartRef__":true,"id":946},"morph":{"__isSmartRef__":true,"id":936},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"946":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"947":{"x":202.48973819619198,"y":-65.1020523607616,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"948":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"949":{"submorphs":[],"scripts":[],"id":66,"shape":{"__isSmartRef__":true,"id":950},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":955},"_MaxTextWidth":840.9066868037173,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":953},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"Text","partsBinMetaInfo":{"__isSmartRef__":true,"id":956},"textChunks":[{"__isSmartRef__":true,"id":957}],"charsReplaced":" ","lastFindLoc":167,"priorSelectionRange":[107,107],"prevScroll":[0,0],"_Scale":1,"owner":{"__isSmartRef__":true,"id":935},"priorExtent":{"__isSmartRef__":true,"id":959},"savedTextString":"Building another ScriptEditor to get the hang with LK development :-)\n\nObjectEditor\n\n-> should display only a single script of that objects\n-> scripts should be chosen from a list of all scripts\n-> should provide a pop-up list of possible targets (top-level morphs)\n\n-> should include a workspace-pane (this bound to target object)\n\n-> should provide inspector-like overview of properties of the target\n\n\nnot finished yet...although comments and feedback are welcome!","renderContextTable":{"__isSmartRef__":true,"id":960},"__LivelyClassName__":"lively.morphic.Text"},"950":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":951},"_Extent":{"__isSmartRef__":true,"id":952},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":953},"_BorderRadius":0,"_Fill":{"__isSmartRef__":true,"id":954},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"951":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"952":{"x":840.9066868037173,"y":108,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"953":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"954":{"r":0.921,"g":0.921,"b":0.921,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"955":{"x":8.566601541489035,"y":68.968922715887,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"956":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"957":{"style":{"__isSmartRef__":true,"id":958},"morph":{"__isSmartRef__":true,"id":949},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"958":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"959":{"x":840.9066868037173,"y":108,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"960":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"961":{"submorphs":[{"__isSmartRef__":true,"id":962},{"__isSmartRef__":true,"id":1845},{"__isSmartRef__":true,"id":1961}],"scripts":[],"id":853,"shape":{"__isSmartRef__":true,"id":1992},"droppingEnabled":true,"halosEnabled":true,"draggingEnabled":true,"layout":{"__isSmartRef__":true,"id":1994},"_Position":{"__isSmartRef__":true,"id":1995},"priorExtent":{"__isSmartRef__":true,"id":1996},"targetMorph":{"__isSmartRef__":true,"id":962},"titleBar":{"__isSmartRef__":true,"id":1845},"contentOffset":{"__isSmartRef__":true,"id":1997},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":null,"expandedExtent":null,"ignoreEventsOnExpand":false,"highlighted":true,"_Rotation":0,"_Scale":1,"prevDragPos":{"__isSmartRef__":true,"id":1998},"showsHalos":false,"name":"ScriptEditor","partsBinMetaInfo":{"__isSmartRef__":true,"id":1999},"__SourceModuleName__":"Global.lively.morphic.Widgets","owner":{"__isSmartRef__":true,"id":935},"__LivelyClassName__":"lively.morphic.Window"},"962":{"submorphs":[{"__isSmartRef__":true,"id":963}],"scripts":[],"id":854,"shape":{"__isSmartRef__":true,"id":1763},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1768},"showsHalos":false,"name":"ScriptEditorPane","partsBinMetaInfo":{"__isSmartRef__":true,"id":1769},"__SourceModuleName__":"Global.lively.morphic.Core","owner":{"__isSmartRef__":true,"id":961},"_Rotation":0,"targetName":null,"searchText":null,"scriptList":null,"scriptSource":{"__isSmartRef__":true,"id":963},"targetFound":null,"removeButton":null,"addButton":null,"closeButton":null,"target":{"__isSmartRef__":true,"id":971},"_Scale":1,"layout":{"__isSmartRef__":true,"id":1770},"priorExtent":{"__isSmartRef__":true,"id":1771},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1772},"__LivelyClassName__":"lively.morphic.Box"},"963":{"submorphs":[],"scripts":[],"id":855,"shape":{"__isSmartRef__":true,"id":964},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco, Courier","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":969},"_MaxTextWidth":1028.0469530469531,"_MaxTextHeight":422.98201798201796,"textStyle":null,"owner":{"__isSmartRef__":true,"id":962},"layout":{"__isSmartRef__":true,"id":970},"doitContext":{"__isSmartRef__":true,"id":971},"charsReplaced":"1 + 2","lastFindLoc":7067,"showsHalos":false,"_Rotation":0,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"scriptSource","savedTextString":"// WordsDiagram (this)\n\n// ** WordsDiagram's Scripts **\nthis.addScript(function draw(w, h) {\n\tw = w - 30;\n\th = h - 25;\n\tif (!pv) return ;\n\n\tvar vis = new pv.Panel()\n\t\t.width(w)\n\t\t.height(h)\n\t\t.bottom(20)\n\t\t.left(20)\n\t\t.right(10)\n\t\t.top(5);\n\n\tvar xMin = pv.min(this.data.collect(function(d) {\n\t\t\treturn d instanceof Array ? d[0] : null;\n\t\t})),\n\t\txMax = Math.max(\n\t\t\tthis.data.length - 1,\n\t\t\tpv.max(this.data.collect(function(d) {\n\t\t\t\treturn d instanceof Array ? d[0] : null;\n\t\t\t}))\n\t\t),\n\t\tyVals = this.data.collect(function(d) {\n\t\t\treturn d instanceof Array ? d[1] : d;\n\t\t}),\n\t\tx = (this.xScale ?\n\t\t\t(this.xScale.hasOwnProperty('isWrapper') ? this.xScale(xMax) : this.xScale) :\n\t\t\tpv.Scale.linear(xMin, xMax)\n\t\t).range(0, w),\n\t\ty = (this.yScale ?\n\t\t\t(this.yScale.hasOwnProperty('isWrapper') ? this.yScale(pv.max(yVals)) : this.yScale) :\n\t\t\tpv.Scale.linear(\n\t\t\t\tpv.min(yVals.concat(0)),\n\t\t\t\tpv.max(yVals)\n\t\t\t)\n\t\t).range(0, h);\n\n\tvis.add(pv.Rule)\n\t\t.data(y.ticks())\n\t\t.bottom(y)\n\t\t.strokeStyle(function(d) { return d ? \"#eee\" : \"#000\"; })\n\t.anchor(\"left\").add(pv.Label)\n\t\t.text(this.yFormat || y.tickFormat);\n\n\tvis.add(pv.Rule)\n\t\t.data(x.ticks().length < this.data.length ? x.ticks() : x.ticks(this.data.length))\n\t\t.visible(function(d) { return d != 0; })\n\t\t.left(x)\n\t\t.bottom(-5)\n\t\t.height(5)\n\t.anchor(\"bottom\").add(pv.Label)\n\t .text(this.xFormat || x.tickFormat);\n\n\tvis.add(pv.Area)\n\t\t.def('idx', 0)\n\t\t.data(this.data)\n\t\t.bottom(1)\n\t\t.left(function(d) {\n\t\t\tvar idx = this.idx();\n\n\t\t\tif (d instanceof Array)\n\t\t\t\tidx = d[0];\n\t\t\tthis.idx(idx + 1);\n\t\t\n\t\t\treturn x(idx);\n\t\t})\n\t\t.height(function(d) {\n\t\t\tif (d instanceof Array)\n\t\t\t\td = d[1];\n\t\t\treturn y(d);\n\t\t})\n\t\t.fillStyle(\"rgb(121,173,210)\")\n\t.anchor(\"top\").add(pv.Line)\n\t\t.lineWidth(3);\n\n\treturn vis;\n});\n\nthis.addScript(function restoreRenderContextAfterCopy(renderCtx) {\n\t$super(renderCtx);\n\tlively.bindings.callWhenNotNull(Global, 'pv', this, 'render');\n});\n\nthis.addScript(function setData(a) {\n\tthis.data = a;\n\tthis.render()\n});","textChunks":[{"__isSmartRef__":true,"id":1750}],"priorSelectionRange":[358,358],"_ClipMode":"auto","prevScroll":[0,0],"_FontSize":10,"priorExtent":{"__isSmartRef__":true,"id":1752},"syntaxHighlightingWhileTyping":true,"attributeConnections":[{"__isSmartRef__":true,"id":1753}],"doNotSerialize":["$$textString"],"doNotCopyProperties":["$$textString"],"lastSyntaxHighlightTime":1305535993976,"lastSearchString":"save","cachedTextString":"// ScriptEditorPane (this)\n\nthis.addScript(function allMorphNames() {\n\tvar names = [];\n\tthis.world().withAllSubmorphsDo(function() { if (this.name) names.push(this.name) })\n\treturn names;\n});\n\nthis.addScript(function allScriptListItems() {\n\tvar obj = this.target;\n\tif (!obj) return [];\n\n\tvar listItems = this.findSubobjects(obj).collect(function(ea) {\n\t\treturn this.listItemsForObj(ea);\n\t}, this).flatten()\n\n\treturn listItems;\n});\n\nthis.addScript(function bindMorphNames(submorphNames) {\n\tsubmorphNames.forEach(function(ea) {\n\t\tthis[ea]= this.getMorphNamed(ea)\n\t}, this)\n});\n\nthis.addScript(function doSearch(string) {\n\talert('searching ' + string);\n\tvar allItems = this.allScriptListItems();\n\tallItems.select(function(item) {})\n});\n\nthis.addScript(function findSubobjects(obj) {\n\tvar objs = [];\n\tobj.withAllSubmorphsDo(function(){ objs.push(this) });\n\n\tif (obj.testObject && obj.testObject.name)\n\t\tobjs.push(obj.testObject)\n\treturn objs\n});\n\nthis.addScript(function generateSourceForConnection(baseObject, targetObject, connection) {\n\tvar c = connection;\n\tif (!c.getTargetObj() || !c.getTargetObj().name || \n\t\t!c.getSourceObj() || !c.getSourceObj().name) return String(c);\n\n\tvar optConfig = []\n\tif (c.converterString)\n\t\toptConfig.push(\"converter: \\n\\t\" + c.converterString)\n\tif (c.updaterString)\n\t\toptConfig.push(\"updater: \\n\\t\" + c.updaterString)\n\treturn Strings.format('connect(%s, \"%s\", %s, \"%s\", {%s});', \n\t\t\tthis.generateTargetCode(baseObject, c.getSourceObj()),\n\t\t\tc.getSourceAttrName(),\n\t\t\tthis.generateTargetCode(baseObject, c.getTargetObj()),\n\t\t\tc.getTargetMethodName(),\n\t\t\toptConfig.join(','));\n\n});\n\nthis.addScript(function generateSourceForObject(baseObject, targetObj) {\n\tvar source = \"// \" + targetObj.name + \" (\" + \n\t\tthis.generateTargetCode(baseObject, targetObj) + \")\\n\\n\"\n\n\n\tvar scriptNames = this.sortedScriptNamesOfObj(targetObj)\n\tif (scriptNames.length > 0) {\n\t\tsource += \"// ** \" + targetObj.name\t+ \"'s Scripts **\\n\"\n\t\tsource += scriptNames.collect(function(ea) {\n\t\t\treturn this.generateSourceForScript(baseObject, targetObj, ea)\n\t\t}, this).join('\\n\\n');\n\t}\n\n\tif (targetObj.attributeConnections) {\n\t\tsource += \"\\n\\n// ** \" + targetObj.name\t+ \"'s Connections **\\n\"\n\t\tsource += targetObj.attributeConnections.collect(function(ea) {\n\t\t\treturn this.generateSourceForConnection(baseObject, targetObj, ea)\n\t\t}, this).join('\\n');\n\t}\n\n\tif (targetObj.scriptSource && Object.isString(targetObj.scriptSource)) {\n\t\tsource += \"\\n\\n\";\n\t\tsource += this.generateSourceForProperty(\n\t\t\tbaseObject, targetObj, \"scriptSource\");\n\t}\n\n\treturn source\n});\n\nthis.addScript(function generateSourceForProperty(baseObject, targetObject, propertyName) {\n\tvar value = targetObject[propertyName];\n\treturn Strings.format('%s.'+ propertyName +'=%s;', \n\t\tthis.generateTargetCode(baseObject, targetObject),\t\n\t\tthis.generateSourceForValue(value))\n});\n\nthis.addScript(function generateSourceForScript(baseObject, targetObject, scriptName) {\n\tvar script =targetObject[scriptName].getOriginal();\n\treturn Strings.format('%s.addScript(%s);', \n\t\tthis.generateTargetCode(baseObject, targetObject) ,script)\n});\n\nthis.addScript(function generateSourceForValue(value) {\n\tif (Object.isString(value)) \n\t\treturn '\"' + value + '\"'\n\telse \n\t\treturn value\n});\n\nthis.addScript(function generateTargetCode(baseObject, targetObject) {\n\tvar name = targetObject.name;\n\tif (baseObject === targetObject) \n\t\treturn \"this\"\n\telse if (baseObject[name] === targetObject) \n\t\treturn \"this.\" + name\n\telse if (baseObject.testObject === targetObject) \n\t\treturn \"this.testObject\"\n\telse if (baseObject.get(name) === targetObject) \n\t\treturn 'this.get(\"' + name + '\")'\n\telse if (targetObject instanceof Morph) \n\t\treturn'$morph(\"' + name + '\")'\n\telse \n\t\treturn \"????\"\n});\n\nthis.addScript(function highlightSelectedObject(selection) {\n\tif (selection && selection.targetObj) showMorph(selection.targetObj)\n});\n\nthis.addScript(function listItemsForObj(obj, optPrefix) {\n\n\tvar listItems = [];\n\tvar prefix = optPrefix || \"\";\t\n\n\n\tif (obj.name) listItems.push({\n\t\tisListItem: true,\n\t\tstring: \"Object: \" + obj.name || \"unnamed\",\n\t\tvalue: {obj: obj, targetObj: obj}\t\n\t});\n\n\tif (obj.scriptSource && Object.isString(obj.scriptSource)) {\n\t\tlistItems.push({\n\t\t\tisListItem: true,\n\t\t\tstring: \" scriptSource\",\n\t\t\tvalue: {obj: obj, propertyName: 'scriptSource'}\t\n\t\t});\n\t}\n\n\tlistItems = listItems.concat(this.sortedScriptNamesOfObj(obj)\n\t\t.collect(function(name) { \n\t\t\treturn {isListItem: true, string: \" \" + name, value: {obj: obj, scriptName: name}}}))\n\n\t// BUG don't bind connections here...\n\tif (obj.attributeConnections)\n\t\t\tlistItems = listItems.concat(obj.attributeConnections.collect(function(ea) {\n\t\t\t\treturn {\n\t\t\t\t\tisListItem: true, \n\t\t\t\t\tstring: \" [\" + ea.getSourceAttrName() + \" -> \" + \n\t\t\t\t\t\tea.getTargetObj() + \".\" + ea.getTargetMethodName() + \"]\", \n\t\t\t\t\tvalue: {obj: obj, connection: ea }}\n\t\t\t}));\n\n\treturn listItems\n});\n\nthis.addScript(function removeTargetScript() {\n\tvar target = this.scriptList.selection.obj;\n\tif (!target) return;\n\n\n\tvar scriptName = this.scriptList.selection.scriptName; \n\tif (scriptName) {\n\t\tdelete target[scriptName];\n\t}\n\n\tvar connection = this.scriptList.selection.connection; \n\tif (connection)\n\t\tconnection.disconnect()\n\n\tthis.updateScriptList();\n});\n\nthis.addScript(function reset() {\n\t// this.reset()\n\tthis.bindMorphNames(\"targetName searchText scriptList scriptSource targetFound removeButton addButton closeButton\".split(\" \"))\n\tthis.target = null;\n\t// this.targetName.setTextString(\"nobody\");\n\t// this.scriptList.updateList([]);\n\tthis.scriptSource.setTextString(\"\");\n\t// this.searchText.setTextString(\"search for something\");\n});\n\nthis.addScript(function setSourceInPane(source, pane) {\n\tpane.setTextString(source);\n\tpane.owner.owner.scrollToTop();\n});\n\nthis.addScript(function setTarget(obj) {\n\t// if (obj) alertOK(\"set target \" + obj.name)\n\tthis.target = obj\n\t// this.updateScriptList()\n\tif (!this.target) \n\t\tsource = 'no source';\n\telse \n\t\tsource = this.generateSourceForObject(this.target, this.target);\n\tthis.get('scriptSource').setTextString(source)\n\tthis.get('scriptSource').doitContext = this.target\n\n\tmodule('lively.ide.SyntaxHighlighting').load(true)\n\tthis.get('scriptSource').highlightJavaScriptSyntax()\n});\n\nthis.addScript(function setupConnections() {\n\t// this.setupConnections();\n\tconnect(this.targetName, 'textString', \n\t\tthis, 'target', \n\t\t{converter: function(n) { return $morph(n) }})\n\n\tconnect(this, 'target', \n\t\tthis.targetFound, 'setFill', \n\t\t{converter: function(obj) { return obj ? Color.green : Color.red}})\n\n\tconnect(this, 'target', this, 'setTarget')\n\n\tconnect(this.searchText, 'savedTextString', this, 'doSearch')\n});\n\nthis.addScript(function showTopLevelItems() {\n\tvar topLevelMorphs = this.world().submorphs.reject(function(morph){\n\t\treturn !morph.name;\n\t})\n\tvar morphNames = topLevelMorphs.pluck('name'),\n\t\titems = morphNames.collect(function(name) {\n\t\t\treturn [name, function() { $morph('targetName').setTextString(name) }]\n\t\t});\n\tMenuMorph.openAtHand(items, 'Select morph to edit')\n});\n\nthis.addScript(function sortedScriptNamesOfObj(obj) {\n\treturn Functions.own(obj)\n\t\t.select(function(name) { return obj[name].hasLivelyClosure })\n\t\t.sortBy(function(name) { return name.toLowerCase() });\n});\n\nthis.addScript(function updateScriptList() {\n\tthis.scriptList.updateList(this.allScriptListItems());\n\t// this.scriptList.selectLineAt(this.scriptList.selectedLineNo);\n\t// this.scriptSource.owner.owner.scrollToTop(); // demeter :-D\n});\n\nthis.addScript(function updateSourcePane(selection) { \n\tvar textMorph = this.scriptSource;\n\n\tif (!selection || !selection.obj) {\n\t\ttextMorph.setTextString(\"\");\n\t\treturn;\n\t}\n\n\tif (selection.targetObj) {\n\t\tthis.setSourceInPane(this.generateSourceForObject(\n\t\t\ttextMorph.getDoitContext(), selection.targetObj), textMorph);\n\t\treturn;\n\t}\n\n\tif (selection.connection) {\n\t\tthis.setSourceInPane(this.generateSourceForConnection(\n\t\t\ttextMorph.getDoitContext(),selection.obj,selection.connection), textMorph);\n\t\treturn;\n\t}\n\n\tif (selection.propertyName) {\n\t\tthis.setSourceInPane(this.generateSourceForProperty(\n\t\t\ttextMorph.getDoitContext(), selection.obj, selection.propertyName), textMorph);\n\t\treturn;\n\t}\n\n\tthis.setSourceInPane(\n\t\tthis.generateSourceForScript(textMorph.getDoitContext(),selection.obj, selection.scriptName), \n\t\ttextMorph)\n});","renderContextTable":{"__isSmartRef__":true,"id":1754},"textString":"// ScriptEditorPane (this)\n\nthis.addScript(function allMorphNames() {\n\tvar names = [];\n\tthis.world().withAllSubmorphsDo(function() { if (this.name) names.push(this.name) })\n\treturn names;\n});\n\nthis.addScript(function allScriptListItems() {\n\tvar obj = this.target;\n\tif (!obj) return [];\n\n\tvar listItems = this.findSubobjects(obj).collect(function(ea) {\n\t\treturn this.listItemsForObj(ea);\n\t}, this).flatten()\n\n\treturn listItems;\n});\n\nthis.addScript(function bindMorphNames(submorphNames) {\n\tsubmorphNames.forEach(function(ea) {\n\t\tthis[ea]= this.getMorphNamed(ea)\n\t}, this)\n});\n\nthis.addScript(function doSearch(string) {\n\talert('searching ' + string);\n\tvar allItems = this.allScriptListItems();\n\tallItems.select(function(item) {})\n});\n\nthis.addScript(function findSubobjects(obj) {\n\tvar objs = [];\n\tobj.withAllSubmorphsDo(function(){ objs.push(this) });\n\n\tif (obj.testObject && obj.testObject.name)\n\t\tobjs.push(obj.testObject)\n\treturn objs\n});\n\nthis.addScript(function generateSourceForConnection(baseObject, targetObject, connection) {\n\tvar c = connection;\n\tif (!c.getTargetObj() || !c.getTargetObj().name || \n\t\t!c.getSourceObj() || !c.getSourceObj().name) return String(c);\n\n\tvar optConfig = []\n\tif (c.converterString)\n\t\toptConfig.push(\"converter: \\n\\t\" + c.converterString)\n\tif (c.updaterString)\n\t\toptConfig.push(\"updater: \\n\\t\" + c.updaterString)\n\treturn Strings.format('connect(%s, \"%s\", %s, \"%s\", {%s});', \n\t\t\tthis.generateTargetCode(baseObject, c.getSourceObj()),\n\t\t\tc.getSourceAttrName(),\n\t\t\tthis.generateTargetCode(baseObject, c.getTargetObj()),\n\t\t\tc.getTargetMethodName(),\n\t\t\toptConfig.join(','));\n\n});\n\nthis.addScript(function generateSourceForObject(baseObject, targetObj) {\n\tvar source = \"// \" + targetObj.name + \" (\" + \n\t\tthis.generateTargetCode(baseObject, targetObj) + \")\\n\\n\"\n\n\n\tvar scriptNames = this.sortedScriptNamesOfObj(targetObj)\n\tif (scriptNames.length > 0) {\n\t\tsource += \"// ** \" + targetObj.name\t+ \"'s Scripts **\\n\"\n\t\tsource += scriptNames.collect(function(ea) {\n\t\t\treturn this.generateSourceForScript(baseObject, targetObj, ea)\n\t\t}, this).join('\\n\\n');\n\t}\n\n\tif (targetObj.attributeConnections) {\n\t\tsource += \"\\n\\n// ** \" + targetObj.name\t+ \"'s Connections **\\n\"\n\t\tsource += targetObj.attributeConnections.collect(function(ea) {\n\t\t\treturn this.generateSourceForConnection(baseObject, targetObj, ea)\n\t\t}, this).join('\\n');\n\t}\n\n\tif (targetObj.scriptSource && Object.isString(targetObj.scriptSource)) {\n\t\tsource += \"\\n\\n\";\n\t\tsource += this.generateSourceForProperty(\n\t\t\tbaseObject, targetObj, \"scriptSource\");\n\t}\n\n\treturn source\n});\n\nthis.addScript(function generateSourceForProperty(baseObject, targetObject, propertyName) {\n\tvar value = targetObject[propertyName];\n\treturn Strings.format('%s.'+ propertyName +'=%s;', \n\t\tthis.generateTargetCode(baseObject, targetObject),\t\n\t\tthis.generateSourceForValue(value))\n});\n\nthis.addScript(function generateSourceForScript(baseObject, targetObject, scriptName) {\n\tvar script =targetObject[scriptName].getOriginal();\n\treturn Strings.format('%s.addScript(%s);', \n\t\tthis.generateTargetCode(baseObject, targetObject) ,script)\n});\n\nthis.addScript(function generateSourceForValue(value) {\n\tif (Object.isString(value)) \n\t\treturn '\"' + value + '\"'\n\telse \n\t\treturn value\n});\n\nthis.addScript(function generateTargetCode(baseObject, targetObject) {\n\tvar name = targetObject.name;\n\tif (baseObject === targetObject) \n\t\treturn \"this\"\n\telse if (baseObject[name] === targetObject) \n\t\treturn \"this.\" + name\n\telse if (baseObject.testObject === targetObject) \n\t\treturn \"this.testObject\"\n\telse if (baseObject.get(name) === targetObject) \n\t\treturn 'this.get(\"' + name + '\")'\n\telse if (targetObject instanceof Morph) \n\t\treturn'$morph(\"' + name + '\")'\n\telse \n\t\treturn \"????\"\n});\n\nthis.addScript(function highlightSelectedObject(selection) {\n\tif (selection && selection.targetObj) showMorph(selection.targetObj)\n});\n\nthis.addScript(function listItemsForObj(obj, optPrefix) {\n\n\tvar listItems = [];\n\tvar prefix = optPrefix || \"\";\t\n\n\n\tif (obj.name) listItems.push({\n\t\tisListItem: true,\n\t\tstring: \"Object: \" + obj.name || \"unnamed\",\n\t\tvalue: {obj: obj, targetObj: obj}\t\n\t});\n\n\tif (obj.scriptSource && Object.isString(obj.scriptSource)) {\n\t\tlistItems.push({\n\t\t\tisListItem: true,\n\t\t\tstring: \" scriptSource\",\n\t\t\tvalue: {obj: obj, propertyName: 'scriptSource'}\t\n\t\t});\n\t}\n\n\tlistItems = listItems.concat(this.sortedScriptNamesOfObj(obj)\n\t\t.collect(function(name) { \n\t\t\treturn {isListItem: true, string: \" \" + name, value: {obj: obj, scriptName: name}}}))\n\n\t// BUG don't bind connections here...\n\tif (obj.attributeConnections)\n\t\t\tlistItems = listItems.concat(obj.attributeConnections.collect(function(ea) {\n\t\t\t\treturn {\n\t\t\t\t\tisListItem: true, \n\t\t\t\t\tstring: \" [\" + ea.getSourceAttrName() + \" -> \" + \n\t\t\t\t\t\tea.getTargetObj() + \".\" + ea.getTargetMethodName() + \"]\", \n\t\t\t\t\tvalue: {obj: obj, connection: ea }}\n\t\t\t}));\n\n\treturn listItems\n});\n\nthis.addScript(function removeTargetScript() {\n\tvar target = this.scriptList.selection.obj;\n\tif (!target) return;\n\n\n\tvar scriptName = this.scriptList.selection.scriptName; \n\tif (scriptName) {\n\t\tdelete target[scriptName];\n\t}\n\n\tvar connection = this.scriptList.selection.connection; \n\tif (connection)\n\t\tconnection.disconnect()\n\n\tthis.updateScriptList();\n});\n\nthis.addScript(function reset() {\n\t// this.reset()\n\tthis.bindMorphNames(\"targetName searchText scriptList scriptSource targetFound removeButton addButton closeButton\".split(\" \"))\n\tthis.target = null;\n\t// this.targetName.setTextString(\"nobody\");\n\t// this.scriptList.updateList([]);\n\tthis.scriptSource.setTextString(\"\");\n\t// this.searchText.setTextString(\"search for something\");\n});\n\nthis.addScript(function setSourceInPane(source, pane) {\n\tpane.setTextString(source);\n\tpane.owner.owner.scrollToTop();\n});\n\nthis.addScript(function setTarget(obj) {\n\t// if (obj) alertOK(\"set target \" + obj.name)\n\tthis.target = obj\n\t// this.updateScriptList()\n\tif (!this.target) \n\t\tsource = 'no source';\n\telse \n\t\tsource = this.generateSourceForObject(this.target, this.target);\n\tthis.get('scriptSource').setTextString(source)\n\tthis.get('scriptSource').doitContext = this.target\n\n\tmodule('lively.ide.SyntaxHighlighting').load(true)\n\tthis.get('scriptSource').highlightJavaScriptSyntax()\n});\n\nthis.addScript(function setupConnections() {\n\t// this.setupConnections();\n\tconnect(this.targetName, 'textString', \n\t\tthis, 'target', \n\t\t{converter: function(n) { return $morph(n) }})\n\n\tconnect(this, 'target', \n\t\tthis.targetFound, 'setFill', \n\t\t{converter: function(obj) { return obj ? Color.green : Color.red}})\n\n\tconnect(this, 'target', this, 'setTarget')\n\n\tconnect(this.searchText, 'savedTextString', this, 'doSearch')\n});\n\nthis.addScript(function showTopLevelItems() {\n\tvar topLevelMorphs = this.world().submorphs.reject(function(morph){\n\t\treturn !morph.name;\n\t})\n\tvar morphNames = topLevelMorphs.pluck('name'),\n\t\titems = morphNames.collect(function(name) {\n\t\t\treturn [name, function() { $morph('targetName').setTextString(name) }]\n\t\t});\n\tMenuMorph.openAtHand(items, 'Select morph to edit')\n});\n\nthis.addScript(function sortedScriptNamesOfObj(obj) {\n\treturn Functions.own(obj)\n\t\t.select(function(name) { return obj[name].hasLivelyClosure })\n\t\t.sortBy(function(name) { return name.toLowerCase() });\n});\n\nthis.addScript(function updateScriptList() {\n\tthis.scriptList.updateList(this.allScriptListItems());\n\t// this.scriptList.selectLineAt(this.scriptList.selectedLineNo);\n\t// this.scriptSource.owner.owner.scrollToTop(); // demeter :-D\n});\n\nthis.addScript(function updateSourcePane(selection) { \n\tvar textMorph = this.scriptSource;\n\n\tif (!selection || !selection.obj) {\n\t\ttextMorph.setTextString(\"\");\n\t\treturn;\n\t}\n\n\tif (selection.targetObj) {\n\t\tthis.setSourceInPane(this.generateSourceForObject(\n\t\t\ttextMorph.getDoitContext(), selection.targetObj), textMorph);\n\t\treturn;\n\t}\n\n\tif (selection.connection) {\n\t\tthis.setSourceInPane(this.generateSourceForConnection(\n\t\t\ttextMorph.getDoitContext(),selection.obj,selection.connection), textMorph);\n\t\treturn;\n\t}\n\n\tif (selection.propertyName) {\n\t\tthis.setSourceInPane(this.generateSourceForProperty(\n\t\t\ttextMorph.getDoitContext(), selection.obj, selection.propertyName), textMorph);\n\t\treturn;\n\t}\n\n\tthis.setSourceInPane(\n\t\tthis.generateSourceForScript(textMorph.getDoitContext(),selection.obj, selection.scriptName), \n\t\ttextMorph)\n});","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1755},"__LivelyClassName__":"lively.morphic.Text"},"964":{"position":{"__isSmartRef__":true,"id":965},"_Extent":{"__isSmartRef__":true,"id":966},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":967},"_Fill":{"__isSmartRef__":true,"id":968},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"965":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"966":{"x":1028.0469530469531,"y":422.98201798201796,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"967":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"968":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"969":{"x":7,"y":9,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"970":{"resizeWidth":true,"resizeHeight":true},"971":{"submorphs":[{"__isSmartRef__":true,"id":972}],"scripts":[],"id":835,"shape":{"__isSmartRef__":true,"id":1512},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1517},"showsHalos":false,"name":"ScriptEditorPane","partsBinMetaInfo":{"__isSmartRef__":true,"id":1518},"__SourceModuleName__":"Global.lively.morphic.Core","owner":{"__isSmartRef__":true,"id":1519},"_Rotation":0,"targetName":null,"searchText":null,"scriptList":null,"scriptSource":{"__isSmartRef__":true,"id":972},"targetFound":null,"removeButton":null,"addButton":null,"closeButton":null,"target":{"__isSmartRef__":true,"id":980},"_Scale":1,"layout":{"__isSmartRef__":true,"id":1675},"priorExtent":{"__isSmartRef__":true,"id":1676},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1677},"__LivelyClassName__":"lively.morphic.Box"},"972":{"submorphs":[],"scripts":[],"id":836,"shape":{"__isSmartRef__":true,"id":973},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco, Courier","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":978},"_MaxTextWidth":1028.0469530469531,"_MaxTextHeight":422.98201798201796,"textStyle":null,"owner":{"__isSmartRef__":true,"id":971},"layout":{"__isSmartRef__":true,"id":979},"doitContext":{"__isSmartRef__":true,"id":980},"charsReplaced":"1 + 2","lastFindLoc":-5,"showsHalos":false,"_Rotation":0,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"scriptSource","savedTextString":"// WordsDiagram (this)\n\n// ** WordsDiagram's Scripts **\nthis.addScript(function draw(w, h) {\n\tw = w - 30;\n\th = h - 25;\n\tif (!pv) return ;\n\n\tvar vis = new pv.Panel()\n\t\t.width(w)\n\t\t.height(h)\n\t\t.bottom(20)\n\t\t.left(20)\n\t\t.right(10)\n\t\t.top(5);\n\n\tvar xMin = pv.min(this.data.collect(function(d) {\n\t\t\treturn d instanceof Array ? d[0] : null;\n\t\t})),\n\t\txMax = Math.max(\n\t\t\tthis.data.length - 1,\n\t\t\tpv.max(this.data.collect(function(d) {\n\t\t\t\treturn d instanceof Array ? d[0] : null;\n\t\t\t}))\n\t\t),\n\t\tyVals = this.data.collect(function(d) {\n\t\t\treturn d instanceof Array ? d[1] : d;\n\t\t}),\n\t\tx = (this.xScale ?\n\t\t\t(this.xScale.hasOwnProperty('isWrapper') ? this.xScale(xMax) : this.xScale) :\n\t\t\tpv.Scale.linear(xMin, xMax)\n\t\t).range(0, w),\n\t\ty = (this.yScale ?\n\t\t\t(this.yScale.hasOwnProperty('isWrapper') ? this.yScale(pv.max(yVals)) : this.yScale) :\n\t\t\tpv.Scale.linear(\n\t\t\t\tpv.min(yVals.concat(0)),\n\t\t\t\tpv.max(yVals)\n\t\t\t)\n\t\t).range(0, h);\n\n\tvis.add(pv.Rule)\n\t\t.data(y.ticks())\n\t\t.bottom(y)\n\t\t.strokeStyle(function(d) { return d ? \"#eee\" : \"#000\"; })\n\t.anchor(\"left\").add(pv.Label)\n\t\t.text(this.yFormat || y.tickFormat);\n\n\tvis.add(pv.Rule)\n\t\t.data(x.ticks().length < this.data.length ? x.ticks() : x.ticks(this.data.length))\n\t\t.visible(function(d) { return d != 0; })\n\t\t.left(x)\n\t\t.bottom(-5)\n\t\t.height(5)\n\t.anchor(\"bottom\").add(pv.Label)\n\t .text(this.xFormat || x.tickFormat);\n\n\tvis.add(pv.Area)\n\t\t.def('idx', 0)\n\t\t.data(this.data)\n\t\t.bottom(1)\n\t\t.left(function(d) {\n\t\t\tvar idx = this.idx();\n\n\t\t\tif (d instanceof Array)\n\t\t\t\tidx = d[0];\n\t\t\tthis.idx(idx + 1);\n\t\t\n\t\t\treturn x(idx);\n\t\t})\n\t\t.height(function(d) {\n\t\t\tif (d instanceof Array)\n\t\t\t\td = d[1];\n\t\t\treturn y(d);\n\t\t})\n\t\t.fillStyle(\"rgb(121,173,210)\")\n\t.anchor(\"top\").add(pv.Line)\n\t\t.lineWidth(3);\n\n\treturn vis;\n});\n\nthis.addScript(function restoreRenderContextAfterCopy(renderCtx) {\n\t$super(renderCtx);\n\tlively.bindings.callWhenNotNull(Global, 'pv', this, 'render');\n});\n\nthis.addScript(function setData(a) {\n\tthis.data = a;\n\tthis.render()\n});","textChunks":[{"__isSmartRef__":true,"id":1499}],"priorSelectionRange":[0,0],"_ClipMode":"auto","prevScroll":[0,0],"_FontSize":10,"priorExtent":{"__isSmartRef__":true,"id":1501},"syntaxHighlightingWhileTyping":true,"attributeConnections":[{"__isSmartRef__":true,"id":1502}],"doNotSerialize":["$$textString"],"doNotCopyProperties":["$$textString"],"lastSyntaxHighlightTime":1305566766180,"cachedTextString":"// ScriptEditor (this)\n\n","renderContextTable":{"__isSmartRef__":true,"id":1503},"textString":"// ScriptEditor (this)\n\n","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1504},"__LivelyClassName__":"lively.morphic.Text"},"973":{"position":{"__isSmartRef__":true,"id":974},"_Extent":{"__isSmartRef__":true,"id":975},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":976},"_Fill":{"__isSmartRef__":true,"id":977},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"974":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"975":{"x":1028.0469530469531,"y":422.98201798201796,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"976":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"977":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"978":{"x":7,"y":9,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"979":{"resizeWidth":true,"resizeHeight":true},"980":{"submorphs":[{"__isSmartRef__":true,"id":981},{"__isSmartRef__":true,"id":1345},{"__isSmartRef__":true,"id":1460}],"scripts":[],"id":793,"shape":{"__isSmartRef__":true,"id":1491},"droppingEnabled":true,"halosEnabled":true,"draggingEnabled":true,"layout":{"__isSmartRef__":true,"id":1493},"_Position":{"__isSmartRef__":true,"id":1494},"priorExtent":{"__isSmartRef__":true,"id":1495},"targetMorph":{"__isSmartRef__":true,"id":981},"titleBar":{"__isSmartRef__":true,"id":1345},"contentOffset":{"__isSmartRef__":true,"id":1496},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":null,"expandedExtent":null,"ignoreEventsOnExpand":false,"highlighted":true,"_Rotation":0,"_Scale":1,"prevDragPos":{"__isSmartRef__":true,"id":1497},"showsHalos":false,"name":"ScriptEditor","partsBinMetaInfo":{"__isSmartRef__":true,"id":1498},"__SourceModuleName__":"Global.lively.morphic.Widgets","owner":null,"state":"shutdown","__LivelyClassName__":"lively.morphic.Window"},"981":{"submorphs":[{"__isSmartRef__":true,"id":982}],"scripts":[],"id":794,"shape":{"__isSmartRef__":true,"id":1263},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1268},"showsHalos":false,"name":"ScriptEditorPane","partsBinMetaInfo":{"__isSmartRef__":true,"id":1269},"__SourceModuleName__":"Global.lively.morphic.Core","owner":{"__isSmartRef__":true,"id":980},"_Rotation":0,"targetName":null,"searchText":null,"scriptList":null,"scriptSource":{"__isSmartRef__":true,"id":982},"targetFound":null,"removeButton":null,"addButton":null,"closeButton":null,"target":{"__isSmartRef__":true,"id":990},"_Scale":1,"layout":{"__isSmartRef__":true,"id":1270},"priorExtent":{"__isSmartRef__":true,"id":1271},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1272},"__LivelyClassName__":"lively.morphic.Box"},"982":{"submorphs":[],"scripts":[],"id":795,"shape":{"__isSmartRef__":true,"id":983},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco, Courier","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":988},"_MaxTextWidth":1028.0469530469531,"_MaxTextHeight":422.98201798201796,"textStyle":null,"owner":{"__isSmartRef__":true,"id":981},"layout":{"__isSmartRef__":true,"id":989},"doitContext":{"__isSmartRef__":true,"id":990},"charsReplaced":"1 + 2","lastFindLoc":-5,"showsHalos":false,"_Rotation":0,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"scriptSource","savedTextString":"// WordsDiagram (this)\n\n// ** WordsDiagram's Scripts **\nthis.addScript(function draw(w, h) {\n\tw = w - 30;\n\th = h - 25;\n\tif (!pv) return ;\n\n\tvar vis = new pv.Panel()\n\t\t.width(w)\n\t\t.height(h)\n\t\t.bottom(20)\n\t\t.left(20)\n\t\t.right(10)\n\t\t.top(5);\n\n\tvar xMin = pv.min(this.data.collect(function(d) {\n\t\t\treturn d instanceof Array ? d[0] : null;\n\t\t})),\n\t\txMax = Math.max(\n\t\t\tthis.data.length - 1,\n\t\t\tpv.max(this.data.collect(function(d) {\n\t\t\t\treturn d instanceof Array ? d[0] : null;\n\t\t\t}))\n\t\t),\n\t\tyVals = this.data.collect(function(d) {\n\t\t\treturn d instanceof Array ? d[1] : d;\n\t\t}),\n\t\tx = (this.xScale ?\n\t\t\t(this.xScale.hasOwnProperty('isWrapper') ? this.xScale(xMax) : this.xScale) :\n\t\t\tpv.Scale.linear(xMin, xMax)\n\t\t).range(0, w),\n\t\ty = (this.yScale ?\n\t\t\t(this.yScale.hasOwnProperty('isWrapper') ? this.yScale(pv.max(yVals)) : this.yScale) :\n\t\t\tpv.Scale.linear(\n\t\t\t\tpv.min(yVals.concat(0)),\n\t\t\t\tpv.max(yVals)\n\t\t\t)\n\t\t).range(0, h);\n\n\tvis.add(pv.Rule)\n\t\t.data(y.ticks())\n\t\t.bottom(y)\n\t\t.strokeStyle(function(d) { return d ? \"#eee\" : \"#000\"; })\n\t.anchor(\"left\").add(pv.Label)\n\t\t.text(this.yFormat || y.tickFormat);\n\n\tvis.add(pv.Rule)\n\t\t.data(x.ticks().length < this.data.length ? x.ticks() : x.ticks(this.data.length))\n\t\t.visible(function(d) { return d != 0; })\n\t\t.left(x)\n\t\t.bottom(-5)\n\t\t.height(5)\n\t.anchor(\"bottom\").add(pv.Label)\n\t .text(this.xFormat || x.tickFormat);\n\n\tvis.add(pv.Area)\n\t\t.def('idx', 0)\n\t\t.data(this.data)\n\t\t.bottom(1)\n\t\t.left(function(d) {\n\t\t\tvar idx = this.idx();\n\n\t\t\tif (d instanceof Array)\n\t\t\t\tidx = d[0];\n\t\t\tthis.idx(idx + 1);\n\t\t\n\t\t\treturn x(idx);\n\t\t})\n\t\t.height(function(d) {\n\t\t\tif (d instanceof Array)\n\t\t\t\td = d[1];\n\t\t\treturn y(d);\n\t\t})\n\t\t.fillStyle(\"rgb(121,173,210)\")\n\t.anchor(\"top\").add(pv.Line)\n\t\t.lineWidth(3);\n\n\treturn vis;\n});\n\nthis.addScript(function restoreRenderContextAfterCopy(renderCtx) {\n\t$super(renderCtx);\n\tlively.bindings.callWhenNotNull(Global, 'pv', this, 'render');\n});\n\nthis.addScript(function setData(a) {\n\tthis.data = a;\n\tthis.render()\n});","textChunks":[{"__isSmartRef__":true,"id":1250}],"priorSelectionRange":[0,0],"_ClipMode":"auto","prevScroll":[0,1154],"_FontSize":10,"priorExtent":{"__isSmartRef__":true,"id":1252},"syntaxHighlightingWhileTyping":true,"attributeConnections":[{"__isSmartRef__":true,"id":1253}],"doNotSerialize":["$$textString"],"doNotCopyProperties":["$$textString"],"lastSyntaxHighlightTime":1305566759927,"cachedTextString":"// ScriptEditor1 (this)\n\n","renderContextTable":{"__isSmartRef__":true,"id":1254},"textString":"// ScriptEditor1 (this)\n\n","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1255},"__LivelyClassName__":"lively.morphic.Text"},"983":{"position":{"__isSmartRef__":true,"id":984},"_Extent":{"__isSmartRef__":true,"id":985},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":986},"_Fill":{"__isSmartRef__":true,"id":987},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"984":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"985":{"x":1028.0469530469531,"y":422.98201798201796,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"986":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"987":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"988":{"x":7,"y":9,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"989":{"resizeWidth":true,"resizeHeight":true},"990":{"submorphs":[{"__isSmartRef__":true,"id":991},{"__isSmartRef__":true,"id":1095},{"__isSmartRef__":true,"id":1211}],"scripts":[],"id":752,"shape":{"__isSmartRef__":true,"id":1242},"droppingEnabled":true,"halosEnabled":true,"draggingEnabled":true,"layout":{"__isSmartRef__":true,"id":1244},"_Position":{"__isSmartRef__":true,"id":1245},"priorExtent":{"__isSmartRef__":true,"id":1246},"targetMorph":{"__isSmartRef__":true,"id":991},"titleBar":{"__isSmartRef__":true,"id":1095},"contentOffset":{"__isSmartRef__":true,"id":1247},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":null,"expandedExtent":null,"ignoreEventsOnExpand":false,"highlighted":true,"_Rotation":0,"_Scale":1,"prevDragPos":{"__isSmartRef__":true,"id":1248},"showsHalos":false,"name":"ScriptEditor1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1249},"__SourceModuleName__":"Global.lively.morphic.Widgets","owner":null,"state":"shutdown","__LivelyClassName__":"lively.morphic.Window"},"991":{"submorphs":[{"__isSmartRef__":true,"id":992}],"scripts":[],"id":753,"shape":{"__isSmartRef__":true,"id":1013},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1018},"showsHalos":false,"name":"ScriptEditorPane","partsBinMetaInfo":{"__isSmartRef__":true,"id":1019},"__SourceModuleName__":"Global.lively.morphic.Core","owner":{"__isSmartRef__":true,"id":990},"_Rotation":0,"targetName":null,"searchText":null,"scriptList":null,"scriptSource":{"__isSmartRef__":true,"id":992},"targetFound":null,"removeButton":null,"addButton":null,"closeButton":null,"target":{"__isSmartRef__":true,"id":591},"_Scale":1,"layout":{"__isSmartRef__":true,"id":1020},"priorExtent":{"__isSmartRef__":true,"id":1021},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1022},"__LivelyClassName__":"lively.morphic.Box"},"992":{"submorphs":[],"scripts":[],"id":754,"shape":{"__isSmartRef__":true,"id":993},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco, Courier","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":998},"_MaxTextWidth":1028.0469530469531,"_MaxTextHeight":422.98201798201796,"textStyle":null,"owner":{"__isSmartRef__":true,"id":991},"layout":{"__isSmartRef__":true,"id":999},"doitContext":{"__isSmartRef__":true,"id":591},"charsReplaced":"1 + 2","lastFindLoc":-5,"showsHalos":false,"_Rotation":0,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"scriptSource","savedTextString":"// WordsDiagram (this)\n\n// ** WordsDiagram's Scripts **\nthis.addScript(function draw(w, h) {\n\tw = w - 30;\n\th = h - 25;\n\tif (!pv) return ;\n\n\tvar vis = new pv.Panel()\n\t\t.width(w)\n\t\t.height(h)\n\t\t.bottom(20)\n\t\t.left(20)\n\t\t.right(10)\n\t\t.top(5);\n\n\tvar xMin = pv.min(this.data.collect(function(d) {\n\t\t\treturn d instanceof Array ? d[0] : null;\n\t\t})),\n\t\txMax = Math.max(\n\t\t\tthis.data.length - 1,\n\t\t\tpv.max(this.data.collect(function(d) {\n\t\t\t\treturn d instanceof Array ? d[0] : null;\n\t\t\t}))\n\t\t),\n\t\tyVals = this.data.collect(function(d) {\n\t\t\treturn d instanceof Array ? d[1] : d;\n\t\t}),\n\t\tx = (this.xScale ?\n\t\t\t(this.xScale.hasOwnProperty('isWrapper') ? this.xScale(xMax) : this.xScale) :\n\t\t\tpv.Scale.linear(xMin, xMax)\n\t\t).range(0, w),\n\t\ty = (this.yScale ?\n\t\t\t(this.yScale.hasOwnProperty('isWrapper') ? this.yScale(pv.max(yVals)) : this.yScale) :\n\t\t\tpv.Scale.linear(\n\t\t\t\tpv.min(yVals.concat(0)),\n\t\t\t\tpv.max(yVals)\n\t\t\t)\n\t\t).range(0, h);\n\n\tvis.add(pv.Rule)\n\t\t.data(y.ticks())\n\t\t.bottom(y)\n\t\t.strokeStyle(function(d) { return d ? \"#eee\" : \"#000\"; })\n\t.anchor(\"left\").add(pv.Label)\n\t\t.text(this.yFormat || y.tickFormat);\n\n\tvis.add(pv.Rule)\n\t\t.data(x.ticks().length < this.data.length ? x.ticks() : x.ticks(this.data.length))\n\t\t.visible(function(d) { return d != 0; })\n\t\t.left(x)\n\t\t.bottom(-5)\n\t\t.height(5)\n\t.anchor(\"bottom\").add(pv.Label)\n\t .text(this.xFormat || x.tickFormat);\n\n\tvis.add(pv.Area)\n\t\t.def('idx', 0)\n\t\t.data(this.data)\n\t\t.bottom(1)\n\t\t.left(function(d) {\n\t\t\tvar idx = this.idx();\n\n\t\t\tif (d instanceof Array)\n\t\t\t\tidx = d[0];\n\t\t\tthis.idx(idx + 1);\n\t\t\n\t\t\treturn x(idx);\n\t\t})\n\t\t.height(function(d) {\n\t\t\tif (d instanceof Array)\n\t\t\t\td = d[1];\n\t\t\treturn y(d);\n\t\t})\n\t\t.fillStyle(\"rgb(121,173,210)\")\n\t.anchor(\"top\").add(pv.Line)\n\t\t.lineWidth(3);\n\n\treturn vis;\n});\n\nthis.addScript(function restoreRenderContextAfterCopy(renderCtx) {\n\t$super(renderCtx);\n\tlively.bindings.callWhenNotNull(Global, 'pv', this, 'render');\n});\n\nthis.addScript(function setData(a) {\n\tthis.data = a;\n\tthis.render()\n});","textChunks":[{"__isSmartRef__":true,"id":1000}],"priorSelectionRange":[0,0],"_ClipMode":"auto","prevScroll":[0,1154],"_FontSize":10,"priorExtent":{"__isSmartRef__":true,"id":1002},"syntaxHighlightingWhileTyping":true,"attributeConnections":[{"__isSmartRef__":true,"id":1003}],"doNotSerialize":["$$textString"],"doNotCopyProperties":["$$textString"],"lastSyntaxHighlightTime":1305566750188,"cachedTextString":"// ObjectEditor (this)\n\n// ** ObjectEditor's Scripts **\nthis.addScript(function chooseTargetMorphMenu() {\n var topLevelMorphs = this.world().submorphs.reject(function(morph){\n return !morph.name;\n })\n var morphNames = topLevelMorphs.pluck('name');\n var that = this;\n var items = morphNames.collect(function(name) {\n return [name, function() { that.setTarget($morph(name)) }]\n });\n MenuMorph.openAtHand('Select morph to edit', items);\n});\n\nthis.addScript(function displayJavaScriptSource(jsCode) {\n this.scriptPane.setTextString(jsCode);\n this.scriptPane.highlightJavaScriptSyntax();\n});\n\nthis.addScript(function displaySourceForConnection(connection) {\n var code = \"\";\n if (connection) {\n var code = this.generateSourceForConnection(connection);\n }\n this.displayJavaScriptSource(code);\n});\n\nthis.addScript(function displaySourceForScript(scriptName) {\n var code = \"\";\n if (scriptName) {\n var code = this.generateSourceForScript(scriptName);\n } \n this.displayJavaScriptSource(code);\n});\n\nthis.addScript(function generateSourceForConnection(connection) {\n var c = connection;\n var targetObject = this.target;\n\tif (!c.getTargetObj() || !c.getTargetObj().name || \n\t\t!c.getSourceObj() || !c.getSourceObj().name) return String(c);\n\n\tvar optConfig = []\n\tif (c.converterString)\n\t\toptConfig.push(\"converter: \\n\\t\" + c.converterString)\n\tif (c.updaterString)\n\t\toptConfig.push(\"updater: \\n\\t\" + c.updaterString)\n\treturn Strings.format('connect(%s, \"%s\", %s, \"%s\", {%s});', \n\t\t\tthis.generateTargetCode(targetObject, c.getSourceObj()),\n\t\t\tc.getSourceAttrName(),\n\t\t\tthis.generateTargetCode(targetObject, c.getTargetObj()),\n\t\t\tc.getTargetMethodName(),\n\t\t\toptConfig.join(','));\n\n});\n\nthis.addScript(function generateSourceForScript(scriptName) {\n var script = this.target[scriptName].getOriginal();\n return Strings.format('this.addScript(%s);' ,script)\n});\n\nthis.addScript(function generateTargetCode(baseObject, targetObject) {\n\tvar name = targetObject.name;\n\tif (baseObject === targetObject) \n\t\treturn \"this\"\n\telse if (baseObject[name] === targetObject) \n\t\treturn \"this.\" + name\n\telse if (baseObject.testObject === targetObject) \n\t\treturn \"this.testObject\"\n\telse if (baseObject.get(name) === targetObject) \n\t\treturn 'this.get(\"' + name + '\")'\n\telse if (targetObject instanceof Morph) \n\t\treturn'$morph(\"' + name + '\")'\n\telse \n\t\treturn \"????\"\n});\n\nthis.addScript(function reset() {\n this.target = null;\n this.setTitle(\"ObjectEditor - no target\");\n this.scriptPane.doitContext = null;\n this.scriptList.setList();\n this.scriptPane.setTextString(\"\");\n});\n\nthis.addScript(function setTarget(morph) {\n this.reset();\n if (morph) {\n module('lively.ide.SyntaxHighlighting').load(true);\n this.target = morph;\n this.setTitle(\"ObjectEditor - \"+ (this.target.getName()));\n this.scriptPane.doitContext = this.target;\n this.scriptList.setList(this.sortedScriptNamesOfObj(morph));\n this.connectionList.setList(this. sortedConnectionNamesOfObj(morph));\n if (this.scriptList.getList().size() > 0) {\n this.scriptList.selectAt(0);\n }\n }\n});\n\nthis.addScript(function sortedConnectionNamesOfObj(obj) {\n if (!obj.attributeConnections) {return []};\n return obj.attributeConnections\n .sortBy(function(each) {return name.toLowerCase() })\n .collect(function(each) {return [each.getSourceAttrName(), each]});\n});\n\nthis.addScript(function sortedScriptNamesOfObj(obj) {\n\treturn Functions.own(obj)\n\t\t.select(function(name) { return obj[name].hasLivelyClosure })\n\t\t.sortBy(function(name) { return name.toLowerCase() });\n});","renderContextTable":{"__isSmartRef__":true,"id":1004},"textString":"// ObjectEditor (this)\n\n// ** ObjectEditor's Scripts **\nthis.addScript(function chooseTargetMorphMenu() {\n var topLevelMorphs = this.world().submorphs.reject(function(morph){\n return !morph.name;\n })\n var morphNames = topLevelMorphs.pluck('name');\n var that = this;\n var items = morphNames.collect(function(name) {\n return [name, function() { that.setTarget($morph(name)) }]\n });\n MenuMorph.openAtHand('Select morph to edit', items);\n});\n\nthis.addScript(function displayJavaScriptSource(jsCode) {\n this.scriptPane.setTextString(jsCode);\n this.scriptPane.highlightJavaScriptSyntax();\n});\n\nthis.addScript(function displaySourceForConnection(connection) {\n var code = \"\";\n if (connection) {\n var code = this.generateSourceForConnection(connection);\n }\n this.displayJavaScriptSource(code);\n});\n\nthis.addScript(function displaySourceForScript(scriptName) {\n var code = \"\";\n if (scriptName) {\n var code = this.generateSourceForScript(scriptName);\n } \n this.displayJavaScriptSource(code);\n});\n\nthis.addScript(function generateSourceForConnection(connection) {\n var c = connection;\n var targetObject = this.target;\n\tif (!c.getTargetObj() || !c.getTargetObj().name || \n\t\t!c.getSourceObj() || !c.getSourceObj().name) return String(c);\n\n\tvar optConfig = []\n\tif (c.converterString)\n\t\toptConfig.push(\"converter: \\n\\t\" + c.converterString)\n\tif (c.updaterString)\n\t\toptConfig.push(\"updater: \\n\\t\" + c.updaterString)\n\treturn Strings.format('connect(%s, \"%s\", %s, \"%s\", {%s});', \n\t\t\tthis.generateTargetCode(targetObject, c.getSourceObj()),\n\t\t\tc.getSourceAttrName(),\n\t\t\tthis.generateTargetCode(targetObject, c.getTargetObj()),\n\t\t\tc.getTargetMethodName(),\n\t\t\toptConfig.join(','));\n\n});\n\nthis.addScript(function generateSourceForScript(scriptName) {\n var script = this.target[scriptName].getOriginal();\n return Strings.format('this.addScript(%s);' ,script)\n});\n\nthis.addScript(function generateTargetCode(baseObject, targetObject) {\n\tvar name = targetObject.name;\n\tif (baseObject === targetObject) \n\t\treturn \"this\"\n\telse if (baseObject[name] === targetObject) \n\t\treturn \"this.\" + name\n\telse if (baseObject.testObject === targetObject) \n\t\treturn \"this.testObject\"\n\telse if (baseObject.get(name) === targetObject) \n\t\treturn 'this.get(\"' + name + '\")'\n\telse if (targetObject instanceof Morph) \n\t\treturn'$morph(\"' + name + '\")'\n\telse \n\t\treturn \"????\"\n});\n\nthis.addScript(function reset() {\n this.target = null;\n this.setTitle(\"ObjectEditor - no target\");\n this.scriptPane.doitContext = null;\n this.scriptList.setList();\n this.scriptPane.setTextString(\"\");\n});\n\nthis.addScript(function setTarget(morph) {\n this.reset();\n if (morph) {\n module('lively.ide.SyntaxHighlighting').load(true);\n this.target = morph;\n this.setTitle(\"ObjectEditor - \"+ (this.target.getName()));\n this.scriptPane.doitContext = this.target;\n this.scriptList.setList(this.sortedScriptNamesOfObj(morph));\n this.connectionList.setList(this. sortedConnectionNamesOfObj(morph));\n if (this.scriptList.getList().size() > 0) {\n this.scriptList.selectAt(0);\n }\n }\n});\n\nthis.addScript(function sortedConnectionNamesOfObj(obj) {\n if (!obj.attributeConnections) {return []};\n return obj.attributeConnections\n .sortBy(function(each) {return name.toLowerCase() })\n .collect(function(each) {return [each.getSourceAttrName(), each]});\n});\n\nthis.addScript(function sortedScriptNamesOfObj(obj) {\n\treturn Functions.own(obj)\n\t\t.select(function(name) { return obj[name].hasLivelyClosure })\n\t\t.sortBy(function(name) { return name.toLowerCase() });\n});","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1005},"__LivelyClassName__":"lively.morphic.Text"},"993":{"position":{"__isSmartRef__":true,"id":994},"_Extent":{"__isSmartRef__":true,"id":995},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":996},"_Fill":{"__isSmartRef__":true,"id":997},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"994":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"995":{"x":1028.0469530469531,"y":422.98201798201796,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"996":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"997":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"998":{"x":7,"y":9,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"999":{"resizeWidth":true,"resizeHeight":true},"1000":{"style":{"__isSmartRef__":true,"id":1001},"morph":{"__isSmartRef__":true,"id":992},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1001":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1002":{"x":1028.0469530469531,"y":422.98201798201796,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1003":{"sourceObj":{"__isSmartRef__":true,"id":992},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":992},"targetMethodName":"highlightJavaScriptSyntax","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1004":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"1005":{"doSave":{"__isSmartRef__":true,"id":1006}},"1006":{"varMapping":{"__isSmartRef__":true,"id":1007},"source":"function doSave() {\n\t$super()\n\talertOK(\"eval all for \" + this.getDoitContext())\n\tthis.boundEval(this.textString)\n}","funcProperties":{"__isSmartRef__":true,"id":1012},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1007":{"this":{"__isSmartRef__":true,"id":992},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1008}},"1008":{"$super":{"__isSmartRef__":true,"id":1009}},"1009":{"varMapping":{"__isSmartRef__":true,"id":1010},"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":1011},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1010":{"obj":{"__isSmartRef__":true,"id":992},"name":"doSave"},"1011":{},"1012":{},"1013":{"position":{"__isSmartRef__":true,"id":1014},"_Extent":{"__isSmartRef__":true,"id":1015},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":1016},"_Fill":{"__isSmartRef__":true,"id":1017},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1014":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1015":{"x":1041.0799200799202,"y":437.9980019980019,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1016":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1017":{"r":0.921,"g":0.921,"b":0.921,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1018":{"x":-0.9990009990010549,"y":20.001998001998004,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1019":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1020":{"resizeWidth":true,"resizeHeight":true,"adjustForNewBounds":true},"1021":{"x":1041.0799200799202,"y":437.9980019980019,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1022":{"addTargetScript":{"__isSmartRef__":true,"id":1023},"addTestObject":{"__isSmartRef__":true,"id":1026},"allMorphNames":{"__isSmartRef__":true,"id":1029},"allScriptListItems":{"__isSmartRef__":true,"id":1032},"bindMorphNames":{"__isSmartRef__":true,"id":1035},"doSearch":{"__isSmartRef__":true,"id":1038},"findSubobjects":{"__isSmartRef__":true,"id":1041},"generateSourceForConnection":{"__isSmartRef__":true,"id":1044},"generateSourceForObject":{"__isSmartRef__":true,"id":1047},"generateSourceForProperty":{"__isSmartRef__":true,"id":1050},"generateSourceForScript":{"__isSmartRef__":true,"id":1053},"generateSourceForValue":{"__isSmartRef__":true,"id":1056},"generateTargetCode":{"__isSmartRef__":true,"id":1059},"highlightSelectedObject":{"__isSmartRef__":true,"id":1062},"listItemsForObj":{"__isSmartRef__":true,"id":1065},"removeTargetScript":{"__isSmartRef__":true,"id":1068},"reset":{"__isSmartRef__":true,"id":1071},"setSourceInPane":{"__isSmartRef__":true,"id":1074},"setTarget":{"__isSmartRef__":true,"id":1077},"setupConnections":{"__isSmartRef__":true,"id":1080},"showTopLevelItems":{"__isSmartRef__":true,"id":1083},"sortedScriptNamesOfObj":{"__isSmartRef__":true,"id":1086},"updateScriptList":{"__isSmartRef__":true,"id":1089},"updateSourcePane":{"__isSmartRef__":true,"id":1092}},"1023":{"varMapping":{"__isSmartRef__":true,"id":1024},"source":"function addTargetScript(name) {\n\tvar target = this.target;\n\tif (!target) return;\n\n\ttarget.addScript(\"function \" + name + \"() {\\n\\n}\"); \n\n\tthis.updateScriptList();\n}","funcProperties":{"__isSmartRef__":true,"id":1025},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1024":{"this":{"__isSmartRef__":true,"id":991}},"1025":{},"1026":{"varMapping":{"__isSmartRef__":true,"id":1027},"source":"function addTestObject() {\n\tthis.testObject = {\n\t\tname: 'ScriptEditorTest',\n\t\taddScript: function addScript(funcOrString, optName) {\n\t\t\tvar func = Function.fromString(funcOrString);\n\t\t\treturn func.asScriptOf(this, optName);\n\t\t}.asScript()\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":1028},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1027":{"this":{"__isSmartRef__":true,"id":991}},"1028":{},"1029":{"varMapping":{"__isSmartRef__":true,"id":1030},"source":"function allMorphNames() {\n\tvar names = [];\n\tthis.world().withAllSubmorphsDo(function() { if (this.name) names.push(this.name) })\n\treturn names;\n}","funcProperties":{"__isSmartRef__":true,"id":1031},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1030":{"this":{"__isSmartRef__":true,"id":991}},"1031":{},"1032":{"varMapping":{"__isSmartRef__":true,"id":1033},"source":"function allScriptListItems() {\n\tvar obj = this.target;\n\tif (!obj) return [];\n\n\tvar listItems = this.findSubobjects(obj).collect(function(ea) {\n\t\treturn this.listItemsForObj(ea);\n\t}, this).flatten()\n\n\treturn listItems;\n}","funcProperties":{"__isSmartRef__":true,"id":1034},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1033":{"this":{"__isSmartRef__":true,"id":991}},"1034":{},"1035":{"varMapping":{"__isSmartRef__":true,"id":1036},"source":"function bindMorphNames(submorphNames) {\n\tsubmorphNames.forEach(function(ea) {\n\t\tthis[ea]= this.getMorphNamed(ea)\n\t}, this)\n}","funcProperties":{"__isSmartRef__":true,"id":1037},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1036":{"this":{"__isSmartRef__":true,"id":991}},"1037":{},"1038":{"varMapping":{"__isSmartRef__":true,"id":1039},"source":"function doSearch(string) {\n\talert('searching ' + string);\n\tvar allItems = this.allScriptListItems();\n\tallItems.select(function(item) {})\n}","funcProperties":{"__isSmartRef__":true,"id":1040},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1039":{"this":{"__isSmartRef__":true,"id":991}},"1040":{},"1041":{"varMapping":{"__isSmartRef__":true,"id":1042},"source":"function findSubobjects(obj) {\n\tvar objs = [];\n\tobj.withAllSubmorphsDo(function(){ objs.push(this) });\n\n\tif (obj.testObject && obj.testObject.name)\n\t\tobjs.push(obj.testObject)\n\treturn objs\n}","funcProperties":{"__isSmartRef__":true,"id":1043},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1042":{"this":{"__isSmartRef__":true,"id":991}},"1043":{},"1044":{"varMapping":{"__isSmartRef__":true,"id":1045},"source":"function generateSourceForConnection(baseObject, targetObject, connection) {\n\tvar c = connection;\n\tif (!c.getTargetObj() || !c.getTargetObj().name || \n\t\t!c.getSourceObj() || !c.getSourceObj().name) return String(c);\n\n\tvar optConfig = []\n\tif (c.converterString)\n\t\toptConfig.push(\"converter: \\n\\t\" + c.converterString)\n\tif (c.updaterString)\n\t\toptConfig.push(\"updater: \\n\\t\" + c.updaterString)\n\treturn Strings.format('connect(%s, \"%s\", %s, \"%s\", {%s});', \n\t\t\tthis.generateTargetCode(baseObject, c.getSourceObj()),\n\t\t\tc.getSourceAttrName(),\n\t\t\tthis.generateTargetCode(baseObject, c.getTargetObj()),\n\t\t\tc.getTargetMethodName(),\n\t\t\toptConfig.join(','));\n\n}","funcProperties":{"__isSmartRef__":true,"id":1046},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1045":{"this":{"__isSmartRef__":true,"id":991}},"1046":{},"1047":{"varMapping":{"__isSmartRef__":true,"id":1048},"source":"function generateSourceForObject(baseObject, targetObj) {\n\tvar source = \"// \" + targetObj.name + \" (\" + \n\t\tthis.generateTargetCode(baseObject, targetObj) + \")\\n\\n\"\n\n\n\tvar scriptNames = this.sortedScriptNamesOfObj(targetObj)\n\tif (scriptNames.length > 0) {\n\t\tsource += \"// ** \" + targetObj.name\t+ \"'s Scripts **\\n\"\n\t\tsource += scriptNames.collect(function(ea) {\n\t\t\treturn this.generateSourceForScript(baseObject, targetObj, ea)\n\t\t}, this).join('\\n\\n');\n\t}\n\n\tif (targetObj.attributeConnections) {\n\t\tsource += \"\\n\\n// ** \" + targetObj.name\t+ \"'s Connections **\\n\"\n\t\tsource += targetObj.attributeConnections.collect(function(ea) {\n\t\t\treturn this.generateSourceForConnection(baseObject, targetObj, ea)\n\t\t}, this).join('\\n');\n\t}\n\n\tif (targetObj.scriptSource && Object.isString(targetObj.scriptSource)) {\n\t\tsource += \"\\n\\n\";\n\t\tsource += this.generateSourceForProperty(\n\t\t\tbaseObject, targetObj, \"scriptSource\");\n\t}\n\n\treturn source\n}","funcProperties":{"__isSmartRef__":true,"id":1049},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1048":{"this":{"__isSmartRef__":true,"id":991}},"1049":{},"1050":{"varMapping":{"__isSmartRef__":true,"id":1051},"source":"function generateSourceForProperty(baseObject, targetObject, propertyName) {\n\tvar value = targetObject[propertyName];\n\treturn Strings.format('%s.'+ propertyName +'=%s;', \n\t\tthis.generateTargetCode(baseObject, targetObject),\t\n\t\tthis.generateSourceForValue(value))\n}","funcProperties":{"__isSmartRef__":true,"id":1052},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1051":{"this":{"__isSmartRef__":true,"id":991}},"1052":{},"1053":{"varMapping":{"__isSmartRef__":true,"id":1054},"source":"function generateSourceForScript(baseObject, targetObject, scriptName) {\n\tvar script =targetObject[scriptName].getOriginal();\n\treturn Strings.format('%s.addScript(%s);', \n\t\tthis.generateTargetCode(baseObject, targetObject) ,script)\n}","funcProperties":{"__isSmartRef__":true,"id":1055},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1054":{"this":{"__isSmartRef__":true,"id":991}},"1055":{},"1056":{"varMapping":{"__isSmartRef__":true,"id":1057},"source":"function generateSourceForValue(value) {\n\tif (Object.isString(value)) \n\t\treturn '\"' + value + '\"'\n\telse \n\t\treturn value\n}","funcProperties":{"__isSmartRef__":true,"id":1058},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1057":{"this":{"__isSmartRef__":true,"id":991}},"1058":{},"1059":{"varMapping":{"__isSmartRef__":true,"id":1060},"source":"function generateTargetCode(baseObject, targetObject) {\n\tvar name = targetObject.name;\n\tif (baseObject === targetObject) \n\t\treturn \"this\"\n\telse if (baseObject[name] === targetObject) \n\t\treturn \"this.\" + name\n\telse if (baseObject.testObject === targetObject) \n\t\treturn \"this.testObject\"\n\telse if (baseObject.get(name) === targetObject) \n\t\treturn 'this.get(\"' + name + '\")'\n\telse if (targetObject instanceof Morph) \n\t\treturn'$morph(\"' + name + '\")'\n\telse \n\t\treturn \"????\"\n}","funcProperties":{"__isSmartRef__":true,"id":1061},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1060":{"this":{"__isSmartRef__":true,"id":991}},"1061":{},"1062":{"varMapping":{"__isSmartRef__":true,"id":1063},"source":"function highlightSelectedObject(selection) {\n\tif (selection && selection.targetObj) showMorph(selection.targetObj)\n}","funcProperties":{"__isSmartRef__":true,"id":1064},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1063":{"this":{"__isSmartRef__":true,"id":991}},"1064":{},"1065":{"varMapping":{"__isSmartRef__":true,"id":1066},"source":"function listItemsForObj(obj, optPrefix) {\n\n\tvar listItems = [];\n\tvar prefix = optPrefix || \"\";\t\n\n\n\tif (obj.name) listItems.push({\n\t\tisListItem: true,\n\t\tstring: \"Object: \" + obj.name || \"unnamed\",\n\t\tvalue: {obj: obj, targetObj: obj}\t\n\t});\n\n\tif (obj.scriptSource && Object.isString(obj.scriptSource)) {\n\t\tlistItems.push({\n\t\t\tisListItem: true,\n\t\t\tstring: \" scriptSource\",\n\t\t\tvalue: {obj: obj, propertyName: 'scriptSource'}\t\n\t\t});\n\t}\n\n\tlistItems = listItems.concat(this.sortedScriptNamesOfObj(obj)\n\t\t.collect(function(name) { \n\t\t\treturn {isListItem: true, string: \" \" + name, value: {obj: obj, scriptName: name}}}))\n\n\t// BUG don't bind connections here...\n\tif (obj.attributeConnections)\n\t\t\tlistItems = listItems.concat(obj.attributeConnections.collect(function(ea) {\n\t\t\t\treturn {\n\t\t\t\t\tisListItem: true, \n\t\t\t\t\tstring: \" [\" + ea.getSourceAttrName() + \" -> \" + \n\t\t\t\t\t\tea.getTargetObj() + \".\" + ea.getTargetMethodName() + \"]\", \n\t\t\t\t\tvalue: {obj: obj, connection: ea }}\n\t\t\t}));\n\n\treturn listItems\n}","funcProperties":{"__isSmartRef__":true,"id":1067},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1066":{"this":{"__isSmartRef__":true,"id":991}},"1067":{},"1068":{"varMapping":{"__isSmartRef__":true,"id":1069},"source":"function removeTargetScript() {\n\tvar target = this.scriptList.selection.obj;\n\tif (!target) return;\n\n\n\tvar scriptName = this.scriptList.selection.scriptName; \n\tif (scriptName) {\n\t\tdelete target[scriptName];\n\t}\n\n\tvar connection = this.scriptList.selection.connection; \n\tif (connection)\n\t\tconnection.disconnect()\n\n\tthis.updateScriptList();\n}","funcProperties":{"__isSmartRef__":true,"id":1070},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1069":{"this":{"__isSmartRef__":true,"id":991}},"1070":{},"1071":{"varMapping":{"__isSmartRef__":true,"id":1072},"source":"function reset() {\n\t// this.reset()\n\tthis.bindMorphNames(\"targetName searchText scriptList scriptSource targetFound removeButton addButton closeButton\".split(\" \"))\n\tthis.target = null;\n\t// this.targetName.setTextString(\"nobody\");\n\t// this.scriptList.updateList([]);\n\tthis.scriptSource.setTextString(\"\");\n\t// this.searchText.setTextString(\"search for something\");\n}","funcProperties":{"__isSmartRef__":true,"id":1073},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1072":{"this":{"__isSmartRef__":true,"id":991}},"1073":{},"1074":{"varMapping":{"__isSmartRef__":true,"id":1075},"source":"function setSourceInPane(source, pane) {\n\tpane.setTextString(source);\n\tpane.owner.owner.scrollToTop();\n}","funcProperties":{"__isSmartRef__":true,"id":1076},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1075":{"this":{"__isSmartRef__":true,"id":991}},"1076":{},"1077":{"varMapping":{"__isSmartRef__":true,"id":1078},"source":"function setTarget(obj) {\n\t// if (obj) alertOK(\"set target \" + obj.name)\n\tthis.target = obj\n\t// this.updateScriptList()\n\tif (!this.target) \n\t\tsource = 'no source';\n\telse \n\t\tsource = this.generateSourceForObject(this.target, this.target);\n\tthis.get('scriptSource').setTextString(source)\n\tthis.get('scriptSource').doitContext = this.target\n\n\tmodule('lively.ide.SyntaxHighlighting').load(true)\n\tthis.get('scriptSource').highlightJavaScriptSyntax()\n}","funcProperties":{"__isSmartRef__":true,"id":1079},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1078":{"this":{"__isSmartRef__":true,"id":991}},"1079":{},"1080":{"varMapping":{"__isSmartRef__":true,"id":1081},"source":"function setupConnections() {\n\t// this.setupConnections();\n\tconnect(this.targetName, 'textString', \n\t\tthis, 'target', \n\t\t{converter: function(n) { return $morph(n) }})\n\n\tconnect(this, 'target', \n\t\tthis.targetFound, 'setFill', \n\t\t{converter: function(obj) { return obj ? Color.green : Color.red}})\n\n\tconnect(this, 'target', this, 'setTarget')\n\n\tconnect(this.searchText, 'savedTextString', this, 'doSearch')\n}","funcProperties":{"__isSmartRef__":true,"id":1082},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1081":{"this":{"__isSmartRef__":true,"id":991}},"1082":{},"1083":{"varMapping":{"__isSmartRef__":true,"id":1084},"source":"function showTopLevelItems() {\n\tvar topLevelMorphs = this.world().submorphs.reject(function(morph){\n\t\treturn !morph.name;\n\t})\n\tvar morphNames = topLevelMorphs.pluck('name'),\n\t\titems = morphNames.collect(function(name) {\n\t\t\treturn [name, function() { $morph('targetName').setTextString(name) }]\n\t\t});\n\tMenuMorph.openAtHand(items, 'Select morph to edit')\n}","funcProperties":{"__isSmartRef__":true,"id":1085},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1084":{"this":{"__isSmartRef__":true,"id":991}},"1085":{},"1086":{"varMapping":{"__isSmartRef__":true,"id":1087},"source":"function sortedScriptNamesOfObj(obj) {\n\treturn Functions.own(obj)\n\t\t.select(function(name) { return obj[name].hasLivelyClosure })\n\t\t.sortBy(function(name) { return name.toLowerCase() });\n}","funcProperties":{"__isSmartRef__":true,"id":1088},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1087":{"this":{"__isSmartRef__":true,"id":991}},"1088":{},"1089":{"varMapping":{"__isSmartRef__":true,"id":1090},"source":"function updateScriptList() {\n\tthis.scriptList.updateList(this.allScriptListItems());\n\t// this.scriptList.selectLineAt(this.scriptList.selectedLineNo);\n\t// this.scriptSource.owner.owner.scrollToTop(); // demeter :-D\n}","funcProperties":{"__isSmartRef__":true,"id":1091},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1090":{"this":{"__isSmartRef__":true,"id":991}},"1091":{},"1092":{"varMapping":{"__isSmartRef__":true,"id":1093},"source":"function updateSourcePane(selection) { \n\tvar textMorph = this.scriptSource;\n\n\tif (!selection || !selection.obj) {\n\t\ttextMorph.setTextString(\"\");\n\t\treturn;\n\t}\n\n\tif (selection.targetObj) {\n\t\tthis.setSourceInPane(this.generateSourceForObject(\n\t\t\ttextMorph.getDoitContext(), selection.targetObj), textMorph);\n\t\treturn;\n\t}\n\n\tif (selection.connection) {\n\t\tthis.setSourceInPane(this.generateSourceForConnection(\n\t\t\ttextMorph.getDoitContext(),selection.obj,selection.connection), textMorph);\n\t\treturn;\n\t}\n\n\tif (selection.propertyName) {\n\t\tthis.setSourceInPane(this.generateSourceForProperty(\n\t\t\ttextMorph.getDoitContext(), selection.obj, selection.propertyName), textMorph);\n\t\treturn;\n\t}\n\n\tthis.setSourceInPane(\n\t\tthis.generateSourceForScript(textMorph.getDoitContext(),selection.obj, selection.scriptName), \n\t\ttextMorph)\n}","funcProperties":{"__isSmartRef__":true,"id":1094},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1093":{"this":{"__isSmartRef__":true,"id":991}},"1094":{},"1095":{"submorphs":[{"__isSmartRef__":true,"id":1096},{"__isSmartRef__":true,"id":1106},{"__isSmartRef__":true,"id":1144},{"__isSmartRef__":true,"id":1170}],"scripts":[],"id":755,"shape":{"__isSmartRef__":true,"id":1197},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":1208},"_Position":{"__isSmartRef__":true,"id":1209},"eventsAreIgnored":true,"windowMorph":{"__isSmartRef__":true,"id":990},"label":{"__isSmartRef__":true,"id":1096},"closeButton":{"__isSmartRef__":true,"id":1106},"menuButton":{"__isSmartRef__":true,"id":1144},"collapseButton":{"__isSmartRef__":true,"id":1170},"priorExtent":{"__isSmartRef__":true,"id":1210},"owner":{"__isSmartRef__":true,"id":990},"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.TitleBar"},"1096":{"submorphs":[],"scripts":[],"id":756,"shape":{"__isSmartRef__":true,"id":1097},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1100},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":1101},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":1102}],"isLabel":true,"eventsAreIgnored":true,"_FontSize":10,"owner":{"__isSmartRef__":true,"id":1095},"__SourceModuleName__":"Global.lively.morphic.TextCore","priorExtent":{"__isSmartRef__":true,"id":1104},"renderContextTable":{"__isSmartRef__":true,"id":1105},"__LivelyClassName__":"lively.morphic.Text"},"1097":{"_Position":{"__isSmartRef__":true,"id":1098},"_Extent":{"__isSmartRef__":true,"id":1099},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1016},"_Fill":null,"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1098":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1099":{"x":981.0809190809191,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1100":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1101":{"x":20,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1102":{"style":{"__isSmartRef__":true,"id":1103},"morph":{"__isSmartRef__":true,"id":1096},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1103":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1104":{"x":981.0809190809191,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1105":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"1106":{"submorphs":[{"__isSmartRef__":true,"id":1107}],"scripts":[],"id":757,"shape":{"__isSmartRef__":true,"id":1117},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1131},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1121},"lighterFill":{"__isSmartRef__":true,"id":1132},"label":{"__isSmartRef__":true,"id":1107},"owner":{"__isSmartRef__":true,"id":1095},"layout":{"__isSmartRef__":true,"id":1141},"attributeConnections":[{"__isSmartRef__":true,"id":1142},{"__isSmartRef__":true,"id":1143}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"1107":{"submorphs":[],"scripts":[],"id":758,"shape":{"__isSmartRef__":true,"id":1108},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1111},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":1112},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":1113}],"owner":{"__isSmartRef__":true,"id":1106},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","priorExtent":{"__isSmartRef__":true,"id":1115},"renderContextTable":{"__isSmartRef__":true,"id":1116},"__LivelyClassName__":"lively.morphic.Text"},"1108":{"_Position":{"__isSmartRef__":true,"id":1109},"_Extent":{"__isSmartRef__":true,"id":1110},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1016},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1109":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1110":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1111":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1112":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1113":{"style":{"__isSmartRef__":true,"id":1114},"morph":{"__isSmartRef__":true,"id":1107},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1114":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1115":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1116":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"1117":{"_Position":{"__isSmartRef__":true,"id":1118},"_Extent":{"__isSmartRef__":true,"id":1119},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1120},"_Fill":{"__isSmartRef__":true,"id":1121},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1118":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1119":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1120":{"r":0.8392156862745098,"g":0.8392156862745098,"b":0.8392156862745098,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1121":{"stops":[{"__isSmartRef__":true,"id":1122},{"__isSmartRef__":true,"id":1124},{"__isSmartRef__":true,"id":1126},{"__isSmartRef__":true,"id":1128}],"vector":{"__isSmartRef__":true,"id":1130},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1122":{"offset":0,"color":{"__isSmartRef__":true,"id":1123}},"1123":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1124":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1125}},"1125":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1126":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1127}},"1127":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1128":{"offset":1,"color":{"__isSmartRef__":true,"id":1129}},"1129":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1130":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1131":{"x":1020.0809190809191,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1132":{"stops":[{"__isSmartRef__":true,"id":1133},{"__isSmartRef__":true,"id":1135},{"__isSmartRef__":true,"id":1137},{"__isSmartRef__":true,"id":1139}],"vector":{"__isSmartRef__":true,"id":1130},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1133":{"offset":0,"color":{"__isSmartRef__":true,"id":1134}},"1134":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1135":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1136}},"1136":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1137":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1138}},"1138":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1139":{"offset":1,"color":{"__isSmartRef__":true,"id":1140}},"1140":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1141":{"moveHorizontal":true},"1142":{"sourceObj":{"__isSmartRef__":true,"id":1106},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":990},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1143":{"sourceObj":{"__isSmartRef__":true,"id":1106},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":990},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1144":{"submorphs":[{"__isSmartRef__":true,"id":1145}],"scripts":[],"id":759,"shape":{"__isSmartRef__":true,"id":1155},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1158},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1121},"lighterFill":{"__isSmartRef__":true,"id":1159},"label":{"__isSmartRef__":true,"id":1145},"owner":{"__isSmartRef__":true,"id":1095},"attributeConnections":[{"__isSmartRef__":true,"id":1168},{"__isSmartRef__":true,"id":1169}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"1145":{"submorphs":[],"scripts":[],"id":760,"shape":{"__isSmartRef__":true,"id":1146},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1149},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":1150},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":1151}],"owner":{"__isSmartRef__":true,"id":1144},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","priorExtent":{"__isSmartRef__":true,"id":1153},"renderContextTable":{"__isSmartRef__":true,"id":1154},"__LivelyClassName__":"lively.morphic.Text"},"1146":{"_Position":{"__isSmartRef__":true,"id":1147},"_Extent":{"__isSmartRef__":true,"id":1148},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1016},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1147":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1148":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1149":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1150":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1151":{"style":{"__isSmartRef__":true,"id":1152},"morph":{"__isSmartRef__":true,"id":1145},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1152":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1153":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1154":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"1155":{"_Position":{"__isSmartRef__":true,"id":1156},"_Extent":{"__isSmartRef__":true,"id":1157},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1120},"_Fill":{"__isSmartRef__":true,"id":1121},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1156":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1157":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1158":{"x":3,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1159":{"stops":[{"__isSmartRef__":true,"id":1160},{"__isSmartRef__":true,"id":1162},{"__isSmartRef__":true,"id":1164},{"__isSmartRef__":true,"id":1166}],"vector":{"__isSmartRef__":true,"id":1130},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1160":{"offset":0,"color":{"__isSmartRef__":true,"id":1161}},"1161":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1162":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1163}},"1163":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1164":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1165}},"1165":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1166":{"offset":1,"color":{"__isSmartRef__":true,"id":1167}},"1167":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1168":{"sourceObj":{"__isSmartRef__":true,"id":1144},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":990},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1169":{"sourceObj":{"__isSmartRef__":true,"id":1144},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":990},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1170":{"submorphs":[{"__isSmartRef__":true,"id":1171}],"scripts":[],"id":761,"shape":{"__isSmartRef__":true,"id":1181},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1184},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1121},"lighterFill":{"__isSmartRef__":true,"id":1185},"label":{"__isSmartRef__":true,"id":1171},"owner":{"__isSmartRef__":true,"id":1095},"layout":{"__isSmartRef__":true,"id":1194},"attributeConnections":[{"__isSmartRef__":true,"id":1195},{"__isSmartRef__":true,"id":1196}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"1171":{"submorphs":[],"scripts":[],"id":762,"shape":{"__isSmartRef__":true,"id":1172},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1175},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":1176},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":1177}],"owner":{"__isSmartRef__":true,"id":1170},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","priorExtent":{"__isSmartRef__":true,"id":1179},"renderContextTable":{"__isSmartRef__":true,"id":1180},"__LivelyClassName__":"lively.morphic.Text"},"1172":{"_Position":{"__isSmartRef__":true,"id":1173},"_Extent":{"__isSmartRef__":true,"id":1174},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1016},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1173":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1174":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1175":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1176":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1177":{"style":{"__isSmartRef__":true,"id":1178},"morph":{"__isSmartRef__":true,"id":1171},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1178":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1179":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1180":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"1181":{"_Position":{"__isSmartRef__":true,"id":1182},"_Extent":{"__isSmartRef__":true,"id":1183},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1120},"_Fill":{"__isSmartRef__":true,"id":1121},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1182":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1183":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1184":{"x":1001.0809190809191,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1185":{"stops":[{"__isSmartRef__":true,"id":1186},{"__isSmartRef__":true,"id":1188},{"__isSmartRef__":true,"id":1190},{"__isSmartRef__":true,"id":1192}],"vector":{"__isSmartRef__":true,"id":1130},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1186":{"offset":0,"color":{"__isSmartRef__":true,"id":1187}},"1187":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1188":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1189}},"1189":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1190":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1191}},"1191":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1192":{"offset":1,"color":{"__isSmartRef__":true,"id":1193}},"1193":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1194":{"moveHorizontal":true},"1195":{"sourceObj":{"__isSmartRef__":true,"id":1170},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":990},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1196":{"sourceObj":{"__isSmartRef__":true,"id":1170},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":990},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1197":{"_Position":{"__isSmartRef__":true,"id":1198},"_Extent":{"__isSmartRef__":true,"id":1199},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":996},"_Fill":{"__isSmartRef__":true,"id":1200},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1198":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1199":{"x":1040.080919080919,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1200":{"stops":[{"__isSmartRef__":true,"id":1201},{"__isSmartRef__":true,"id":1203},{"__isSmartRef__":true,"id":1205}],"vector":{"__isSmartRef__":true,"id":1207},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1201":{"offset":0,"color":{"__isSmartRef__":true,"id":1202}},"1202":{"r":0.8600000000000001,"g":0.8600000000000001,"b":0.8600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1203":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1204}},"1204":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1205":{"offset":1,"color":{"__isSmartRef__":true,"id":1206}},"1206":{"r":0.8600000000000001,"g":0.8600000000000001,"b":0.8600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1207":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1208":{"resizeWidth":true,"adjustForNewBounds":true},"1209":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1210":{"x":1040.080919080919,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1211":{"submorphs":[],"scripts":[],"id":763,"shape":{"__isSmartRef__":true,"id":1212},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1217},"showsHalos":false,"name":"ResizeCorner","partsBinMetaInfo":{"__isSmartRef__":true,"id":1218},"__SourceModuleName__":"Global.lively.morphic.Core","_Rotation":0,"_Scale":1,"draggingEnabled":true,"dragStartPoint":null,"originalExtent":{"__isSmartRef__":true,"id":1219},"originalTargetExtent":null,"owner":{"__isSmartRef__":true,"id":990},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1220},"__LivelyClassName__":"lively.morphic.Box"},"1212":{"position":{"__isSmartRef__":true,"id":1213},"_Extent":{"__isSmartRef__":true,"id":1214},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1215},"_Fill":{"__isSmartRef__":true,"id":1216},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1213":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1214":{"x":13,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1215":{"r":0.568,"g":0.568,"b":0.568,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1216":{"r":0.258,"g":0.258,"b":0.258,"a":0.5,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1217":{"x":1027.080919080919,"y":441.00199800199795,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1218":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1219":{"x":239,"y":138,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1220":{"onDrag":{"__isSmartRef__":true,"id":1221},"onDragEnd":{"__isSmartRef__":true,"id":1228},"onDragStart":{"__isSmartRef__":true,"id":1235}},"1221":{"varMapping":{"__isSmartRef__":true,"id":1222},"source":"function onDrag(evt) {\n\t// alert(\"onDrag\")\n\t\tvar moveDelta = evt.mousePoint.subPt(this.dragStartPoint)\n\t\tif (evt.isShiftDown()) {\n\t\t\tvar maxDelta = Math.max(moveDelta.x, moveDelta.y);\n\t\t\tmoveDelta = pt(maxDelta, maxDelta);\n\t\t}\n\t\tthis.owner.setExtent(this.originalTargetExtent.addPt(moveDelta));\n\t\tthis.align(this.bounds().bottomRight(), this.owner.getExtent())\n}","funcProperties":{"__isSmartRef__":true,"id":1227},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1222":{"this":{"__isSmartRef__":true,"id":1211},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1223}},"1223":{"$super":{"__isSmartRef__":true,"id":1224}},"1224":{"varMapping":{"__isSmartRef__":true,"id":1225},"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":1226},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1225":{"obj":{"__isSmartRef__":true,"id":1211},"name":"onDrag"},"1226":{},"1227":{},"1228":{"varMapping":{"__isSmartRef__":true,"id":1229},"source":"function onDragEnd(evt) {\n\tthis.dragStartPoint = null;\n\tthis.originalTargetExtent = null;\n}","funcProperties":{"__isSmartRef__":true,"id":1234},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1229":{"this":{"__isSmartRef__":true,"id":1211},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1230}},"1230":{"$super":{"__isSmartRef__":true,"id":1231}},"1231":{"varMapping":{"__isSmartRef__":true,"id":1232},"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":1233},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1232":{"obj":{"__isSmartRef__":true,"id":1211},"name":"onDragEnd"},"1233":{},"1234":{},"1235":{"varMapping":{"__isSmartRef__":true,"id":1236},"source":"function onDragStart(evt) {\n\tthis.dragStartPoint = evt.mousePoint;\n\tthis.originalTargetExtent = this.owner.getExtent();\n}","funcProperties":{"__isSmartRef__":true,"id":1241},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1236":{"this":{"__isSmartRef__":true,"id":1211},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1237}},"1237":{"$super":{"__isSmartRef__":true,"id":1238}},"1238":{"varMapping":{"__isSmartRef__":true,"id":1239},"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":1240},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1239":{"obj":{"__isSmartRef__":true,"id":1211},"name":"onDragStart"},"1240":{},"1241":{},"1242":{"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_Extent":{"__isSmartRef__":true,"id":1243},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1243":{"x":1040.080919080919,"y":456.00199800199795,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1244":{"adjustForNewBounds":true},"1245":{"x":1202.4189794738272,"y":199.10305717940957,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1246":{"x":1040.080919080919,"y":456.00199800199795,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1247":{"x":0,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1248":{"x":821,"y":101,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1249":{"requiredModules":["lively.ide.SyntaxHighlighting","lively.ide.SyntaxHighlighting","lively.ide.SyntaxHighlighting"],"partsSpaceName":"PartsBin/Tools/","migrationLevel":2,"__SourceModuleName__":"Global.lively.PartsBin","comment":"Early version. Requires improvement.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1250":{"style":{"__isSmartRef__":true,"id":1251},"morph":{"__isSmartRef__":true,"id":982},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1251":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1252":{"x":1028.0469530469531,"y":422.98201798201796,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1253":{"sourceObj":{"__isSmartRef__":true,"id":982},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":982},"targetMethodName":"highlightJavaScriptSyntax","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1254":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"1255":{"doSave":{"__isSmartRef__":true,"id":1256}},"1256":{"varMapping":{"__isSmartRef__":true,"id":1257},"source":"function doSave() {\n\t$super()\n\talertOK(\"eval all for \" + this.getDoitContext())\n\tthis.boundEval(this.textString)\n}","funcProperties":{"__isSmartRef__":true,"id":1262},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1257":{"this":{"__isSmartRef__":true,"id":982},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1258}},"1258":{"$super":{"__isSmartRef__":true,"id":1259}},"1259":{"varMapping":{"__isSmartRef__":true,"id":1260},"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":1261},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1260":{"obj":{"__isSmartRef__":true,"id":982},"name":"doSave"},"1261":{},"1262":{},"1263":{"position":{"__isSmartRef__":true,"id":1264},"_Extent":{"__isSmartRef__":true,"id":1265},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":1266},"_Fill":{"__isSmartRef__":true,"id":1267},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1264":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1265":{"x":1041.0799200799202,"y":437.9980019980019,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1266":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1267":{"r":0.921,"g":0.921,"b":0.921,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1268":{"x":-0.9990009990010549,"y":20.001998001998004,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1269":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1270":{"resizeWidth":true,"resizeHeight":true,"adjustForNewBounds":true},"1271":{"x":1041.0799200799202,"y":437.9980019980019,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1272":{"addTargetScript":{"__isSmartRef__":true,"id":1273},"addTestObject":{"__isSmartRef__":true,"id":1276},"allMorphNames":{"__isSmartRef__":true,"id":1279},"allScriptListItems":{"__isSmartRef__":true,"id":1282},"bindMorphNames":{"__isSmartRef__":true,"id":1285},"doSearch":{"__isSmartRef__":true,"id":1288},"findSubobjects":{"__isSmartRef__":true,"id":1291},"generateSourceForConnection":{"__isSmartRef__":true,"id":1294},"generateSourceForObject":{"__isSmartRef__":true,"id":1297},"generateSourceForProperty":{"__isSmartRef__":true,"id":1300},"generateSourceForScript":{"__isSmartRef__":true,"id":1303},"generateSourceForValue":{"__isSmartRef__":true,"id":1306},"generateTargetCode":{"__isSmartRef__":true,"id":1309},"highlightSelectedObject":{"__isSmartRef__":true,"id":1312},"listItemsForObj":{"__isSmartRef__":true,"id":1315},"removeTargetScript":{"__isSmartRef__":true,"id":1318},"reset":{"__isSmartRef__":true,"id":1321},"setSourceInPane":{"__isSmartRef__":true,"id":1324},"setTarget":{"__isSmartRef__":true,"id":1327},"setupConnections":{"__isSmartRef__":true,"id":1330},"showTopLevelItems":{"__isSmartRef__":true,"id":1333},"sortedScriptNamesOfObj":{"__isSmartRef__":true,"id":1336},"updateScriptList":{"__isSmartRef__":true,"id":1339},"updateSourcePane":{"__isSmartRef__":true,"id":1342}},"1273":{"varMapping":{"__isSmartRef__":true,"id":1274},"source":"function addTargetScript(name) {\n\tvar target = this.target;\n\tif (!target) return;\n\n\ttarget.addScript(\"function \" + name + \"() {\\n\\n}\"); \n\n\tthis.updateScriptList();\n}","funcProperties":{"__isSmartRef__":true,"id":1275},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1274":{"this":{"__isSmartRef__":true,"id":981}},"1275":{},"1276":{"varMapping":{"__isSmartRef__":true,"id":1277},"source":"function addTestObject() {\n\tthis.testObject = {\n\t\tname: 'ScriptEditorTest',\n\t\taddScript: function addScript(funcOrString, optName) {\n\t\t\tvar func = Function.fromString(funcOrString);\n\t\t\treturn func.asScriptOf(this, optName);\n\t\t}.asScript()\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":1278},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1277":{"this":{"__isSmartRef__":true,"id":981}},"1278":{},"1279":{"varMapping":{"__isSmartRef__":true,"id":1280},"source":"function allMorphNames() {\n\tvar names = [];\n\tthis.world().withAllSubmorphsDo(function() { if (this.name) names.push(this.name) })\n\treturn names;\n}","funcProperties":{"__isSmartRef__":true,"id":1281},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1280":{"this":{"__isSmartRef__":true,"id":981}},"1281":{},"1282":{"varMapping":{"__isSmartRef__":true,"id":1283},"source":"function allScriptListItems() {\n\tvar obj = this.target;\n\tif (!obj) return [];\n\n\tvar listItems = this.findSubobjects(obj).collect(function(ea) {\n\t\treturn this.listItemsForObj(ea);\n\t}, this).flatten()\n\n\treturn listItems;\n}","funcProperties":{"__isSmartRef__":true,"id":1284},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1283":{"this":{"__isSmartRef__":true,"id":981}},"1284":{},"1285":{"varMapping":{"__isSmartRef__":true,"id":1286},"source":"function bindMorphNames(submorphNames) {\n\tsubmorphNames.forEach(function(ea) {\n\t\tthis[ea]= this.getMorphNamed(ea)\n\t}, this)\n}","funcProperties":{"__isSmartRef__":true,"id":1287},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1286":{"this":{"__isSmartRef__":true,"id":981}},"1287":{},"1288":{"varMapping":{"__isSmartRef__":true,"id":1289},"source":"function doSearch(string) {\n\talert('searching ' + string);\n\tvar allItems = this.allScriptListItems();\n\tallItems.select(function(item) {})\n}","funcProperties":{"__isSmartRef__":true,"id":1290},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1289":{"this":{"__isSmartRef__":true,"id":981}},"1290":{},"1291":{"varMapping":{"__isSmartRef__":true,"id":1292},"source":"function findSubobjects(obj) {\n\tvar objs = [];\n\tobj.withAllSubmorphsDo(function(){ objs.push(this) });\n\n\tif (obj.testObject && obj.testObject.name)\n\t\tobjs.push(obj.testObject)\n\treturn objs\n}","funcProperties":{"__isSmartRef__":true,"id":1293},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1292":{"this":{"__isSmartRef__":true,"id":981}},"1293":{},"1294":{"varMapping":{"__isSmartRef__":true,"id":1295},"source":"function generateSourceForConnection(baseObject, targetObject, connection) {\n\tvar c = connection;\n\tif (!c.getTargetObj() || !c.getTargetObj().name || \n\t\t!c.getSourceObj() || !c.getSourceObj().name) return String(c);\n\n\tvar optConfig = []\n\tif (c.converterString)\n\t\toptConfig.push(\"converter: \\n\\t\" + c.converterString)\n\tif (c.updaterString)\n\t\toptConfig.push(\"updater: \\n\\t\" + c.updaterString)\n\treturn Strings.format('connect(%s, \"%s\", %s, \"%s\", {%s});', \n\t\t\tthis.generateTargetCode(baseObject, c.getSourceObj()),\n\t\t\tc.getSourceAttrName(),\n\t\t\tthis.generateTargetCode(baseObject, c.getTargetObj()),\n\t\t\tc.getTargetMethodName(),\n\t\t\toptConfig.join(','));\n\n}","funcProperties":{"__isSmartRef__":true,"id":1296},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1295":{"this":{"__isSmartRef__":true,"id":981}},"1296":{},"1297":{"varMapping":{"__isSmartRef__":true,"id":1298},"source":"function generateSourceForObject(baseObject, targetObj) {\n\tvar source = \"// \" + targetObj.name + \" (\" + \n\t\tthis.generateTargetCode(baseObject, targetObj) + \")\\n\\n\"\n\n\n\tvar scriptNames = this.sortedScriptNamesOfObj(targetObj)\n\tif (scriptNames.length > 0) {\n\t\tsource += \"// ** \" + targetObj.name\t+ \"'s Scripts **\\n\"\n\t\tsource += scriptNames.collect(function(ea) {\n\t\t\treturn this.generateSourceForScript(baseObject, targetObj, ea)\n\t\t}, this).join('\\n\\n');\n\t}\n\n\tif (targetObj.attributeConnections) {\n\t\tsource += \"\\n\\n// ** \" + targetObj.name\t+ \"'s Connections **\\n\"\n\t\tsource += targetObj.attributeConnections.collect(function(ea) {\n\t\t\treturn this.generateSourceForConnection(baseObject, targetObj, ea)\n\t\t}, this).join('\\n');\n\t}\n\n\tif (targetObj.scriptSource && Object.isString(targetObj.scriptSource)) {\n\t\tsource += \"\\n\\n\";\n\t\tsource += this.generateSourceForProperty(\n\t\t\tbaseObject, targetObj, \"scriptSource\");\n\t}\n\n\treturn source\n}","funcProperties":{"__isSmartRef__":true,"id":1299},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1298":{"this":{"__isSmartRef__":true,"id":981}},"1299":{},"1300":{"varMapping":{"__isSmartRef__":true,"id":1301},"source":"function generateSourceForProperty(baseObject, targetObject, propertyName) {\n\tvar value = targetObject[propertyName];\n\treturn Strings.format('%s.'+ propertyName +'=%s;', \n\t\tthis.generateTargetCode(baseObject, targetObject),\t\n\t\tthis.generateSourceForValue(value))\n}","funcProperties":{"__isSmartRef__":true,"id":1302},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1301":{"this":{"__isSmartRef__":true,"id":981}},"1302":{},"1303":{"varMapping":{"__isSmartRef__":true,"id":1304},"source":"function generateSourceForScript(baseObject, targetObject, scriptName) {\n\tvar script =targetObject[scriptName].getOriginal();\n\treturn Strings.format('%s.addScript(%s);', \n\t\tthis.generateTargetCode(baseObject, targetObject) ,script)\n}","funcProperties":{"__isSmartRef__":true,"id":1305},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1304":{"this":{"__isSmartRef__":true,"id":981}},"1305":{},"1306":{"varMapping":{"__isSmartRef__":true,"id":1307},"source":"function generateSourceForValue(value) {\n\tif (Object.isString(value)) \n\t\treturn '\"' + value + '\"'\n\telse \n\t\treturn value\n}","funcProperties":{"__isSmartRef__":true,"id":1308},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1307":{"this":{"__isSmartRef__":true,"id":981}},"1308":{},"1309":{"varMapping":{"__isSmartRef__":true,"id":1310},"source":"function generateTargetCode(baseObject, targetObject) {\n\tvar name = targetObject.name;\n\tif (baseObject === targetObject) \n\t\treturn \"this\"\n\telse if (baseObject[name] === targetObject) \n\t\treturn \"this.\" + name\n\telse if (baseObject.testObject === targetObject) \n\t\treturn \"this.testObject\"\n\telse if (baseObject.get(name) === targetObject) \n\t\treturn 'this.get(\"' + name + '\")'\n\telse if (targetObject instanceof Morph) \n\t\treturn'$morph(\"' + name + '\")'\n\telse \n\t\treturn \"????\"\n}","funcProperties":{"__isSmartRef__":true,"id":1311},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1310":{"this":{"__isSmartRef__":true,"id":981}},"1311":{},"1312":{"varMapping":{"__isSmartRef__":true,"id":1313},"source":"function highlightSelectedObject(selection) {\n\tif (selection && selection.targetObj) showMorph(selection.targetObj)\n}","funcProperties":{"__isSmartRef__":true,"id":1314},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1313":{"this":{"__isSmartRef__":true,"id":981}},"1314":{},"1315":{"varMapping":{"__isSmartRef__":true,"id":1316},"source":"function listItemsForObj(obj, optPrefix) {\n\n\tvar listItems = [];\n\tvar prefix = optPrefix || \"\";\t\n\n\n\tif (obj.name) listItems.push({\n\t\tisListItem: true,\n\t\tstring: \"Object: \" + obj.name || \"unnamed\",\n\t\tvalue: {obj: obj, targetObj: obj}\t\n\t});\n\n\tif (obj.scriptSource && Object.isString(obj.scriptSource)) {\n\t\tlistItems.push({\n\t\t\tisListItem: true,\n\t\t\tstring: \" scriptSource\",\n\t\t\tvalue: {obj: obj, propertyName: 'scriptSource'}\t\n\t\t});\n\t}\n\n\tlistItems = listItems.concat(this.sortedScriptNamesOfObj(obj)\n\t\t.collect(function(name) { \n\t\t\treturn {isListItem: true, string: \" \" + name, value: {obj: obj, scriptName: name}}}))\n\n\t// BUG don't bind connections here...\n\tif (obj.attributeConnections)\n\t\t\tlistItems = listItems.concat(obj.attributeConnections.collect(function(ea) {\n\t\t\t\treturn {\n\t\t\t\t\tisListItem: true, \n\t\t\t\t\tstring: \" [\" + ea.getSourceAttrName() + \" -> \" + \n\t\t\t\t\t\tea.getTargetObj() + \".\" + ea.getTargetMethodName() + \"]\", \n\t\t\t\t\tvalue: {obj: obj, connection: ea }}\n\t\t\t}));\n\n\treturn listItems\n}","funcProperties":{"__isSmartRef__":true,"id":1317},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1316":{"this":{"__isSmartRef__":true,"id":981}},"1317":{},"1318":{"varMapping":{"__isSmartRef__":true,"id":1319},"source":"function removeTargetScript() {\n\tvar target = this.scriptList.selection.obj;\n\tif (!target) return;\n\n\n\tvar scriptName = this.scriptList.selection.scriptName; \n\tif (scriptName) {\n\t\tdelete target[scriptName];\n\t}\n\n\tvar connection = this.scriptList.selection.connection; \n\tif (connection)\n\t\tconnection.disconnect()\n\n\tthis.updateScriptList();\n}","funcProperties":{"__isSmartRef__":true,"id":1320},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1319":{"this":{"__isSmartRef__":true,"id":981}},"1320":{},"1321":{"varMapping":{"__isSmartRef__":true,"id":1322},"source":"function reset() {\n\t// this.reset()\n\tthis.bindMorphNames(\"targetName searchText scriptList scriptSource targetFound removeButton addButton closeButton\".split(\" \"))\n\tthis.target = null;\n\t// this.targetName.setTextString(\"nobody\");\n\t// this.scriptList.updateList([]);\n\tthis.scriptSource.setTextString(\"\");\n\t// this.searchText.setTextString(\"search for something\");\n}","funcProperties":{"__isSmartRef__":true,"id":1323},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1322":{"this":{"__isSmartRef__":true,"id":981}},"1323":{},"1324":{"varMapping":{"__isSmartRef__":true,"id":1325},"source":"function setSourceInPane(source, pane) {\n\tpane.setTextString(source);\n\tpane.owner.owner.scrollToTop();\n}","funcProperties":{"__isSmartRef__":true,"id":1326},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1325":{"this":{"__isSmartRef__":true,"id":981}},"1326":{},"1327":{"varMapping":{"__isSmartRef__":true,"id":1328},"source":"function setTarget(obj) {\n\t// if (obj) alertOK(\"set target \" + obj.name)\n\tthis.target = obj\n\t// this.updateScriptList()\n\tif (!this.target) \n\t\tsource = 'no source';\n\telse \n\t\tsource = this.generateSourceForObject(this.target, this.target);\n\tthis.get('scriptSource').setTextString(source)\n\tthis.get('scriptSource').doitContext = this.target\n\n\tmodule('lively.ide.SyntaxHighlighting').load(true)\n\tthis.get('scriptSource').highlightJavaScriptSyntax()\n}","funcProperties":{"__isSmartRef__":true,"id":1329},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1328":{"this":{"__isSmartRef__":true,"id":981}},"1329":{},"1330":{"varMapping":{"__isSmartRef__":true,"id":1331},"source":"function setupConnections() {\n\t// this.setupConnections();\n\tconnect(this.targetName, 'textString', \n\t\tthis, 'target', \n\t\t{converter: function(n) { return $morph(n) }})\n\n\tconnect(this, 'target', \n\t\tthis.targetFound, 'setFill', \n\t\t{converter: function(obj) { return obj ? Color.green : Color.red}})\n\n\tconnect(this, 'target', this, 'setTarget')\n\n\tconnect(this.searchText, 'savedTextString', this, 'doSearch')\n}","funcProperties":{"__isSmartRef__":true,"id":1332},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1331":{"this":{"__isSmartRef__":true,"id":981}},"1332":{},"1333":{"varMapping":{"__isSmartRef__":true,"id":1334},"source":"function showTopLevelItems() {\n\tvar topLevelMorphs = this.world().submorphs.reject(function(morph){\n\t\treturn !morph.name;\n\t})\n\tvar morphNames = topLevelMorphs.pluck('name'),\n\t\titems = morphNames.collect(function(name) {\n\t\t\treturn [name, function() { $morph('targetName').setTextString(name) }]\n\t\t});\n\tMenuMorph.openAtHand(items, 'Select morph to edit')\n}","funcProperties":{"__isSmartRef__":true,"id":1335},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1334":{"this":{"__isSmartRef__":true,"id":981}},"1335":{},"1336":{"varMapping":{"__isSmartRef__":true,"id":1337},"source":"function sortedScriptNamesOfObj(obj) {\n\treturn Functions.own(obj)\n\t\t.select(function(name) { return obj[name].hasLivelyClosure })\n\t\t.sortBy(function(name) { return name.toLowerCase() });\n}","funcProperties":{"__isSmartRef__":true,"id":1338},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1337":{"this":{"__isSmartRef__":true,"id":981}},"1338":{},"1339":{"varMapping":{"__isSmartRef__":true,"id":1340},"source":"function updateScriptList() {\n\tthis.scriptList.updateList(this.allScriptListItems());\n\t// this.scriptList.selectLineAt(this.scriptList.selectedLineNo);\n\t// this.scriptSource.owner.owner.scrollToTop(); // demeter :-D\n}","funcProperties":{"__isSmartRef__":true,"id":1341},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1340":{"this":{"__isSmartRef__":true,"id":981}},"1341":{},"1342":{"varMapping":{"__isSmartRef__":true,"id":1343},"source":"function updateSourcePane(selection) { \n\tvar textMorph = this.scriptSource;\n\n\tif (!selection || !selection.obj) {\n\t\ttextMorph.setTextString(\"\");\n\t\treturn;\n\t}\n\n\tif (selection.targetObj) {\n\t\tthis.setSourceInPane(this.generateSourceForObject(\n\t\t\ttextMorph.getDoitContext(), selection.targetObj), textMorph);\n\t\treturn;\n\t}\n\n\tif (selection.connection) {\n\t\tthis.setSourceInPane(this.generateSourceForConnection(\n\t\t\ttextMorph.getDoitContext(),selection.obj,selection.connection), textMorph);\n\t\treturn;\n\t}\n\n\tif (selection.propertyName) {\n\t\tthis.setSourceInPane(this.generateSourceForProperty(\n\t\t\ttextMorph.getDoitContext(), selection.obj, selection.propertyName), textMorph);\n\t\treturn;\n\t}\n\n\tthis.setSourceInPane(\n\t\tthis.generateSourceForScript(textMorph.getDoitContext(),selection.obj, selection.scriptName), \n\t\ttextMorph)\n}","funcProperties":{"__isSmartRef__":true,"id":1344},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1343":{"this":{"__isSmartRef__":true,"id":981}},"1344":{},"1345":{"submorphs":[{"__isSmartRef__":true,"id":1346},{"__isSmartRef__":true,"id":1356},{"__isSmartRef__":true,"id":1394},{"__isSmartRef__":true,"id":1420}],"scripts":[],"id":796,"shape":{"__isSmartRef__":true,"id":1447},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":1457},"_Position":{"__isSmartRef__":true,"id":1458},"eventsAreIgnored":true,"windowMorph":{"__isSmartRef__":true,"id":980},"label":{"__isSmartRef__":true,"id":1346},"closeButton":{"__isSmartRef__":true,"id":1356},"menuButton":{"__isSmartRef__":true,"id":1394},"collapseButton":{"__isSmartRef__":true,"id":1420},"priorExtent":{"__isSmartRef__":true,"id":1459},"owner":{"__isSmartRef__":true,"id":980},"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.TitleBar"},"1346":{"submorphs":[],"scripts":[],"id":797,"shape":{"__isSmartRef__":true,"id":1347},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1350},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":1351},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":1352}],"isLabel":true,"eventsAreIgnored":true,"_FontSize":10,"owner":{"__isSmartRef__":true,"id":1345},"__SourceModuleName__":"Global.lively.morphic.TextCore","priorExtent":{"__isSmartRef__":true,"id":1354},"renderContextTable":{"__isSmartRef__":true,"id":1355},"__LivelyClassName__":"lively.morphic.Text"},"1347":{"_Position":{"__isSmartRef__":true,"id":1348},"_Extent":{"__isSmartRef__":true,"id":1349},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1266},"_Fill":null,"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1348":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1349":{"x":981.0809190809191,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1350":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1351":{"x":20,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1352":{"style":{"__isSmartRef__":true,"id":1353},"morph":{"__isSmartRef__":true,"id":1346},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1353":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1354":{"x":981.0809190809191,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1355":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"1356":{"submorphs":[{"__isSmartRef__":true,"id":1357}],"scripts":[],"id":798,"shape":{"__isSmartRef__":true,"id":1367},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1381},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1371},"lighterFill":{"__isSmartRef__":true,"id":1382},"label":{"__isSmartRef__":true,"id":1357},"owner":{"__isSmartRef__":true,"id":1345},"layout":{"__isSmartRef__":true,"id":1391},"attributeConnections":[{"__isSmartRef__":true,"id":1392},{"__isSmartRef__":true,"id":1393}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"1357":{"submorphs":[],"scripts":[],"id":799,"shape":{"__isSmartRef__":true,"id":1358},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1361},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":1362},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":1363}],"owner":{"__isSmartRef__":true,"id":1356},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","priorExtent":{"__isSmartRef__":true,"id":1365},"renderContextTable":{"__isSmartRef__":true,"id":1366},"__LivelyClassName__":"lively.morphic.Text"},"1358":{"_Position":{"__isSmartRef__":true,"id":1359},"_Extent":{"__isSmartRef__":true,"id":1360},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1266},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1359":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1360":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1361":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1362":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1363":{"style":{"__isSmartRef__":true,"id":1364},"morph":{"__isSmartRef__":true,"id":1357},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1364":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1365":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1366":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"1367":{"_Position":{"__isSmartRef__":true,"id":1368},"_Extent":{"__isSmartRef__":true,"id":1369},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1370},"_Fill":{"__isSmartRef__":true,"id":1371},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1368":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1369":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1370":{"r":0.8392156862745098,"g":0.8392156862745098,"b":0.8392156862745098,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1371":{"stops":[{"__isSmartRef__":true,"id":1372},{"__isSmartRef__":true,"id":1374},{"__isSmartRef__":true,"id":1376},{"__isSmartRef__":true,"id":1378}],"vector":{"__isSmartRef__":true,"id":1380},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1372":{"offset":0,"color":{"__isSmartRef__":true,"id":1373}},"1373":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1374":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1375}},"1375":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1376":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1377}},"1377":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1378":{"offset":1,"color":{"__isSmartRef__":true,"id":1379}},"1379":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1380":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1381":{"x":1020.0809190809191,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1382":{"stops":[{"__isSmartRef__":true,"id":1383},{"__isSmartRef__":true,"id":1385},{"__isSmartRef__":true,"id":1387},{"__isSmartRef__":true,"id":1389}],"vector":{"__isSmartRef__":true,"id":1380},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1383":{"offset":0,"color":{"__isSmartRef__":true,"id":1384}},"1384":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1385":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1386}},"1386":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1387":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1388}},"1388":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1389":{"offset":1,"color":{"__isSmartRef__":true,"id":1390}},"1390":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1391":{"moveHorizontal":true},"1392":{"sourceObj":{"__isSmartRef__":true,"id":1356},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":980},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1393":{"sourceObj":{"__isSmartRef__":true,"id":1356},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":980},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1394":{"submorphs":[{"__isSmartRef__":true,"id":1395}],"scripts":[],"id":800,"shape":{"__isSmartRef__":true,"id":1405},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1408},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1371},"lighterFill":{"__isSmartRef__":true,"id":1409},"label":{"__isSmartRef__":true,"id":1395},"owner":{"__isSmartRef__":true,"id":1345},"attributeConnections":[{"__isSmartRef__":true,"id":1418},{"__isSmartRef__":true,"id":1419}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"1395":{"submorphs":[],"scripts":[],"id":801,"shape":{"__isSmartRef__":true,"id":1396},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1399},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":1400},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":1401}],"owner":{"__isSmartRef__":true,"id":1394},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","priorExtent":{"__isSmartRef__":true,"id":1403},"renderContextTable":{"__isSmartRef__":true,"id":1404},"__LivelyClassName__":"lively.morphic.Text"},"1396":{"_Position":{"__isSmartRef__":true,"id":1397},"_Extent":{"__isSmartRef__":true,"id":1398},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1266},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1397":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1398":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1399":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1400":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1401":{"style":{"__isSmartRef__":true,"id":1402},"morph":{"__isSmartRef__":true,"id":1395},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1402":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1403":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1404":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"1405":{"_Position":{"__isSmartRef__":true,"id":1406},"_Extent":{"__isSmartRef__":true,"id":1407},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1370},"_Fill":{"__isSmartRef__":true,"id":1371},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1406":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1407":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1408":{"x":3,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1409":{"stops":[{"__isSmartRef__":true,"id":1410},{"__isSmartRef__":true,"id":1412},{"__isSmartRef__":true,"id":1414},{"__isSmartRef__":true,"id":1416}],"vector":{"__isSmartRef__":true,"id":1380},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1410":{"offset":0,"color":{"__isSmartRef__":true,"id":1411}},"1411":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1412":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1413}},"1413":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1414":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1415}},"1415":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1416":{"offset":1,"color":{"__isSmartRef__":true,"id":1417}},"1417":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1418":{"sourceObj":{"__isSmartRef__":true,"id":1394},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":980},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1419":{"sourceObj":{"__isSmartRef__":true,"id":1394},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":980},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1420":{"submorphs":[{"__isSmartRef__":true,"id":1421}],"scripts":[],"id":802,"shape":{"__isSmartRef__":true,"id":1431},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1434},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1371},"lighterFill":{"__isSmartRef__":true,"id":1435},"label":{"__isSmartRef__":true,"id":1421},"owner":{"__isSmartRef__":true,"id":1345},"layout":{"__isSmartRef__":true,"id":1444},"attributeConnections":[{"__isSmartRef__":true,"id":1445},{"__isSmartRef__":true,"id":1446}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"1421":{"submorphs":[],"scripts":[],"id":803,"shape":{"__isSmartRef__":true,"id":1422},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1425},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":1426},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":1427}],"owner":{"__isSmartRef__":true,"id":1420},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","priorExtent":{"__isSmartRef__":true,"id":1429},"renderContextTable":{"__isSmartRef__":true,"id":1430},"__LivelyClassName__":"lively.morphic.Text"},"1422":{"_Position":{"__isSmartRef__":true,"id":1423},"_Extent":{"__isSmartRef__":true,"id":1424},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1266},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1423":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1424":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1425":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1426":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1427":{"style":{"__isSmartRef__":true,"id":1428},"morph":{"__isSmartRef__":true,"id":1421},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1428":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1429":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1430":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"1431":{"_Position":{"__isSmartRef__":true,"id":1432},"_Extent":{"__isSmartRef__":true,"id":1433},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1370},"_Fill":{"__isSmartRef__":true,"id":1371},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1432":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1433":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1434":{"x":1001.0809190809191,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1435":{"stops":[{"__isSmartRef__":true,"id":1436},{"__isSmartRef__":true,"id":1438},{"__isSmartRef__":true,"id":1440},{"__isSmartRef__":true,"id":1442}],"vector":{"__isSmartRef__":true,"id":1380},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1436":{"offset":0,"color":{"__isSmartRef__":true,"id":1437}},"1437":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1438":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1439}},"1439":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1440":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1441}},"1441":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1442":{"offset":1,"color":{"__isSmartRef__":true,"id":1443}},"1443":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1444":{"moveHorizontal":true},"1445":{"sourceObj":{"__isSmartRef__":true,"id":1420},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":980},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1446":{"sourceObj":{"__isSmartRef__":true,"id":1420},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":980},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1447":{"_Position":{"__isSmartRef__":true,"id":1448},"_Extent":{"__isSmartRef__":true,"id":1449},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":986},"_Fill":{"__isSmartRef__":true,"id":1450},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1448":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1449":{"x":1040.080919080919,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1450":{"stops":[{"__isSmartRef__":true,"id":1451},{"__isSmartRef__":true,"id":1453},{"__isSmartRef__":true,"id":1455}],"vector":{"__isSmartRef__":true,"id":1207},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1451":{"offset":0,"color":{"__isSmartRef__":true,"id":1452}},"1452":{"r":0.8600000000000001,"g":0.8600000000000001,"b":0.8600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1453":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1454}},"1454":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1455":{"offset":1,"color":{"__isSmartRef__":true,"id":1456}},"1456":{"r":0.8600000000000001,"g":0.8600000000000001,"b":0.8600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1457":{"resizeWidth":true,"adjustForNewBounds":true},"1458":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1459":{"x":1040.080919080919,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1460":{"submorphs":[],"scripts":[],"id":804,"shape":{"__isSmartRef__":true,"id":1461},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1466},"showsHalos":false,"name":"ResizeCorner","partsBinMetaInfo":{"__isSmartRef__":true,"id":1467},"__SourceModuleName__":"Global.lively.morphic.Core","_Rotation":0,"_Scale":1,"draggingEnabled":true,"dragStartPoint":null,"originalExtent":{"__isSmartRef__":true,"id":1468},"originalTargetExtent":null,"owner":{"__isSmartRef__":true,"id":980},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1469},"__LivelyClassName__":"lively.morphic.Box"},"1461":{"position":{"__isSmartRef__":true,"id":1462},"_Extent":{"__isSmartRef__":true,"id":1463},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1464},"_Fill":{"__isSmartRef__":true,"id":1465},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1462":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1463":{"x":13,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1464":{"r":0.568,"g":0.568,"b":0.568,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1465":{"r":0.258,"g":0.258,"b":0.258,"a":0.5,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1466":{"x":1027.080919080919,"y":441.00199800199795,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1467":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1468":{"x":239,"y":138,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1469":{"onDrag":{"__isSmartRef__":true,"id":1470},"onDragEnd":{"__isSmartRef__":true,"id":1477},"onDragStart":{"__isSmartRef__":true,"id":1484}},"1470":{"varMapping":{"__isSmartRef__":true,"id":1471},"source":"function onDrag(evt) {\n\t// alert(\"onDrag\")\n\t\tvar moveDelta = evt.mousePoint.subPt(this.dragStartPoint)\n\t\tif (evt.isShiftDown()) {\n\t\t\tvar maxDelta = Math.max(moveDelta.x, moveDelta.y);\n\t\t\tmoveDelta = pt(maxDelta, maxDelta);\n\t\t}\n\t\tthis.owner.setExtent(this.originalTargetExtent.addPt(moveDelta));\n\t\tthis.align(this.bounds().bottomRight(), this.owner.getExtent())\n}","funcProperties":{"__isSmartRef__":true,"id":1476},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1471":{"this":{"__isSmartRef__":true,"id":1460},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1472}},"1472":{"$super":{"__isSmartRef__":true,"id":1473}},"1473":{"varMapping":{"__isSmartRef__":true,"id":1474},"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":1475},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1474":{"obj":{"__isSmartRef__":true,"id":1460},"name":"onDrag"},"1475":{},"1476":{},"1477":{"varMapping":{"__isSmartRef__":true,"id":1478},"source":"function onDragEnd(evt) {\n\tthis.dragStartPoint = null;\n\tthis.originalTargetExtent = null;\n}","funcProperties":{"__isSmartRef__":true,"id":1483},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1478":{"this":{"__isSmartRef__":true,"id":1460},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1479}},"1479":{"$super":{"__isSmartRef__":true,"id":1480}},"1480":{"varMapping":{"__isSmartRef__":true,"id":1481},"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":1482},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1481":{"obj":{"__isSmartRef__":true,"id":1460},"name":"onDragEnd"},"1482":{},"1483":{},"1484":{"varMapping":{"__isSmartRef__":true,"id":1485},"source":"function onDragStart(evt) {\n\tthis.dragStartPoint = evt.mousePoint;\n\tthis.originalTargetExtent = this.owner.getExtent();\n}","funcProperties":{"__isSmartRef__":true,"id":1490},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1485":{"this":{"__isSmartRef__":true,"id":1460},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1486}},"1486":{"$super":{"__isSmartRef__":true,"id":1487}},"1487":{"varMapping":{"__isSmartRef__":true,"id":1488},"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":1489},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1488":{"obj":{"__isSmartRef__":true,"id":1460},"name":"onDragStart"},"1489":{},"1490":{},"1491":{"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_Extent":{"__isSmartRef__":true,"id":1492},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1492":{"x":1040.080919080919,"y":456.00199800199795,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1493":{"adjustForNewBounds":true},"1494":{"x":2243.4988995537474,"y":199.10305717940957,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1495":{"x":1040.080919080919,"y":456.00199800199795,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1496":{"x":0,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1497":{"x":821,"y":101,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1498":{"requiredModules":["lively.ide.SyntaxHighlighting","lively.ide.SyntaxHighlighting","lively.ide.SyntaxHighlighting"],"partsSpaceName":"PartsBin/Tools/","migrationLevel":2,"__SourceModuleName__":"Global.lively.PartsBin","comment":"Early version. Requires improvement.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1499":{"style":{"__isSmartRef__":true,"id":1500},"morph":{"__isSmartRef__":true,"id":972},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1500":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1501":{"x":1028.0469530469531,"y":422.98201798201796,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1502":{"sourceObj":{"__isSmartRef__":true,"id":972},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":972},"targetMethodName":"highlightJavaScriptSyntax","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1503":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"1504":{"doSave":{"__isSmartRef__":true,"id":1505}},"1505":{"varMapping":{"__isSmartRef__":true,"id":1506},"source":"function doSave() {\n\t$super()\n\talertOK(\"eval all for \" + this.getDoitContext())\n\tthis.boundEval(this.textString)\n}","funcProperties":{"__isSmartRef__":true,"id":1511},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1506":{"this":{"__isSmartRef__":true,"id":972},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1507}},"1507":{"$super":{"__isSmartRef__":true,"id":1508}},"1508":{"varMapping":{"__isSmartRef__":true,"id":1509},"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":1510},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1509":{"obj":{"__isSmartRef__":true,"id":972},"name":"doSave"},"1510":{},"1511":{},"1512":{"position":{"__isSmartRef__":true,"id":1513},"_Extent":{"__isSmartRef__":true,"id":1514},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":1515},"_Fill":{"__isSmartRef__":true,"id":1516},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1513":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1514":{"x":1041.0799200799202,"y":437.9980019980019,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1515":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1516":{"r":0.921,"g":0.921,"b":0.921,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1517":{"x":-0.9990009990010549,"y":20.001998001998004,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1518":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1519":{"submorphs":[{"__isSmartRef__":true,"id":971},{"__isSmartRef__":true,"id":1520},{"__isSmartRef__":true,"id":1636}],"scripts":[],"id":834,"shape":{"__isSmartRef__":true,"id":1667},"droppingEnabled":true,"halosEnabled":true,"draggingEnabled":true,"layout":{"__isSmartRef__":true,"id":1669},"_Position":{"__isSmartRef__":true,"id":1670},"priorExtent":{"__isSmartRef__":true,"id":1671},"targetMorph":{"__isSmartRef__":true,"id":971},"titleBar":{"__isSmartRef__":true,"id":1520},"contentOffset":{"__isSmartRef__":true,"id":1672},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":null,"expandedExtent":null,"ignoreEventsOnExpand":false,"highlighted":true,"_Rotation":0,"_Scale":1,"prevDragPos":{"__isSmartRef__":true,"id":1673},"showsHalos":false,"name":"ScriptEditor2","partsBinMetaInfo":{"__isSmartRef__":true,"id":1674},"__SourceModuleName__":"Global.lively.morphic.Widgets","owner":null,"state":"shutdown","__LivelyClassName__":"lively.morphic.Window"},"1520":{"submorphs":[{"__isSmartRef__":true,"id":1521},{"__isSmartRef__":true,"id":1531},{"__isSmartRef__":true,"id":1569},{"__isSmartRef__":true,"id":1595}],"scripts":[],"id":837,"shape":{"__isSmartRef__":true,"id":1622},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":1633},"_Position":{"__isSmartRef__":true,"id":1634},"eventsAreIgnored":true,"windowMorph":{"__isSmartRef__":true,"id":1519},"label":{"__isSmartRef__":true,"id":1521},"closeButton":{"__isSmartRef__":true,"id":1531},"menuButton":{"__isSmartRef__":true,"id":1569},"collapseButton":{"__isSmartRef__":true,"id":1595},"priorExtent":{"__isSmartRef__":true,"id":1635},"owner":{"__isSmartRef__":true,"id":1519},"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.TitleBar"},"1521":{"submorphs":[],"scripts":[],"id":838,"shape":{"__isSmartRef__":true,"id":1522},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1525},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":1526},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":1527}],"isLabel":true,"eventsAreIgnored":true,"_FontSize":10,"owner":{"__isSmartRef__":true,"id":1520},"__SourceModuleName__":"Global.lively.morphic.TextCore","priorExtent":{"__isSmartRef__":true,"id":1529},"renderContextTable":{"__isSmartRef__":true,"id":1530},"__LivelyClassName__":"lively.morphic.Text"},"1522":{"_Position":{"__isSmartRef__":true,"id":1523},"_Extent":{"__isSmartRef__":true,"id":1524},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1515},"_Fill":null,"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1523":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1524":{"x":981.0809190809191,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1525":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1526":{"x":20,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1527":{"style":{"__isSmartRef__":true,"id":1528},"morph":{"__isSmartRef__":true,"id":1521},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1528":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1529":{"x":981.0809190809191,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1530":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"1531":{"submorphs":[{"__isSmartRef__":true,"id":1532}],"scripts":[],"id":839,"shape":{"__isSmartRef__":true,"id":1542},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1556},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1546},"lighterFill":{"__isSmartRef__":true,"id":1557},"label":{"__isSmartRef__":true,"id":1532},"owner":{"__isSmartRef__":true,"id":1520},"layout":{"__isSmartRef__":true,"id":1566},"attributeConnections":[{"__isSmartRef__":true,"id":1567},{"__isSmartRef__":true,"id":1568}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"1532":{"submorphs":[],"scripts":[],"id":840,"shape":{"__isSmartRef__":true,"id":1533},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1536},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":1537},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":1538}],"owner":{"__isSmartRef__":true,"id":1531},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","priorExtent":{"__isSmartRef__":true,"id":1540},"renderContextTable":{"__isSmartRef__":true,"id":1541},"__LivelyClassName__":"lively.morphic.Text"},"1533":{"_Position":{"__isSmartRef__":true,"id":1534},"_Extent":{"__isSmartRef__":true,"id":1535},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1515},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1534":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1535":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1536":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1537":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1538":{"style":{"__isSmartRef__":true,"id":1539},"morph":{"__isSmartRef__":true,"id":1532},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1539":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1540":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1541":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"1542":{"_Position":{"__isSmartRef__":true,"id":1543},"_Extent":{"__isSmartRef__":true,"id":1544},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1545},"_Fill":{"__isSmartRef__":true,"id":1546},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1543":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1544":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1545":{"r":0.8392156862745098,"g":0.8392156862745098,"b":0.8392156862745098,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1546":{"stops":[{"__isSmartRef__":true,"id":1547},{"__isSmartRef__":true,"id":1549},{"__isSmartRef__":true,"id":1551},{"__isSmartRef__":true,"id":1553}],"vector":{"__isSmartRef__":true,"id":1555},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1547":{"offset":0,"color":{"__isSmartRef__":true,"id":1548}},"1548":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1549":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1550}},"1550":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1551":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1552}},"1552":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1553":{"offset":1,"color":{"__isSmartRef__":true,"id":1554}},"1554":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1555":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1556":{"x":1020.0809190809191,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1557":{"stops":[{"__isSmartRef__":true,"id":1558},{"__isSmartRef__":true,"id":1560},{"__isSmartRef__":true,"id":1562},{"__isSmartRef__":true,"id":1564}],"vector":{"__isSmartRef__":true,"id":1555},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1558":{"offset":0,"color":{"__isSmartRef__":true,"id":1559}},"1559":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1560":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1561}},"1561":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1562":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1563}},"1563":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1564":{"offset":1,"color":{"__isSmartRef__":true,"id":1565}},"1565":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1566":{"moveHorizontal":true},"1567":{"sourceObj":{"__isSmartRef__":true,"id":1531},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":1519},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1568":{"sourceObj":{"__isSmartRef__":true,"id":1531},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1519},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1569":{"submorphs":[{"__isSmartRef__":true,"id":1570}],"scripts":[],"id":841,"shape":{"__isSmartRef__":true,"id":1580},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1583},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1546},"lighterFill":{"__isSmartRef__":true,"id":1584},"label":{"__isSmartRef__":true,"id":1570},"owner":{"__isSmartRef__":true,"id":1520},"attributeConnections":[{"__isSmartRef__":true,"id":1593},{"__isSmartRef__":true,"id":1594}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"1570":{"submorphs":[],"scripts":[],"id":842,"shape":{"__isSmartRef__":true,"id":1571},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1574},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":1575},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":1576}],"owner":{"__isSmartRef__":true,"id":1569},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","priorExtent":{"__isSmartRef__":true,"id":1578},"renderContextTable":{"__isSmartRef__":true,"id":1579},"__LivelyClassName__":"lively.morphic.Text"},"1571":{"_Position":{"__isSmartRef__":true,"id":1572},"_Extent":{"__isSmartRef__":true,"id":1573},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1515},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1572":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1573":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1574":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1575":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1576":{"style":{"__isSmartRef__":true,"id":1577},"morph":{"__isSmartRef__":true,"id":1570},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1577":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1578":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1579":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"1580":{"_Position":{"__isSmartRef__":true,"id":1581},"_Extent":{"__isSmartRef__":true,"id":1582},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1545},"_Fill":{"__isSmartRef__":true,"id":1546},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1581":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1582":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1583":{"x":3,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1584":{"stops":[{"__isSmartRef__":true,"id":1585},{"__isSmartRef__":true,"id":1587},{"__isSmartRef__":true,"id":1589},{"__isSmartRef__":true,"id":1591}],"vector":{"__isSmartRef__":true,"id":1555},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1585":{"offset":0,"color":{"__isSmartRef__":true,"id":1586}},"1586":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1587":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1588}},"1588":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1589":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1590}},"1590":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1591":{"offset":1,"color":{"__isSmartRef__":true,"id":1592}},"1592":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1593":{"sourceObj":{"__isSmartRef__":true,"id":1569},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":1519},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1594":{"sourceObj":{"__isSmartRef__":true,"id":1569},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1519},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1595":{"submorphs":[{"__isSmartRef__":true,"id":1596}],"scripts":[],"id":843,"shape":{"__isSmartRef__":true,"id":1606},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1609},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1546},"lighterFill":{"__isSmartRef__":true,"id":1610},"label":{"__isSmartRef__":true,"id":1596},"owner":{"__isSmartRef__":true,"id":1520},"layout":{"__isSmartRef__":true,"id":1619},"attributeConnections":[{"__isSmartRef__":true,"id":1620},{"__isSmartRef__":true,"id":1621}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"1596":{"submorphs":[],"scripts":[],"id":844,"shape":{"__isSmartRef__":true,"id":1597},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1600},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":1601},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":1602}],"owner":{"__isSmartRef__":true,"id":1595},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","priorExtent":{"__isSmartRef__":true,"id":1604},"renderContextTable":{"__isSmartRef__":true,"id":1605},"__LivelyClassName__":"lively.morphic.Text"},"1597":{"_Position":{"__isSmartRef__":true,"id":1598},"_Extent":{"__isSmartRef__":true,"id":1599},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1515},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1598":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1599":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1600":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1601":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1602":{"style":{"__isSmartRef__":true,"id":1603},"morph":{"__isSmartRef__":true,"id":1596},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1603":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1604":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1605":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"1606":{"_Position":{"__isSmartRef__":true,"id":1607},"_Extent":{"__isSmartRef__":true,"id":1608},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1545},"_Fill":{"__isSmartRef__":true,"id":1546},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1607":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1608":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1609":{"x":1001.0809190809191,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1610":{"stops":[{"__isSmartRef__":true,"id":1611},{"__isSmartRef__":true,"id":1613},{"__isSmartRef__":true,"id":1615},{"__isSmartRef__":true,"id":1617}],"vector":{"__isSmartRef__":true,"id":1555},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1611":{"offset":0,"color":{"__isSmartRef__":true,"id":1612}},"1612":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1613":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1614}},"1614":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1615":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1616}},"1616":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1617":{"offset":1,"color":{"__isSmartRef__":true,"id":1618}},"1618":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1619":{"moveHorizontal":true},"1620":{"sourceObj":{"__isSmartRef__":true,"id":1595},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":1519},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1621":{"sourceObj":{"__isSmartRef__":true,"id":1595},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1519},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1622":{"_Position":{"__isSmartRef__":true,"id":1623},"_Extent":{"__isSmartRef__":true,"id":1624},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":976},"_Fill":{"__isSmartRef__":true,"id":1625},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1623":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1624":{"x":1040.080919080919,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1625":{"stops":[{"__isSmartRef__":true,"id":1626},{"__isSmartRef__":true,"id":1628},{"__isSmartRef__":true,"id":1630}],"vector":{"__isSmartRef__":true,"id":1632},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1626":{"offset":0,"color":{"__isSmartRef__":true,"id":1627}},"1627":{"r":0.7200000000000001,"g":0.7200000000000001,"b":0.7200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1628":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1629}},"1629":{"r":0.9,"g":0.9,"b":0.9,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1630":{"offset":1,"color":{"__isSmartRef__":true,"id":1631}},"1631":{"r":0.7200000000000001,"g":0.7200000000000001,"b":0.7200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1632":{"x":0,"y":1,"width":0,"height":-1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1633":{"resizeWidth":true,"adjustForNewBounds":true},"1634":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1635":{"x":1040.080919080919,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1636":{"submorphs":[],"scripts":[],"id":845,"shape":{"__isSmartRef__":true,"id":1637},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1642},"showsHalos":false,"name":"ResizeCorner","partsBinMetaInfo":{"__isSmartRef__":true,"id":1643},"__SourceModuleName__":"Global.lively.morphic.Core","_Rotation":0,"_Scale":1,"draggingEnabled":true,"dragStartPoint":null,"originalExtent":{"__isSmartRef__":true,"id":1644},"originalTargetExtent":null,"owner":{"__isSmartRef__":true,"id":1519},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1645},"__LivelyClassName__":"lively.morphic.Box"},"1637":{"position":{"__isSmartRef__":true,"id":1638},"_Extent":{"__isSmartRef__":true,"id":1639},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1640},"_Fill":{"__isSmartRef__":true,"id":1641},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1638":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1639":{"x":13,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1640":{"r":0.568,"g":0.568,"b":0.568,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1641":{"r":0.258,"g":0.258,"b":0.258,"a":0.5,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1642":{"x":1027.080919080919,"y":441.00199800199795,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1643":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1644":{"x":239,"y":138,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1645":{"onDrag":{"__isSmartRef__":true,"id":1646},"onDragEnd":{"__isSmartRef__":true,"id":1653},"onDragStart":{"__isSmartRef__":true,"id":1660}},"1646":{"varMapping":{"__isSmartRef__":true,"id":1647},"source":"function onDrag(evt) {\n\t// alert(\"onDrag\")\n\t\tvar moveDelta = evt.mousePoint.subPt(this.dragStartPoint)\n\t\tif (evt.isShiftDown()) {\n\t\t\tvar maxDelta = Math.max(moveDelta.x, moveDelta.y);\n\t\t\tmoveDelta = pt(maxDelta, maxDelta);\n\t\t}\n\t\tthis.owner.setExtent(this.originalTargetExtent.addPt(moveDelta));\n\t\tthis.align(this.bounds().bottomRight(), this.owner.getExtent())\n}","funcProperties":{"__isSmartRef__":true,"id":1652},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1647":{"this":{"__isSmartRef__":true,"id":1636},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1648}},"1648":{"$super":{"__isSmartRef__":true,"id":1649}},"1649":{"varMapping":{"__isSmartRef__":true,"id":1650},"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":1651},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1650":{"obj":{"__isSmartRef__":true,"id":1636},"name":"onDrag"},"1651":{},"1652":{},"1653":{"varMapping":{"__isSmartRef__":true,"id":1654},"source":"function onDragEnd(evt) {\n\tthis.dragStartPoint = null;\n\tthis.originalTargetExtent = null;\n}","funcProperties":{"__isSmartRef__":true,"id":1659},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1654":{"this":{"__isSmartRef__":true,"id":1636},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1655}},"1655":{"$super":{"__isSmartRef__":true,"id":1656}},"1656":{"varMapping":{"__isSmartRef__":true,"id":1657},"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":1658},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1657":{"obj":{"__isSmartRef__":true,"id":1636},"name":"onDragEnd"},"1658":{},"1659":{},"1660":{"varMapping":{"__isSmartRef__":true,"id":1661},"source":"function onDragStart(evt) {\n\tthis.dragStartPoint = evt.mousePoint;\n\tthis.originalTargetExtent = this.owner.getExtent();\n}","funcProperties":{"__isSmartRef__":true,"id":1666},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1661":{"this":{"__isSmartRef__":true,"id":1636},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1662}},"1662":{"$super":{"__isSmartRef__":true,"id":1663}},"1663":{"varMapping":{"__isSmartRef__":true,"id":1664},"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":1665},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1664":{"obj":{"__isSmartRef__":true,"id":1636},"name":"onDragStart"},"1665":{},"1666":{},"1667":{"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_Extent":{"__isSmartRef__":true,"id":1668},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1668":{"x":1040.080919080919,"y":456.00199800199795,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1669":{"adjustForNewBounds":true},"1670":{"x":1595.5788196336675,"y":111.10305717940957,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1671":{"x":1040.080919080919,"y":456.00199800199795,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1672":{"x":0,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1673":{"x":2486,"y":122,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1674":{"requiredModules":["lively.ide.SyntaxHighlighting","lively.ide.SyntaxHighlighting","lively.ide.SyntaxHighlighting"],"partsSpaceName":"PartsBin/Tools/","migrationLevel":2,"__SourceModuleName__":"Global.lively.PartsBin","comment":"Early version. Requires improvement.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1675":{"resizeWidth":true,"resizeHeight":true,"adjustForNewBounds":true},"1676":{"x":1041.0799200799202,"y":437.9980019980019,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1677":{"addTargetScript":{"__isSmartRef__":true,"id":1678},"addTestObject":{"__isSmartRef__":true,"id":1681},"allMorphNames":{"__isSmartRef__":true,"id":1684},"allScriptListItems":{"__isSmartRef__":true,"id":1687},"bindMorphNames":{"__isSmartRef__":true,"id":1690},"doSearch":{"__isSmartRef__":true,"id":1693},"findSubobjects":{"__isSmartRef__":true,"id":1696},"generateSourceForConnection":{"__isSmartRef__":true,"id":1699},"generateSourceForObject":{"__isSmartRef__":true,"id":1702},"generateSourceForProperty":{"__isSmartRef__":true,"id":1705},"generateSourceForScript":{"__isSmartRef__":true,"id":1708},"generateSourceForValue":{"__isSmartRef__":true,"id":1711},"generateTargetCode":{"__isSmartRef__":true,"id":1714},"highlightSelectedObject":{"__isSmartRef__":true,"id":1717},"listItemsForObj":{"__isSmartRef__":true,"id":1720},"removeTargetScript":{"__isSmartRef__":true,"id":1723},"reset":{"__isSmartRef__":true,"id":1726},"setSourceInPane":{"__isSmartRef__":true,"id":1729},"setTarget":{"__isSmartRef__":true,"id":1732},"setupConnections":{"__isSmartRef__":true,"id":1735},"showTopLevelItems":{"__isSmartRef__":true,"id":1738},"sortedScriptNamesOfObj":{"__isSmartRef__":true,"id":1741},"updateScriptList":{"__isSmartRef__":true,"id":1744},"updateSourcePane":{"__isSmartRef__":true,"id":1747}},"1678":{"varMapping":{"__isSmartRef__":true,"id":1679},"source":"function addTargetScript(name) {\n\tvar target = this.target;\n\tif (!target) return;\n\n\ttarget.addScript(\"function \" + name + \"() {\\n\\n}\"); \n\n\tthis.updateScriptList();\n}","funcProperties":{"__isSmartRef__":true,"id":1680},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1679":{"this":{"__isSmartRef__":true,"id":971}},"1680":{},"1681":{"varMapping":{"__isSmartRef__":true,"id":1682},"source":"function addTestObject() {\n\tthis.testObject = {\n\t\tname: 'ScriptEditorTest',\n\t\taddScript: function addScript(funcOrString, optName) {\n\t\t\tvar func = Function.fromString(funcOrString);\n\t\t\treturn func.asScriptOf(this, optName);\n\t\t}.asScript()\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":1683},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1682":{"this":{"__isSmartRef__":true,"id":971}},"1683":{},"1684":{"varMapping":{"__isSmartRef__":true,"id":1685},"source":"function allMorphNames() {\n\tvar names = [];\n\tthis.world().withAllSubmorphsDo(function() { if (this.name) names.push(this.name) })\n\treturn names;\n}","funcProperties":{"__isSmartRef__":true,"id":1686},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1685":{"this":{"__isSmartRef__":true,"id":971}},"1686":{},"1687":{"varMapping":{"__isSmartRef__":true,"id":1688},"source":"function allScriptListItems() {\n\tvar obj = this.target;\n\tif (!obj) return [];\n\n\tvar listItems = this.findSubobjects(obj).collect(function(ea) {\n\t\treturn this.listItemsForObj(ea);\n\t}, this).flatten()\n\n\treturn listItems;\n}","funcProperties":{"__isSmartRef__":true,"id":1689},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1688":{"this":{"__isSmartRef__":true,"id":971}},"1689":{},"1690":{"varMapping":{"__isSmartRef__":true,"id":1691},"source":"function bindMorphNames(submorphNames) {\n\tsubmorphNames.forEach(function(ea) {\n\t\tthis[ea]= this.getMorphNamed(ea)\n\t}, this)\n}","funcProperties":{"__isSmartRef__":true,"id":1692},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1691":{"this":{"__isSmartRef__":true,"id":971}},"1692":{},"1693":{"varMapping":{"__isSmartRef__":true,"id":1694},"source":"function doSearch(string) {\n\talert('searching ' + string);\n\tvar allItems = this.allScriptListItems();\n\tallItems.select(function(item) {})\n}","funcProperties":{"__isSmartRef__":true,"id":1695},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1694":{"this":{"__isSmartRef__":true,"id":971}},"1695":{},"1696":{"varMapping":{"__isSmartRef__":true,"id":1697},"source":"function findSubobjects(obj) {\n\tvar objs = [];\n\tobj.withAllSubmorphsDo(function(){ objs.push(this) });\n\n\tif (obj.testObject && obj.testObject.name)\n\t\tobjs.push(obj.testObject)\n\treturn objs\n}","funcProperties":{"__isSmartRef__":true,"id":1698},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1697":{"this":{"__isSmartRef__":true,"id":971}},"1698":{},"1699":{"varMapping":{"__isSmartRef__":true,"id":1700},"source":"function generateSourceForConnection(baseObject, targetObject, connection) {\n\tvar c = connection;\n\tif (!c.getTargetObj() || !c.getTargetObj().name || \n\t\t!c.getSourceObj() || !c.getSourceObj().name) return String(c);\n\n\tvar optConfig = []\n\tif (c.converterString)\n\t\toptConfig.push(\"converter: \\n\\t\" + c.converterString)\n\tif (c.updaterString)\n\t\toptConfig.push(\"updater: \\n\\t\" + c.updaterString)\n\treturn Strings.format('connect(%s, \"%s\", %s, \"%s\", {%s});', \n\t\t\tthis.generateTargetCode(baseObject, c.getSourceObj()),\n\t\t\tc.getSourceAttrName(),\n\t\t\tthis.generateTargetCode(baseObject, c.getTargetObj()),\n\t\t\tc.getTargetMethodName(),\n\t\t\toptConfig.join(','));\n\n}","funcProperties":{"__isSmartRef__":true,"id":1701},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1700":{"this":{"__isSmartRef__":true,"id":971}},"1701":{},"1702":{"varMapping":{"__isSmartRef__":true,"id":1703},"source":"function generateSourceForObject(baseObject, targetObj) {\n\tvar source = \"// \" + targetObj.name + \" (\" + \n\t\tthis.generateTargetCode(baseObject, targetObj) + \")\\n\\n\"\n\n\n\tvar scriptNames = this.sortedScriptNamesOfObj(targetObj)\n\tif (scriptNames.length > 0) {\n\t\tsource += \"// ** \" + targetObj.name\t+ \"'s Scripts **\\n\"\n\t\tsource += scriptNames.collect(function(ea) {\n\t\t\treturn this.generateSourceForScript(baseObject, targetObj, ea)\n\t\t}, this).join('\\n\\n');\n\t}\n\n\tif (targetObj.attributeConnections) {\n\t\tsource += \"\\n\\n// ** \" + targetObj.name\t+ \"'s Connections **\\n\"\n\t\tsource += targetObj.attributeConnections.collect(function(ea) {\n\t\t\treturn this.generateSourceForConnection(baseObject, targetObj, ea)\n\t\t}, this).join('\\n');\n\t}\n\n\tif (targetObj.scriptSource && Object.isString(targetObj.scriptSource)) {\n\t\tsource += \"\\n\\n\";\n\t\tsource += this.generateSourceForProperty(\n\t\t\tbaseObject, targetObj, \"scriptSource\");\n\t}\n\n\treturn source\n}","funcProperties":{"__isSmartRef__":true,"id":1704},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1703":{"this":{"__isSmartRef__":true,"id":971}},"1704":{},"1705":{"varMapping":{"__isSmartRef__":true,"id":1706},"source":"function generateSourceForProperty(baseObject, targetObject, propertyName) {\n\tvar value = targetObject[propertyName];\n\treturn Strings.format('%s.'+ propertyName +'=%s;', \n\t\tthis.generateTargetCode(baseObject, targetObject),\t\n\t\tthis.generateSourceForValue(value))\n}","funcProperties":{"__isSmartRef__":true,"id":1707},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1706":{"this":{"__isSmartRef__":true,"id":971}},"1707":{},"1708":{"varMapping":{"__isSmartRef__":true,"id":1709},"source":"function generateSourceForScript(baseObject, targetObject, scriptName) {\n\tvar script =targetObject[scriptName].getOriginal();\n\treturn Strings.format('%s.addScript(%s);', \n\t\tthis.generateTargetCode(baseObject, targetObject) ,script)\n}","funcProperties":{"__isSmartRef__":true,"id":1710},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1709":{"this":{"__isSmartRef__":true,"id":971}},"1710":{},"1711":{"varMapping":{"__isSmartRef__":true,"id":1712},"source":"function generateSourceForValue(value) {\n\tif (Object.isString(value)) \n\t\treturn '\"' + value + '\"'\n\telse \n\t\treturn value\n}","funcProperties":{"__isSmartRef__":true,"id":1713},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1712":{"this":{"__isSmartRef__":true,"id":971}},"1713":{},"1714":{"varMapping":{"__isSmartRef__":true,"id":1715},"source":"function generateTargetCode(baseObject, targetObject) {\n\tvar name = targetObject.name;\n\tif (baseObject === targetObject) \n\t\treturn \"this\"\n\telse if (baseObject[name] === targetObject) \n\t\treturn \"this.\" + name\n\telse if (baseObject.testObject === targetObject) \n\t\treturn \"this.testObject\"\n\telse if (baseObject.get(name) === targetObject) \n\t\treturn 'this.get(\"' + name + '\")'\n\telse if (targetObject instanceof Morph) \n\t\treturn'$morph(\"' + name + '\")'\n\telse \n\t\treturn \"????\"\n}","funcProperties":{"__isSmartRef__":true,"id":1716},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1715":{"this":{"__isSmartRef__":true,"id":971}},"1716":{},"1717":{"varMapping":{"__isSmartRef__":true,"id":1718},"source":"function highlightSelectedObject(selection) {\n\tif (selection && selection.targetObj) showMorph(selection.targetObj)\n}","funcProperties":{"__isSmartRef__":true,"id":1719},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1718":{"this":{"__isSmartRef__":true,"id":971}},"1719":{},"1720":{"varMapping":{"__isSmartRef__":true,"id":1721},"source":"function listItemsForObj(obj, optPrefix) {\n\n\tvar listItems = [];\n\tvar prefix = optPrefix || \"\";\t\n\n\n\tif (obj.name) listItems.push({\n\t\tisListItem: true,\n\t\tstring: \"Object: \" + obj.name || \"unnamed\",\n\t\tvalue: {obj: obj, targetObj: obj}\t\n\t});\n\n\tif (obj.scriptSource && Object.isString(obj.scriptSource)) {\n\t\tlistItems.push({\n\t\t\tisListItem: true,\n\t\t\tstring: \" scriptSource\",\n\t\t\tvalue: {obj: obj, propertyName: 'scriptSource'}\t\n\t\t});\n\t}\n\n\tlistItems = listItems.concat(this.sortedScriptNamesOfObj(obj)\n\t\t.collect(function(name) { \n\t\t\treturn {isListItem: true, string: \" \" + name, value: {obj: obj, scriptName: name}}}))\n\n\t// BUG don't bind connections here...\n\tif (obj.attributeConnections)\n\t\t\tlistItems = listItems.concat(obj.attributeConnections.collect(function(ea) {\n\t\t\t\treturn {\n\t\t\t\t\tisListItem: true, \n\t\t\t\t\tstring: \" [\" + ea.getSourceAttrName() + \" -> \" + \n\t\t\t\t\t\tea.getTargetObj() + \".\" + ea.getTargetMethodName() + \"]\", \n\t\t\t\t\tvalue: {obj: obj, connection: ea }}\n\t\t\t}));\n\n\treturn listItems\n}","funcProperties":{"__isSmartRef__":true,"id":1722},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1721":{"this":{"__isSmartRef__":true,"id":971}},"1722":{},"1723":{"varMapping":{"__isSmartRef__":true,"id":1724},"source":"function removeTargetScript() {\n\tvar target = this.scriptList.selection.obj;\n\tif (!target) return;\n\n\n\tvar scriptName = this.scriptList.selection.scriptName; \n\tif (scriptName) {\n\t\tdelete target[scriptName];\n\t}\n\n\tvar connection = this.scriptList.selection.connection; \n\tif (connection)\n\t\tconnection.disconnect()\n\n\tthis.updateScriptList();\n}","funcProperties":{"__isSmartRef__":true,"id":1725},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1724":{"this":{"__isSmartRef__":true,"id":971}},"1725":{},"1726":{"varMapping":{"__isSmartRef__":true,"id":1727},"source":"function reset() {\n\t// this.reset()\n\tthis.bindMorphNames(\"targetName searchText scriptList scriptSource targetFound removeButton addButton closeButton\".split(\" \"))\n\tthis.target = null;\n\t// this.targetName.setTextString(\"nobody\");\n\t// this.scriptList.updateList([]);\n\tthis.scriptSource.setTextString(\"\");\n\t// this.searchText.setTextString(\"search for something\");\n}","funcProperties":{"__isSmartRef__":true,"id":1728},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1727":{"this":{"__isSmartRef__":true,"id":971}},"1728":{},"1729":{"varMapping":{"__isSmartRef__":true,"id":1730},"source":"function setSourceInPane(source, pane) {\n\tpane.setTextString(source);\n\tpane.owner.owner.scrollToTop();\n}","funcProperties":{"__isSmartRef__":true,"id":1731},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1730":{"this":{"__isSmartRef__":true,"id":971}},"1731":{},"1732":{"varMapping":{"__isSmartRef__":true,"id":1733},"source":"function setTarget(obj) {\n\t// if (obj) alertOK(\"set target \" + obj.name)\n\tthis.target = obj\n\t// this.updateScriptList()\n\tif (!this.target) \n\t\tsource = 'no source';\n\telse \n\t\tsource = this.generateSourceForObject(this.target, this.target);\n\tthis.get('scriptSource').setTextString(source)\n\tthis.get('scriptSource').doitContext = this.target\n\n\tmodule('lively.ide.SyntaxHighlighting').load(true)\n\tthis.get('scriptSource').highlightJavaScriptSyntax()\n}","funcProperties":{"__isSmartRef__":true,"id":1734},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1733":{"this":{"__isSmartRef__":true,"id":971}},"1734":{},"1735":{"varMapping":{"__isSmartRef__":true,"id":1736},"source":"function setupConnections() {\n\t// this.setupConnections();\n\tconnect(this.targetName, 'textString', \n\t\tthis, 'target', \n\t\t{converter: function(n) { return $morph(n) }})\n\n\tconnect(this, 'target', \n\t\tthis.targetFound, 'setFill', \n\t\t{converter: function(obj) { return obj ? Color.green : Color.red}})\n\n\tconnect(this, 'target', this, 'setTarget')\n\n\tconnect(this.searchText, 'savedTextString', this, 'doSearch')\n}","funcProperties":{"__isSmartRef__":true,"id":1737},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1736":{"this":{"__isSmartRef__":true,"id":971}},"1737":{},"1738":{"varMapping":{"__isSmartRef__":true,"id":1739},"source":"function showTopLevelItems() {\n\tvar topLevelMorphs = this.world().submorphs.reject(function(morph){\n\t\treturn !morph.name;\n\t})\n\tvar morphNames = topLevelMorphs.pluck('name'),\n\t\titems = morphNames.collect(function(name) {\n\t\t\treturn [name, function() { $morph('targetName').setTextString(name) }]\n\t\t});\n\tMenuMorph.openAtHand(items, 'Select morph to edit')\n}","funcProperties":{"__isSmartRef__":true,"id":1740},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1739":{"this":{"__isSmartRef__":true,"id":971}},"1740":{},"1741":{"varMapping":{"__isSmartRef__":true,"id":1742},"source":"function sortedScriptNamesOfObj(obj) {\n\treturn Functions.own(obj)\n\t\t.select(function(name) { return obj[name].hasLivelyClosure })\n\t\t.sortBy(function(name) { return name.toLowerCase() });\n}","funcProperties":{"__isSmartRef__":true,"id":1743},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1742":{"this":{"__isSmartRef__":true,"id":971}},"1743":{},"1744":{"varMapping":{"__isSmartRef__":true,"id":1745},"source":"function updateScriptList() {\n\tthis.scriptList.updateList(this.allScriptListItems());\n\t// this.scriptList.selectLineAt(this.scriptList.selectedLineNo);\n\t// this.scriptSource.owner.owner.scrollToTop(); // demeter :-D\n}","funcProperties":{"__isSmartRef__":true,"id":1746},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1745":{"this":{"__isSmartRef__":true,"id":971}},"1746":{},"1747":{"varMapping":{"__isSmartRef__":true,"id":1748},"source":"function updateSourcePane(selection) { \n\tvar textMorph = this.scriptSource;\n\n\tif (!selection || !selection.obj) {\n\t\ttextMorph.setTextString(\"\");\n\t\treturn;\n\t}\n\n\tif (selection.targetObj) {\n\t\tthis.setSourceInPane(this.generateSourceForObject(\n\t\t\ttextMorph.getDoitContext(), selection.targetObj), textMorph);\n\t\treturn;\n\t}\n\n\tif (selection.connection) {\n\t\tthis.setSourceInPane(this.generateSourceForConnection(\n\t\t\ttextMorph.getDoitContext(),selection.obj,selection.connection), textMorph);\n\t\treturn;\n\t}\n\n\tif (selection.propertyName) {\n\t\tthis.setSourceInPane(this.generateSourceForProperty(\n\t\t\ttextMorph.getDoitContext(), selection.obj, selection.propertyName), textMorph);\n\t\treturn;\n\t}\n\n\tthis.setSourceInPane(\n\t\tthis.generateSourceForScript(textMorph.getDoitContext(),selection.obj, selection.scriptName), \n\t\ttextMorph)\n}","funcProperties":{"__isSmartRef__":true,"id":1749},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1748":{"this":{"__isSmartRef__":true,"id":971}},"1749":{},"1750":{"style":{"__isSmartRef__":true,"id":1751},"morph":{"__isSmartRef__":true,"id":963},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1751":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1752":{"x":1028.0469530469531,"y":422.98201798201796,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1753":{"sourceObj":{"__isSmartRef__":true,"id":963},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":963},"targetMethodName":"highlightJavaScriptSyntax","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1754":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"1755":{"doSave":{"__isSmartRef__":true,"id":1756}},"1756":{"varMapping":{"__isSmartRef__":true,"id":1757},"source":"function doSave() {\n\t$super()\n\talertOK(\"eval all for \" + this.getDoitContext())\n\tthis.boundEval(this.textString)\n}","funcProperties":{"__isSmartRef__":true,"id":1762},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1757":{"this":{"__isSmartRef__":true,"id":963},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1758}},"1758":{"$super":{"__isSmartRef__":true,"id":1759}},"1759":{"varMapping":{"__isSmartRef__":true,"id":1760},"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":1761},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1760":{"obj":{"__isSmartRef__":true,"id":963},"name":"doSave"},"1761":{},"1762":{},"1763":{"position":{"__isSmartRef__":true,"id":1764},"_Extent":{"__isSmartRef__":true,"id":1765},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":1766},"_Fill":{"__isSmartRef__":true,"id":1767},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1764":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1765":{"x":1041.0799200799202,"y":437.9980019980019,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1766":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1767":{"r":0.921,"g":0.921,"b":0.921,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1768":{"x":-0.9990009990010549,"y":20.001998001998004,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1769":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1770":{"resizeWidth":true,"resizeHeight":true,"adjustForNewBounds":true},"1771":{"x":1041.0799200799202,"y":437.9980019980019,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1772":{"addTargetScript":{"__isSmartRef__":true,"id":1773},"addTestObject":{"__isSmartRef__":true,"id":1776},"allMorphNames":{"__isSmartRef__":true,"id":1779},"allScriptListItems":{"__isSmartRef__":true,"id":1782},"bindMorphNames":{"__isSmartRef__":true,"id":1785},"doSearch":{"__isSmartRef__":true,"id":1788},"findSubobjects":{"__isSmartRef__":true,"id":1791},"generateSourceForConnection":{"__isSmartRef__":true,"id":1794},"generateSourceForObject":{"__isSmartRef__":true,"id":1797},"generateSourceForProperty":{"__isSmartRef__":true,"id":1800},"generateSourceForScript":{"__isSmartRef__":true,"id":1803},"generateSourceForValue":{"__isSmartRef__":true,"id":1806},"generateTargetCode":{"__isSmartRef__":true,"id":1809},"highlightSelectedObject":{"__isSmartRef__":true,"id":1812},"listItemsForObj":{"__isSmartRef__":true,"id":1815},"removeTargetScript":{"__isSmartRef__":true,"id":1818},"reset":{"__isSmartRef__":true,"id":1821},"setSourceInPane":{"__isSmartRef__":true,"id":1824},"setTarget":{"__isSmartRef__":true,"id":1827},"setupConnections":{"__isSmartRef__":true,"id":1830},"showTopLevelItems":{"__isSmartRef__":true,"id":1833},"sortedScriptNamesOfObj":{"__isSmartRef__":true,"id":1836},"updateScriptList":{"__isSmartRef__":true,"id":1839},"updateSourcePane":{"__isSmartRef__":true,"id":1842}},"1773":{"varMapping":{"__isSmartRef__":true,"id":1774},"source":"function addTargetScript(name) {\n\tvar target = this.target;\n\tif (!target) return;\n\n\ttarget.addScript(\"function \" + name + \"() {\\n\\n}\"); \n\n\tthis.updateScriptList();\n}","funcProperties":{"__isSmartRef__":true,"id":1775},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1774":{"this":{"__isSmartRef__":true,"id":962}},"1775":{},"1776":{"varMapping":{"__isSmartRef__":true,"id":1777},"source":"function addTestObject() {\n\tthis.testObject = {\n\t\tname: 'ScriptEditorTest',\n\t\taddScript: function addScript(funcOrString, optName) {\n\t\t\tvar func = Function.fromString(funcOrString);\n\t\t\treturn func.asScriptOf(this, optName);\n\t\t}.asScript()\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":1778},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1777":{"this":{"__isSmartRef__":true,"id":962}},"1778":{},"1779":{"varMapping":{"__isSmartRef__":true,"id":1780},"source":"function allMorphNames() {\n\tvar names = [];\n\tthis.world().withAllSubmorphsDo(function() { if (this.name) names.push(this.name) })\n\treturn names;\n}","funcProperties":{"__isSmartRef__":true,"id":1781},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1780":{"this":{"__isSmartRef__":true,"id":962}},"1781":{},"1782":{"varMapping":{"__isSmartRef__":true,"id":1783},"source":"function allScriptListItems() {\n\tvar obj = this.target;\n\tif (!obj) return [];\n\n\tvar listItems = this.findSubobjects(obj).collect(function(ea) {\n\t\treturn this.listItemsForObj(ea);\n\t}, this).flatten()\n\n\treturn listItems;\n}","funcProperties":{"__isSmartRef__":true,"id":1784},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1783":{"this":{"__isSmartRef__":true,"id":962}},"1784":{},"1785":{"varMapping":{"__isSmartRef__":true,"id":1786},"source":"function bindMorphNames(submorphNames) {\n\tsubmorphNames.forEach(function(ea) {\n\t\tthis[ea]= this.getMorphNamed(ea)\n\t}, this)\n}","funcProperties":{"__isSmartRef__":true,"id":1787},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1786":{"this":{"__isSmartRef__":true,"id":962}},"1787":{},"1788":{"varMapping":{"__isSmartRef__":true,"id":1789},"source":"function doSearch(string) {\n\talert('searching ' + string);\n\tvar allItems = this.allScriptListItems();\n\tallItems.select(function(item) {})\n}","funcProperties":{"__isSmartRef__":true,"id":1790},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1789":{"this":{"__isSmartRef__":true,"id":962}},"1790":{},"1791":{"varMapping":{"__isSmartRef__":true,"id":1792},"source":"function findSubobjects(obj) {\n\tvar objs = [];\n\tobj.withAllSubmorphsDo(function(){ objs.push(this) });\n\n\tif (obj.testObject && obj.testObject.name)\n\t\tobjs.push(obj.testObject)\n\treturn objs\n}","funcProperties":{"__isSmartRef__":true,"id":1793},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1792":{"this":{"__isSmartRef__":true,"id":962}},"1793":{},"1794":{"varMapping":{"__isSmartRef__":true,"id":1795},"source":"function generateSourceForConnection(baseObject, targetObject, connection) {\n\tvar c = connection;\n\tif (!c.getTargetObj() || !c.getTargetObj().name || \n\t\t!c.getSourceObj() || !c.getSourceObj().name) return String(c);\n\n\tvar optConfig = []\n\tif (c.converterString)\n\t\toptConfig.push(\"converter: \\n\\t\" + c.converterString)\n\tif (c.updaterString)\n\t\toptConfig.push(\"updater: \\n\\t\" + c.updaterString)\n\treturn Strings.format('connect(%s, \"%s\", %s, \"%s\", {%s});', \n\t\t\tthis.generateTargetCode(baseObject, c.getSourceObj()),\n\t\t\tc.getSourceAttrName(),\n\t\t\tthis.generateTargetCode(baseObject, c.getTargetObj()),\n\t\t\tc.getTargetMethodName(),\n\t\t\toptConfig.join(','));\n\n}","funcProperties":{"__isSmartRef__":true,"id":1796},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1795":{"this":{"__isSmartRef__":true,"id":962}},"1796":{},"1797":{"varMapping":{"__isSmartRef__":true,"id":1798},"source":"function generateSourceForObject(baseObject, targetObj) {\n\tvar source = \"// \" + targetObj.name + \" (\" + \n\t\tthis.generateTargetCode(baseObject, targetObj) + \")\\n\\n\"\n\n\n\tvar scriptNames = this.sortedScriptNamesOfObj(targetObj)\n\tif (scriptNames.length > 0) {\n\t\tsource += \"// ** \" + targetObj.name\t+ \"'s Scripts **\\n\"\n\t\tsource += scriptNames.collect(function(ea) {\n\t\t\treturn this.generateSourceForScript(baseObject, targetObj, ea)\n\t\t}, this).join('\\n\\n');\n\t}\n\n\tif (targetObj.attributeConnections) {\n\t\tsource += \"\\n\\n// ** \" + targetObj.name\t+ \"'s Connections **\\n\"\n\t\tsource += targetObj.attributeConnections.collect(function(ea) {\n\t\t\treturn this.generateSourceForConnection(baseObject, targetObj, ea)\n\t\t}, this).join('\\n');\n\t}\n\n\tif (targetObj.scriptSource && Object.isString(targetObj.scriptSource)) {\n\t\tsource += \"\\n\\n\";\n\t\tsource += this.generateSourceForProperty(\n\t\t\tbaseObject, targetObj, \"scriptSource\");\n\t}\n\n\treturn source\n}","funcProperties":{"__isSmartRef__":true,"id":1799},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1798":{"this":{"__isSmartRef__":true,"id":962}},"1799":{},"1800":{"varMapping":{"__isSmartRef__":true,"id":1801},"source":"function generateSourceForProperty(baseObject, targetObject, propertyName) {\n\tvar value = targetObject[propertyName];\n\treturn Strings.format('%s.'+ propertyName +'=%s;', \n\t\tthis.generateTargetCode(baseObject, targetObject),\t\n\t\tthis.generateSourceForValue(value))\n}","funcProperties":{"__isSmartRef__":true,"id":1802},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1801":{"this":{"__isSmartRef__":true,"id":962}},"1802":{},"1803":{"varMapping":{"__isSmartRef__":true,"id":1804},"source":"function generateSourceForScript(baseObject, targetObject, scriptName) {\n\tvar script =targetObject[scriptName].getOriginal();\n\treturn Strings.format('%s.addScript(%s);', \n\t\tthis.generateTargetCode(baseObject, targetObject) ,script)\n}","funcProperties":{"__isSmartRef__":true,"id":1805},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1804":{"this":{"__isSmartRef__":true,"id":962}},"1805":{},"1806":{"varMapping":{"__isSmartRef__":true,"id":1807},"source":"function generateSourceForValue(value) {\n\tif (Object.isString(value)) \n\t\treturn '\"' + value + '\"'\n\telse \n\t\treturn value\n}","funcProperties":{"__isSmartRef__":true,"id":1808},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1807":{"this":{"__isSmartRef__":true,"id":962}},"1808":{},"1809":{"varMapping":{"__isSmartRef__":true,"id":1810},"source":"function generateTargetCode(baseObject, targetObject) {\n\tvar name = targetObject.name;\n\tif (baseObject === targetObject) \n\t\treturn \"this\"\n\telse if (baseObject[name] === targetObject) \n\t\treturn \"this.\" + name\n\telse if (baseObject.testObject === targetObject) \n\t\treturn \"this.testObject\"\n\telse if (baseObject.get(name) === targetObject) \n\t\treturn 'this.get(\"' + name + '\")'\n\telse if (targetObject instanceof Morph) \n\t\treturn'$morph(\"' + name + '\")'\n\telse \n\t\treturn \"????\"\n}","funcProperties":{"__isSmartRef__":true,"id":1811},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1810":{"this":{"__isSmartRef__":true,"id":962}},"1811":{},"1812":{"varMapping":{"__isSmartRef__":true,"id":1813},"source":"function highlightSelectedObject(selection) {\n\tif (selection && selection.targetObj) showMorph(selection.targetObj)\n}","funcProperties":{"__isSmartRef__":true,"id":1814},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1813":{"this":{"__isSmartRef__":true,"id":962}},"1814":{},"1815":{"varMapping":{"__isSmartRef__":true,"id":1816},"source":"function listItemsForObj(obj, optPrefix) {\n\n\tvar listItems = [];\n\tvar prefix = optPrefix || \"\";\t\n\n\n\tif (obj.name) listItems.push({\n\t\tisListItem: true,\n\t\tstring: \"Object: \" + obj.name || \"unnamed\",\n\t\tvalue: {obj: obj, targetObj: obj}\t\n\t});\n\n\tif (obj.scriptSource && Object.isString(obj.scriptSource)) {\n\t\tlistItems.push({\n\t\t\tisListItem: true,\n\t\t\tstring: \" scriptSource\",\n\t\t\tvalue: {obj: obj, propertyName: 'scriptSource'}\t\n\t\t});\n\t}\n\n\tlistItems = listItems.concat(this.sortedScriptNamesOfObj(obj)\n\t\t.collect(function(name) { \n\t\t\treturn {isListItem: true, string: \" \" + name, value: {obj: obj, scriptName: name}}}))\n\n\t// BUG don't bind connections here...\n\tif (obj.attributeConnections)\n\t\t\tlistItems = listItems.concat(obj.attributeConnections.collect(function(ea) {\n\t\t\t\treturn {\n\t\t\t\t\tisListItem: true, \n\t\t\t\t\tstring: \" [\" + ea.getSourceAttrName() + \" -> \" + \n\t\t\t\t\t\tea.getTargetObj() + \".\" + ea.getTargetMethodName() + \"]\", \n\t\t\t\t\tvalue: {obj: obj, connection: ea }}\n\t\t\t}));\n\n\treturn listItems\n}","funcProperties":{"__isSmartRef__":true,"id":1817},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1816":{"this":{"__isSmartRef__":true,"id":962}},"1817":{},"1818":{"varMapping":{"__isSmartRef__":true,"id":1819},"source":"function removeTargetScript() {\n\tvar target = this.scriptList.selection.obj;\n\tif (!target) return;\n\n\n\tvar scriptName = this.scriptList.selection.scriptName; \n\tif (scriptName) {\n\t\tdelete target[scriptName];\n\t}\n\n\tvar connection = this.scriptList.selection.connection; \n\tif (connection)\n\t\tconnection.disconnect()\n\n\tthis.updateScriptList();\n}","funcProperties":{"__isSmartRef__":true,"id":1820},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1819":{"this":{"__isSmartRef__":true,"id":962}},"1820":{},"1821":{"varMapping":{"__isSmartRef__":true,"id":1822},"source":"function reset() {\n\t// this.reset()\n\tthis.bindMorphNames(\"targetName searchText scriptList scriptSource targetFound removeButton addButton closeButton\".split(\" \"))\n\tthis.target = null;\n\t// this.targetName.setTextString(\"nobody\");\n\t// this.scriptList.updateList([]);\n\tthis.scriptSource.setTextString(\"\");\n\t// this.searchText.setTextString(\"search for something\");\n}","funcProperties":{"__isSmartRef__":true,"id":1823},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1822":{"this":{"__isSmartRef__":true,"id":962}},"1823":{},"1824":{"varMapping":{"__isSmartRef__":true,"id":1825},"source":"function setSourceInPane(source, pane) {\n\tpane.setTextString(source);\n\tpane.owner.owner.scrollToTop();\n}","funcProperties":{"__isSmartRef__":true,"id":1826},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1825":{"this":{"__isSmartRef__":true,"id":962}},"1826":{},"1827":{"varMapping":{"__isSmartRef__":true,"id":1828},"source":"function setTarget(obj) {\n\t// if (obj) alertOK(\"set target \" + obj.name)\n\tthis.target = obj\n\t// this.updateScriptList()\n\tif (!this.target) \n\t\tsource = 'no source';\n\telse \n\t\tsource = this.generateSourceForObject(this.target, this.target);\n\tthis.get('scriptSource').setTextString(source)\n\tthis.get('scriptSource').doitContext = this.target\n\n\tmodule('lively.ide.SyntaxHighlighting').load(true)\n\tthis.get('scriptSource').highlightJavaScriptSyntax()\n}","funcProperties":{"__isSmartRef__":true,"id":1829},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1828":{"this":{"__isSmartRef__":true,"id":962}},"1829":{},"1830":{"varMapping":{"__isSmartRef__":true,"id":1831},"source":"function setupConnections() {\n\t// this.setupConnections();\n\tconnect(this.targetName, 'textString', \n\t\tthis, 'target', \n\t\t{converter: function(n) { return $morph(n) }})\n\n\tconnect(this, 'target', \n\t\tthis.targetFound, 'setFill', \n\t\t{converter: function(obj) { return obj ? Color.green : Color.red}})\n\n\tconnect(this, 'target', this, 'setTarget')\n\n\tconnect(this.searchText, 'savedTextString', this, 'doSearch')\n}","funcProperties":{"__isSmartRef__":true,"id":1832},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1831":{"this":{"__isSmartRef__":true,"id":962}},"1832":{},"1833":{"varMapping":{"__isSmartRef__":true,"id":1834},"source":"function showTopLevelItems() {\n\tvar topLevelMorphs = this.world().submorphs.reject(function(morph){\n\t\treturn !morph.name;\n\t})\n\tvar morphNames = topLevelMorphs.pluck('name'),\n\t\titems = morphNames.collect(function(name) {\n\t\t\treturn [name, function() { $morph('targetName').setTextString(name) }]\n\t\t});\n\tMenuMorph.openAtHand(items, 'Select morph to edit')\n}","funcProperties":{"__isSmartRef__":true,"id":1835},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1834":{"this":{"__isSmartRef__":true,"id":962}},"1835":{},"1836":{"varMapping":{"__isSmartRef__":true,"id":1837},"source":"function sortedScriptNamesOfObj(obj) {\n\treturn Functions.own(obj)\n\t\t.select(function(name) { return obj[name].hasLivelyClosure })\n\t\t.sortBy(function(name) { return name.toLowerCase() });\n}","funcProperties":{"__isSmartRef__":true,"id":1838},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1837":{"this":{"__isSmartRef__":true,"id":962}},"1838":{},"1839":{"varMapping":{"__isSmartRef__":true,"id":1840},"source":"function updateScriptList() {\n\tthis.scriptList.updateList(this.allScriptListItems());\n\t// this.scriptList.selectLineAt(this.scriptList.selectedLineNo);\n\t// this.scriptSource.owner.owner.scrollToTop(); // demeter :-D\n}","funcProperties":{"__isSmartRef__":true,"id":1841},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1840":{"this":{"__isSmartRef__":true,"id":962}},"1841":{},"1842":{"varMapping":{"__isSmartRef__":true,"id":1843},"source":"function updateSourcePane(selection) { \n\tvar textMorph = this.scriptSource;\n\n\tif (!selection || !selection.obj) {\n\t\ttextMorph.setTextString(\"\");\n\t\treturn;\n\t}\n\n\tif (selection.targetObj) {\n\t\tthis.setSourceInPane(this.generateSourceForObject(\n\t\t\ttextMorph.getDoitContext(), selection.targetObj), textMorph);\n\t\treturn;\n\t}\n\n\tif (selection.connection) {\n\t\tthis.setSourceInPane(this.generateSourceForConnection(\n\t\t\ttextMorph.getDoitContext(),selection.obj,selection.connection), textMorph);\n\t\treturn;\n\t}\n\n\tif (selection.propertyName) {\n\t\tthis.setSourceInPane(this.generateSourceForProperty(\n\t\t\ttextMorph.getDoitContext(), selection.obj, selection.propertyName), textMorph);\n\t\treturn;\n\t}\n\n\tthis.setSourceInPane(\n\t\tthis.generateSourceForScript(textMorph.getDoitContext(),selection.obj, selection.scriptName), \n\t\ttextMorph)\n}","funcProperties":{"__isSmartRef__":true,"id":1844},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1843":{"this":{"__isSmartRef__":true,"id":962}},"1844":{},"1845":{"submorphs":[{"__isSmartRef__":true,"id":1846},{"__isSmartRef__":true,"id":1856},{"__isSmartRef__":true,"id":1894},{"__isSmartRef__":true,"id":1920}],"scripts":[],"id":856,"shape":{"__isSmartRef__":true,"id":1947},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":1958},"_Position":{"__isSmartRef__":true,"id":1959},"eventsAreIgnored":true,"windowMorph":{"__isSmartRef__":true,"id":961},"label":{"__isSmartRef__":true,"id":1846},"closeButton":{"__isSmartRef__":true,"id":1856},"menuButton":{"__isSmartRef__":true,"id":1894},"collapseButton":{"__isSmartRef__":true,"id":1920},"priorExtent":{"__isSmartRef__":true,"id":1960},"owner":{"__isSmartRef__":true,"id":961},"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.TitleBar"},"1846":{"submorphs":[],"scripts":[],"id":857,"shape":{"__isSmartRef__":true,"id":1847},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1850},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":1851},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":1852}],"isLabel":true,"eventsAreIgnored":true,"_FontSize":10,"owner":{"__isSmartRef__":true,"id":1845},"__SourceModuleName__":"Global.lively.morphic.TextCore","priorExtent":{"__isSmartRef__":true,"id":1854},"renderContextTable":{"__isSmartRef__":true,"id":1855},"__LivelyClassName__":"lively.morphic.Text"},"1847":{"_Position":{"__isSmartRef__":true,"id":1848},"_Extent":{"__isSmartRef__":true,"id":1849},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1766},"_Fill":null,"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1848":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1849":{"x":981.0809190809191,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1850":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1851":{"x":20,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1852":{"style":{"__isSmartRef__":true,"id":1853},"morph":{"__isSmartRef__":true,"id":1846},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1853":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1854":{"x":981.0809190809191,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1855":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"1856":{"submorphs":[{"__isSmartRef__":true,"id":1857}],"scripts":[],"id":858,"shape":{"__isSmartRef__":true,"id":1867},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1881},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1871},"lighterFill":{"__isSmartRef__":true,"id":1882},"label":{"__isSmartRef__":true,"id":1857},"owner":{"__isSmartRef__":true,"id":1845},"layout":{"__isSmartRef__":true,"id":1891},"attributeConnections":[{"__isSmartRef__":true,"id":1892},{"__isSmartRef__":true,"id":1893}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"1857":{"submorphs":[],"scripts":[],"id":859,"shape":{"__isSmartRef__":true,"id":1858},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1861},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":1862},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":1863}],"owner":{"__isSmartRef__":true,"id":1856},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","priorExtent":{"__isSmartRef__":true,"id":1865},"renderContextTable":{"__isSmartRef__":true,"id":1866},"__LivelyClassName__":"lively.morphic.Text"},"1858":{"_Position":{"__isSmartRef__":true,"id":1859},"_Extent":{"__isSmartRef__":true,"id":1860},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1766},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1859":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1860":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1861":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1862":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1863":{"style":{"__isSmartRef__":true,"id":1864},"morph":{"__isSmartRef__":true,"id":1857},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1864":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1865":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1866":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"1867":{"_Position":{"__isSmartRef__":true,"id":1868},"_Extent":{"__isSmartRef__":true,"id":1869},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1870},"_Fill":{"__isSmartRef__":true,"id":1871},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1868":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1869":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1870":{"r":0.8392156862745098,"g":0.8392156862745098,"b":0.8392156862745098,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1871":{"stops":[{"__isSmartRef__":true,"id":1872},{"__isSmartRef__":true,"id":1874},{"__isSmartRef__":true,"id":1876},{"__isSmartRef__":true,"id":1878}],"vector":{"__isSmartRef__":true,"id":1880},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1872":{"offset":0,"color":{"__isSmartRef__":true,"id":1873}},"1873":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1874":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1875}},"1875":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1876":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1877}},"1877":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1878":{"offset":1,"color":{"__isSmartRef__":true,"id":1879}},"1879":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1880":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1881":{"x":1020.0809190809191,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1882":{"stops":[{"__isSmartRef__":true,"id":1883},{"__isSmartRef__":true,"id":1885},{"__isSmartRef__":true,"id":1887},{"__isSmartRef__":true,"id":1889}],"vector":{"__isSmartRef__":true,"id":1880},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1883":{"offset":0,"color":{"__isSmartRef__":true,"id":1884}},"1884":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1885":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1886}},"1886":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1887":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1888}},"1888":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1889":{"offset":1,"color":{"__isSmartRef__":true,"id":1890}},"1890":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1891":{"moveHorizontal":true},"1892":{"sourceObj":{"__isSmartRef__":true,"id":1856},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":961},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1893":{"sourceObj":{"__isSmartRef__":true,"id":1856},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":961},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1894":{"submorphs":[{"__isSmartRef__":true,"id":1895}],"scripts":[],"id":860,"shape":{"__isSmartRef__":true,"id":1905},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1908},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1871},"lighterFill":{"__isSmartRef__":true,"id":1909},"label":{"__isSmartRef__":true,"id":1895},"owner":{"__isSmartRef__":true,"id":1845},"attributeConnections":[{"__isSmartRef__":true,"id":1918},{"__isSmartRef__":true,"id":1919}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"1895":{"submorphs":[],"scripts":[],"id":861,"shape":{"__isSmartRef__":true,"id":1896},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1899},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":1900},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":1901}],"owner":{"__isSmartRef__":true,"id":1894},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","priorExtent":{"__isSmartRef__":true,"id":1903},"renderContextTable":{"__isSmartRef__":true,"id":1904},"__LivelyClassName__":"lively.morphic.Text"},"1896":{"_Position":{"__isSmartRef__":true,"id":1897},"_Extent":{"__isSmartRef__":true,"id":1898},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1766},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1897":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1898":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1899":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1900":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1901":{"style":{"__isSmartRef__":true,"id":1902},"morph":{"__isSmartRef__":true,"id":1895},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1902":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1903":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1904":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"1905":{"_Position":{"__isSmartRef__":true,"id":1906},"_Extent":{"__isSmartRef__":true,"id":1907},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1870},"_Fill":{"__isSmartRef__":true,"id":1871},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1906":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1907":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1908":{"x":3,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1909":{"stops":[{"__isSmartRef__":true,"id":1910},{"__isSmartRef__":true,"id":1912},{"__isSmartRef__":true,"id":1914},{"__isSmartRef__":true,"id":1916}],"vector":{"__isSmartRef__":true,"id":1880},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1910":{"offset":0,"color":{"__isSmartRef__":true,"id":1911}},"1911":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1912":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1913}},"1913":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1914":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1915}},"1915":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1916":{"offset":1,"color":{"__isSmartRef__":true,"id":1917}},"1917":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1918":{"sourceObj":{"__isSmartRef__":true,"id":1894},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":961},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1919":{"sourceObj":{"__isSmartRef__":true,"id":1894},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":961},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1920":{"submorphs":[{"__isSmartRef__":true,"id":1921}],"scripts":[],"id":862,"shape":{"__isSmartRef__":true,"id":1931},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1934},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1871},"lighterFill":{"__isSmartRef__":true,"id":1935},"label":{"__isSmartRef__":true,"id":1921},"owner":{"__isSmartRef__":true,"id":1845},"layout":{"__isSmartRef__":true,"id":1944},"attributeConnections":[{"__isSmartRef__":true,"id":1945},{"__isSmartRef__":true,"id":1946}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"1921":{"submorphs":[],"scripts":[],"id":863,"shape":{"__isSmartRef__":true,"id":1922},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1925},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":1926},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":1927}],"owner":{"__isSmartRef__":true,"id":1920},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","priorExtent":{"__isSmartRef__":true,"id":1929},"renderContextTable":{"__isSmartRef__":true,"id":1930},"__LivelyClassName__":"lively.morphic.Text"},"1922":{"_Position":{"__isSmartRef__":true,"id":1923},"_Extent":{"__isSmartRef__":true,"id":1924},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1766},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1923":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1924":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1925":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1926":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1927":{"style":{"__isSmartRef__":true,"id":1928},"morph":{"__isSmartRef__":true,"id":1921},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1928":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1929":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1930":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"1931":{"_Position":{"__isSmartRef__":true,"id":1932},"_Extent":{"__isSmartRef__":true,"id":1933},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1870},"_Fill":{"__isSmartRef__":true,"id":1871},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1932":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1933":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1934":{"x":1001.0809190809191,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1935":{"stops":[{"__isSmartRef__":true,"id":1936},{"__isSmartRef__":true,"id":1938},{"__isSmartRef__":true,"id":1940},{"__isSmartRef__":true,"id":1942}],"vector":{"__isSmartRef__":true,"id":1880},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1936":{"offset":0,"color":{"__isSmartRef__":true,"id":1937}},"1937":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1938":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1939}},"1939":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1940":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1941}},"1941":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1942":{"offset":1,"color":{"__isSmartRef__":true,"id":1943}},"1943":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1944":{"moveHorizontal":true},"1945":{"sourceObj":{"__isSmartRef__":true,"id":1920},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":961},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1946":{"sourceObj":{"__isSmartRef__":true,"id":1920},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":961},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1947":{"_Position":{"__isSmartRef__":true,"id":1948},"_Extent":{"__isSmartRef__":true,"id":1949},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":967},"_Fill":{"__isSmartRef__":true,"id":1950},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1948":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1949":{"x":1040.080919080919,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1950":{"stops":[{"__isSmartRef__":true,"id":1951},{"__isSmartRef__":true,"id":1953},{"__isSmartRef__":true,"id":1955}],"vector":{"__isSmartRef__":true,"id":1957},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1951":{"offset":0,"color":{"__isSmartRef__":true,"id":1952}},"1952":{"r":0.7200000000000001,"g":0.7200000000000001,"b":0.7200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1953":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1954}},"1954":{"r":0.9,"g":0.9,"b":0.9,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1955":{"offset":1,"color":{"__isSmartRef__":true,"id":1956}},"1956":{"r":0.7200000000000001,"g":0.7200000000000001,"b":0.7200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1957":{"x":0,"y":1,"width":0,"height":-1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1958":{"resizeWidth":true,"adjustForNewBounds":true},"1959":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1960":{"x":1040.080919080919,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1961":{"submorphs":[],"scripts":[],"id":864,"shape":{"__isSmartRef__":true,"id":1962},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1967},"showsHalos":false,"name":"ResizeCorner","partsBinMetaInfo":{"__isSmartRef__":true,"id":1968},"__SourceModuleName__":"Global.lively.morphic.Core","_Rotation":0,"_Scale":1,"draggingEnabled":true,"dragStartPoint":null,"originalExtent":{"__isSmartRef__":true,"id":1969},"originalTargetExtent":null,"owner":{"__isSmartRef__":true,"id":961},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1970},"__LivelyClassName__":"lively.morphic.Box"},"1962":{"position":{"__isSmartRef__":true,"id":1963},"_Extent":{"__isSmartRef__":true,"id":1964},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1965},"_Fill":{"__isSmartRef__":true,"id":1966},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1963":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1964":{"x":13,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1965":{"r":0.568,"g":0.568,"b":0.568,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1966":{"r":0.258,"g":0.258,"b":0.258,"a":0.5,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1967":{"x":1027.080919080919,"y":441.00199800199795,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1968":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1969":{"x":239,"y":138,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1970":{"onDrag":{"__isSmartRef__":true,"id":1971},"onDragEnd":{"__isSmartRef__":true,"id":1978},"onDragStart":{"__isSmartRef__":true,"id":1985}},"1971":{"varMapping":{"__isSmartRef__":true,"id":1972},"source":"function onDrag(evt) {\n\t// alert(\"onDrag\")\n\t\tvar moveDelta = evt.mousePoint.subPt(this.dragStartPoint)\n\t\tif (evt.isShiftDown()) {\n\t\t\tvar maxDelta = Math.max(moveDelta.x, moveDelta.y);\n\t\t\tmoveDelta = pt(maxDelta, maxDelta);\n\t\t}\n\t\tthis.owner.setExtent(this.originalTargetExtent.addPt(moveDelta));\n\t\tthis.align(this.bounds().bottomRight(), this.owner.getExtent())\n}","funcProperties":{"__isSmartRef__":true,"id":1977},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1972":{"this":{"__isSmartRef__":true,"id":1961},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1973}},"1973":{"$super":{"__isSmartRef__":true,"id":1974}},"1974":{"varMapping":{"__isSmartRef__":true,"id":1975},"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":1976},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1975":{"obj":{"__isSmartRef__":true,"id":1961},"name":"onDrag"},"1976":{},"1977":{},"1978":{"varMapping":{"__isSmartRef__":true,"id":1979},"source":"function onDragEnd(evt) {\n\tthis.dragStartPoint = null;\n\tthis.originalTargetExtent = null;\n}","funcProperties":{"__isSmartRef__":true,"id":1984},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1979":{"this":{"__isSmartRef__":true,"id":1961},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1980}},"1980":{"$super":{"__isSmartRef__":true,"id":1981}},"1981":{"varMapping":{"__isSmartRef__":true,"id":1982},"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":1983},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1982":{"obj":{"__isSmartRef__":true,"id":1961},"name":"onDragEnd"},"1983":{},"1984":{},"1985":{"varMapping":{"__isSmartRef__":true,"id":1986},"source":"function onDragStart(evt) {\n\tthis.dragStartPoint = evt.mousePoint;\n\tthis.originalTargetExtent = this.owner.getExtent();\n}","funcProperties":{"__isSmartRef__":true,"id":1991},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1986":{"this":{"__isSmartRef__":true,"id":1961},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1987}},"1987":{"$super":{"__isSmartRef__":true,"id":1988}},"1988":{"varMapping":{"__isSmartRef__":true,"id":1989},"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":1990},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1989":{"obj":{"__isSmartRef__":true,"id":1961},"name":"onDragStart"},"1990":{},"1991":{},"1992":{"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_Extent":{"__isSmartRef__":true,"id":1993},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1993":{"x":1040.080919080919,"y":456.00199800199795,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1994":{"adjustForNewBounds":true},"1995":{"x":1326.6587397135877,"y":105.10505518140758,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1996":{"x":1040.080919080919,"y":456.00199800199795,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1997":{"x":0,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1998":{"x":1603,"y":115,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1999":{"requiredModules":["lively.ide.SyntaxHighlighting","lively.ide.SyntaxHighlighting","lively.ide.SyntaxHighlighting"],"partsSpaceName":"PartsBin/Tools/","migrationLevel":2,"__SourceModuleName__":"Global.lively.PartsBin","comment":"Early version. Requires improvement.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"2000":{"submorphs":[{"__isSmartRef__":true,"id":2001},{"__isSmartRef__":true,"id":2105},{"__isSmartRef__":true,"id":2213}],"scripts":[],"id":2638,"shape":{"__isSmartRef__":true,"id":2244},"droppingEnabled":true,"halosEnabled":true,"draggingEnabled":true,"layout":{"__isSmartRef__":true,"id":2246},"_Position":{"__isSmartRef__":true,"id":2247},"priorExtent":{"__isSmartRef__":true,"id":2248},"targetMorph":{"__isSmartRef__":true,"id":2001},"titleBar":{"__isSmartRef__":true,"id":2105},"contentOffset":{"__isSmartRef__":true,"id":2249},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":null,"expandedExtent":null,"ignoreEventsOnExpand":false,"highlighted":true,"_Rotation":0,"_Scale":1,"prevDragPos":{"__isSmartRef__":true,"id":2250},"showsHalos":false,"name":"ScriptEditor1","partsBinMetaInfo":{"__isSmartRef__":true,"id":2251},"__SourceModuleName__":"Global.lively.morphic.Widgets","owner":{"__isSmartRef__":true,"id":935},"__LivelyClassName__":"lively.morphic.Window"},"2001":{"submorphs":[{"__isSmartRef__":true,"id":2002}],"scripts":[],"id":2639,"shape":{"__isSmartRef__":true,"id":2023},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2028},"showsHalos":false,"name":"ScriptEditorPane","partsBinMetaInfo":{"__isSmartRef__":true,"id":2029},"__SourceModuleName__":"Global.lively.morphic.Core","owner":{"__isSmartRef__":true,"id":2000},"_Rotation":0,"targetName":null,"searchText":null,"scriptList":null,"scriptSource":{"__isSmartRef__":true,"id":2002},"targetFound":null,"removeButton":null,"addButton":null,"closeButton":null,"target":{"__isSmartRef__":true,"id":591},"_Scale":1,"layout":{"__isSmartRef__":true,"id":2030},"priorExtent":{"__isSmartRef__":true,"id":2031},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2032},"__LivelyClassName__":"lively.morphic.Box"},"2002":{"submorphs":[],"scripts":[],"id":2640,"shape":{"__isSmartRef__":true,"id":2003},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco, Courier","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2008},"_MaxTextWidth":1028.0469530469531,"_MaxTextHeight":422.98201798201796,"textStyle":null,"owner":{"__isSmartRef__":true,"id":2001},"layout":{"__isSmartRef__":true,"id":2009},"doitContext":{"__isSmartRef__":true,"id":591},"charsReplaced":"1 + 2","lastFindLoc":-5,"showsHalos":false,"_Rotation":0,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"scriptSource","savedTextString":"// WordsDiagram (this)\n\n// ** WordsDiagram's Scripts **\nthis.addScript(function draw(w, h) {\n\tw = w - 30;\n\th = h - 25;\n\tif (!pv) return ;\n\n\tvar vis = new pv.Panel()\n\t\t.width(w)\n\t\t.height(h)\n\t\t.bottom(20)\n\t\t.left(20)\n\t\t.right(10)\n\t\t.top(5);\n\n\tvar xMin = pv.min(this.data.collect(function(d) {\n\t\t\treturn d instanceof Array ? d[0] : null;\n\t\t})),\n\t\txMax = Math.max(\n\t\t\tthis.data.length - 1,\n\t\t\tpv.max(this.data.collect(function(d) {\n\t\t\t\treturn d instanceof Array ? d[0] : null;\n\t\t\t}))\n\t\t),\n\t\tyVals = this.data.collect(function(d) {\n\t\t\treturn d instanceof Array ? d[1] : d;\n\t\t}),\n\t\tx = (this.xScale ?\n\t\t\t(this.xScale.hasOwnProperty('isWrapper') ? this.xScale(xMax) : this.xScale) :\n\t\t\tpv.Scale.linear(xMin, xMax)\n\t\t).range(0, w),\n\t\ty = (this.yScale ?\n\t\t\t(this.yScale.hasOwnProperty('isWrapper') ? this.yScale(pv.max(yVals)) : this.yScale) :\n\t\t\tpv.Scale.linear(\n\t\t\t\tpv.min(yVals.concat(0)),\n\t\t\t\tpv.max(yVals)\n\t\t\t)\n\t\t).range(0, h);\n\n\tvis.add(pv.Rule)\n\t\t.data(y.ticks())\n\t\t.bottom(y)\n\t\t.strokeStyle(function(d) { return d ? \"#eee\" : \"#000\"; })\n\t.anchor(\"left\").add(pv.Label)\n\t\t.text(this.yFormat || y.tickFormat);\n\n\tvis.add(pv.Rule)\n\t\t.data(x.ticks().length < this.data.length ? x.ticks() : x.ticks(this.data.length))\n\t\t.visible(function(d) { return d != 0; })\n\t\t.left(x)\n\t\t.bottom(-5)\n\t\t.height(5)\n\t.anchor(\"bottom\").add(pv.Label)\n\t .text(this.xFormat || x.tickFormat);\n\n\tvis.add(pv.Area)\n\t\t.def('idx', 0)\n\t\t.data(this.data)\n\t\t.bottom(1)\n\t\t.left(function(d) {\n\t\t\tvar idx = this.idx();\n\n\t\t\tif (d instanceof Array)\n\t\t\t\tidx = d[0];\n\t\t\tthis.idx(idx + 1);\n\t\t\n\t\t\treturn x(idx);\n\t\t})\n\t\t.height(function(d) {\n\t\t\tif (d instanceof Array)\n\t\t\t\td = d[1];\n\t\t\treturn y(d);\n\t\t})\n\t\t.fillStyle(\"rgb(121,173,210)\")\n\t.anchor(\"top\").add(pv.Line)\n\t\t.lineWidth(3);\n\n\treturn vis;\n});\n\nthis.addScript(function restoreRenderContextAfterCopy(renderCtx) {\n\t$super(renderCtx);\n\tlively.bindings.callWhenNotNull(Global, 'pv', this, 'render');\n});\n\nthis.addScript(function setData(a) {\n\tthis.data = a;\n\tthis.render()\n});","textChunks":[{"__isSmartRef__":true,"id":2010}],"priorSelectionRange":[3403,3403],"_ClipMode":"auto","prevScroll":[0,1687],"_FontSize":10,"priorExtent":{"__isSmartRef__":true,"id":2012},"syntaxHighlightingWhileTyping":true,"attributeConnections":[{"__isSmartRef__":true,"id":2013}],"doNotSerialize":["$$textString"],"doNotCopyProperties":["$$textString"],"lastSyntaxHighlightTime":1305535993976,"cachedTextString":"// ObjectEditor (this)\n\n// ** ObjectEditor's Scripts **\nthis.addScript(function chooseSubmorphsMenu() {\n var submorphs = this.submorphs.reject(function(morph){\n return !morph.name;\n })\n var morphNames = submorphs.pluck('name');\n var that = this;\n var items = morphNames.collect(function(name) {\n return [name, function() { that.setTarget($morph(name)) }]\n });\n MenuMorph.openAtHand('Select morph to edit', items);\n});\n\nthis.addScript(function chooseTargetMorphMenu() {\n var topLevelMorphs = this.world().submorphs.reject(function(morph){\n return !morph.name;\n })\n var morphNames = topLevelMorphs.pluck('name');\n var that = this;\n var items = morphNames.collect(function(name) {\n return [name, function() { that.setTarget($morph(name)) }]\n });\n MenuMorph.openAtHand('Select morph to edit', items);\n});\n\nthis.addScript(function displayJavaScriptSource(jsCode) {\n this.scriptPane.setTextString(jsCode);\n this.scriptPane.highlightJavaScriptSyntax();\n});\n\nthis.addScript(function displaySourceForConnection(connection) {\n var code = \"\";\n if (connection) {\n var code = this.generateSourceForConnection(connection);\n }\n this.displayJavaScriptSource(code);\n});\n\nthis.addScript(function displaySourceForScript(scriptName) {\n var code = \"\";\n if (scriptName) {\n var code = this.generateSourceForScript(scriptName);\n } \n this.displayJavaScriptSource(code);\n});\n\nthis.addScript(function generateSourceForConnection(connection) {\n var c = connection;\n var targetObject = this.target;\n\tif (!c.getTargetObj() || !c.getTargetObj().name || \n\t\t!c.getSourceObj() || !c.getSourceObj().name) return String(c);\n\n\tvar optConfig = []\n\tif (c.converterString)\n\t\toptConfig.push(\"converter: \\n\\t\" + c.converterString)\n\tif (c.updaterString)\n\t\toptConfig.push(\"updater: \\n\\t\" + c.updaterString)\n\treturn Strings.format('connect(%s, \"%s\", %s, \"%s\", {%s});', \n\t\t\tthis.generateTargetCode(targetObject, c.getSourceObj()),\n\t\t\tc.getSourceAttrName(),\n\t\t\tthis.generateTargetCode(targetObject, c.getTargetObj()),\n\t\t\tc.getTargetMethodName(),\n\t\t\toptConfig.join(','));\n\n});\n\nthis.addScript(function generateSourceForScript(scriptName) {\n var script = this.target[scriptName].getOriginal();\n return Strings.format('this.addScript(%s);' ,script)\n});\n\nthis.addScript(function generateTargetCode(baseObject, targetObject) {\n\tvar name = targetObject.name;\n\tif (baseObject === targetObject) \n\t\treturn \"this\"\n\telse if (baseObject[name] === targetObject) \n\t\treturn \"this.\" + name\n\telse if (baseObject.testObject === targetObject) \n\t\treturn \"this.testObject\"\n\telse if (baseObject.get(name) === targetObject) \n\t\treturn 'this.get(\"' + name + '\")'\n\telse if (targetObject instanceof Morph) \n\t\treturn'$morph(\"' + name + '\")'\n\telse \n\t\treturn \"????\"\n});\n\nthis.addScript(function reset() {\n this.target = null;\n this.setTitle(\"ObjectEditor - no target morph chosen\");\n this.scriptPane.doitContext = null;\n this.scriptList.setList();\n this.scriptPane.setTextString(\"\");\n});\n\nthis.addScript(function setTarget(morph) {\n this.reset();\n if (morph) {\n module('lively.ide.SyntaxHighlighting').load(true);\n this.target = morph;\n this.setTitle(\"ObjectEditor - \"+ (this.target.getName()));\n this.scriptPane.doitContext = this.target;\n this.scriptList.setList(this.sortedScriptNamesOfObj(morph));\n this.connectionList.setList(this. sortedConnectionNamesOfObj(morph));\n if (this.scriptList.getList().size() > 0) {\n this.scriptList.selectAt(0);\n }\n }\n});\n\nthis.addScript(function sortedConnectionNamesOfObj(obj) {\n if (!obj.attributeConnections) {return []};\n return obj.attributeConnections\n .sortBy(function(each) {return name.toLowerCase() })\n .collect(function(each) {return [each.getSourceAttrName(), each]});\n});\n\nthis.addScript(function sortedScriptNamesOfObj(obj) {\n\treturn Functions.own(obj)\n\t\t.select(function(name) { return obj[name].hasLivelyClosure })\n\t\t.sortBy(function(name) { return name.toLowerCase() });\n});","renderContextTable":{"__isSmartRef__":true,"id":2014},"textString":"// ObjectEditor (this)\n\n// ** ObjectEditor's Scripts **\nthis.addScript(function chooseSubmorphsMenu() {\n var submorphs = this.submorphs.reject(function(morph){\n return !morph.name;\n })\n var morphNames = submorphs.pluck('name');\n var that = this;\n var items = morphNames.collect(function(name) {\n return [name, function() { that.setTarget($morph(name)) }]\n });\n MenuMorph.openAtHand('Select morph to edit', items);\n});\n\nthis.addScript(function chooseTargetMorphMenu() {\n var topLevelMorphs = this.world().submorphs.reject(function(morph){\n return !morph.name;\n })\n var morphNames = topLevelMorphs.pluck('name');\n var that = this;\n var items = morphNames.collect(function(name) {\n return [name, function() { that.setTarget($morph(name)) }]\n });\n MenuMorph.openAtHand('Select morph to edit', items);\n});\n\nthis.addScript(function displayJavaScriptSource(jsCode) {\n this.scriptPane.setTextString(jsCode);\n this.scriptPane.highlightJavaScriptSyntax();\n});\n\nthis.addScript(function displaySourceForConnection(connection) {\n var code = \"\";\n if (connection) {\n var code = this.generateSourceForConnection(connection);\n }\n this.displayJavaScriptSource(code);\n});\n\nthis.addScript(function displaySourceForScript(scriptName) {\n var code = \"\";\n if (scriptName) {\n var code = this.generateSourceForScript(scriptName);\n } \n this.displayJavaScriptSource(code);\n});\n\nthis.addScript(function generateSourceForConnection(connection) {\n var c = connection;\n var targetObject = this.target;\n\tif (!c.getTargetObj() || !c.getTargetObj().name || \n\t\t!c.getSourceObj() || !c.getSourceObj().name) return String(c);\n\n\tvar optConfig = []\n\tif (c.converterString)\n\t\toptConfig.push(\"converter: \\n\\t\" + c.converterString)\n\tif (c.updaterString)\n\t\toptConfig.push(\"updater: \\n\\t\" + c.updaterString)\n\treturn Strings.format('connect(%s, \"%s\", %s, \"%s\", {%s});', \n\t\t\tthis.generateTargetCode(targetObject, c.getSourceObj()),\n\t\t\tc.getSourceAttrName(),\n\t\t\tthis.generateTargetCode(targetObject, c.getTargetObj()),\n\t\t\tc.getTargetMethodName(),\n\t\t\toptConfig.join(','));\n\n});\n\nthis.addScript(function generateSourceForScript(scriptName) {\n var script = this.target[scriptName].getOriginal();\n return Strings.format('this.addScript(%s);' ,script)\n});\n\nthis.addScript(function generateTargetCode(baseObject, targetObject) {\n\tvar name = targetObject.name;\n\tif (baseObject === targetObject) \n\t\treturn \"this\"\n\telse if (baseObject[name] === targetObject) \n\t\treturn \"this.\" + name\n\telse if (baseObject.testObject === targetObject) \n\t\treturn \"this.testObject\"\n\telse if (baseObject.get(name) === targetObject) \n\t\treturn 'this.get(\"' + name + '\")'\n\telse if (targetObject instanceof Morph) \n\t\treturn'$morph(\"' + name + '\")'\n\telse \n\t\treturn \"????\"\n});\n\nthis.addScript(function reset() {\n this.target = null;\n this.setTitle(\"ObjectEditor - no target morph chosen\");\n this.scriptPane.doitContext = null;\n this.scriptList.setList();\n this.scriptPane.setTextString(\"\");\n});\n\nthis.addScript(function setTarget(morph) {\n this.reset();\n if (morph) {\n module('lively.ide.SyntaxHighlighting').load(true);\n this.target = morph;\n this.setTitle(\"ObjectEditor - \"+ (this.target.getName()));\n this.scriptPane.doitContext = this.target;\n this.scriptList.setList(this.sortedScriptNamesOfObj(morph));\n this.connectionList.setList(this. sortedConnectionNamesOfObj(morph));\n if (this.scriptList.getList().size() > 0) {\n this.scriptList.selectAt(0);\n }\n }\n});\n\nthis.addScript(function sortedConnectionNamesOfObj(obj) {\n if (!obj.attributeConnections) {return []};\n return obj.attributeConnections\n .sortBy(function(each) {return name.toLowerCase() })\n .collect(function(each) {return [each.getSourceAttrName(), each]});\n});\n\nthis.addScript(function sortedScriptNamesOfObj(obj) {\n\treturn Functions.own(obj)\n\t\t.select(function(name) { return obj[name].hasLivelyClosure })\n\t\t.sortBy(function(name) { return name.toLowerCase() });\n});","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2015},"__LivelyClassName__":"lively.morphic.Text"},"2003":{"position":{"__isSmartRef__":true,"id":2004},"_Extent":{"__isSmartRef__":true,"id":2005},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2006},"_Fill":{"__isSmartRef__":true,"id":2007},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2004":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2005":{"x":1028.0469530469531,"y":422.98201798201796,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2006":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2007":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2008":{"x":7,"y":9,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2009":{"resizeWidth":true,"resizeHeight":true},"2010":{"style":{"__isSmartRef__":true,"id":2011},"morph":{"__isSmartRef__":true,"id":2002},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2011":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2012":{"x":1028.0469530469531,"y":422.98201798201796,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2013":{"sourceObj":{"__isSmartRef__":true,"id":2002},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":2002},"targetMethodName":"highlightJavaScriptSyntax","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2014":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"2015":{"doSave":{"__isSmartRef__":true,"id":2016}},"2016":{"varMapping":{"__isSmartRef__":true,"id":2017},"source":"function doSave() {\n\t$super()\n\talertOK(\"eval all for \" + this.getDoitContext())\n\tthis.boundEval(this.textString)\n}","funcProperties":{"__isSmartRef__":true,"id":2022},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2017":{"this":{"__isSmartRef__":true,"id":2002},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2018}},"2018":{"$super":{"__isSmartRef__":true,"id":2019}},"2019":{"varMapping":{"__isSmartRef__":true,"id":2020},"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":2021},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2020":{"obj":{"__isSmartRef__":true,"id":2002},"name":"doSave"},"2021":{},"2022":{},"2023":{"position":{"__isSmartRef__":true,"id":2024},"_Extent":{"__isSmartRef__":true,"id":2025},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":2026},"_Fill":{"__isSmartRef__":true,"id":2027},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2024":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2025":{"x":1041.0799200799202,"y":437.9980019980019,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2026":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2027":{"r":0.921,"g":0.921,"b":0.921,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2028":{"x":-0.9990009990010549,"y":20.001998001998004,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2029":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"2030":{"resizeWidth":true,"resizeHeight":true,"adjustForNewBounds":true},"2031":{"x":1041.0799200799202,"y":437.9980019980019,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2032":{"addTargetScript":{"__isSmartRef__":true,"id":2033},"addTestObject":{"__isSmartRef__":true,"id":2036},"allMorphNames":{"__isSmartRef__":true,"id":2039},"allScriptListItems":{"__isSmartRef__":true,"id":2042},"bindMorphNames":{"__isSmartRef__":true,"id":2045},"doSearch":{"__isSmartRef__":true,"id":2048},"findSubobjects":{"__isSmartRef__":true,"id":2051},"generateSourceForConnection":{"__isSmartRef__":true,"id":2054},"generateSourceForObject":{"__isSmartRef__":true,"id":2057},"generateSourceForProperty":{"__isSmartRef__":true,"id":2060},"generateSourceForScript":{"__isSmartRef__":true,"id":2063},"generateSourceForValue":{"__isSmartRef__":true,"id":2066},"generateTargetCode":{"__isSmartRef__":true,"id":2069},"highlightSelectedObject":{"__isSmartRef__":true,"id":2072},"listItemsForObj":{"__isSmartRef__":true,"id":2075},"removeTargetScript":{"__isSmartRef__":true,"id":2078},"reset":{"__isSmartRef__":true,"id":2081},"setSourceInPane":{"__isSmartRef__":true,"id":2084},"setTarget":{"__isSmartRef__":true,"id":2087},"setupConnections":{"__isSmartRef__":true,"id":2090},"showTopLevelItems":{"__isSmartRef__":true,"id":2093},"sortedScriptNamesOfObj":{"__isSmartRef__":true,"id":2096},"updateScriptList":{"__isSmartRef__":true,"id":2099},"updateSourcePane":{"__isSmartRef__":true,"id":2102}},"2033":{"varMapping":{"__isSmartRef__":true,"id":2034},"source":"function addTargetScript(name) {\n\tvar target = this.target;\n\tif (!target) return;\n\n\ttarget.addScript(\"function \" + name + \"() {\\n\\n}\"); \n\n\tthis.updateScriptList();\n}","funcProperties":{"__isSmartRef__":true,"id":2035},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2034":{"this":{"__isSmartRef__":true,"id":2001}},"2035":{},"2036":{"varMapping":{"__isSmartRef__":true,"id":2037},"source":"function addTestObject() {\n\tthis.testObject = {\n\t\tname: 'ScriptEditorTest',\n\t\taddScript: function addScript(funcOrString, optName) {\n\t\t\tvar func = Function.fromString(funcOrString);\n\t\t\treturn func.asScriptOf(this, optName);\n\t\t}.asScript()\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":2038},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2037":{"this":{"__isSmartRef__":true,"id":2001}},"2038":{},"2039":{"varMapping":{"__isSmartRef__":true,"id":2040},"source":"function allMorphNames() {\n\tvar names = [];\n\tthis.world().withAllSubmorphsDo(function() { if (this.name) names.push(this.name) })\n\treturn names;\n}","funcProperties":{"__isSmartRef__":true,"id":2041},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2040":{"this":{"__isSmartRef__":true,"id":2001}},"2041":{},"2042":{"varMapping":{"__isSmartRef__":true,"id":2043},"source":"function allScriptListItems() {\n\tvar obj = this.target;\n\tif (!obj) return [];\n\n\tvar listItems = this.findSubobjects(obj).collect(function(ea) {\n\t\treturn this.listItemsForObj(ea);\n\t}, this).flatten()\n\n\treturn listItems;\n}","funcProperties":{"__isSmartRef__":true,"id":2044},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2043":{"this":{"__isSmartRef__":true,"id":2001}},"2044":{},"2045":{"varMapping":{"__isSmartRef__":true,"id":2046},"source":"function bindMorphNames(submorphNames) {\n\tsubmorphNames.forEach(function(ea) {\n\t\tthis[ea]= this.getMorphNamed(ea)\n\t}, this)\n}","funcProperties":{"__isSmartRef__":true,"id":2047},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2046":{"this":{"__isSmartRef__":true,"id":2001}},"2047":{},"2048":{"varMapping":{"__isSmartRef__":true,"id":2049},"source":"function doSearch(string) {\n\talert('searching ' + string);\n\tvar allItems = this.allScriptListItems();\n\tallItems.select(function(item) {})\n}","funcProperties":{"__isSmartRef__":true,"id":2050},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2049":{"this":{"__isSmartRef__":true,"id":2001}},"2050":{},"2051":{"varMapping":{"__isSmartRef__":true,"id":2052},"source":"function findSubobjects(obj) {\n\tvar objs = [];\n\tobj.withAllSubmorphsDo(function(){ objs.push(this) });\n\n\tif (obj.testObject && obj.testObject.name)\n\t\tobjs.push(obj.testObject)\n\treturn objs\n}","funcProperties":{"__isSmartRef__":true,"id":2053},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2052":{"this":{"__isSmartRef__":true,"id":2001}},"2053":{},"2054":{"varMapping":{"__isSmartRef__":true,"id":2055},"source":"function generateSourceForConnection(baseObject, targetObject, connection) {\n\tvar c = connection;\n\tif (!c.getTargetObj() || !c.getTargetObj().name || \n\t\t!c.getSourceObj() || !c.getSourceObj().name) return String(c);\n\n\tvar optConfig = []\n\tif (c.converterString)\n\t\toptConfig.push(\"converter: \\n\\t\" + c.converterString)\n\tif (c.updaterString)\n\t\toptConfig.push(\"updater: \\n\\t\" + c.updaterString)\n\treturn Strings.format('connect(%s, \"%s\", %s, \"%s\", {%s});', \n\t\t\tthis.generateTargetCode(baseObject, c.getSourceObj()),\n\t\t\tc.getSourceAttrName(),\n\t\t\tthis.generateTargetCode(baseObject, c.getTargetObj()),\n\t\t\tc.getTargetMethodName(),\n\t\t\toptConfig.join(','));\n\n}","funcProperties":{"__isSmartRef__":true,"id":2056},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2055":{"this":{"__isSmartRef__":true,"id":2001}},"2056":{},"2057":{"varMapping":{"__isSmartRef__":true,"id":2058},"source":"function generateSourceForObject(baseObject, targetObj) {\n\tvar source = \"// \" + targetObj.name + \" (\" + \n\t\tthis.generateTargetCode(baseObject, targetObj) + \")\\n\\n\"\n\n\n\tvar scriptNames = this.sortedScriptNamesOfObj(targetObj)\n\tif (scriptNames.length > 0) {\n\t\tsource += \"// ** \" + targetObj.name\t+ \"'s Scripts **\\n\"\n\t\tsource += scriptNames.collect(function(ea) {\n\t\t\treturn this.generateSourceForScript(baseObject, targetObj, ea)\n\t\t}, this).join('\\n\\n');\n\t}\n\n\tif (targetObj.attributeConnections) {\n\t\tsource += \"\\n\\n// ** \" + targetObj.name\t+ \"'s Connections **\\n\"\n\t\tsource += targetObj.attributeConnections.collect(function(ea) {\n\t\t\treturn this.generateSourceForConnection(baseObject, targetObj, ea)\n\t\t}, this).join('\\n');\n\t}\n\n\tif (targetObj.scriptSource && Object.isString(targetObj.scriptSource)) {\n\t\tsource += \"\\n\\n\";\n\t\tsource += this.generateSourceForProperty(\n\t\t\tbaseObject, targetObj, \"scriptSource\");\n\t}\n\n\treturn source\n}","funcProperties":{"__isSmartRef__":true,"id":2059},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2058":{"this":{"__isSmartRef__":true,"id":2001}},"2059":{},"2060":{"varMapping":{"__isSmartRef__":true,"id":2061},"source":"function generateSourceForProperty(baseObject, targetObject, propertyName) {\n\tvar value = targetObject[propertyName];\n\treturn Strings.format('%s.'+ propertyName +'=%s;', \n\t\tthis.generateTargetCode(baseObject, targetObject),\t\n\t\tthis.generateSourceForValue(value))\n}","funcProperties":{"__isSmartRef__":true,"id":2062},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2061":{"this":{"__isSmartRef__":true,"id":2001}},"2062":{},"2063":{"varMapping":{"__isSmartRef__":true,"id":2064},"source":"function generateSourceForScript(baseObject, targetObject, scriptName) {\n\tvar script =targetObject[scriptName].getOriginal();\n\treturn Strings.format('%s.addScript(%s);', \n\t\tthis.generateTargetCode(baseObject, targetObject) ,script)\n}","funcProperties":{"__isSmartRef__":true,"id":2065},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2064":{"this":{"__isSmartRef__":true,"id":2001}},"2065":{},"2066":{"varMapping":{"__isSmartRef__":true,"id":2067},"source":"function generateSourceForValue(value) {\n\tif (Object.isString(value)) \n\t\treturn '\"' + value + '\"'\n\telse \n\t\treturn value\n}","funcProperties":{"__isSmartRef__":true,"id":2068},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2067":{"this":{"__isSmartRef__":true,"id":2001}},"2068":{},"2069":{"varMapping":{"__isSmartRef__":true,"id":2070},"source":"function generateTargetCode(baseObject, targetObject) {\n\tvar name = targetObject.name;\n\tif (baseObject === targetObject) \n\t\treturn \"this\"\n\telse if (baseObject[name] === targetObject) \n\t\treturn \"this.\" + name\n\telse if (baseObject.testObject === targetObject) \n\t\treturn \"this.testObject\"\n\telse if (baseObject.get(name) === targetObject) \n\t\treturn 'this.get(\"' + name + '\")'\n\telse if (targetObject instanceof Morph) \n\t\treturn'$morph(\"' + name + '\")'\n\telse \n\t\treturn \"????\"\n}","funcProperties":{"__isSmartRef__":true,"id":2071},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2070":{"this":{"__isSmartRef__":true,"id":2001}},"2071":{},"2072":{"varMapping":{"__isSmartRef__":true,"id":2073},"source":"function highlightSelectedObject(selection) {\n\tif (selection && selection.targetObj) showMorph(selection.targetObj)\n}","funcProperties":{"__isSmartRef__":true,"id":2074},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2073":{"this":{"__isSmartRef__":true,"id":2001}},"2074":{},"2075":{"varMapping":{"__isSmartRef__":true,"id":2076},"source":"function listItemsForObj(obj, optPrefix) {\n\n\tvar listItems = [];\n\tvar prefix = optPrefix || \"\";\t\n\n\n\tif (obj.name) listItems.push({\n\t\tisListItem: true,\n\t\tstring: \"Object: \" + obj.name || \"unnamed\",\n\t\tvalue: {obj: obj, targetObj: obj}\t\n\t});\n\n\tif (obj.scriptSource && Object.isString(obj.scriptSource)) {\n\t\tlistItems.push({\n\t\t\tisListItem: true,\n\t\t\tstring: \" scriptSource\",\n\t\t\tvalue: {obj: obj, propertyName: 'scriptSource'}\t\n\t\t});\n\t}\n\n\tlistItems = listItems.concat(this.sortedScriptNamesOfObj(obj)\n\t\t.collect(function(name) { \n\t\t\treturn {isListItem: true, string: \" \" + name, value: {obj: obj, scriptName: name}}}))\n\n\t// BUG don't bind connections here...\n\tif (obj.attributeConnections)\n\t\t\tlistItems = listItems.concat(obj.attributeConnections.collect(function(ea) {\n\t\t\t\treturn {\n\t\t\t\t\tisListItem: true, \n\t\t\t\t\tstring: \" [\" + ea.getSourceAttrName() + \" -> \" + \n\t\t\t\t\t\tea.getTargetObj() + \".\" + ea.getTargetMethodName() + \"]\", \n\t\t\t\t\tvalue: {obj: obj, connection: ea }}\n\t\t\t}));\n\n\treturn listItems\n}","funcProperties":{"__isSmartRef__":true,"id":2077},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2076":{"this":{"__isSmartRef__":true,"id":2001}},"2077":{},"2078":{"varMapping":{"__isSmartRef__":true,"id":2079},"source":"function removeTargetScript() {\n\tvar target = this.scriptList.selection.obj;\n\tif (!target) return;\n\n\n\tvar scriptName = this.scriptList.selection.scriptName; \n\tif (scriptName) {\n\t\tdelete target[scriptName];\n\t}\n\n\tvar connection = this.scriptList.selection.connection; \n\tif (connection)\n\t\tconnection.disconnect()\n\n\tthis.updateScriptList();\n}","funcProperties":{"__isSmartRef__":true,"id":2080},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2079":{"this":{"__isSmartRef__":true,"id":2001}},"2080":{},"2081":{"varMapping":{"__isSmartRef__":true,"id":2082},"source":"function reset() {\n\t// this.reset()\n\tthis.bindMorphNames(\"targetName searchText scriptList scriptSource targetFound removeButton addButton closeButton\".split(\" \"))\n\tthis.target = null;\n\t// this.targetName.setTextString(\"nobody\");\n\t// this.scriptList.updateList([]);\n\tthis.scriptSource.setTextString(\"\");\n\t// this.searchText.setTextString(\"search for something\");\n}","funcProperties":{"__isSmartRef__":true,"id":2083},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2082":{"this":{"__isSmartRef__":true,"id":2001}},"2083":{},"2084":{"varMapping":{"__isSmartRef__":true,"id":2085},"source":"function setSourceInPane(source, pane) {\n\tpane.setTextString(source);\n\tpane.owner.owner.scrollToTop();\n}","funcProperties":{"__isSmartRef__":true,"id":2086},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2085":{"this":{"__isSmartRef__":true,"id":2001}},"2086":{},"2087":{"varMapping":{"__isSmartRef__":true,"id":2088},"source":"function setTarget(obj) {\n\t// if (obj) alertOK(\"set target \" + obj.name)\n\tthis.target = obj\n\t// this.updateScriptList()\n\tif (!this.target) \n\t\tsource = 'no source';\n\telse \n\t\tsource = this.generateSourceForObject(this.target, this.target);\n\tthis.get('scriptSource').setTextString(source)\n\tthis.get('scriptSource').doitContext = this.target\n\n\tmodule('lively.ide.SyntaxHighlighting').load(true)\n\tthis.get('scriptSource').highlightJavaScriptSyntax()\n}","funcProperties":{"__isSmartRef__":true,"id":2089},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2088":{"this":{"__isSmartRef__":true,"id":2001}},"2089":{},"2090":{"varMapping":{"__isSmartRef__":true,"id":2091},"source":"function setupConnections() {\n\t// this.setupConnections();\n\tconnect(this.targetName, 'textString', \n\t\tthis, 'target', \n\t\t{converter: function(n) { return $morph(n) }})\n\n\tconnect(this, 'target', \n\t\tthis.targetFound, 'setFill', \n\t\t{converter: function(obj) { return obj ? Color.green : Color.red}})\n\n\tconnect(this, 'target', this, 'setTarget')\n\n\tconnect(this.searchText, 'savedTextString', this, 'doSearch')\n}","funcProperties":{"__isSmartRef__":true,"id":2092},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2091":{"this":{"__isSmartRef__":true,"id":2001}},"2092":{},"2093":{"varMapping":{"__isSmartRef__":true,"id":2094},"source":"function showTopLevelItems() {\n\tvar topLevelMorphs = this.world().submorphs.reject(function(morph){\n\t\treturn !morph.name;\n\t})\n\tvar morphNames = topLevelMorphs.pluck('name'),\n\t\titems = morphNames.collect(function(name) {\n\t\t\treturn [name, function() { $morph('targetName').setTextString(name) }]\n\t\t});\n\tMenuMorph.openAtHand(items, 'Select morph to edit')\n}","funcProperties":{"__isSmartRef__":true,"id":2095},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2094":{"this":{"__isSmartRef__":true,"id":2001}},"2095":{},"2096":{"varMapping":{"__isSmartRef__":true,"id":2097},"source":"function sortedScriptNamesOfObj(obj) {\n\treturn Functions.own(obj)\n\t\t.select(function(name) { return obj[name].hasLivelyClosure })\n\t\t.sortBy(function(name) { return name.toLowerCase() });\n}","funcProperties":{"__isSmartRef__":true,"id":2098},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2097":{"this":{"__isSmartRef__":true,"id":2001}},"2098":{},"2099":{"varMapping":{"__isSmartRef__":true,"id":2100},"source":"function updateScriptList() {\n\tthis.scriptList.updateList(this.allScriptListItems());\n\t// this.scriptList.selectLineAt(this.scriptList.selectedLineNo);\n\t// this.scriptSource.owner.owner.scrollToTop(); // demeter :-D\n}","funcProperties":{"__isSmartRef__":true,"id":2101},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2100":{"this":{"__isSmartRef__":true,"id":2001}},"2101":{},"2102":{"varMapping":{"__isSmartRef__":true,"id":2103},"source":"function updateSourcePane(selection) { \n\tvar textMorph = this.scriptSource;\n\n\tif (!selection || !selection.obj) {\n\t\ttextMorph.setTextString(\"\");\n\t\treturn;\n\t}\n\n\tif (selection.targetObj) {\n\t\tthis.setSourceInPane(this.generateSourceForObject(\n\t\t\ttextMorph.getDoitContext(), selection.targetObj), textMorph);\n\t\treturn;\n\t}\n\n\tif (selection.connection) {\n\t\tthis.setSourceInPane(this.generateSourceForConnection(\n\t\t\ttextMorph.getDoitContext(),selection.obj,selection.connection), textMorph);\n\t\treturn;\n\t}\n\n\tif (selection.propertyName) {\n\t\tthis.setSourceInPane(this.generateSourceForProperty(\n\t\t\ttextMorph.getDoitContext(), selection.obj, selection.propertyName), textMorph);\n\t\treturn;\n\t}\n\n\tthis.setSourceInPane(\n\t\tthis.generateSourceForScript(textMorph.getDoitContext(),selection.obj, selection.scriptName), \n\t\ttextMorph)\n}","funcProperties":{"__isSmartRef__":true,"id":2104},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2103":{"this":{"__isSmartRef__":true,"id":2001}},"2104":{},"2105":{"submorphs":[{"__isSmartRef__":true,"id":2106},{"__isSmartRef__":true,"id":2116},{"__isSmartRef__":true,"id":2154},{"__isSmartRef__":true,"id":2180}],"scripts":[],"id":2641,"shape":{"__isSmartRef__":true,"id":2207},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":2210},"_Position":{"__isSmartRef__":true,"id":2211},"eventsAreIgnored":true,"windowMorph":{"__isSmartRef__":true,"id":2000},"label":{"__isSmartRef__":true,"id":2106},"closeButton":{"__isSmartRef__":true,"id":2116},"menuButton":{"__isSmartRef__":true,"id":2154},"collapseButton":{"__isSmartRef__":true,"id":2180},"priorExtent":{"__isSmartRef__":true,"id":2212},"owner":{"__isSmartRef__":true,"id":2000},"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.TitleBar"},"2106":{"submorphs":[],"scripts":[],"id":2642,"shape":{"__isSmartRef__":true,"id":2107},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":2110},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":2111},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":2112}],"isLabel":true,"eventsAreIgnored":true,"_FontSize":10,"owner":{"__isSmartRef__":true,"id":2105},"__SourceModuleName__":"Global.lively.morphic.TextCore","priorExtent":{"__isSmartRef__":true,"id":2114},"renderContextTable":{"__isSmartRef__":true,"id":2115},"__LivelyClassName__":"lively.morphic.Text"},"2107":{"_Position":{"__isSmartRef__":true,"id":2108},"_Extent":{"__isSmartRef__":true,"id":2109},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2026},"_Fill":null,"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2108":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2109":{"x":981.0809190809191,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2110":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"2111":{"x":20,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2112":{"style":{"__isSmartRef__":true,"id":2113},"morph":{"__isSmartRef__":true,"id":2106},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2113":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2114":{"x":981.0809190809191,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2115":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"2116":{"submorphs":[{"__isSmartRef__":true,"id":2117}],"scripts":[],"id":2643,"shape":{"__isSmartRef__":true,"id":2127},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2141},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":2131},"lighterFill":{"__isSmartRef__":true,"id":2142},"label":{"__isSmartRef__":true,"id":2117},"owner":{"__isSmartRef__":true,"id":2105},"layout":{"__isSmartRef__":true,"id":2151},"attributeConnections":[{"__isSmartRef__":true,"id":2152},{"__isSmartRef__":true,"id":2153}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"2117":{"submorphs":[],"scripts":[],"id":2644,"shape":{"__isSmartRef__":true,"id":2118},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":2121},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":2122},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":2123}],"owner":{"__isSmartRef__":true,"id":2116},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","priorExtent":{"__isSmartRef__":true,"id":2125},"renderContextTable":{"__isSmartRef__":true,"id":2126},"__LivelyClassName__":"lively.morphic.Text"},"2118":{"_Position":{"__isSmartRef__":true,"id":2119},"_Extent":{"__isSmartRef__":true,"id":2120},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2026},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2119":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2120":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2121":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"2122":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2123":{"style":{"__isSmartRef__":true,"id":2124},"morph":{"__isSmartRef__":true,"id":2117},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2124":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2125":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2126":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"2127":{"_Position":{"__isSmartRef__":true,"id":2128},"_Extent":{"__isSmartRef__":true,"id":2129},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2130},"_Fill":{"__isSmartRef__":true,"id":2131},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2128":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2129":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2130":{"r":0.8392156862745098,"g":0.8392156862745098,"b":0.8392156862745098,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2131":{"stops":[{"__isSmartRef__":true,"id":2132},{"__isSmartRef__":true,"id":2134},{"__isSmartRef__":true,"id":2136},{"__isSmartRef__":true,"id":2138}],"vector":{"__isSmartRef__":true,"id":2140},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"2132":{"offset":0,"color":{"__isSmartRef__":true,"id":2133}},"2133":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2134":{"offset":0.4,"color":{"__isSmartRef__":true,"id":2135}},"2135":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2136":{"offset":0.6,"color":{"__isSmartRef__":true,"id":2137}},"2137":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2138":{"offset":1,"color":{"__isSmartRef__":true,"id":2139}},"2139":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2140":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"2141":{"x":1020.0809190809191,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2142":{"stops":[{"__isSmartRef__":true,"id":2143},{"__isSmartRef__":true,"id":2145},{"__isSmartRef__":true,"id":2147},{"__isSmartRef__":true,"id":2149}],"vector":{"__isSmartRef__":true,"id":2140},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"2143":{"offset":0,"color":{"__isSmartRef__":true,"id":2144}},"2144":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2145":{"offset":0.4,"color":{"__isSmartRef__":true,"id":2146}},"2146":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2147":{"offset":0.6,"color":{"__isSmartRef__":true,"id":2148}},"2148":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2149":{"offset":1,"color":{"__isSmartRef__":true,"id":2150}},"2150":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2151":{"moveHorizontal":true},"2152":{"sourceObj":{"__isSmartRef__":true,"id":2116},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":2000},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2153":{"sourceObj":{"__isSmartRef__":true,"id":2116},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":2000},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2154":{"submorphs":[{"__isSmartRef__":true,"id":2155}],"scripts":[],"id":2645,"shape":{"__isSmartRef__":true,"id":2165},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2168},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":2131},"lighterFill":{"__isSmartRef__":true,"id":2169},"label":{"__isSmartRef__":true,"id":2155},"owner":{"__isSmartRef__":true,"id":2105},"attributeConnections":[{"__isSmartRef__":true,"id":2178},{"__isSmartRef__":true,"id":2179}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"2155":{"submorphs":[],"scripts":[],"id":2646,"shape":{"__isSmartRef__":true,"id":2156},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":2159},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":2160},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":2161}],"owner":{"__isSmartRef__":true,"id":2154},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","priorExtent":{"__isSmartRef__":true,"id":2163},"renderContextTable":{"__isSmartRef__":true,"id":2164},"__LivelyClassName__":"lively.morphic.Text"},"2156":{"_Position":{"__isSmartRef__":true,"id":2157},"_Extent":{"__isSmartRef__":true,"id":2158},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2026},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2157":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2158":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2159":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"2160":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2161":{"style":{"__isSmartRef__":true,"id":2162},"morph":{"__isSmartRef__":true,"id":2155},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2162":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2163":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2164":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"2165":{"_Position":{"__isSmartRef__":true,"id":2166},"_Extent":{"__isSmartRef__":true,"id":2167},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2130},"_Fill":{"__isSmartRef__":true,"id":2131},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2166":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2167":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2168":{"x":3,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2169":{"stops":[{"__isSmartRef__":true,"id":2170},{"__isSmartRef__":true,"id":2172},{"__isSmartRef__":true,"id":2174},{"__isSmartRef__":true,"id":2176}],"vector":{"__isSmartRef__":true,"id":2140},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"2170":{"offset":0,"color":{"__isSmartRef__":true,"id":2171}},"2171":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2172":{"offset":0.4,"color":{"__isSmartRef__":true,"id":2173}},"2173":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2174":{"offset":0.6,"color":{"__isSmartRef__":true,"id":2175}},"2175":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2176":{"offset":1,"color":{"__isSmartRef__":true,"id":2177}},"2177":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2178":{"sourceObj":{"__isSmartRef__":true,"id":2154},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":2000},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2179":{"sourceObj":{"__isSmartRef__":true,"id":2154},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":2000},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2180":{"submorphs":[{"__isSmartRef__":true,"id":2181}],"scripts":[],"id":2647,"shape":{"__isSmartRef__":true,"id":2191},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2194},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":2131},"lighterFill":{"__isSmartRef__":true,"id":2195},"label":{"__isSmartRef__":true,"id":2181},"owner":{"__isSmartRef__":true,"id":2105},"layout":{"__isSmartRef__":true,"id":2204},"attributeConnections":[{"__isSmartRef__":true,"id":2205},{"__isSmartRef__":true,"id":2206}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"2181":{"submorphs":[],"scripts":[],"id":2648,"shape":{"__isSmartRef__":true,"id":2182},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":2185},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":2186},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":2187}],"owner":{"__isSmartRef__":true,"id":2180},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","priorExtent":{"__isSmartRef__":true,"id":2189},"renderContextTable":{"__isSmartRef__":true,"id":2190},"__LivelyClassName__":"lively.morphic.Text"},"2182":{"_Position":{"__isSmartRef__":true,"id":2183},"_Extent":{"__isSmartRef__":true,"id":2184},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2026},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2183":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2184":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2185":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"2186":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2187":{"style":{"__isSmartRef__":true,"id":2188},"morph":{"__isSmartRef__":true,"id":2181},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2188":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2189":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2190":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"2191":{"_Position":{"__isSmartRef__":true,"id":2192},"_Extent":{"__isSmartRef__":true,"id":2193},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2130},"_Fill":{"__isSmartRef__":true,"id":2131},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2192":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2193":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2194":{"x":1001.0809190809191,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2195":{"stops":[{"__isSmartRef__":true,"id":2196},{"__isSmartRef__":true,"id":2198},{"__isSmartRef__":true,"id":2200},{"__isSmartRef__":true,"id":2202}],"vector":{"__isSmartRef__":true,"id":2140},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"2196":{"offset":0,"color":{"__isSmartRef__":true,"id":2197}},"2197":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2198":{"offset":0.4,"color":{"__isSmartRef__":true,"id":2199}},"2199":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2200":{"offset":0.6,"color":{"__isSmartRef__":true,"id":2201}},"2201":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2202":{"offset":1,"color":{"__isSmartRef__":true,"id":2203}},"2203":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2204":{"moveHorizontal":true},"2205":{"sourceObj":{"__isSmartRef__":true,"id":2180},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":2000},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2206":{"sourceObj":{"__isSmartRef__":true,"id":2180},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":2000},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2207":{"_Position":{"__isSmartRef__":true,"id":2208},"_Extent":{"__isSmartRef__":true,"id":2209},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":2006},"_Fill":{"__isSmartRef__":true,"id":1950},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2208":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2209":{"x":1040.080919080919,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2210":{"resizeWidth":true,"adjustForNewBounds":true},"2211":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2212":{"x":1040.080919080919,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2213":{"submorphs":[],"scripts":[],"id":2649,"shape":{"__isSmartRef__":true,"id":2214},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2219},"showsHalos":false,"name":"ResizeCorner","partsBinMetaInfo":{"__isSmartRef__":true,"id":2220},"__SourceModuleName__":"Global.lively.morphic.Core","_Rotation":0,"_Scale":1,"draggingEnabled":true,"dragStartPoint":null,"originalExtent":{"__isSmartRef__":true,"id":2221},"originalTargetExtent":null,"owner":{"__isSmartRef__":true,"id":2000},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2222},"__LivelyClassName__":"lively.morphic.Box"},"2214":{"position":{"__isSmartRef__":true,"id":2215},"_Extent":{"__isSmartRef__":true,"id":2216},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2217},"_Fill":{"__isSmartRef__":true,"id":2218},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2215":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2216":{"x":13,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2217":{"r":0.568,"g":0.568,"b":0.568,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2218":{"r":0.258,"g":0.258,"b":0.258,"a":0.5,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2219":{"x":1027.080919080919,"y":441.00199800199795,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2220":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"2221":{"x":239,"y":138,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2222":{"onDrag":{"__isSmartRef__":true,"id":2223},"onDragEnd":{"__isSmartRef__":true,"id":2230},"onDragStart":{"__isSmartRef__":true,"id":2237}},"2223":{"varMapping":{"__isSmartRef__":true,"id":2224},"source":"function onDrag(evt) {\n\t// alert(\"onDrag\")\n\t\tvar moveDelta = evt.mousePoint.subPt(this.dragStartPoint)\n\t\tif (evt.isShiftDown()) {\n\t\t\tvar maxDelta = Math.max(moveDelta.x, moveDelta.y);\n\t\t\tmoveDelta = pt(maxDelta, maxDelta);\n\t\t}\n\t\tthis.owner.setExtent(this.originalTargetExtent.addPt(moveDelta));\n\t\tthis.align(this.bounds().bottomRight(), this.owner.getExtent())\n}","funcProperties":{"__isSmartRef__":true,"id":2229},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2224":{"this":{"__isSmartRef__":true,"id":2213},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2225}},"2225":{"$super":{"__isSmartRef__":true,"id":2226}},"2226":{"varMapping":{"__isSmartRef__":true,"id":2227},"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":2228},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2227":{"obj":{"__isSmartRef__":true,"id":2213},"name":"onDrag"},"2228":{},"2229":{},"2230":{"varMapping":{"__isSmartRef__":true,"id":2231},"source":"function onDragEnd(evt) {\n\tthis.dragStartPoint = null;\n\tthis.originalTargetExtent = null;\n}","funcProperties":{"__isSmartRef__":true,"id":2236},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2231":{"this":{"__isSmartRef__":true,"id":2213},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2232}},"2232":{"$super":{"__isSmartRef__":true,"id":2233}},"2233":{"varMapping":{"__isSmartRef__":true,"id":2234},"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":2235},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2234":{"obj":{"__isSmartRef__":true,"id":2213},"name":"onDragEnd"},"2235":{},"2236":{},"2237":{"varMapping":{"__isSmartRef__":true,"id":2238},"source":"function onDragStart(evt) {\n\tthis.dragStartPoint = evt.mousePoint;\n\tthis.originalTargetExtent = this.owner.getExtent();\n}","funcProperties":{"__isSmartRef__":true,"id":2243},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2238":{"this":{"__isSmartRef__":true,"id":2213},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2239}},"2239":{"$super":{"__isSmartRef__":true,"id":2240}},"2240":{"varMapping":{"__isSmartRef__":true,"id":2241},"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":2242},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2241":{"obj":{"__isSmartRef__":true,"id":2213},"name":"onDragStart"},"2242":{},"2243":{},"2244":{"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_Extent":{"__isSmartRef__":true,"id":2245},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2245":{"x":1040.080919080919,"y":456.00199800199795,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2246":{"adjustForNewBounds":true},"2247":{"x":1228.4189794738272,"y":227.10305717940957,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2248":{"x":1040.080919080919,"y":456.00199800199795,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2249":{"x":0,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2250":{"x":821,"y":101,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2251":{"requiredModules":["lively.ide.SyntaxHighlighting","lively.ide.SyntaxHighlighting","lively.ide.SyntaxHighlighting"],"partsSpaceName":"PartsBin/Tools/","migrationLevel":2,"__SourceModuleName__":"Global.lively.PartsBin","comment":"Early version. Requires improvement.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"2252":{"submorphs":[{"__isSmartRef__":true,"id":2253},{"__isSmartRef__":true,"id":2668}],"scripts":[],"id":226,"shape":{"__isSmartRef__":true,"id":2766},"droppingEnabled":true,"halosEnabled":true,"draggingEnabled":true,"layout":{"__isSmartRef__":true,"id":2768},"_Position":{"__isSmartRef__":true,"id":2769},"priorExtent":{"__isSmartRef__":true,"id":2770},"targetMorph":{"__isSmartRef__":true,"id":2253},"titleBar":{"__isSmartRef__":true,"id":2668},"contentOffset":{"__isSmartRef__":true,"id":2667},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":null,"expandedExtent":null,"ignoreEventsOnExpand":false,"highlighted":true,"_Rotation":0,"prevDragPos":{"__isSmartRef__":true,"id":2771},"showsHalos":false,"name":"VersionViewer","partsBinMetaInfo":{"__isSmartRef__":true,"id":2772},"__SourceModuleName__":"Global.lively.morphic.Widgets","owner":{"__isSmartRef__":true,"id":935},"_Scale":1,"__LivelyClassName__":"lively.morphic.Window"},"2253":{"submorphs":[{"__isSmartRef__":true,"id":2254},{"__isSmartRef__":true,"id":2268},{"__isSmartRef__":true,"id":2579},{"__isSmartRef__":true,"id":2615},{"__isSmartRef__":true,"id":2639}],"scripts":[],"id":227,"shape":{"__isSmartRef__":true,"id":2663},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":2666},"_Position":{"__isSmartRef__":true,"id":2667},"urlPane":{"__isSmartRef__":true,"id":2254},"versionList":{"__isSmartRef__":true,"id":2268},"revertButton":{"__isSmartRef__":true,"id":2579},"openButton":{"__isSmartRef__":true,"id":2615},"visitButton":{"__isSmartRef__":true,"id":2639},"ownerWidget":{"__isSmartRef__":true,"id":2264},"owner":{"__isSmartRef__":true,"id":2252},"ownerApp":{"__isSmartRef__":true,"id":2264},"__SourceModuleName__":"Global.lively.morphic.MorphAddons","__LivelyClassName__":"lively.morphic.Panel"},"2254":{"submorphs":[],"scripts":[],"id":228,"shape":{"__isSmartRef__":true,"id":2255},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":true,"_OverflowMode":"hidden","_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":2260},"_MaxTextWidth":null,"_MaxTextHeight":25,"textChunks":[{"__isSmartRef__":true,"id":2261}],"owner":{"__isSmartRef__":true,"id":2253},"isInputLine":true,"noEval":true,"attributeConnections":[{"__isSmartRef__":true,"id":2263}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"__SourceModuleName__":"Global.lively.morphic.TextCore","priorSelectionRange":[0,3],"showsHalos":false,"priorExtent":{"__isSmartRef__":true,"id":2266},"renderContextTable":{"__isSmartRef__":true,"id":2267},"savedTextString":"http://lively-kernel.org/repository/webwerkstatt/lauritz/objectEditor.xhtml","__LivelyClassName__":"lively.morphic.Text"},"2255":{"position":{"__isSmartRef__":true,"id":2256},"_Extent":{"__isSmartRef__":true,"id":2257},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2258},"_Fill":{"__isSmartRef__":true,"id":2259},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2256":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2257":{"x":496,"y":25,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2258":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2259":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2260":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2261":{"style":{"__isSmartRef__":true,"id":2262},"morph":{"__isSmartRef__":true,"id":2254},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2262":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2263":{"sourceObj":{"__isSmartRef__":true,"id":2254},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":2264},"targetMethodName":"setTarget","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2264":{"panel":{"__isSmartRef__":true,"id":2253},"view":{"__isSmartRef__":true,"id":2252},"__SourceModuleName__":"Global.lively.ide.VersionTools","url":{"__isSmartRef__":true,"id":2265},"__LivelyClassName__":"lively.ide.FileVersionViewer"},"2265":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2266":{"x":496,"y":25,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2267":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"2268":{"submorphs":[],"scripts":[],"id":229,"shape":{"__isSmartRef__":true,"id":2269},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2273},"itemList":[{"__isSmartRef__":true,"id":2274},{"__isSmartRef__":true,"id":2279},{"__isSmartRef__":true,"id":2284},{"__isSmartRef__":true,"id":2289},{"__isSmartRef__":true,"id":2294},{"__isSmartRef__":true,"id":2299},{"__isSmartRef__":true,"id":2304},{"__isSmartRef__":true,"id":2309},{"__isSmartRef__":true,"id":2314},{"__isSmartRef__":true,"id":2319},{"__isSmartRef__":true,"id":2324},{"__isSmartRef__":true,"id":2329},{"__isSmartRef__":true,"id":2334},{"__isSmartRef__":true,"id":2339},{"__isSmartRef__":true,"id":2344},{"__isSmartRef__":true,"id":2349},{"__isSmartRef__":true,"id":2354},{"__isSmartRef__":true,"id":2359},{"__isSmartRef__":true,"id":2364},{"__isSmartRef__":true,"id":2369},{"__isSmartRef__":true,"id":2374},{"__isSmartRef__":true,"id":2379},{"__isSmartRef__":true,"id":2384},{"__isSmartRef__":true,"id":2389},{"__isSmartRef__":true,"id":2394},{"__isSmartRef__":true,"id":2399},{"__isSmartRef__":true,"id":2404},{"__isSmartRef__":true,"id":2409},{"__isSmartRef__":true,"id":2414},{"__isSmartRef__":true,"id":2419},{"__isSmartRef__":true,"id":2424},{"__isSmartRef__":true,"id":2429},{"__isSmartRef__":true,"id":2434},{"__isSmartRef__":true,"id":2439},{"__isSmartRef__":true,"id":2444},{"__isSmartRef__":true,"id":2449},{"__isSmartRef__":true,"id":2454},{"__isSmartRef__":true,"id":2459},{"__isSmartRef__":true,"id":2464},{"__isSmartRef__":true,"id":2469},{"__isSmartRef__":true,"id":2474},{"__isSmartRef__":true,"id":2479},{"__isSmartRef__":true,"id":2484},{"__isSmartRef__":true,"id":2489},{"__isSmartRef__":true,"id":2494},{"__isSmartRef__":true,"id":2499},{"__isSmartRef__":true,"id":2504},{"__isSmartRef__":true,"id":2509},{"__isSmartRef__":true,"id":2514},{"__isSmartRef__":true,"id":2519},{"__isSmartRef__":true,"id":2524},{"__isSmartRef__":true,"id":2529},{"__isSmartRef__":true,"id":2534},{"__isSmartRef__":true,"id":2539},{"__isSmartRef__":true,"id":2544},{"__isSmartRef__":true,"id":2549},{"__isSmartRef__":true,"id":2554},{"__isSmartRef__":true,"id":2559},{"__isSmartRef__":true,"id":2564},{"__isSmartRef__":true,"id":2569},{"__isSmartRef__":true,"id":2574}],"selectedLineNo":33,"owner":{"__isSmartRef__":true,"id":2253},"dragEnabled":false,"__SourceModuleName__":"Global.lively.morphic.Core","prevScroll":[0,524],"selection":{"__isSmartRef__":true,"id":2440},"__LivelyClassName__":"lively.morphic.List"},"2269":{"position":{"__isSmartRef__":true,"id":2270},"_Extent":{"__isSmartRef__":true,"id":2271},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2258},"_Fill":{"__isSmartRef__":true,"id":2272},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2270":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2271":{"x":450,"y":200,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2272":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2273":{"x":0,"y":25,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2274":{"isListItem":true,"string":"lauritz, 17:48:02 GMT+0200 (CEST), Mon May 16 2011, Revision 72656","value":{"__isSmartRef__":true,"id":2275}},"2275":{"rev":72656,"author":"lauritz","date":{"__isSmartRef__":true,"id":2276},"url":{"__isSmartRef__":true,"id":2277},"changes":[{"__isSmartRef__":true,"id":2278}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2276":{},"2277":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2278":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2279":{"isListItem":true,"string":"lauritz, 17:44:53 GMT+0200 (CEST), Mon May 16 2011, Revision 72648","value":{"__isSmartRef__":true,"id":2280}},"2280":{"rev":72648,"author":"lauritz","date":{"__isSmartRef__":true,"id":2281},"url":{"__isSmartRef__":true,"id":2282},"changes":[{"__isSmartRef__":true,"id":2283}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2281":{},"2282":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2283":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2284":{"isListItem":true,"string":"lauritz, 17:44:15 GMT+0200 (CEST), Mon May 16 2011, Revision 72646","value":{"__isSmartRef__":true,"id":2285}},"2285":{"rev":72646,"author":"lauritz","date":{"__isSmartRef__":true,"id":2286},"url":{"__isSmartRef__":true,"id":2287},"changes":[{"__isSmartRef__":true,"id":2288}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2286":{},"2287":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2288":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2289":{"isListItem":true,"string":"lauritz, 17:36:19 GMT+0200 (CEST), Mon May 16 2011, Revision 72615","value":{"__isSmartRef__":true,"id":2290}},"2290":{"rev":72615,"author":"lauritz","date":{"__isSmartRef__":true,"id":2291},"url":{"__isSmartRef__":true,"id":2292},"changes":[{"__isSmartRef__":true,"id":2293}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2291":{},"2292":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2293":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2294":{"isListItem":true,"string":"lauritz, 17:33:51 GMT+0200 (CEST), Mon May 16 2011, Revision 72614","value":{"__isSmartRef__":true,"id":2295}},"2295":{"rev":72614,"author":"lauritz","date":{"__isSmartRef__":true,"id":2296},"url":{"__isSmartRef__":true,"id":2297},"changes":[{"__isSmartRef__":true,"id":2298}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2296":{},"2297":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2298":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2299":{"isListItem":true,"string":"lauritz, 17:31:01 GMT+0200 (CEST), Mon May 16 2011, Revision 72595","value":{"__isSmartRef__":true,"id":2300}},"2300":{"rev":72595,"author":"lauritz","date":{"__isSmartRef__":true,"id":2301},"url":{"__isSmartRef__":true,"id":2302},"changes":[{"__isSmartRef__":true,"id":2303}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2301":{},"2302":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2303":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2304":{"isListItem":true,"string":"lauritz, 17:24:37 GMT+0200 (CEST), Mon May 16 2011, Revision 72593","value":{"__isSmartRef__":true,"id":2305}},"2305":{"rev":72593,"author":"lauritz","date":{"__isSmartRef__":true,"id":2306},"url":{"__isSmartRef__":true,"id":2307},"changes":[{"__isSmartRef__":true,"id":2308}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2306":{},"2307":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2308":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2309":{"isListItem":true,"string":"lauritz, 17:18:39 GMT+0200 (CEST), Mon May 16 2011, Revision 72589","value":{"__isSmartRef__":true,"id":2310}},"2310":{"rev":72589,"author":"lauritz","date":{"__isSmartRef__":true,"id":2311},"url":{"__isSmartRef__":true,"id":2312},"changes":[{"__isSmartRef__":true,"id":2313}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2311":{},"2312":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2313":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2314":{"isListItem":true,"string":"robertkrahn, 15:06:30 GMT+0200 (CEST), Mon May 16 2011, Revision 72537","value":{"__isSmartRef__":true,"id":2315}},"2315":{"rev":72537,"author":"robertkrahn","date":{"__isSmartRef__":true,"id":2316},"url":{"__isSmartRef__":true,"id":2317},"changes":[{"__isSmartRef__":true,"id":2318}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2316":{},"2317":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2318":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2319":{"isListItem":true,"string":"lauritz, 16:10:24 GMT+0200 (CEST), Sun May 15 2011, Revision 72270","value":{"__isSmartRef__":true,"id":2320}},"2320":{"rev":72270,"author":"lauritz","date":{"__isSmartRef__":true,"id":2321},"url":{"__isSmartRef__":true,"id":2322},"changes":[{"__isSmartRef__":true,"id":2323}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2321":{},"2322":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2323":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2324":{"isListItem":true,"string":"lauritz, 16:09:27 GMT+0200 (CEST), Sun May 15 2011, Revision 72266","value":{"__isSmartRef__":true,"id":2325}},"2325":{"rev":72266,"author":"lauritz","date":{"__isSmartRef__":true,"id":2326},"url":{"__isSmartRef__":true,"id":2327},"changes":[{"__isSmartRef__":true,"id":2328}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2326":{},"2327":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2328":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2329":{"isListItem":true,"string":"lauritz, 16:01:37 GMT+0200 (CEST), Sun May 15 2011, Revision 72258","value":{"__isSmartRef__":true,"id":2330}},"2330":{"rev":72258,"author":"lauritz","date":{"__isSmartRef__":true,"id":2331},"url":{"__isSmartRef__":true,"id":2332},"changes":[{"__isSmartRef__":true,"id":2333}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2331":{},"2332":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2333":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2334":{"isListItem":true,"string":"lauritz, 14:45:06 GMT+0200 (CEST), Sun May 15 2011, Revision 72242","value":{"__isSmartRef__":true,"id":2335}},"2335":{"rev":72242,"author":"lauritz","date":{"__isSmartRef__":true,"id":2336},"url":{"__isSmartRef__":true,"id":2337},"changes":[{"__isSmartRef__":true,"id":2338}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2336":{},"2337":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2338":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2339":{"isListItem":true,"string":"lauritz, 14:43:11 GMT+0200 (CEST), Sun May 15 2011, Revision 72241","value":{"__isSmartRef__":true,"id":2340}},"2340":{"rev":72241,"author":"lauritz","date":{"__isSmartRef__":true,"id":2341},"url":{"__isSmartRef__":true,"id":2342},"changes":[{"__isSmartRef__":true,"id":2343}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2341":{},"2342":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2343":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2344":{"isListItem":true,"string":"lauritz, 14:27:17 GMT+0200 (CEST), Sun May 15 2011, Revision 72215","value":{"__isSmartRef__":true,"id":2345}},"2345":{"rev":72215,"author":"lauritz","date":{"__isSmartRef__":true,"id":2346},"url":{"__isSmartRef__":true,"id":2347},"changes":[{"__isSmartRef__":true,"id":2348}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2346":{},"2347":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2348":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2349":{"isListItem":true,"string":"lauritz, 14:24:04 GMT+0200 (CEST), Sun May 15 2011, Revision 72214","value":{"__isSmartRef__":true,"id":2350}},"2350":{"rev":72214,"author":"lauritz","date":{"__isSmartRef__":true,"id":2351},"url":{"__isSmartRef__":true,"id":2352},"changes":[{"__isSmartRef__":true,"id":2353}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2351":{},"2352":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2353":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2354":{"isListItem":true,"string":"lauritz, 14:14:57 GMT+0200 (CEST), Sun May 15 2011, Revision 72213","value":{"__isSmartRef__":true,"id":2355}},"2355":{"rev":72213,"author":"lauritz","date":{"__isSmartRef__":true,"id":2356},"url":{"__isSmartRef__":true,"id":2357},"changes":[{"__isSmartRef__":true,"id":2358}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2356":{},"2357":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2358":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2359":{"isListItem":true,"string":"lauritz, 14:14:40 GMT+0200 (CEST), Sun May 15 2011, Revision 72212","value":{"__isSmartRef__":true,"id":2360}},"2360":{"rev":72212,"author":"lauritz","date":{"__isSmartRef__":true,"id":2361},"url":{"__isSmartRef__":true,"id":2362},"changes":[{"__isSmartRef__":true,"id":2363}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2361":{},"2362":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2363":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2364":{"isListItem":true,"string":"lauritz, 14:08:11 GMT+0200 (CEST), Sun May 15 2011, Revision 72211","value":{"__isSmartRef__":true,"id":2365}},"2365":{"rev":72211,"author":"lauritz","date":{"__isSmartRef__":true,"id":2366},"url":{"__isSmartRef__":true,"id":2367},"changes":[{"__isSmartRef__":true,"id":2368}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2366":{},"2367":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2368":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2369":{"isListItem":true,"string":"lauritz, 13:49:10 GMT+0200 (CEST), Sun May 15 2011, Revision 72210","value":{"__isSmartRef__":true,"id":2370}},"2370":{"rev":72210,"author":"lauritz","date":{"__isSmartRef__":true,"id":2371},"url":{"__isSmartRef__":true,"id":2372},"changes":[{"__isSmartRef__":true,"id":2373}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2371":{},"2372":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2373":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2374":{"isListItem":true,"string":"lauritz, 13:48:21 GMT+0200 (CEST), Sun May 15 2011, Revision 72209","value":{"__isSmartRef__":true,"id":2375}},"2375":{"rev":72209,"author":"lauritz","date":{"__isSmartRef__":true,"id":2376},"url":{"__isSmartRef__":true,"id":2377},"changes":[{"__isSmartRef__":true,"id":2378}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2376":{},"2377":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2378":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2379":{"isListItem":true,"string":"lauritz, 13:47:49 GMT+0200 (CEST), Sun May 15 2011, Revision 72208","value":{"__isSmartRef__":true,"id":2380}},"2380":{"rev":72208,"author":"lauritz","date":{"__isSmartRef__":true,"id":2381},"url":{"__isSmartRef__":true,"id":2382},"changes":[{"__isSmartRef__":true,"id":2383}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2381":{},"2382":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2383":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2384":{"isListItem":true,"string":"lauritz, 13:31:10 GMT+0200 (CEST), Sun May 15 2011, Revision 72207","value":{"__isSmartRef__":true,"id":2385}},"2385":{"rev":72207,"author":"lauritz","date":{"__isSmartRef__":true,"id":2386},"url":{"__isSmartRef__":true,"id":2387},"changes":[{"__isSmartRef__":true,"id":2388}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2386":{},"2387":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2388":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2389":{"isListItem":true,"string":"lauritz, 13:30:50 GMT+0200 (CEST), Sun May 15 2011, Revision 72206","value":{"__isSmartRef__":true,"id":2390}},"2390":{"rev":72206,"author":"lauritz","date":{"__isSmartRef__":true,"id":2391},"url":{"__isSmartRef__":true,"id":2392},"changes":[{"__isSmartRef__":true,"id":2393}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2391":{},"2392":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2393":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2394":{"isListItem":true,"string":"lauritz, 13:18:59 GMT+0200 (CEST), Sun May 15 2011, Revision 72192","value":{"__isSmartRef__":true,"id":2395}},"2395":{"rev":72192,"author":"lauritz","date":{"__isSmartRef__":true,"id":2396},"url":{"__isSmartRef__":true,"id":2397},"changes":[{"__isSmartRef__":true,"id":2398}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2396":{},"2397":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2398":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2399":{"isListItem":true,"string":"lauritz, 13:17:33 GMT+0200 (CEST), Sun May 15 2011, Revision 72191","value":{"__isSmartRef__":true,"id":2400}},"2400":{"rev":72191,"author":"lauritz","date":{"__isSmartRef__":true,"id":2401},"url":{"__isSmartRef__":true,"id":2402},"changes":[{"__isSmartRef__":true,"id":2403}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2401":{},"2402":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2403":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2404":{"isListItem":true,"string":"lauritz, 13:13:28 GMT+0200 (CEST), Sun May 15 2011, Revision 72190","value":{"__isSmartRef__":true,"id":2405}},"2405":{"rev":72190,"author":"lauritz","date":{"__isSmartRef__":true,"id":2406},"url":{"__isSmartRef__":true,"id":2407},"changes":[{"__isSmartRef__":true,"id":2408}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2406":{},"2407":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2408":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2409":{"isListItem":true,"string":"lauritz, 12:55:19 GMT+0200 (CEST), Sun May 15 2011, Revision 72189","value":{"__isSmartRef__":true,"id":2410}},"2410":{"rev":72189,"author":"lauritz","date":{"__isSmartRef__":true,"id":2411},"url":{"__isSmartRef__":true,"id":2412},"changes":[{"__isSmartRef__":true,"id":2413}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2411":{},"2412":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2413":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2414":{"isListItem":true,"string":"lauritz, 12:54:29 GMT+0200 (CEST), Sun May 15 2011, Revision 72188","value":{"__isSmartRef__":true,"id":2415}},"2415":{"rev":72188,"author":"lauritz","date":{"__isSmartRef__":true,"id":2416},"url":{"__isSmartRef__":true,"id":2417},"changes":[{"__isSmartRef__":true,"id":2418}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2416":{},"2417":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2418":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2419":{"isListItem":true,"string":"lauritz, 12:45:03 GMT+0200 (CEST), Sun May 15 2011, Revision 72187","value":{"__isSmartRef__":true,"id":2420}},"2420":{"rev":72187,"author":"lauritz","date":{"__isSmartRef__":true,"id":2421},"url":{"__isSmartRef__":true,"id":2422},"changes":[{"__isSmartRef__":true,"id":2423}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2421":{},"2422":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2423":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2424":{"isListItem":true,"string":"lauritz, 12:41:33 GMT+0200 (CEST), Sun May 15 2011, Revision 72186","value":{"__isSmartRef__":true,"id":2425}},"2425":{"rev":72186,"author":"lauritz","date":{"__isSmartRef__":true,"id":2426},"url":{"__isSmartRef__":true,"id":2427},"changes":[{"__isSmartRef__":true,"id":2428}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2426":{},"2427":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2428":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2429":{"isListItem":true,"string":"lauritz, 12:38:06 GMT+0200 (CEST), Sun May 15 2011, Revision 72185","value":{"__isSmartRef__":true,"id":2430}},"2430":{"rev":72185,"author":"lauritz","date":{"__isSmartRef__":true,"id":2431},"url":{"__isSmartRef__":true,"id":2432},"changes":[{"__isSmartRef__":true,"id":2433}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2431":{},"2432":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2433":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2434":{"isListItem":true,"string":"lauritz, 12:35:05 GMT+0200 (CEST), Sun May 15 2011, Revision 72184","value":{"__isSmartRef__":true,"id":2435}},"2435":{"rev":72184,"author":"lauritz","date":{"__isSmartRef__":true,"id":2436},"url":{"__isSmartRef__":true,"id":2437},"changes":[{"__isSmartRef__":true,"id":2438}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2436":{},"2437":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2438":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2439":{"isListItem":true,"string":"lauritz, 12:30:16 GMT+0200 (CEST), Sun May 15 2011, Revision 72183","value":{"__isSmartRef__":true,"id":2440}},"2440":{"rev":72183,"author":"lauritz","date":{"__isSmartRef__":true,"id":2441},"url":{"__isSmartRef__":true,"id":2442},"changes":[{"__isSmartRef__":true,"id":2443}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2441":{},"2442":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2443":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2444":{"isListItem":true,"string":"lauritz, 12:20:21 GMT+0200 (CEST), Sun May 15 2011, Revision 72182","value":{"__isSmartRef__":true,"id":2445}},"2445":{"rev":72182,"author":"lauritz","date":{"__isSmartRef__":true,"id":2446},"url":{"__isSmartRef__":true,"id":2447},"changes":[{"__isSmartRef__":true,"id":2448}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2446":{},"2447":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2448":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2449":{"isListItem":true,"string":"lauritz, 12:17:27 GMT+0200 (CEST), Sun May 15 2011, Revision 72181","value":{"__isSmartRef__":true,"id":2450}},"2450":{"rev":72181,"author":"lauritz","date":{"__isSmartRef__":true,"id":2451},"url":{"__isSmartRef__":true,"id":2452},"changes":[{"__isSmartRef__":true,"id":2453}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2451":{},"2452":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2453":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2454":{"isListItem":true,"string":"lauritz, 12:01:22 GMT+0200 (CEST), Sun May 15 2011, Revision 72177","value":{"__isSmartRef__":true,"id":2455}},"2455":{"rev":72177,"author":"lauritz","date":{"__isSmartRef__":true,"id":2456},"url":{"__isSmartRef__":true,"id":2457},"changes":[{"__isSmartRef__":true,"id":2458}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2456":{},"2457":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2458":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2459":{"isListItem":true,"string":"lauritz, 11:56:17 GMT+0200 (CEST), Sun May 15 2011, Revision 72176","value":{"__isSmartRef__":true,"id":2460}},"2460":{"rev":72176,"author":"lauritz","date":{"__isSmartRef__":true,"id":2461},"url":{"__isSmartRef__":true,"id":2462},"changes":[{"__isSmartRef__":true,"id":2463}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2461":{},"2462":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2463":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2464":{"isListItem":true,"string":"lauritz, 11:53:11 GMT+0200 (CEST), Sun May 15 2011, Revision 72175","value":{"__isSmartRef__":true,"id":2465}},"2465":{"rev":72175,"author":"lauritz","date":{"__isSmartRef__":true,"id":2466},"url":{"__isSmartRef__":true,"id":2467},"changes":[{"__isSmartRef__":true,"id":2468}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2466":{},"2467":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2468":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2469":{"isListItem":true,"string":"lauritz, 11:37:44 GMT+0200 (CEST), Sun May 15 2011, Revision 72174","value":{"__isSmartRef__":true,"id":2470}},"2470":{"rev":72174,"author":"lauritz","date":{"__isSmartRef__":true,"id":2471},"url":{"__isSmartRef__":true,"id":2472},"changes":[{"__isSmartRef__":true,"id":2473}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2471":{},"2472":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2473":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2474":{"isListItem":true,"string":"lauritz, 10:53:07 GMT+0200 (CEST), Sun May 15 2011, Revision 72173","value":{"__isSmartRef__":true,"id":2475}},"2475":{"rev":72173,"author":"lauritz","date":{"__isSmartRef__":true,"id":2476},"url":{"__isSmartRef__":true,"id":2477},"changes":[{"__isSmartRef__":true,"id":2478}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2476":{},"2477":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2478":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2479":{"isListItem":true,"string":"lauritz, 10:49:12 GMT+0200 (CEST), Sun May 15 2011, Revision 72172","value":{"__isSmartRef__":true,"id":2480}},"2480":{"rev":72172,"author":"lauritz","date":{"__isSmartRef__":true,"id":2481},"url":{"__isSmartRef__":true,"id":2482},"changes":[{"__isSmartRef__":true,"id":2483}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2481":{},"2482":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2483":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2484":{"isListItem":true,"string":"lauritz, 10:40:04 GMT+0200 (CEST), Sun May 15 2011, Revision 72171","value":{"__isSmartRef__":true,"id":2485}},"2485":{"rev":72171,"author":"lauritz","date":{"__isSmartRef__":true,"id":2486},"url":{"__isSmartRef__":true,"id":2487},"changes":[{"__isSmartRef__":true,"id":2488}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2486":{},"2487":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2488":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2489":{"isListItem":true,"string":"lauritz, 10:33:36 GMT+0200 (CEST), Sun May 15 2011, Revision 72170","value":{"__isSmartRef__":true,"id":2490}},"2490":{"rev":72170,"author":"lauritz","date":{"__isSmartRef__":true,"id":2491},"url":{"__isSmartRef__":true,"id":2492},"changes":[{"__isSmartRef__":true,"id":2493}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2491":{},"2492":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2493":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2494":{"isListItem":true,"string":"lauritz, 00:34:25 GMT+0200 (CEST), Sat May 14 2011, Revision 72088","value":{"__isSmartRef__":true,"id":2495}},"2495":{"rev":72088,"author":"lauritz","date":{"__isSmartRef__":true,"id":2496},"url":{"__isSmartRef__":true,"id":2497},"changes":[{"__isSmartRef__":true,"id":2498}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2496":{},"2497":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2498":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2499":{"isListItem":true,"string":"lauritz, 00:32:55 GMT+0200 (CEST), Sat May 14 2011, Revision 72078","value":{"__isSmartRef__":true,"id":2500}},"2500":{"rev":72078,"author":"lauritz","date":{"__isSmartRef__":true,"id":2501},"url":{"__isSmartRef__":true,"id":2502},"changes":[{"__isSmartRef__":true,"id":2503}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2501":{},"2502":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2503":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2504":{"isListItem":true,"string":"lauritz, 00:32:07 GMT+0200 (CEST), Sat May 14 2011, Revision 72072","value":{"__isSmartRef__":true,"id":2505}},"2505":{"rev":72072,"author":"lauritz","date":{"__isSmartRef__":true,"id":2506},"url":{"__isSmartRef__":true,"id":2507},"changes":[{"__isSmartRef__":true,"id":2508}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2506":{},"2507":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2508":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2509":{"isListItem":true,"string":"lauritz, 00:17:36 GMT+0200 (CEST), Sat May 14 2011, Revision 72048","value":{"__isSmartRef__":true,"id":2510}},"2510":{"rev":72048,"author":"lauritz","date":{"__isSmartRef__":true,"id":2511},"url":{"__isSmartRef__":true,"id":2512},"changes":[{"__isSmartRef__":true,"id":2513}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2511":{},"2512":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2513":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2514":{"isListItem":true,"string":"lauritz, 19:03:23 GMT+0200 (CEST), Fri May 13 2011, Revision 71813","value":{"__isSmartRef__":true,"id":2515}},"2515":{"rev":71813,"author":"lauritz","date":{"__isSmartRef__":true,"id":2516},"url":{"__isSmartRef__":true,"id":2517},"changes":[{"__isSmartRef__":true,"id":2518}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2516":{},"2517":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2518":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2519":{"isListItem":true,"string":"lauritz, 19:02:12 GMT+0200 (CEST), Fri May 13 2011, Revision 71812","value":{"__isSmartRef__":true,"id":2520}},"2520":{"rev":71812,"author":"lauritz","date":{"__isSmartRef__":true,"id":2521},"url":{"__isSmartRef__":true,"id":2522},"changes":[{"__isSmartRef__":true,"id":2523}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2521":{},"2522":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2523":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2524":{"isListItem":true,"string":"lauritz, 18:59:56 GMT+0200 (CEST), Fri May 13 2011, Revision 71811","value":{"__isSmartRef__":true,"id":2525}},"2525":{"rev":71811,"author":"lauritz","date":{"__isSmartRef__":true,"id":2526},"url":{"__isSmartRef__":true,"id":2527},"changes":[{"__isSmartRef__":true,"id":2528}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2526":{},"2527":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2528":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2529":{"isListItem":true,"string":"lauritz, 18:55:57 GMT+0200 (CEST), Fri May 13 2011, Revision 71810","value":{"__isSmartRef__":true,"id":2530}},"2530":{"rev":71810,"author":"lauritz","date":{"__isSmartRef__":true,"id":2531},"url":{"__isSmartRef__":true,"id":2532},"changes":[{"__isSmartRef__":true,"id":2533}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2531":{},"2532":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2533":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2534":{"isListItem":true,"string":"lauritz, 18:47:55 GMT+0200 (CEST), Fri May 13 2011, Revision 71809","value":{"__isSmartRef__":true,"id":2535}},"2535":{"rev":71809,"author":"lauritz","date":{"__isSmartRef__":true,"id":2536},"url":{"__isSmartRef__":true,"id":2537},"changes":[{"__isSmartRef__":true,"id":2538}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2536":{},"2537":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2538":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2539":{"isListItem":true,"string":"lauritz, 18:47:14 GMT+0200 (CEST), Fri May 13 2011, Revision 71808","value":{"__isSmartRef__":true,"id":2540}},"2540":{"rev":71808,"author":"lauritz","date":{"__isSmartRef__":true,"id":2541},"url":{"__isSmartRef__":true,"id":2542},"changes":[{"__isSmartRef__":true,"id":2543}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2541":{},"2542":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2543":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2544":{"isListItem":true,"string":"lauritz, 18:38:09 GMT+0200 (CEST), Fri May 13 2011, Revision 71807","value":{"__isSmartRef__":true,"id":2545}},"2545":{"rev":71807,"author":"lauritz","date":{"__isSmartRef__":true,"id":2546},"url":{"__isSmartRef__":true,"id":2547},"changes":[{"__isSmartRef__":true,"id":2548}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2546":{},"2547":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2548":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2549":{"isListItem":true,"string":"lauritz, 18:32:26 GMT+0200 (CEST), Fri May 13 2011, Revision 71806","value":{"__isSmartRef__":true,"id":2550}},"2550":{"rev":71806,"author":"lauritz","date":{"__isSmartRef__":true,"id":2551},"url":{"__isSmartRef__":true,"id":2552},"changes":[{"__isSmartRef__":true,"id":2553}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2551":{},"2552":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2553":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2554":{"isListItem":true,"string":"lauritz, 18:23:35 GMT+0200 (CEST), Fri May 13 2011, Revision 71804","value":{"__isSmartRef__":true,"id":2555}},"2555":{"rev":71804,"author":"lauritz","date":{"__isSmartRef__":true,"id":2556},"url":{"__isSmartRef__":true,"id":2557},"changes":[{"__isSmartRef__":true,"id":2558}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2556":{},"2557":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2558":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2559":{"isListItem":true,"string":"lauritz, 18:09:05 GMT+0200 (CEST), Fri May 13 2011, Revision 71802","value":{"__isSmartRef__":true,"id":2560}},"2560":{"rev":71802,"author":"lauritz","date":{"__isSmartRef__":true,"id":2561},"url":{"__isSmartRef__":true,"id":2562},"changes":[{"__isSmartRef__":true,"id":2563}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2561":{},"2562":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2563":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2564":{"isListItem":true,"string":"lauritz, 18:08:34 GMT+0200 (CEST), Fri May 13 2011, Revision 71801","value":{"__isSmartRef__":true,"id":2565}},"2565":{"rev":71801,"author":"lauritz","date":{"__isSmartRef__":true,"id":2566},"url":{"__isSmartRef__":true,"id":2567},"changes":[{"__isSmartRef__":true,"id":2568}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2566":{},"2567":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2568":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2569":{"isListItem":true,"string":"lauritz, 18:00:10 GMT+0200 (CEST), Fri May 13 2011, Revision 71787","value":{"__isSmartRef__":true,"id":2570}},"2570":{"rev":71787,"author":"lauritz","date":{"__isSmartRef__":true,"id":2571},"url":{"__isSmartRef__":true,"id":2572},"changes":[{"__isSmartRef__":true,"id":2573}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2571":{},"2572":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2573":{"type":"S:modified","url":"/lauritz/objectEditor.xhtml"},"2574":{"isListItem":true,"string":"lauritz, 17:47:57 GMT+0200 (CEST), Fri May 13 2011, Revision 71776","value":{"__isSmartRef__":true,"id":2575}},"2575":{"rev":71776,"author":"lauritz","date":{"__isSmartRef__":true,"id":2576},"url":{"__isSmartRef__":true,"id":2577},"changes":[{"__isSmartRef__":true,"id":2578}],"__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"SVNVersionInfo"},"2576":{},"2577":{"protocol":"http:","hostname":"lively-kernel.org","pathname":"/repository/webwerkstatt/lauritz/objectEditor.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"2578":{"type":"S:added","url":null},"2579":{"submorphs":[{"__isSmartRef__":true,"id":2580}],"scripts":[],"id":230,"shape":{"__isSmartRef__":true,"id":2590},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2604},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":2594},"lighterFill":{"__isSmartRef__":true,"id":2605},"label":{"__isSmartRef__":true,"id":2580},"owner":{"__isSmartRef__":true,"id":2253},"attributeConnections":[{"__isSmartRef__":true,"id":2614}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.Button"},"2580":{"submorphs":[],"scripts":[],"id":231,"shape":{"__isSmartRef__":true,"id":2581},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_OverflowMode":"hidden","_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":2584},"_MaxTextWidth":null,"_MaxTextHeight":25,"textChunks":[{"__isSmartRef__":true,"id":2585}],"_Padding":{"__isSmartRef__":true,"id":2587},"owner":{"__isSmartRef__":true,"id":2579},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","priorExtent":{"__isSmartRef__":true,"id":2588},"renderContextTable":{"__isSmartRef__":true,"id":2589},"__LivelyClassName__":"lively.morphic.Text"},"2581":{"position":{"__isSmartRef__":true,"id":2582},"_Extent":{"__isSmartRef__":true,"id":2583},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2258},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2582":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2583":{"x":148.5,"y":25,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2584":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2585":{"style":{"__isSmartRef__":true,"id":2586},"morph":{"__isSmartRef__":true,"id":2580},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2586":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2587":{"x":4,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"2588":{"x":148.5,"y":25,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2589":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"2590":{"position":{"__isSmartRef__":true,"id":2591},"_Extent":{"__isSmartRef__":true,"id":2592},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2593},"_Fill":{"__isSmartRef__":true,"id":2594},"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2591":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2592":{"x":148.5,"y":25,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2593":{"r":0.8392156862745098,"g":0.8392156862745098,"b":0.8392156862745098,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2594":{"stops":[{"__isSmartRef__":true,"id":2595},{"__isSmartRef__":true,"id":2597},{"__isSmartRef__":true,"id":2599},{"__isSmartRef__":true,"id":2601}],"vector":{"__isSmartRef__":true,"id":2603},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"2595":{"offset":0,"color":{"__isSmartRef__":true,"id":2596}},"2596":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2597":{"offset":0.4,"color":{"__isSmartRef__":true,"id":2598}},"2598":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2599":{"offset":0.6,"color":{"__isSmartRef__":true,"id":2600}},"2600":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2601":{"offset":1,"color":{"__isSmartRef__":true,"id":2602}},"2602":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2603":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"2604":{"x":0,"y":225,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2605":{"stops":[{"__isSmartRef__":true,"id":2606},{"__isSmartRef__":true,"id":2608},{"__isSmartRef__":true,"id":2610},{"__isSmartRef__":true,"id":2612}],"vector":{"__isSmartRef__":true,"id":2603},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"2606":{"offset":0,"color":{"__isSmartRef__":true,"id":2607}},"2607":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2608":{"offset":0.4,"color":{"__isSmartRef__":true,"id":2609}},"2609":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2610":{"offset":0.6,"color":{"__isSmartRef__":true,"id":2611}},"2611":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2612":{"offset":1,"color":{"__isSmartRef__":true,"id":2613}},"2613":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2614":{"sourceObj":{"__isSmartRef__":true,"id":2579},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":2264},"targetMethodName":"revert","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2615":{"submorphs":[{"__isSmartRef__":true,"id":2616}],"scripts":[],"id":232,"shape":{"__isSmartRef__":true,"id":2625},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2628},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":2594},"lighterFill":{"__isSmartRef__":true,"id":2629},"label":{"__isSmartRef__":true,"id":2616},"owner":{"__isSmartRef__":true,"id":2253},"attributeConnections":[{"__isSmartRef__":true,"id":2638}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.Button"},"2616":{"submorphs":[],"scripts":[],"id":233,"shape":{"__isSmartRef__":true,"id":2617},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_OverflowMode":"hidden","_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":2620},"_MaxTextWidth":null,"_MaxTextHeight":25,"textChunks":[{"__isSmartRef__":true,"id":2621}],"_Padding":{"__isSmartRef__":true,"id":2587},"owner":{"__isSmartRef__":true,"id":2615},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","priorExtent":{"__isSmartRef__":true,"id":2623},"renderContextTable":{"__isSmartRef__":true,"id":2624},"__LivelyClassName__":"lively.morphic.Text"},"2617":{"position":{"__isSmartRef__":true,"id":2618},"_Extent":{"__isSmartRef__":true,"id":2619},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2258},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2618":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2619":{"x":148.5,"y":25,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2620":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2621":{"style":{"__isSmartRef__":true,"id":2622},"morph":{"__isSmartRef__":true,"id":2616},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2622":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2623":{"x":148.5,"y":25,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2624":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"2625":{"position":{"__isSmartRef__":true,"id":2626},"_Extent":{"__isSmartRef__":true,"id":2627},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2593},"_Fill":{"__isSmartRef__":true,"id":2594},"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2626":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2627":{"x":148.5,"y":25,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2628":{"x":148.5,"y":225,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2629":{"stops":[{"__isSmartRef__":true,"id":2630},{"__isSmartRef__":true,"id":2632},{"__isSmartRef__":true,"id":2634},{"__isSmartRef__":true,"id":2636}],"vector":{"__isSmartRef__":true,"id":2603},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"2630":{"offset":0,"color":{"__isSmartRef__":true,"id":2631}},"2631":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2632":{"offset":0.4,"color":{"__isSmartRef__":true,"id":2633}},"2633":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2634":{"offset":0.6,"color":{"__isSmartRef__":true,"id":2635}},"2635":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2636":{"offset":1,"color":{"__isSmartRef__":true,"id":2637}},"2637":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2638":{"sourceObj":{"__isSmartRef__":true,"id":2615},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":2264},"targetMethodName":"showVersion","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2639":{"submorphs":[{"__isSmartRef__":true,"id":2640}],"scripts":[],"id":234,"shape":{"__isSmartRef__":true,"id":2649},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2652},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":2594},"lighterFill":{"__isSmartRef__":true,"id":2653},"label":{"__isSmartRef__":true,"id":2640},"owner":{"__isSmartRef__":true,"id":2253},"attributeConnections":[{"__isSmartRef__":true,"id":2662}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.Button"},"2640":{"submorphs":[],"scripts":[],"id":235,"shape":{"__isSmartRef__":true,"id":2641},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_OverflowMode":"hidden","_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":2644},"_MaxTextWidth":null,"_MaxTextHeight":25,"textChunks":[{"__isSmartRef__":true,"id":2645}],"_Padding":{"__isSmartRef__":true,"id":2587},"owner":{"__isSmartRef__":true,"id":2639},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","priorExtent":{"__isSmartRef__":true,"id":2647},"renderContextTable":{"__isSmartRef__":true,"id":2648},"__LivelyClassName__":"lively.morphic.Text"},"2641":{"position":{"__isSmartRef__":true,"id":2642},"_Extent":{"__isSmartRef__":true,"id":2643},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2258},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2642":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2643":{"x":153,"y":25,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2644":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2645":{"style":{"__isSmartRef__":true,"id":2646},"morph":{"__isSmartRef__":true,"id":2640},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2646":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2647":{"x":153,"y":25,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2648":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"2649":{"position":{"__isSmartRef__":true,"id":2650},"_Extent":{"__isSmartRef__":true,"id":2651},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2593},"_Fill":{"__isSmartRef__":true,"id":2594},"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2650":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2651":{"x":153,"y":25,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2652":{"x":297,"y":225,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2653":{"stops":[{"__isSmartRef__":true,"id":2654},{"__isSmartRef__":true,"id":2656},{"__isSmartRef__":true,"id":2658},{"__isSmartRef__":true,"id":2660}],"vector":{"__isSmartRef__":true,"id":2603},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"2654":{"offset":0,"color":{"__isSmartRef__":true,"id":2655}},"2655":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2656":{"offset":0.4,"color":{"__isSmartRef__":true,"id":2657}},"2657":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2658":{"offset":0.6,"color":{"__isSmartRef__":true,"id":2659}},"2659":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2660":{"offset":1,"color":{"__isSmartRef__":true,"id":2661}},"2661":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2662":{"sourceObj":{"__isSmartRef__":true,"id":2639},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":2264},"targetMethodName":"visitVersion","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2663":{"position":{"__isSmartRef__":true,"id":2664},"_Extent":{"__isSmartRef__":true,"id":2665},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2664":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2665":{"x":450,"y":250,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2666":{"adjustForNewBounds":true},"2667":{"x":0,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2668":{"submorphs":[{"__isSmartRef__":true,"id":2669},{"__isSmartRef__":true,"id":2679},{"__isSmartRef__":true,"id":2706},{"__isSmartRef__":true,"id":2732}],"scripts":[],"id":236,"shape":{"__isSmartRef__":true,"id":2759},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":2763},"_Position":{"__isSmartRef__":true,"id":2764},"eventsAreIgnored":true,"windowMorph":{"__isSmartRef__":true,"id":2252},"label":{"__isSmartRef__":true,"id":2669},"closeButton":{"__isSmartRef__":true,"id":2679},"menuButton":{"__isSmartRef__":true,"id":2706},"collapseButton":{"__isSmartRef__":true,"id":2732},"priorExtent":{"__isSmartRef__":true,"id":2765},"owner":{"__isSmartRef__":true,"id":2252},"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.TitleBar"},"2669":{"submorphs":[],"scripts":[],"id":237,"shape":{"__isSmartRef__":true,"id":2670},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_OverflowMode":"hidden","_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":2673},"_MaxTextWidth":null,"_MaxTextHeight":22,"textChunks":[{"__isSmartRef__":true,"id":2674}],"isLabel":true,"eventsAreIgnored":true,"_Padding":{"__isSmartRef__":true,"id":2676},"_FontSize":10,"owner":{"__isSmartRef__":true,"id":2668},"__SourceModuleName__":"Global.lively.morphic.TextCore","priorExtent":{"__isSmartRef__":true,"id":2677},"renderContextTable":{"__isSmartRef__":true,"id":2678},"__LivelyClassName__":"lively.morphic.Text"},"2670":{"position":{"__isSmartRef__":true,"id":2671},"_Extent":{"__isSmartRef__":true,"id":2672},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2258},"_Fill":null,"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2671":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2672":{"x":48,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2673":{"x":201,"y":2,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2674":{"style":{"__isSmartRef__":true,"id":2675},"morph":{"__isSmartRef__":true,"id":2669},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2675":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2676":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"2677":{"x":48,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2678":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"2679":{"submorphs":[{"__isSmartRef__":true,"id":2680}],"scripts":[],"id":238,"shape":{"__isSmartRef__":true,"id":2690},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2693},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":2594},"lighterFill":{"__isSmartRef__":true,"id":2694},"label":{"__isSmartRef__":true,"id":2680},"owner":{"__isSmartRef__":true,"id":2668},"layout":{"__isSmartRef__":true,"id":2703},"attributeConnections":[{"__isSmartRef__":true,"id":2704},{"__isSmartRef__":true,"id":2705}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"2680":{"submorphs":[],"scripts":[],"id":239,"shape":{"__isSmartRef__":true,"id":2681},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_OverflowMode":"hidden","_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":2684},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":2685}],"_Padding":{"__isSmartRef__":true,"id":2687},"owner":{"__isSmartRef__":true,"id":2679},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","priorExtent":{"__isSmartRef__":true,"id":2688},"renderContextTable":{"__isSmartRef__":true,"id":2689},"__LivelyClassName__":"lively.morphic.Text"},"2681":{"position":{"__isSmartRef__":true,"id":2682},"_Extent":{"__isSmartRef__":true,"id":2683},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2258},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2682":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2683":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2684":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2685":{"style":{"__isSmartRef__":true,"id":2686},"morph":{"__isSmartRef__":true,"id":2680},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2686":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2687":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"2688":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2689":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"2690":{"position":{"__isSmartRef__":true,"id":2691},"_Extent":{"__isSmartRef__":true,"id":2692},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2593},"_Fill":{"__isSmartRef__":true,"id":2594},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2691":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2692":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2693":{"x":430,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2694":{"stops":[{"__isSmartRef__":true,"id":2695},{"__isSmartRef__":true,"id":2697},{"__isSmartRef__":true,"id":2699},{"__isSmartRef__":true,"id":2701}],"vector":{"__isSmartRef__":true,"id":2603},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"2695":{"offset":0,"color":{"__isSmartRef__":true,"id":2696}},"2696":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2697":{"offset":0.4,"color":{"__isSmartRef__":true,"id":2698}},"2698":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2699":{"offset":0.6,"color":{"__isSmartRef__":true,"id":2700}},"2700":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2701":{"offset":1,"color":{"__isSmartRef__":true,"id":2702}},"2702":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2703":{"moveHorizontal":true},"2704":{"sourceObj":{"__isSmartRef__":true,"id":2679},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":2252},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2705":{"sourceObj":{"__isSmartRef__":true,"id":2679},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":2252},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2706":{"submorphs":[{"__isSmartRef__":true,"id":2707}],"scripts":[],"id":240,"shape":{"__isSmartRef__":true,"id":2717},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2720},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":2594},"lighterFill":{"__isSmartRef__":true,"id":2721},"label":{"__isSmartRef__":true,"id":2707},"owner":{"__isSmartRef__":true,"id":2668},"attributeConnections":[{"__isSmartRef__":true,"id":2730},{"__isSmartRef__":true,"id":2731}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"2707":{"submorphs":[],"scripts":[],"id":241,"shape":{"__isSmartRef__":true,"id":2708},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_OverflowMode":"hidden","_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":2711},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":2712}],"_Padding":{"__isSmartRef__":true,"id":2714},"owner":{"__isSmartRef__":true,"id":2706},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","priorExtent":{"__isSmartRef__":true,"id":2715},"renderContextTable":{"__isSmartRef__":true,"id":2716},"__LivelyClassName__":"lively.morphic.Text"},"2708":{"position":{"__isSmartRef__":true,"id":2709},"_Extent":{"__isSmartRef__":true,"id":2710},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2258},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2709":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2710":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2711":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2712":{"style":{"__isSmartRef__":true,"id":2713},"morph":{"__isSmartRef__":true,"id":2707},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2713":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2714":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"2715":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2716":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"2717":{"position":{"__isSmartRef__":true,"id":2718},"_Extent":{"__isSmartRef__":true,"id":2719},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2593},"_Fill":{"__isSmartRef__":true,"id":2594},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2718":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2719":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2720":{"x":3,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2721":{"stops":[{"__isSmartRef__":true,"id":2722},{"__isSmartRef__":true,"id":2724},{"__isSmartRef__":true,"id":2726},{"__isSmartRef__":true,"id":2728}],"vector":{"__isSmartRef__":true,"id":2603},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"2722":{"offset":0,"color":{"__isSmartRef__":true,"id":2723}},"2723":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2724":{"offset":0.4,"color":{"__isSmartRef__":true,"id":2725}},"2725":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2726":{"offset":0.6,"color":{"__isSmartRef__":true,"id":2727}},"2727":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2728":{"offset":1,"color":{"__isSmartRef__":true,"id":2729}},"2729":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2730":{"sourceObj":{"__isSmartRef__":true,"id":2706},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":2252},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2731":{"sourceObj":{"__isSmartRef__":true,"id":2706},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":2252},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2732":{"submorphs":[{"__isSmartRef__":true,"id":2733}],"scripts":[],"id":242,"shape":{"__isSmartRef__":true,"id":2743},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":2746},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":2594},"lighterFill":{"__isSmartRef__":true,"id":2747},"label":{"__isSmartRef__":true,"id":2733},"owner":{"__isSmartRef__":true,"id":2668},"layout":{"__isSmartRef__":true,"id":2756},"attributeConnections":[{"__isSmartRef__":true,"id":2757},{"__isSmartRef__":true,"id":2758}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"2733":{"submorphs":[],"scripts":[],"id":243,"shape":{"__isSmartRef__":true,"id":2734},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_OverflowMode":"hidden","_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":2737},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":2738}],"_Padding":{"__isSmartRef__":true,"id":2740},"owner":{"__isSmartRef__":true,"id":2732},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","priorExtent":{"__isSmartRef__":true,"id":2741},"renderContextTable":{"__isSmartRef__":true,"id":2742},"__LivelyClassName__":"lively.morphic.Text"},"2734":{"position":{"__isSmartRef__":true,"id":2735},"_Extent":{"__isSmartRef__":true,"id":2736},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2258},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2735":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2736":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2737":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2738":{"style":{"__isSmartRef__":true,"id":2739},"morph":{"__isSmartRef__":true,"id":2733},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2739":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2740":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"2741":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2742":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"2743":{"position":{"__isSmartRef__":true,"id":2744},"_Extent":{"__isSmartRef__":true,"id":2745},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2593},"_Fill":{"__isSmartRef__":true,"id":2594},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2744":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2745":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2746":{"x":411,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2747":{"stops":[{"__isSmartRef__":true,"id":2748},{"__isSmartRef__":true,"id":2750},{"__isSmartRef__":true,"id":2752},{"__isSmartRef__":true,"id":2754}],"vector":{"__isSmartRef__":true,"id":2603},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"2748":{"offset":0,"color":{"__isSmartRef__":true,"id":2749}},"2749":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2750":{"offset":0.4,"color":{"__isSmartRef__":true,"id":2751}},"2751":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2752":{"offset":0.6,"color":{"__isSmartRef__":true,"id":2753}},"2753":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2754":{"offset":1,"color":{"__isSmartRef__":true,"id":2755}},"2755":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2756":{"moveHorizontal":true},"2757":{"sourceObj":{"__isSmartRef__":true,"id":2732},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":2252},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2758":{"sourceObj":{"__isSmartRef__":true,"id":2732},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":2252},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2759":{"position":{"__isSmartRef__":true,"id":2760},"_Extent":{"__isSmartRef__":true,"id":2761},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":2762},"_Fill":{"__isSmartRef__":true,"id":1950},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2760":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2761":{"x":450,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2762":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2763":{"resizeWidth":true,"adjustForNewBounds":true},"2764":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2765":{"x":450,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2766":{"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_Extent":{"__isSmartRef__":true,"id":2767},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2767":{"x":450,"y":272,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2768":{"adjustForNewBounds":true},"2769":{"x":328,"y":910,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2770":{"x":450,"y":272,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2771":{"x":482,"y":63,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2772":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":1,"__SourceModuleName__":"Global.lively.PartsBin","comment":"Shows versions of a file.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"2773":{"submorphs":[{"__isSmartRef__":true,"id":2774},{"__isSmartRef__":true,"id":2787}],"scripts":[],"id":494,"shape":{"__isSmartRef__":true,"id":2899},"droppingEnabled":true,"halosEnabled":true,"draggingEnabled":true,"layout":{"__isSmartRef__":true,"id":2901},"_Position":{"__isSmartRef__":true,"id":2902},"priorExtent":{"__isSmartRef__":true,"id":2903},"targetMorph":{"__isSmartRef__":true,"id":2774},"titleBar":{"__isSmartRef__":true,"id":2787},"contentOffset":{"__isSmartRef__":true,"id":2781},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":null,"expandedExtent":null,"ignoreEventsOnExpand":false,"owner":{"__isSmartRef__":true,"id":935},"highlighted":true,"_Rotation":0,"_Scale":1,"prevDragPos":{"__isSmartRef__":true,"id":2904},"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.Window"},"2774":{"submorphs":[],"scripts":[],"id":493,"shape":{"__isSmartRef__":true,"id":2775},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":2780},"_ClipMode":"auto","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":2781},"priorExtent":{"__isSmartRef__":true,"id":2782},"_MaxTextWidth":500,"_MaxTextHeight":200,"textChunks":[{"__isSmartRef__":true,"id":2783}],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":2773},"layout":{"__isSmartRef__":true,"id":2785},"doitContext":{"__isSmartRef__":true,"id":591},"priorSelectionRange":[12,12],"showsHalos":false,"charsReplaced":"submorphs:\t,\ntitleBar:\t\ncontentOffset:\tpt(0.0,22.0)\ncollapsedTransform:\tnull\ncollapsedExtent:\tnull\nexpandedTransform:\ttranslate(377.66px,419.51px)\nexpandedExtent:\tpt(861.5,575.2)\nhighlighted:\ttrue\n_Rotation:\t0\n_Scale:\t1\nprevDragPos:\tpt(450.0,214.0)\nshowsHalos:\tfalse\nname:\tObjectEditor\n__SourceModuleName__:\tGlobal.lively.morphic.Widgets\ntarget:\tnull\nexpandedPosition:\tpt(377.7,419.5)\npartsBinMetaInfo:\t[object Object]\nscriptList:\t\nscriptPane:\t\nclassButton:\t\nconnectionList:\t\ntargetButton:\t\nowner:\t\n_renderContext:\talively.morphic.HTML.RenderContext\neventHandler:\t\nhalos:\t,, 0) this.scriptList.selectAt(0);\n}","funcProperties":{"__isSmartRef__":true,"id":3088},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3087":{"this":{"__isSmartRef__":true,"id":591}},"3088":{},"3089":{"varMapping":{"__isSmartRef__":true,"id":3090},"source":"function reset() {\n this.target = null;\n this.setTitle(\"ObjectEditor - no target morph chosen\");\n this.scriptPane.doitContext = null;\n this.scriptList.setList([]);\n this.connectionList.setList([]);\n this.scriptPane.setTextString(\"\");\n this.get('morphSelection').setTextString('');\n}","funcProperties":{"__isSmartRef__":true,"id":3091},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3090":{"this":{"__isSmartRef__":true,"id":591}},"3091":{},"3092":{"varMapping":{"__isSmartRef__":true,"id":3093},"source":"function generateSourceForScript(scriptName) {\n var script = this.target[scriptName].getOriginal();\n return Strings.format('this.addScript(%s);' ,script)\n}","funcProperties":{"__isSmartRef__":true,"id":3094},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3093":{"this":{"__isSmartRef__":true,"id":591}},"3094":{},"3095":{"varMapping":{"__isSmartRef__":true,"id":3096},"source":"function generateSourceForConnection(connection) {\n var c = connection;\n var targetObject = this.target;\n\tif (!c.getTargetObj() || !c.getTargetObj().name || \n\t\t!c.getSourceObj() || !c.getSourceObj().name) return String(c);\n\n\tvar optConfig = []\n\tif (c.converterString)\n\t\toptConfig.push(\"converter: \\n\\t\" + c.converterString)\n\tif (c.updaterString)\n\t\toptConfig.push(\"updater: \\n\\t\" + c.updaterString)\n\treturn Strings.format('connect(%s, \"%s\", %s, \"%s\", {%s});', \n\t\t\tthis.generateTargetCode(targetObject, c.getSourceObj()),\n\t\t\tc.getSourceAttrName(),\n\t\t\tthis.generateTargetCode(targetObject, c.getTargetObj()),\n\t\t\tc.getTargetMethodName(),\n\t\t\toptConfig.join(','));\n\n}","funcProperties":{"__isSmartRef__":true,"id":3097},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3096":{"this":{"__isSmartRef__":true,"id":591}},"3097":{},"3098":{"varMapping":{"__isSmartRef__":true,"id":3099},"source":"function generateTargetCode(baseObject, targetObject) {\n\tvar name = targetObject.name;\n\tif (baseObject === targetObject) \n\t\treturn \"this\"\n\telse if (baseObject[name] === targetObject) \n\t\treturn \"this.\" + name\n\telse if (baseObject.testObject === targetObject) \n\t\treturn \"this.testObject\"\n\telse if (baseObject.get(name) === targetObject) \n\t\treturn 'this.get(\"' + name + '\")'\n\telse if (targetObject instanceof Morph) \n\t\treturn'$morph(\"' + name + '\")'\n\telse \n\t\treturn \"????\"\n}","funcProperties":{"__isSmartRef__":true,"id":3100},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3099":{"this":{"__isSmartRef__":true,"id":591}},"3100":{},"3101":{"varMapping":{"__isSmartRef__":true,"id":3102},"source":"function sortedConnectionNamesOfObj(obj) {\n if (!obj.attributeConnections) {return []};\n return obj.attributeConnections\n .sortBy(function(each) {return name.toLowerCase() })\n .collect(function(each) {return [each.getSourceAttrName(), each]});\n}","funcProperties":{"__isSmartRef__":true,"id":3103},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3102":{"this":{"__isSmartRef__":true,"id":591}},"3103":{},"3104":{"varMapping":{"__isSmartRef__":true,"id":3105},"source":"function displayJavaScriptSource(jsCode) {\n this.scriptPane.setTextString(jsCode);\n this.scriptPane.highlightJavaScriptSyntax();\n}","funcProperties":{"__isSmartRef__":true,"id":3106},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3105":{"this":{"__isSmartRef__":true,"id":591}},"3106":{},"3107":{"varMapping":{"__isSmartRef__":true,"id":3108},"source":"function displaySourceForScript(scriptName) {\n var code = \"\";\n if (scriptName) {\n var code = this.generateSourceForScript(scriptName);\n } \n this.displayJavaScriptSource(code);\n}","funcProperties":{"__isSmartRef__":true,"id":3109},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3108":{"this":{"__isSmartRef__":true,"id":591}},"3109":{},"3110":{"varMapping":{"__isSmartRef__":true,"id":3111},"source":"function displaySourceForConnection(connection) {\n var code = \"\";\n if (connection) {\n var code = this.generateSourceForConnection(connection);\n }\n this.displayJavaScriptSource(code);\n}","funcProperties":{"__isSmartRef__":true,"id":3112},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3111":{"this":{"__isSmartRef__":true,"id":591}},"3112":{},"3113":{"varMapping":{"__isSmartRef__":true,"id":3114},"source":"function setupConnections() {\n connect(this.get('morphSelection'), 'selection', this, 'setTarget');\n}","funcProperties":{"__isSmartRef__":true,"id":3115},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3114":{"this":{"__isSmartRef__":true,"id":591}},"3115":{},"3116":{"submorphs":[],"scripts":[],"id":226,"shape":{"__isSmartRef__":true,"id":3117},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":false,"registeredForMouseEvents":true,"_world":{"__isSmartRef__":true,"id":382},"_Position":{"__isSmartRef__":true,"id":3122},"owner":{"__isSmartRef__":true,"id":382},"__SourceModuleName__":"Global.lively.morphic.Events","carriesGrabbedMorphs":false,"_Rotation":0,"_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":3123},"__LivelyClassName__":"lively.morphic.HandMorph"},"3117":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":3118},"_Extent":{"__isSmartRef__":true,"id":3119},"_Fill":{"__isSmartRef__":true,"id":3120},"renderContextTable":{"__isSmartRef__":true,"id":3121},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3118":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3119":{"x":2,"y":2,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3120":{"r":0.8,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"3121":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setOpacity":"setOpacityHTML"},"3122":{"x":317,"y":157,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3123":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"3124":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":3125},"_Extent":{"__isSmartRef__":true,"id":3126},"_Fill":{"__isSmartRef__":true,"id":3127},"renderContextTable":{"__isSmartRef__":true,"id":3128},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3125":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3126":{"x":2800,"y":2900,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3127":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"3128":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setOpacity":"setOpacityHTML"},"3129":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3130":{"name":"Local code","__SourceModuleName__":"Global.lively.ChangeSet","__LivelyClassName__":"ChangeSet"},"3131":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"3132":{"sourceObj":{"__isSmartRef__":true,"id":382},"sourceAttrName":"savedWorldAsURL","targetObj":{"__isSmartRef__":true,"id":382},"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":3133},"__SourceModuleName__":"Global.lively.bindings","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3134},"__LivelyClassName__":"AttributeConnection"},"3133":{"source":{"__isSmartRef__":true,"id":382},"target":{"__isSmartRef__":true,"id":382}},"3134":{"updater":{"__isSmartRef__":true,"id":3135}},"3135":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":3133},"source":"function ($upd, v) { \n if (v && v.toString() !== URL.source.toString()) {\n $upd(v) \n }\n }","funcProperties":{"__isSmartRef__":true,"id":3136},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3136":{},"3137":{"protocol":"http:","hostname":"www.lively-kernel.org","pathname":"/repository/webwerkstatt/draft/NewWorld/TreeMap.xhtml","__SourceModuleName__":"Global.lively.Network","__LivelyClassName__":"URL"},"3138":{"adjustForNewBounds":true},"3139":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"3140":{"updateVis":{"__isSmartRef__":true,"id":3141}},"3141":{"varMapping":{"__isSmartRef__":true,"id":3142},"source":"function updateVis() {\n\n\tmodule('lively.persistence.Debugging').load()\n\n\tvar obj = this.target\n\tvar serializer = ObjectGraphLinearizer.forNewLivelyCopy();\n\tserializer.showLog = false;\n\tvar copyPlugin = new CopyOnlySubmorphsPlugin();\n\tcopyPlugin.root = obj;\n\tserializer.addPlugin(copyPlugin);\n\n\tvar serialized = serializer.serialize(obj)\n\n // Properties.values(serializer.registry)[1].registeredObject\n\n\tvar nodes = []\n\tvar i =0\n \n var group = {};\n\n\tserializer.objectsDo(function(obj, id) {\n group[obj.__LivelyClassName__] = (group[obj.__LivelyClassName__] || 0) + 1\n\t\tvar classString = obj.__LivelyClassName__ ? \" \" + obj.__LivelyClassName__.replace(/.*\\./,\"\") : \"\"\n nodes.push({nodeName: \"\"+id+classString , \n id: id, index: i++, group: obj.__LivelyClassName__ })\n\t})\n\n\tvar links = []\n\tnodes.forEach(function(ea) {\n\t\t serializer.referencesOfId(ea.id).forEach(function(refID) {\n\t\t\tlinks.push({source: ea.id, target: refID, value: 1})\n\t\t})\n\t})\n\tthis.graph = {nodes: nodes, links: links};\n\tthis.get('ProtoVisGraph').setGraphAndRender(this.graph)\n\n this.get('GroupList').setList(Properties.own(group)\n .sortBy(function(ea) { return group[ea] }).reverse()\n .collect(function(ea) {\n return {isListItem: true, string: group[ea] + ' ' + ea, value: {name: ea, count: group[ea]} } \n }))\n}","funcProperties":{"__isSmartRef__":true,"id":3143},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3142":{"this":{"__isSmartRef__":true,"id":47}},"3143":{},"3144":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3145},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":false,"registeredForMouseEvents":true,"_world":{"__isSmartRef__":true,"id":0},"__SourceModuleName__":"Global.lively.morphic.Events","carriesGrabbedMorphs":false,"attributeConnections":[{"__isSmartRef__":true,"id":4239},{"__isSmartRef__":true,"id":4240}],"doNotSerialize":["$$_Position","$$_Scale"],"doNotCopyProperties":["$$_Position","$$_Scale"],"id":226,"owner":{"__isSmartRef__":true,"id":0},"_Rotation":0,"_Position":{"__isSmartRef__":true,"id":4241},"_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":4242},"__LivelyClassName__":"lively.morphic.HandMorph"},"3145":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":3146},"attributeConnections":[{"__isSmartRef__":true,"id":3147},{"__isSmartRef__":true,"id":3186},{"__isSmartRef__":true,"id":3316},{"__isSmartRef__":true,"id":3355},{"__isSmartRef__":true,"id":3394},{"__isSmartRef__":true,"id":3395},{"__isSmartRef__":true,"id":3396},{"__isSmartRef__":true,"id":3435},{"__isSmartRef__":true,"id":3751},{"__isSmartRef__":true,"id":3752},{"__isSmartRef__":true,"id":3791},{"__isSmartRef__":true,"id":3830},{"__isSmartRef__":true,"id":3869},{"__isSmartRef__":true,"id":3908},{"__isSmartRef__":true,"id":4193},{"__isSmartRef__":true,"id":4194},{"__isSmartRef__":true,"id":4195},{"__isSmartRef__":true,"id":4196},{"__isSmartRef__":true,"id":4197}],"doNotSerialize":["$$_Extent","$$_BorderWidth","$$_Fill"],"doNotCopyProperties":["$$_Extent","$$_BorderWidth","$$_Fill"],"_Extent":{"__isSmartRef__":true,"id":4236},"_Fill":{"__isSmartRef__":true,"id":4237},"renderContextTable":{"__isSmartRef__":true,"id":4238},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3146":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3147":{"sourceObj":{"__isSmartRef__":true,"id":3145},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":3148},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3148":{"submorphs":[],"scripts":[],"id":2081,"shape":{"__isSmartRef__":true,"id":3149},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3153},"_MaxTextWidth":151.4790232303003,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":3152},"showsHalos":false,"_FontSize":10,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"PropertyWatcher4","partsBinMetaInfo":{"__isSmartRef__":true,"id":3154},"textChunks":[{"__isSmartRef__":true,"id":3155}],"charsReplaced":"Grr","lastFindLoc":-3,"priorSelectionRange":[0,22],"prevScroll":[0,0],"_Scale":1.02309303667162,"priorExtent":{"__isSmartRef__":true,"id":3157},"attributeConnections":[{"__isSmartRef__":true,"id":3158}],"doNotSerialize":["$$owner"],"doNotCopyProperties":["$$owner"],"isInputLine":true,"savedTextString":"BottomMiddle","targetProperty":"id","oldOwner":null,"owner":null,"renderContextTable":{"__isSmartRef__":true,"id":3159},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3160},"__LivelyClassName__":"lively.morphic.Text"},"3149":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":3150},"_Extent":{"__isSmartRef__":true,"id":3151},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":3152},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3150":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3151":{"x":151.4790232303003,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3152":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"3153":{"x":34.225240926391194,"y":59.574290671285894,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3154":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3155":{"style":{"__isSmartRef__":true,"id":3156},"morph":{"__isSmartRef__":true,"id":3148},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3156":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3157":{"x":151.4790232303003,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3158":{"sourceObj":{"__isSmartRef__":true,"id":3148},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":3148},"targetMethodName":"updateLabel","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3159":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"3160":{"updateLabel":{"__isSmartRef__":true,"id":3161},"renameOwner":{"__isSmartRef__":true,"id":3164},"reset":{"__isSmartRef__":true,"id":3167},"stopWatching":{"__isSmartRef__":true,"id":3170},"startWatching":{"__isSmartRef__":true,"id":3173},"morphMenuItems":{"__isSmartRef__":true,"id":3176},"getWatchableProps":{"__isSmartRef__":true,"id":3183}},"3161":{"varMapping":{"__isSmartRef__":true,"id":3162},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tthis.stopWatching(this.oldOwner);\n\t\tthis.startWatching(this.owner);\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar obj = this.owner;\n\tvar propName = this.targetProperty;\n\tif (!obj || !propName) return;\n\tvar getter = 'get' + (propName.capitalize());\n\tvar s = propName + \": \"+ obj[getter]()\n\tif (this.textString != s)\n\t\tthis.setTextString(s)\n}","funcProperties":{"__isSmartRef__":true,"id":3163},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3162":{"this":{"__isSmartRef__":true,"id":3148}},"3163":{},"3164":{"varMapping":{"__isSmartRef__":true,"id":3165},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":3166},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3165":{"this":{"__isSmartRef__":true,"id":3148}},"3166":{},"3167":{"varMapping":{"__isSmartRef__":true,"id":3168},"source":"function reset() {\n\tthis.targetProperty = \"_Position\";\n\tthis.stopWatching(this.owner);\n\tthis.oldOwner = undefined;\n\tthis.setTextString('nothing to observe')\n}","funcProperties":{"__isSmartRef__":true,"id":3169},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3168":{"this":{"__isSmartRef__":true,"id":3148}},"3169":{},"3170":{"varMapping":{"__isSmartRef__":true,"id":3171},"source":"function stopWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.disconnect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":3172},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3171":{"this":{"__isSmartRef__":true,"id":3148}},"3172":{},"3173":{"varMapping":{"__isSmartRef__":true,"id":3174},"source":"function startWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.connect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":3175},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3174":{"this":{"__isSmartRef__":true,"id":3148}},"3175":{},"3176":{"varMapping":{"__isSmartRef__":true,"id":3177},"source":"function morphMenuItems() {\n\tmodule('lively.morphic.BindingsExtension').load(true)\n\tvar items = $super();\n\tif (this.owner)\n\tvar self = this;\n\tvar target = this.owner\n\t\n\titems.push(['watch', this. getWatchableProps().collect(function(ea) {\n\t\treturn [ea, function() { \n\t\t\tself.stopWatching(target)\n\t\t\tself.targetProperty = ea;\n\t\t\tself.startWatching(target);\n\t\t\tself.updateLabel();\n\t\t\t}]\n\t})])\n\treturn items\n}","funcProperties":{"__isSmartRef__":true,"id":3182},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3177":{"this":{"__isSmartRef__":true,"id":3148},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3178}},"3178":{"$super":{"__isSmartRef__":true,"id":3179}},"3179":{"varMapping":{"__isSmartRef__":true,"id":3180},"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":3181},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3180":{"obj":{"__isSmartRef__":true,"id":3148},"name":"morphMenuItems"},"3181":{},"3182":{},"3183":{"varMapping":{"__isSmartRef__":true,"id":3184},"source":"function getWatchableProps() {\n\tvar target = this.owner \n\tvar ignore = \"attributeConnections,doNotCopyProperties,doNotSerialize,droppingEnabled,eventHandler,halos,halosEnabled,partsBinMetaInfo,registeredForMouseEvents,scripts,shape,showsHalos\".split(\",\")\n\n\tvar props = Properties.own(target);\n\tif (target.connections) \n\t\tprops = props.concat(Properties.own(target.connections))\n\tprops = props\n\t\t.withoutAll(ignore)\n\t\t.select(function(ea) {return ea.match(/^[A-Za-z]/)})\n\t\t.sort().uniq()\n\treturn props \n}","funcProperties":{"__isSmartRef__":true,"id":3185},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3184":{"this":{"__isSmartRef__":true,"id":3148}},"3185":{},"3186":{"sourceObj":{"__isSmartRef__":true,"id":3145},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":3187},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3187":{"submorphs":[],"scripts":[],"id":2281,"shape":{"__isSmartRef__":true,"id":3188},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3192},"_MaxTextWidth":182.8821503062535,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":3191},"showsHalos":false,"_FontSize":10,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"PropertyWatcher4","partsBinMetaInfo":{"__isSmartRef__":true,"id":3193},"textChunks":[{"__isSmartRef__":true,"id":3194}],"charsReplaced":"Grr","lastFindLoc":-3,"priorSelectionRange":[0,0],"prevScroll":[0,0],"_Scale":1.0230930366716198,"priorExtent":{"__isSmartRef__":true,"id":3196},"attributeConnections":[{"__isSmartRef__":true,"id":3197}],"doNotSerialize":["$$owner"],"doNotCopyProperties":["$$owner"],"isInputLine":true,"savedTextString":"BottomMiddle","targetProperty":"priorExtent","oldOwner":{"__isSmartRef__":true,"id":3198},"owner":{"__isSmartRef__":true,"id":3198},"renderContextTable":{"__isSmartRef__":true,"id":3289},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3290},"__LivelyClassName__":"lively.morphic.Text"},"3188":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":3189},"_Extent":{"__isSmartRef__":true,"id":3190},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":3191},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3189":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3190":{"x":182.8821503062535,"y":19.205175067640994,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3191":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"3192":{"x":27.218233919384332,"y":72.58730368429894,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3193":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3194":{"style":{"__isSmartRef__":true,"id":3195},"morph":{"__isSmartRef__":true,"id":3187},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3195":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3196":{"x":182.8821503062535,"y":20.18652278876459,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3197":{"sourceObj":{"__isSmartRef__":true,"id":3187},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":3187},"targetMethodName":"updateLabel","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3198":{"submorphs":[{"__isSmartRef__":true,"id":3187},{"__isSmartRef__":true,"id":3199}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3237},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3284},"showsHalos":false,"name":"Rectangle","partsBinMetaInfo":{"__isSmartRef__":true,"id":3285},"__SourceModuleName__":"Global.lively.morphic.Core","owner":null,"_Rotation":0,"_Scale":0.9803663734024144,"attributeConnections":[{"__isSmartRef__":true,"id":3286},{"__isSmartRef__":true,"id":3287}],"doNotSerialize":["$$priorExtent"],"doNotCopyProperties":["$$priorExtent"],"id":452,"priorExtent":{"__isSmartRef__":true,"id":3288},"__LivelyClassName__":"lively.morphic.Box"},"3199":{"submorphs":[],"scripts":[],"id":2731,"shape":{"__isSmartRef__":true,"id":3200},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3204},"_MaxTextWidth":151.4790232303003,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":3203},"showsHalos":false,"_FontSize":10,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"PropertyWatcher5","partsBinMetaInfo":{"__isSmartRef__":true,"id":3205},"textChunks":[{"__isSmartRef__":true,"id":3206}],"charsReplaced":"Grr","lastFindLoc":-3,"priorSelectionRange":[0,23],"prevScroll":[0,0],"_Scale":1.0230930366716198,"priorExtent":{"__isSmartRef__":true,"id":3208},"attributeConnections":[{"__isSmartRef__":true,"id":3209}],"doNotSerialize":["$$owner"],"doNotCopyProperties":["$$owner"],"isInputLine":true,"savedTextString":"BottomMiddle","targetProperty":"extent","oldOwner":{"__isSmartRef__":true,"id":3198},"owner":{"__isSmartRef__":true,"id":3198},"renderContextTable":{"__isSmartRef__":true,"id":3210},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3211},"__LivelyClassName__":"lively.morphic.Text"},"3200":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":3201},"_Extent":{"__isSmartRef__":true,"id":3202},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":3203},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3201":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3202":{"x":151.4790232303003,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3203":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"3204":{"x":48.23925494040526,"y":38.55326965026484,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3205":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3206":{"style":{"__isSmartRef__":true,"id":3207},"morph":{"__isSmartRef__":true,"id":3199},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3207":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3208":{"x":151.4790232303003,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3209":{"sourceObj":{"__isSmartRef__":true,"id":3199},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":3199},"targetMethodName":"updateLabel","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3210":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"3211":{"updateLabel":{"__isSmartRef__":true,"id":3212},"renameOwner":{"__isSmartRef__":true,"id":3215},"reset":{"__isSmartRef__":true,"id":3218},"stopWatching":{"__isSmartRef__":true,"id":3221},"startWatching":{"__isSmartRef__":true,"id":3224},"morphMenuItems":{"__isSmartRef__":true,"id":3227},"getWatchableProps":{"__isSmartRef__":true,"id":3234}},"3212":{"varMapping":{"__isSmartRef__":true,"id":3213},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tthis.stopWatching(this.oldOwner);\n\t\tthis.startWatching(this.owner);\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar obj = this.owner;\n\tvar propName = this.targetProperty;\n\tif (!obj || !propName) return;\n\tvar getter = 'get' + (propName.capitalize());\n\t// try the getter and fall back to direct access\n\tvar value = (obj[getter] && obj[getter]() || obj[propName])\n\tvar s = propName + \": \"+ value\n\tif (this.textString != s)\n\t\tthis.setTextString(s)\n}","funcProperties":{"__isSmartRef__":true,"id":3214},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3213":{"this":{"__isSmartRef__":true,"id":3199}},"3214":{},"3215":{"varMapping":{"__isSmartRef__":true,"id":3216},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":3217},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3216":{"this":{"__isSmartRef__":true,"id":3199}},"3217":{},"3218":{"varMapping":{"__isSmartRef__":true,"id":3219},"source":"function reset() {\n\tthis.targetProperty = \"_Position\";\n\tthis.stopWatching(this.owner);\n\tthis.oldOwner = undefined;\n\tthis.setTextString('nothing to observe')\n}","funcProperties":{"__isSmartRef__":true,"id":3220},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3219":{"this":{"__isSmartRef__":true,"id":3199}},"3220":{},"3221":{"varMapping":{"__isSmartRef__":true,"id":3222},"source":"function stopWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.disconnect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":3223},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3222":{"this":{"__isSmartRef__":true,"id":3199}},"3223":{},"3224":{"varMapping":{"__isSmartRef__":true,"id":3225},"source":"function startWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.connect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":3226},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3225":{"this":{"__isSmartRef__":true,"id":3199}},"3226":{},"3227":{"varMapping":{"__isSmartRef__":true,"id":3228},"source":"function morphMenuItems() {\n\tmodule('lively.morphic.BindingsExtension').load(true)\n\tvar items = $super();\n\tif (this.owner)\n\tvar self = this;\n\tvar target = this.owner\n\t\n\titems.push(['watch', this. getWatchableProps().collect(function(ea) {\n\t\treturn [ea, function() { \n\t\t\tself.stopWatching(target)\n\t\t\tself.targetProperty = ea;\n\t\t\tself.startWatching(target);\n\t\t\tself.updateLabel();\n\t\t\t}]\n\t})])\n\treturn items\n}","funcProperties":{"__isSmartRef__":true,"id":3233},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3228":{"this":{"__isSmartRef__":true,"id":3199},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3229}},"3229":{"$super":{"__isSmartRef__":true,"id":3230}},"3230":{"varMapping":{"__isSmartRef__":true,"id":3231},"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":3232},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3231":{"obj":{"__isSmartRef__":true,"id":3199},"name":"morphMenuItems"},"3232":{},"3233":{},"3234":{"varMapping":{"__isSmartRef__":true,"id":3235},"source":"function getWatchableProps() {\n\tvar target = this.owner \n\tvar ignore = \"attributeConnections,doNotCopyProperties,doNotSerialize,droppingEnabled,eventHandler,halos,halosEnabled,partsBinMetaInfo,registeredForMouseEvents,scripts,shape,showsHalos\".split(\",\")\n\n\tvar props = Properties.own(target);\n\tif (target.connections) \n\t\tprops = props.concat(Properties.own(target.connections))\n\tprops = props\n\t\t.withoutAll(ignore)\n\t\t.select(function(ea) {return ea.match(/^[A-Za-z]/)})\n\t\t.sort().uniq()\n\treturn props \n}","funcProperties":{"__isSmartRef__":true,"id":3236},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3235":{"this":{"__isSmartRef__":true,"id":3199}},"3236":{},"3237":{"position":{"__isSmartRef__":true,"id":3238},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":3239},"_Fill":{"__isSmartRef__":true,"id":3240},"__SourceModuleName__":"Global.lively.morphic.Shapes","attributeConnections":[{"__isSmartRef__":true,"id":3241},{"__isSmartRef__":true,"id":3242},{"__isSmartRef__":true,"id":3243},{"__isSmartRef__":true,"id":3282}],"doNotSerialize":["$$_Extent"],"doNotCopyProperties":["$$_Extent"],"_Extent":{"__isSmartRef__":true,"id":3283},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3238":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3239":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"3240":{"r":0,"g":0,"b":0.8,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"3241":{"sourceObj":{"__isSmartRef__":true,"id":3237},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":3148},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3242":{"sourceObj":{"__isSmartRef__":true,"id":3237},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":3187},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3243":{"sourceObj":{"__isSmartRef__":true,"id":3237},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":3244},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3244":{"submorphs":[],"scripts":[],"id":2700,"shape":{"__isSmartRef__":true,"id":3245},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3249},"_MaxTextWidth":151.4790232303003,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":3248},"showsHalos":false,"_FontSize":10,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"PropertyWatcher3","partsBinMetaInfo":{"__isSmartRef__":true,"id":3250},"textChunks":[{"__isSmartRef__":true,"id":3251}],"charsReplaced":"Grr","lastFindLoc":-3,"priorSelectionRange":[0,22],"prevScroll":[0,0],"_Scale":1.0230930366716198,"priorExtent":{"__isSmartRef__":true,"id":3253},"attributeConnections":[{"__isSmartRef__":true,"id":3254}],"doNotSerialize":["$$owner"],"doNotCopyProperties":["$$owner"],"isInputLine":true,"savedTextString":"BottomMiddle","targetProperty":"extent","oldOwner":null,"owner":null,"renderContextTable":{"__isSmartRef__":true,"id":3255},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3256},"__LivelyClassName__":"lively.morphic.Text"},"3245":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":3246},"_Extent":{"__isSmartRef__":true,"id":3247},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":3248},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3246":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3247":{"x":151.4790232303003,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3248":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"3249":{"x":31.222237923388178,"y":59.574290671285894,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3250":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3251":{"style":{"__isSmartRef__":true,"id":3252},"morph":{"__isSmartRef__":true,"id":3244},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3252":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3253":{"x":151.4790232303003,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3254":{"sourceObj":{"__isSmartRef__":true,"id":3244},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":3244},"targetMethodName":"updateLabel","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3255":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"3256":{"updateLabel":{"__isSmartRef__":true,"id":3257},"renameOwner":{"__isSmartRef__":true,"id":3260},"reset":{"__isSmartRef__":true,"id":3263},"stopWatching":{"__isSmartRef__":true,"id":3266},"startWatching":{"__isSmartRef__":true,"id":3269},"morphMenuItems":{"__isSmartRef__":true,"id":3272},"getWatchableProps":{"__isSmartRef__":true,"id":3279}},"3257":{"varMapping":{"__isSmartRef__":true,"id":3258},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tthis.stopWatching(this.oldOwner);\n\t\tthis.startWatching(this.owner);\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar obj = this.owner;\n\tvar propName = this.targetProperty;\n\tif (!obj || !propName) return;\n\tvar getter = 'get' + (propName.capitalize());\n\t// try the getter and fall back to direct access\n\tvar value = (obj[getter] && obj[getter]() || obj[propName])\n\tvar s = propName + \": \"+ value\n\tif (this.textString != s)\n\t\tthis.setTextString(s)\n}","funcProperties":{"__isSmartRef__":true,"id":3259},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3258":{"this":{"__isSmartRef__":true,"id":3244}},"3259":{},"3260":{"varMapping":{"__isSmartRef__":true,"id":3261},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":3262},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3261":{"this":{"__isSmartRef__":true,"id":3244}},"3262":{},"3263":{"varMapping":{"__isSmartRef__":true,"id":3264},"source":"function reset() {\n\tthis.targetProperty = \"_Position\";\n\tthis.stopWatching(this.owner);\n\tthis.oldOwner = undefined;\n\tthis.setTextString('nothing to observe')\n}","funcProperties":{"__isSmartRef__":true,"id":3265},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3264":{"this":{"__isSmartRef__":true,"id":3244}},"3265":{},"3266":{"varMapping":{"__isSmartRef__":true,"id":3267},"source":"function stopWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.disconnect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":3268},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3267":{"this":{"__isSmartRef__":true,"id":3244}},"3268":{},"3269":{"varMapping":{"__isSmartRef__":true,"id":3270},"source":"function startWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.connect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":3271},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3270":{"this":{"__isSmartRef__":true,"id":3244}},"3271":{},"3272":{"varMapping":{"__isSmartRef__":true,"id":3273},"source":"function morphMenuItems() {\n\tmodule('lively.morphic.BindingsExtension').load(true)\n\tvar items = $super();\n\tif (this.owner)\n\tvar self = this;\n\tvar target = this.owner\n\t\n\titems.push(['watch', this. getWatchableProps().collect(function(ea) {\n\t\treturn [ea, function() { \n\t\t\tself.stopWatching(target)\n\t\t\tself.targetProperty = ea;\n\t\t\tself.startWatching(target);\n\t\t\tself.updateLabel();\n\t\t\t}]\n\t})])\n\treturn items\n}","funcProperties":{"__isSmartRef__":true,"id":3278},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3273":{"this":{"__isSmartRef__":true,"id":3244},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3274}},"3274":{"$super":{"__isSmartRef__":true,"id":3275}},"3275":{"varMapping":{"__isSmartRef__":true,"id":3276},"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":3277},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3276":{"obj":{"__isSmartRef__":true,"id":3244},"name":"morphMenuItems"},"3277":{},"3278":{},"3279":{"varMapping":{"__isSmartRef__":true,"id":3280},"source":"function getWatchableProps() {\n\tvar target = this.owner \n\tvar ignore = \"attributeConnections,doNotCopyProperties,doNotSerialize,droppingEnabled,eventHandler,halos,halosEnabled,partsBinMetaInfo,registeredForMouseEvents,scripts,shape,showsHalos\".split(\",\")\n\n\tvar props = Properties.own(target);\n\tif (target.connections) \n\t\tprops = props.concat(Properties.own(target.connections))\n\tprops = props\n\t\t.withoutAll(ignore)\n\t\t.select(function(ea) {return ea.match(/^[A-Za-z]/)})\n\t\t.sort().uniq()\n\treturn props \n}","funcProperties":{"__isSmartRef__":true,"id":3281},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3280":{"this":{"__isSmartRef__":true,"id":3244}},"3281":{},"3282":{"sourceObj":{"__isSmartRef__":true,"id":3237},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":3199},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3283":{"x":217.6596663718276,"y":98.03730455775292,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3284":{"x":112.74213294127766,"y":784.2930987219315,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3285":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3286":{"sourceObj":{"__isSmartRef__":true,"id":3198},"sourceAttrName":"priorExtent","targetObj":{"__isSmartRef__":true,"id":3187},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3287":{"sourceObj":{"__isSmartRef__":true,"id":3198},"sourceAttrName":"extent","targetObj":{"__isSmartRef__":true,"id":3199},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.morphic.BindingsExtension","__LivelyClassName__":"lively.morphic.GeometryConnection"},"3288":{"x":220.60370953519822,"y":103.92539088449416,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3289":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"3290":{"updateLabel":{"__isSmartRef__":true,"id":3291},"renameOwner":{"__isSmartRef__":true,"id":3294},"reset":{"__isSmartRef__":true,"id":3297},"stopWatching":{"__isSmartRef__":true,"id":3300},"startWatching":{"__isSmartRef__":true,"id":3303},"morphMenuItems":{"__isSmartRef__":true,"id":3306},"getWatchableProps":{"__isSmartRef__":true,"id":3313}},"3291":{"varMapping":{"__isSmartRef__":true,"id":3292},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tthis.stopWatching(this.oldOwner);\n\t\tthis.startWatching(this.owner);\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar obj = this.owner;\n\tvar propName = this.targetProperty;\n\tif (!obj || !propName) return;\n\tvar getter = 'get' + (propName.capitalize());\n\t// try the getter and fall back to direct access\n\tvar value = (obj[getter] && obj[getter]() || obj[propName])\n\tvar s = propName + \": \"+ value\n\tif (this.textString != s)\n\t\tthis.setTextString(s)\n}","funcProperties":{"__isSmartRef__":true,"id":3293},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3292":{"this":{"__isSmartRef__":true,"id":3187}},"3293":{},"3294":{"varMapping":{"__isSmartRef__":true,"id":3295},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":3296},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3295":{"this":{"__isSmartRef__":true,"id":3187}},"3296":{},"3297":{"varMapping":{"__isSmartRef__":true,"id":3298},"source":"function reset() {\n\tthis.targetProperty = \"_Position\";\n\tthis.stopWatching(this.owner);\n\tthis.oldOwner = undefined;\n\tthis.setTextString('nothing to observe')\n}","funcProperties":{"__isSmartRef__":true,"id":3299},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3298":{"this":{"__isSmartRef__":true,"id":3187}},"3299":{},"3300":{"varMapping":{"__isSmartRef__":true,"id":3301},"source":"function stopWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.disconnect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":3302},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3301":{"this":{"__isSmartRef__":true,"id":3187}},"3302":{},"3303":{"varMapping":{"__isSmartRef__":true,"id":3304},"source":"function startWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.connect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":3305},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3304":{"this":{"__isSmartRef__":true,"id":3187}},"3305":{},"3306":{"varMapping":{"__isSmartRef__":true,"id":3307},"source":"function morphMenuItems() {\n\tmodule('lively.morphic.BindingsExtension').load(true)\n\tvar items = $super();\n\tif (this.owner)\n\tvar self = this;\n\tvar target = this.owner\n\t\n\titems.push(['watch', this. getWatchableProps().collect(function(ea) {\n\t\treturn [ea, function() { \n\t\t\tself.stopWatching(target)\n\t\t\tself.targetProperty = ea;\n\t\t\tself.startWatching(target);\n\t\t\tself.updateLabel();\n\t\t\t}]\n\t})])\n\treturn items\n}","funcProperties":{"__isSmartRef__":true,"id":3312},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3307":{"this":{"__isSmartRef__":true,"id":3187},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3308}},"3308":{"$super":{"__isSmartRef__":true,"id":3309}},"3309":{"varMapping":{"__isSmartRef__":true,"id":3310},"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":3311},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3310":{"obj":{"__isSmartRef__":true,"id":3187},"name":"morphMenuItems"},"3311":{},"3312":{},"3313":{"varMapping":{"__isSmartRef__":true,"id":3314},"source":"function getWatchableProps() {\n\tvar target = this.owner \n\tvar ignore = \"attributeConnections,doNotCopyProperties,doNotSerialize,droppingEnabled,eventHandler,halos,halosEnabled,partsBinMetaInfo,registeredForMouseEvents,scripts,shape,showsHalos\".split(\",\")\n\n\tvar props = Properties.own(target);\n\tif (target.connections) \n\t\tprops = props.concat(Properties.own(target.connections))\n\tprops = props\n\t\t.withoutAll(ignore)\n\t\t.select(function(ea) {return ea.match(/^[A-Za-z]/)})\n\t\t.sort().uniq()\n\treturn props \n}","funcProperties":{"__isSmartRef__":true,"id":3315},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3314":{"this":{"__isSmartRef__":true,"id":3187}},"3315":{},"3316":{"sourceObj":{"__isSmartRef__":true,"id":3145},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":3317},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3317":{"submorphs":[],"scripts":[],"id":2552,"shape":{"__isSmartRef__":true,"id":3318},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3322},"_MaxTextWidth":151.4790232303003,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":3321},"showsHalos":false,"_FontSize":10,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"PropertyWatcher1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3323},"textChunks":[{"__isSmartRef__":true,"id":3324}],"charsReplaced":"Grr","lastFindLoc":-3,"priorSelectionRange":[0,23],"prevScroll":[0,0],"_Scale":0.9999999999999983,"priorExtent":{"__isSmartRef__":true,"id":3326},"attributeConnections":[{"__isSmartRef__":true,"id":3327}],"doNotSerialize":["$$owner"],"doNotCopyProperties":["$$owner"],"isInputLine":true,"savedTextString":"BottomMiddle","targetProperty":"extent","oldOwner":null,"owner":null,"renderContextTable":{"__isSmartRef__":true,"id":3328},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3329},"__LivelyClassName__":"lively.morphic.Text"},"3318":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":3319},"_Extent":{"__isSmartRef__":true,"id":3320},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":3321},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3319":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3320":{"x":151.4790232303003,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3321":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"3322":{"x":30.4885551769285,"y":93.84636463400142,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3323":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3324":{"style":{"__isSmartRef__":true,"id":3325},"morph":{"__isSmartRef__":true,"id":3317},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3325":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3326":{"x":151.4790232303003,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3327":{"sourceObj":{"__isSmartRef__":true,"id":3317},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":3317},"targetMethodName":"updateLabel","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3328":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"3329":{"updateLabel":{"__isSmartRef__":true,"id":3330},"renameOwner":{"__isSmartRef__":true,"id":3333},"reset":{"__isSmartRef__":true,"id":3336},"stopWatching":{"__isSmartRef__":true,"id":3339},"startWatching":{"__isSmartRef__":true,"id":3342},"morphMenuItems":{"__isSmartRef__":true,"id":3345},"getWatchableProps":{"__isSmartRef__":true,"id":3352}},"3330":{"varMapping":{"__isSmartRef__":true,"id":3331},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tthis.stopWatching(this.oldOwner);\n\t\tthis.startWatching(this.owner);\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar obj = this.owner;\n\tvar propName = this.targetProperty;\n\tif (!obj || !propName) return;\n\tvar getter = 'get' + (propName.capitalize());\n\t// try the getter and fall back to direct access\n\tvar value = (obj[getter] && obj[getter]() || obj[propName])\n\tvar s = propName + \": \"+ value\n\tif (this.textString != s)\n\t\tthis.setTextString(s)\n}","funcProperties":{"__isSmartRef__":true,"id":3332},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3331":{"this":{"__isSmartRef__":true,"id":3317}},"3332":{},"3333":{"varMapping":{"__isSmartRef__":true,"id":3334},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":3335},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3334":{"this":{"__isSmartRef__":true,"id":3317}},"3335":{},"3336":{"varMapping":{"__isSmartRef__":true,"id":3337},"source":"function reset() {\n\tthis.targetProperty = \"_Position\";\n\tthis.stopWatching(this.owner);\n\tthis.oldOwner = undefined;\n\tthis.setTextString('nothing to observe')\n}","funcProperties":{"__isSmartRef__":true,"id":3338},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3337":{"this":{"__isSmartRef__":true,"id":3317}},"3338":{},"3339":{"varMapping":{"__isSmartRef__":true,"id":3340},"source":"function stopWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.disconnect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":3341},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3340":{"this":{"__isSmartRef__":true,"id":3317}},"3341":{},"3342":{"varMapping":{"__isSmartRef__":true,"id":3343},"source":"function startWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.connect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":3344},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3343":{"this":{"__isSmartRef__":true,"id":3317}},"3344":{},"3345":{"varMapping":{"__isSmartRef__":true,"id":3346},"source":"function morphMenuItems() {\n\tmodule('lively.morphic.BindingsExtension').load(true)\n\tvar items = $super();\n\tif (this.owner)\n\tvar self = this;\n\tvar target = this.owner\n\t\n\titems.push(['watch', this. getWatchableProps().collect(function(ea) {\n\t\treturn [ea, function() { \n\t\t\tself.stopWatching(target)\n\t\t\tself.targetProperty = ea;\n\t\t\tself.startWatching(target);\n\t\t\tself.updateLabel();\n\t\t\t}]\n\t})])\n\treturn items\n}","funcProperties":{"__isSmartRef__":true,"id":3351},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3346":{"this":{"__isSmartRef__":true,"id":3317},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3347}},"3347":{"$super":{"__isSmartRef__":true,"id":3348}},"3348":{"varMapping":{"__isSmartRef__":true,"id":3349},"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":3350},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3349":{"obj":{"__isSmartRef__":true,"id":3317},"name":"morphMenuItems"},"3350":{},"3351":{},"3352":{"varMapping":{"__isSmartRef__":true,"id":3353},"source":"function getWatchableProps() {\n\tvar target = this.owner \n\tvar ignore = \"attributeConnections,doNotCopyProperties,doNotSerialize,droppingEnabled,eventHandler,halos,halosEnabled,partsBinMetaInfo,registeredForMouseEvents,scripts,shape,showsHalos\".split(\",\")\n\n\tvar props = Properties.own(target);\n\tif (target.connections) \n\t\tprops = props.concat(Properties.own(target.connections))\n\tprops = props\n\t\t.withoutAll(ignore)\n\t\t.select(function(ea) {return ea.match(/^[A-Za-z]/)})\n\t\t.sort().uniq()\n\treturn props \n}","funcProperties":{"__isSmartRef__":true,"id":3354},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3353":{"this":{"__isSmartRef__":true,"id":3317}},"3354":{},"3355":{"sourceObj":{"__isSmartRef__":true,"id":3145},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":3356},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3356":{"submorphs":[],"scripts":[],"id":2669,"shape":{"__isSmartRef__":true,"id":3357},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3361},"_MaxTextWidth":151.4790232303003,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":3360},"showsHalos":false,"_FontSize":10,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"PropertyWatcher2","partsBinMetaInfo":{"__isSmartRef__":true,"id":3362},"textChunks":[{"__isSmartRef__":true,"id":3363}],"charsReplaced":"Grr","lastFindLoc":-3,"priorSelectionRange":[0,0],"prevScroll":[0,0],"_Scale":1.0030060100150193,"priorExtent":{"__isSmartRef__":true,"id":3365},"attributeConnections":[{"__isSmartRef__":true,"id":3366}],"doNotSerialize":["$$owner"],"doNotCopyProperties":["$$owner"],"isInputLine":true,"savedTextString":"BottomMiddle","targetProperty":"extent","oldOwner":null,"owner":null,"renderContextTable":{"__isSmartRef__":true,"id":3367},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3368},"__LivelyClassName__":"lively.morphic.Text"},"3357":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":3358},"_Extent":{"__isSmartRef__":true,"id":3359},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":3360},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3358":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3359":{"x":151.4790232303003,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3360":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"3361":{"x":237.56074633159673,"y":545.3493705149294,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3362":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3363":{"style":{"__isSmartRef__":true,"id":3364},"morph":{"__isSmartRef__":true,"id":3356},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3364":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3365":{"x":151.4790232303003,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3366":{"sourceObj":{"__isSmartRef__":true,"id":3356},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":3356},"targetMethodName":"updateLabel","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3367":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"3368":{"updateLabel":{"__isSmartRef__":true,"id":3369},"renameOwner":{"__isSmartRef__":true,"id":3372},"reset":{"__isSmartRef__":true,"id":3375},"stopWatching":{"__isSmartRef__":true,"id":3378},"startWatching":{"__isSmartRef__":true,"id":3381},"morphMenuItems":{"__isSmartRef__":true,"id":3384},"getWatchableProps":{"__isSmartRef__":true,"id":3391}},"3369":{"varMapping":{"__isSmartRef__":true,"id":3370},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tthis.stopWatching(this.oldOwner);\n\t\tthis.startWatching(this.owner);\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar obj = this.owner;\n\tvar propName = this.targetProperty;\n\tif (!obj || !propName) return;\n\tvar getter = 'get' + (propName.capitalize());\n\t// try the getter and fall back to direct access\n\tvar value = (obj[getter] && obj[getter]() || obj[propName])\n\tvar s = propName + \": \"+ value\n\tif (this.textString != s)\n\t\tthis.setTextString(s)\n}","funcProperties":{"__isSmartRef__":true,"id":3371},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3370":{"this":{"__isSmartRef__":true,"id":3356}},"3371":{},"3372":{"varMapping":{"__isSmartRef__":true,"id":3373},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":3374},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3373":{"this":{"__isSmartRef__":true,"id":3356}},"3374":{},"3375":{"varMapping":{"__isSmartRef__":true,"id":3376},"source":"function reset() {\n\tthis.targetProperty = \"_Position\";\n\tthis.stopWatching(this.owner);\n\tthis.oldOwner = undefined;\n\tthis.setTextString('nothing to observe')\n}","funcProperties":{"__isSmartRef__":true,"id":3377},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3376":{"this":{"__isSmartRef__":true,"id":3356}},"3377":{},"3378":{"varMapping":{"__isSmartRef__":true,"id":3379},"source":"function stopWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.disconnect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":3380},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3379":{"this":{"__isSmartRef__":true,"id":3356}},"3380":{},"3381":{"varMapping":{"__isSmartRef__":true,"id":3382},"source":"function startWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.connect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":3383},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3382":{"this":{"__isSmartRef__":true,"id":3356}},"3383":{},"3384":{"varMapping":{"__isSmartRef__":true,"id":3385},"source":"function morphMenuItems() {\n\tmodule('lively.morphic.BindingsExtension').load(true)\n\tvar items = $super();\n\tif (this.owner)\n\tvar self = this;\n\tvar target = this.owner\n\t\n\titems.push(['watch', this. getWatchableProps().collect(function(ea) {\n\t\treturn [ea, function() { \n\t\t\tself.stopWatching(target)\n\t\t\tself.targetProperty = ea;\n\t\t\tself.startWatching(target);\n\t\t\tself.updateLabel();\n\t\t\t}]\n\t})])\n\treturn items\n}","funcProperties":{"__isSmartRef__":true,"id":3390},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3385":{"this":{"__isSmartRef__":true,"id":3356},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3386}},"3386":{"$super":{"__isSmartRef__":true,"id":3387}},"3387":{"varMapping":{"__isSmartRef__":true,"id":3388},"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":3389},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3388":{"obj":{"__isSmartRef__":true,"id":3356},"name":"morphMenuItems"},"3389":{},"3390":{},"3391":{"varMapping":{"__isSmartRef__":true,"id":3392},"source":"function getWatchableProps() {\n\tvar target = this.owner \n\tvar ignore = \"attributeConnections,doNotCopyProperties,doNotSerialize,droppingEnabled,eventHandler,halos,halosEnabled,partsBinMetaInfo,registeredForMouseEvents,scripts,shape,showsHalos\".split(\",\")\n\n\tvar props = Properties.own(target);\n\tif (target.connections) \n\t\tprops = props.concat(Properties.own(target.connections))\n\tprops = props\n\t\t.withoutAll(ignore)\n\t\t.select(function(ea) {return ea.match(/^[A-Za-z]/)})\n\t\t.sort().uniq()\n\treturn props \n}","funcProperties":{"__isSmartRef__":true,"id":3393},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3392":{"this":{"__isSmartRef__":true,"id":3356}},"3393":{},"3394":{"sourceObj":{"__isSmartRef__":true,"id":3145},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":3244},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3395":{"sourceObj":{"__isSmartRef__":true,"id":3145},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":3199},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3396":{"sourceObj":{"__isSmartRef__":true,"id":3145},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":3397},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3397":{"submorphs":[],"scripts":[],"id":2800,"shape":{"__isSmartRef__":true,"id":3398},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3402},"_MaxTextWidth":151.4790232303003,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":3401},"showsHalos":false,"_FontSize":10,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"PropertyWatcher1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3403},"textChunks":[{"__isSmartRef__":true,"id":3404}],"charsReplaced":"Grr","lastFindLoc":-3,"priorSelectionRange":[0,0],"prevScroll":[0,0],"_Scale":0.9999999999999983,"priorExtent":{"__isSmartRef__":true,"id":3406},"attributeConnections":[{"__isSmartRef__":true,"id":3407}],"doNotSerialize":["$$owner"],"doNotCopyProperties":["$$owner"],"isInputLine":true,"savedTextString":"BottomMiddle","targetProperty":"extent","oldOwner":null,"owner":null,"renderContextTable":{"__isSmartRef__":true,"id":3408},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3409},"__LivelyClassName__":"lively.morphic.Text"},"3398":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":3399},"_Extent":{"__isSmartRef__":true,"id":3400},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":3401},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3399":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3400":{"x":151.4790232303003,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3401":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"3402":{"x":9.942016135466943,"y":90.9111447709353,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3403":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3404":{"style":{"__isSmartRef__":true,"id":3405},"morph":{"__isSmartRef__":true,"id":3397},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3405":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3406":{"x":151.4790232303003,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3407":{"sourceObj":{"__isSmartRef__":true,"id":3397},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":3397},"targetMethodName":"updateLabel","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3408":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"3409":{"updateLabel":{"__isSmartRef__":true,"id":3410},"renameOwner":{"__isSmartRef__":true,"id":3413},"reset":{"__isSmartRef__":true,"id":3416},"stopWatching":{"__isSmartRef__":true,"id":3419},"startWatching":{"__isSmartRef__":true,"id":3422},"morphMenuItems":{"__isSmartRef__":true,"id":3425},"getWatchableProps":{"__isSmartRef__":true,"id":3432}},"3410":{"varMapping":{"__isSmartRef__":true,"id":3411},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tthis.stopWatching(this.oldOwner);\n\t\tthis.startWatching(this.owner);\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar obj = this.owner;\n\tvar propName = this.targetProperty;\n\tif (!obj || !propName) return;\n\tvar getter = 'get' + (propName.capitalize());\n\t// try the getter and fall back to direct access\n\tvar value = (obj[getter] && obj[getter]() || obj[propName])\n\tvar s = propName + \": \"+ value\n\tif (this.textString != s)\n\t\tthis.setTextString(s)\n}","funcProperties":{"__isSmartRef__":true,"id":3412},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3411":{"this":{"__isSmartRef__":true,"id":3397}},"3412":{},"3413":{"varMapping":{"__isSmartRef__":true,"id":3414},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":3415},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3414":{"this":{"__isSmartRef__":true,"id":3397}},"3415":{},"3416":{"varMapping":{"__isSmartRef__":true,"id":3417},"source":"function reset() {\n\tthis.targetProperty = \"_Position\";\n\tthis.stopWatching(this.owner);\n\tthis.oldOwner = undefined;\n\tthis.setTextString('nothing to observe')\n}","funcProperties":{"__isSmartRef__":true,"id":3418},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3417":{"this":{"__isSmartRef__":true,"id":3397}},"3418":{},"3419":{"varMapping":{"__isSmartRef__":true,"id":3420},"source":"function stopWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.disconnect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":3421},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3420":{"this":{"__isSmartRef__":true,"id":3397}},"3421":{},"3422":{"varMapping":{"__isSmartRef__":true,"id":3423},"source":"function startWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.connect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":3424},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3423":{"this":{"__isSmartRef__":true,"id":3397}},"3424":{},"3425":{"varMapping":{"__isSmartRef__":true,"id":3426},"source":"function morphMenuItems() {\n\tmodule('lively.morphic.BindingsExtension').load(true)\n\tvar items = $super();\n\tif (this.owner)\n\tvar self = this;\n\tvar target = this.owner\n\t\n\titems.push(['watch', this. getWatchableProps().collect(function(ea) {\n\t\treturn [ea, function() { \n\t\t\tself.stopWatching(target)\n\t\t\tself.targetProperty = ea;\n\t\t\tself.startWatching(target);\n\t\t\tself.updateLabel();\n\t\t\t}]\n\t})])\n\treturn items\n}","funcProperties":{"__isSmartRef__":true,"id":3431},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3426":{"this":{"__isSmartRef__":true,"id":3397},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3427}},"3427":{"$super":{"__isSmartRef__":true,"id":3428}},"3428":{"varMapping":{"__isSmartRef__":true,"id":3429},"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":3430},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3429":{"obj":{"__isSmartRef__":true,"id":3397},"name":"morphMenuItems"},"3430":{},"3431":{},"3432":{"varMapping":{"__isSmartRef__":true,"id":3433},"source":"function getWatchableProps() {\n\tvar target = this.owner \n\tvar ignore = \"attributeConnections,doNotCopyProperties,doNotSerialize,droppingEnabled,eventHandler,halos,halosEnabled,partsBinMetaInfo,registeredForMouseEvents,scripts,shape,showsHalos\".split(\",\")\n\n\tvar props = Properties.own(target);\n\tif (target.connections) \n\t\tprops = props.concat(Properties.own(target.connections))\n\tprops = props\n\t\t.withoutAll(ignore)\n\t\t.select(function(ea) {return ea.match(/^[A-Za-z]/)})\n\t\t.sort().uniq()\n\treturn props \n}","funcProperties":{"__isSmartRef__":true,"id":3434},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3433":{"this":{"__isSmartRef__":true,"id":3397}},"3434":{},"3435":{"sourceObj":{"__isSmartRef__":true,"id":3145},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":3436},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3436":{"submorphs":[],"scripts":[],"id":2825,"shape":{"__isSmartRef__":true,"id":3437},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3441},"_MaxTextWidth":151.4790232303003,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":3440},"showsHalos":false,"_FontSize":10,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"PropertyWatcher3","partsBinMetaInfo":{"__isSmartRef__":true,"id":3442},"textChunks":[{"__isSmartRef__":true,"id":3443}],"charsReplaced":"Grr","lastFindLoc":-3,"priorSelectionRange":[0,0],"prevScroll":[0,0],"_Scale":0.9999999999999986,"priorExtent":{"__isSmartRef__":true,"id":3445},"attributeConnections":[{"__isSmartRef__":true,"id":3446}],"doNotSerialize":["$$owner"],"doNotCopyProperties":["$$owner"],"isInputLine":true,"savedTextString":"BottomMiddle","targetProperty":"extent","oldOwner":{"__isSmartRef__":true,"id":3447},"owner":{"__isSmartRef__":true,"id":3447},"renderContextTable":{"__isSmartRef__":true,"id":3724},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3725},"__LivelyClassName__":"lively.morphic.Text"},"3437":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":3438},"_Extent":{"__isSmartRef__":true,"id":3439},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":3440},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3438":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3439":{"x":151.4790232303003,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3440":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"3441":{"x":16.83946480858492,"y":90.8640492785243,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3442":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3443":{"style":{"__isSmartRef__":true,"id":3444},"morph":{"__isSmartRef__":true,"id":3436},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3444":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3445":{"x":151.4790232303003,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3446":{"sourceObj":{"__isSmartRef__":true,"id":3436},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":3436},"targetMethodName":"updateLabel","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3447":{"submorphs":[{"__isSmartRef__":true,"id":3448},{"__isSmartRef__":true,"id":3436},{"__isSmartRef__":true,"id":3468},{"__isSmartRef__":true,"id":3506}],"scripts":[],"id":1910,"shape":{"__isSmartRef__":true,"id":3544},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3717},"__SourceModuleName__":"Global.lively.morphic.Core","_Rotation":0,"_Scale":1,"priorExtent":{"__isSmartRef__":true,"id":3718},"owner":{"__isSmartRef__":true,"id":3633},"attributeConnections":[{"__isSmartRef__":true,"id":3719},{"__isSmartRef__":true,"id":3720},{"__isSmartRef__":true,"id":3721},{"__isSmartRef__":true,"id":3722},{"__isSmartRef__":true,"id":3723}],"doNotSerialize":["$$name","$$_Position"],"doNotCopyProperties":["$$name","$$_Position"],"name":"TopMiddle","__LivelyClassName__":"lively.morphic.Box"},"3448":{"submorphs":[],"scripts":[],"id":5370,"shape":{"__isSmartRef__":true,"id":3449},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3453},"_MaxTextWidth":180.8018403394826,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":3452},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"NameLabel2","partsBinMetaInfo":{"__isSmartRef__":true,"id":3454},"textChunks":[{"__isSmartRef__":true,"id":3455}],"charsReplaced":"Grr","lastFindLoc":-3,"priorSelectionRange":[0,9],"prevScroll":[0,0],"_Scale":0.9999999999999994,"priorExtent":{"__isSmartRef__":true,"id":3457},"attributeConnections":[{"__isSmartRef__":true,"id":3458},{"__isSmartRef__":true,"id":3459}],"doNotSerialize":["$$owner","$$savedTextString"],"doNotCopyProperties":["$$owner","$$savedTextString"],"isInputLine":true,"oldOwner":{"__isSmartRef__":true,"id":3447},"owner":{"__isSmartRef__":true,"id":3447},"savedTextString":"TopLeft","renderContextTable":{"__isSmartRef__":true,"id":3460},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3461},"__LivelyClassName__":"lively.morphic.Text"},"3449":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":3450},"_Extent":{"__isSmartRef__":true,"id":3451},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":3452},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3450":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3451":{"x":180.8018403394826,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3452":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"3453":{"x":30.425150082875916,"y":50.967065890163724,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3454":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3455":{"style":{"__isSmartRef__":true,"id":3456},"morph":{"__isSmartRef__":true,"id":3448},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3456":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3457":{"x":180.8018403394826,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3458":{"sourceObj":{"__isSmartRef__":true,"id":3448},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":3448},"targetMethodName":"updateLabel","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3459":{"sourceObj":{"__isSmartRef__":true,"id":3448},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":3448},"targetMethodName":"renameOwner","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3460":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"3461":{"updateLabel":{"__isSmartRef__":true,"id":3462},"renameOwner":{"__isSmartRef__":true,"id":3465}},"3462":{"varMapping":{"__isSmartRef__":true,"id":3463},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tif (this.oldOwner)\n\t\t\tdisconnect(this.oldOwner, 'name', this, 'updateLabel')\n\t\tif (this.owner)\n\t\t\tconnect(this.owner, 'name', this, 'updateLabel')\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar name = (this.owner ? this.owner.name : \"no owner\")\n\tif (this.textString != name)\n\tthis.setTextString(name)\n}","funcProperties":{"__isSmartRef__":true,"id":3464},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3463":{"this":{"__isSmartRef__":true,"id":3448}},"3464":{},"3465":{"varMapping":{"__isSmartRef__":true,"id":3466},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":3467},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3466":{"this":{"__isSmartRef__":true,"id":3448}},"3467":{},"3468":{"submorphs":[],"scripts":[],"id":123,"shape":{"__isSmartRef__":true,"id":3469},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3473},"_MaxTextWidth":204.41886033386783,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":3472},"showsHalos":false,"_FontSize":10,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":-0.006821560079975696,"name":"PropertyWatcher9","partsBinMetaInfo":{"__isSmartRef__":true,"id":3474},"textChunks":[{"__isSmartRef__":true,"id":3475}],"charsReplaced":"Grr","lastFindLoc":-3,"priorSelectionRange":[0,0],"prevScroll":[0,0],"_Scale":0.9999999999999998,"priorExtent":{"__isSmartRef__":true,"id":3477},"attributeConnections":[{"__isSmartRef__":true,"id":3478}],"doNotSerialize":["$$owner"],"doNotCopyProperties":["$$owner"],"isInputLine":true,"savedTextString":"BottomMiddle","targetProperty":"extent","oldOwner":{"__isSmartRef__":true,"id":3447},"owner":{"__isSmartRef__":true,"id":3447},"renderContextTable":{"__isSmartRef__":true,"id":3479},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3480},"__LivelyClassName__":"lively.morphic.Text"},"3469":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":3470},"_Extent":{"__isSmartRef__":true,"id":3471},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":3472},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3470":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3471":{"x":204.41886033386783,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3472":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"3473":{"x":2.868338521262956,"y":23.406649114898215,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3474":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3475":{"style":{"__isSmartRef__":true,"id":3476},"morph":{"__isSmartRef__":true,"id":3468},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3476":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3477":{"x":204.41886033386783,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3478":{"sourceObj":{"__isSmartRef__":true,"id":3468},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":3468},"targetMethodName":"updateLabel","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3479":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"3480":{"updateLabel":{"__isSmartRef__":true,"id":3481},"renameOwner":{"__isSmartRef__":true,"id":3484},"reset":{"__isSmartRef__":true,"id":3487},"stopWatching":{"__isSmartRef__":true,"id":3490},"startWatching":{"__isSmartRef__":true,"id":3493},"morphMenuItems":{"__isSmartRef__":true,"id":3496},"getWatchableProps":{"__isSmartRef__":true,"id":3503}},"3481":{"varMapping":{"__isSmartRef__":true,"id":3482},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tthis.stopWatching(this.oldOwner);\n\t\tthis.startWatching(this.owner);\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar obj = this.owner;\n\tvar propName = this.targetProperty;\n\tif (!obj || !propName) return;\n\tvar getter = 'get' + (propName.charAt(0).toUpperCase() + propName.substring(1));\n\t// try the getter and fall back to direct access\n\tvar value = (obj[getter] && obj[getter]() || obj[propName])\n\tvar s = propName + \": \"+ value\n\tif (this.textString != s)\n\t\tthis.setTextString(s)\n}","funcProperties":{"__isSmartRef__":true,"id":3483},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3482":{"this":{"__isSmartRef__":true,"id":3468}},"3483":{},"3484":{"varMapping":{"__isSmartRef__":true,"id":3485},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":3486},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3485":{"this":{"__isSmartRef__":true,"id":3468}},"3486":{},"3487":{"varMapping":{"__isSmartRef__":true,"id":3488},"source":"function reset() {\n\tthis.targetProperty = \"_Position\";\n\tthis.stopWatching(this.owner);\n\tthis.oldOwner = undefined;\n\tthis.setTextString('nothing to observe')\n}","funcProperties":{"__isSmartRef__":true,"id":3489},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3488":{"this":{"__isSmartRef__":true,"id":3468}},"3489":{},"3490":{"varMapping":{"__isSmartRef__":true,"id":3491},"source":"function stopWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.disconnect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":3492},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3491":{"this":{"__isSmartRef__":true,"id":3468}},"3492":{},"3493":{"varMapping":{"__isSmartRef__":true,"id":3494},"source":"function startWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.connect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":3495},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3494":{"this":{"__isSmartRef__":true,"id":3468}},"3495":{},"3496":{"varMapping":{"__isSmartRef__":true,"id":3497},"source":"function morphMenuItems() {\n\tmodule('lively.morphic.BindingsExtension').load(true)\n\tvar items = $super();\n\tif (this.owner)\n\tvar self = this;\n\tvar target = this.owner\n\t\n\titems.push(['watch', this. getWatchableProps().collect(function(ea) {\n\t\treturn [ea, function() { \n\t\t\tself.stopWatching(target)\n\t\t\tself.targetProperty = ea;\n\t\t\tself.startWatching(target);\n\t\t\tself.updateLabel();\n\t\t\t}]\n\t})])\n\treturn items\n}","funcProperties":{"__isSmartRef__":true,"id":3502},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3497":{"this":{"__isSmartRef__":true,"id":3468},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3498}},"3498":{"$super":{"__isSmartRef__":true,"id":3499}},"3499":{"varMapping":{"__isSmartRef__":true,"id":3500},"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":3501},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3500":{"obj":{"__isSmartRef__":true,"id":3468},"name":"morphMenuItems"},"3501":{},"3502":{},"3503":{"varMapping":{"__isSmartRef__":true,"id":3504},"source":"function getWatchableProps() {\n\tvar target = this.owner \n\tvar ignore = \"attributeConnections,doNotCopyProperties,doNotSerialize,droppingEnabled,eventHandler,halos,halosEnabled,partsBinMetaInfo,registeredForMouseEvents,scripts,shape,showsHalos\".split(\",\")\n\n\tvar props = Properties.own(target);\n\tif (target.connections) \n\t\tprops = props.concat(Properties.own(target.connections))\n\tprops = props\n\t\t.withoutAll(ignore)\n\t\t.select(function(ea) {return ea.match(/^[A-Za-z]/)})\n\t\t.sort().uniq()\n\treturn props \n}","funcProperties":{"__isSmartRef__":true,"id":3505},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3504":{"this":{"__isSmartRef__":true,"id":3468}},"3505":{},"3506":{"submorphs":[],"scripts":[],"id":357,"shape":{"__isSmartRef__":true,"id":3507},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3511},"_MaxTextWidth":204.41886033386783,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":3510},"showsHalos":false,"_FontSize":10,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":-0.006821560079975696,"name":"PropertyWatcher12","partsBinMetaInfo":{"__isSmartRef__":true,"id":3512},"textChunks":[{"__isSmartRef__":true,"id":3513}],"charsReplaced":"Grr","lastFindLoc":-3,"priorSelectionRange":[0,0],"prevScroll":[0,0],"_Scale":0.9999999999999998,"priorExtent":{"__isSmartRef__":true,"id":3515},"attributeConnections":[{"__isSmartRef__":true,"id":3516}],"doNotSerialize":["$$owner"],"doNotCopyProperties":["$$owner"],"isInputLine":true,"savedTextString":"BottomMiddle","targetProperty":"position","oldOwner":{"__isSmartRef__":true,"id":3447},"owner":{"__isSmartRef__":true,"id":3447},"renderContextTable":{"__isSmartRef__":true,"id":3517},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3518},"__LivelyClassName__":"lively.morphic.Text"},"3507":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":3508},"_Extent":{"__isSmartRef__":true,"id":3509},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":3510},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3508":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3509":{"x":204.41886033386783,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3510":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"3511":{"x":7.755484480413429,"y":5.8129236619552955,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3512":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3513":{"style":{"__isSmartRef__":true,"id":3514},"morph":{"__isSmartRef__":true,"id":3506},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3514":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3515":{"x":204.41886033386783,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3516":{"sourceObj":{"__isSmartRef__":true,"id":3506},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":3506},"targetMethodName":"updateLabel","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3517":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"3518":{"updateLabel":{"__isSmartRef__":true,"id":3519},"renameOwner":{"__isSmartRef__":true,"id":3522},"reset":{"__isSmartRef__":true,"id":3525},"stopWatching":{"__isSmartRef__":true,"id":3528},"startWatching":{"__isSmartRef__":true,"id":3531},"morphMenuItems":{"__isSmartRef__":true,"id":3534},"getWatchableProps":{"__isSmartRef__":true,"id":3541}},"3519":{"varMapping":{"__isSmartRef__":true,"id":3520},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tthis.stopWatching(this.oldOwner);\n\t\tthis.startWatching(this.owner);\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar obj = this.owner;\n\tvar propName = this.targetProperty;\n\tif (!obj || !propName) return;\n\tvar getter = 'get' + (propName.charAt(0).toUpperCase() + propName.substring(1));\n\t// try the getter and fall back to direct access\n\tvar value = (obj[getter] && obj[getter]() || obj[propName])\n\tvar s = propName + \": \"+ value\n\tif (this.textString != s)\n\t\tthis.setTextString(s)\n}","funcProperties":{"__isSmartRef__":true,"id":3521},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3520":{"this":{"__isSmartRef__":true,"id":3506}},"3521":{},"3522":{"varMapping":{"__isSmartRef__":true,"id":3523},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":3524},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3523":{"this":{"__isSmartRef__":true,"id":3506}},"3524":{},"3525":{"varMapping":{"__isSmartRef__":true,"id":3526},"source":"function reset() {\n\tthis.targetProperty = \"_Position\";\n\tthis.stopWatching(this.owner);\n\tthis.oldOwner = undefined;\n\tthis.setTextString('nothing to observe')\n}","funcProperties":{"__isSmartRef__":true,"id":3527},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3526":{"this":{"__isSmartRef__":true,"id":3506}},"3527":{},"3528":{"varMapping":{"__isSmartRef__":true,"id":3529},"source":"function stopWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.disconnect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":3530},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3529":{"this":{"__isSmartRef__":true,"id":3506}},"3530":{},"3531":{"varMapping":{"__isSmartRef__":true,"id":3532},"source":"function startWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.connect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":3533},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3532":{"this":{"__isSmartRef__":true,"id":3506}},"3533":{},"3534":{"varMapping":{"__isSmartRef__":true,"id":3535},"source":"function morphMenuItems() {\n\tmodule('lively.morphic.BindingsExtension').load(true)\n\tvar items = $super();\n\tif (this.owner)\n\tvar self = this;\n\tvar target = this.owner\n\t\n\titems.push(['watch', this. getWatchableProps().collect(function(ea) {\n\t\treturn [ea, function() { \n\t\t\tself.stopWatching(target)\n\t\t\tself.targetProperty = ea;\n\t\t\tself.startWatching(target);\n\t\t\tself.updateLabel();\n\t\t\t}]\n\t})])\n\treturn items\n}","funcProperties":{"__isSmartRef__":true,"id":3540},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3535":{"this":{"__isSmartRef__":true,"id":3506},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3536}},"3536":{"$super":{"__isSmartRef__":true,"id":3537}},"3537":{"varMapping":{"__isSmartRef__":true,"id":3538},"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":3539},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3538":{"obj":{"__isSmartRef__":true,"id":3506},"name":"morphMenuItems"},"3539":{},"3540":{},"3541":{"varMapping":{"__isSmartRef__":true,"id":3542},"source":"function getWatchableProps() {\n\tvar target = this.owner \n\tvar ignore = \"attributeConnections,doNotCopyProperties,doNotSerialize,droppingEnabled,eventHandler,halos,halosEnabled,partsBinMetaInfo,registeredForMouseEvents,scripts,shape,showsHalos\".split(\",\")\n\n\tvar props = Properties.own(target);\n\tif (target.connections) \n\t\tprops = props.concat(Properties.own(target.connections))\n\tprops = props\n\t\t.withoutAll(ignore)\n\t\t.select(function(ea) {return ea.match(/^[A-Za-z]/)})\n\t\t.sort().uniq()\n\treturn props \n}","funcProperties":{"__isSmartRef__":true,"id":3543},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3542":{"this":{"__isSmartRef__":true,"id":3506}},"3543":{},"3544":{"position":{"__isSmartRef__":true,"id":3545},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":3546},"_Fill":{"__isSmartRef__":true,"id":3547},"__SourceModuleName__":"Global.lively.morphic.Shapes","attributeConnections":[{"__isSmartRef__":true,"id":3548},{"__isSmartRef__":true,"id":3712},{"__isSmartRef__":true,"id":3713},{"__isSmartRef__":true,"id":3714},{"__isSmartRef__":true,"id":3715}],"doNotSerialize":["$$_Extent"],"doNotCopyProperties":["$$_Extent"],"_Extent":{"__isSmartRef__":true,"id":3716},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3545":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3546":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"3547":{"r":0.921,"g":0.921,"b":0.921,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"3548":{"sourceObj":{"__isSmartRef__":true,"id":3544},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":3549},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3549":{"submorphs":[],"scripts":[],"id":2850,"shape":{"__isSmartRef__":true,"id":3550},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3554},"_MaxTextWidth":151.4790232303003,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":3553},"showsHalos":false,"_FontSize":10,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"PropertyWatcher6","partsBinMetaInfo":{"__isSmartRef__":true,"id":3555},"textChunks":[{"__isSmartRef__":true,"id":3556}],"charsReplaced":"Grr","lastFindLoc":-3,"priorSelectionRange":[0,0],"prevScroll":[0,0],"_Scale":0.9999999999999988,"priorExtent":{"__isSmartRef__":true,"id":3558},"attributeConnections":[{"__isSmartRef__":true,"id":3559}],"doNotSerialize":["$$owner"],"doNotCopyProperties":["$$owner"],"isInputLine":true,"savedTextString":"BottomMiddle","targetProperty":"extent","oldOwner":{"__isSmartRef__":true,"id":3560},"owner":{"__isSmartRef__":true,"id":3560},"renderContextTable":{"__isSmartRef__":true,"id":3685},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3686},"__LivelyClassName__":"lively.morphic.Text"},"3550":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":3551},"_Extent":{"__isSmartRef__":true,"id":3552},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":3553},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3551":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3552":{"x":151.4790232303003,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3553":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"3554":{"x":25.911328862343225,"y":90.83072969617649,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3555":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3556":{"style":{"__isSmartRef__":true,"id":3557},"morph":{"__isSmartRef__":true,"id":3549},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3557":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3558":{"x":151.4790232303003,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3559":{"sourceObj":{"__isSmartRef__":true,"id":3549},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":3549},"targetMethodName":"updateLabel","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3560":{"submorphs":[{"__isSmartRef__":true,"id":3561},{"__isSmartRef__":true,"id":3549},{"__isSmartRef__":true,"id":3581}],"scripts":[],"id":1935,"shape":{"__isSmartRef__":true,"id":3619},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3627},"__SourceModuleName__":"Global.lively.morphic.Core","priorExtent":{"__isSmartRef__":true,"id":3628},"attributeConnections":[{"__isSmartRef__":true,"id":3629},{"__isSmartRef__":true,"id":3630},{"__isSmartRef__":true,"id":3631}],"doNotSerialize":["$$name"],"doNotCopyProperties":["$$name"],"_Position":{"__isSmartRef__":true,"id":3632},"_Scale":1,"_Rotation":0,"owner":{"__isSmartRef__":true,"id":3633},"name":"TopRight","__LivelyClassName__":"lively.morphic.Box"},"3561":{"submorphs":[],"scripts":[],"id":5395,"shape":{"__isSmartRef__":true,"id":3562},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3566},"_MaxTextWidth":180.8018403394826,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":3565},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"NameLabel3","partsBinMetaInfo":{"__isSmartRef__":true,"id":3567},"textChunks":[{"__isSmartRef__":true,"id":3568}],"charsReplaced":"Grr","lastFindLoc":-3,"priorSelectionRange":[0,0],"prevScroll":[0,0],"_Scale":0.9999999999999992,"priorExtent":{"__isSmartRef__":true,"id":3570},"attributeConnections":[{"__isSmartRef__":true,"id":3571},{"__isSmartRef__":true,"id":3572}],"doNotSerialize":["$$owner","$$savedTextString"],"doNotCopyProperties":["$$owner","$$savedTextString"],"isInputLine":true,"oldOwner":{"__isSmartRef__":true,"id":3560},"owner":{"__isSmartRef__":true,"id":3560},"savedTextString":"TopLeft","renderContextTable":{"__isSmartRef__":true,"id":3573},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3574},"__LivelyClassName__":"lively.morphic.Text"},"3562":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":3563},"_Extent":{"__isSmartRef__":true,"id":3564},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":3565},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3563":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3564":{"x":180.8018403394826,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3565":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"3566":{"x":19.94610848527259,"y":52.95808386020866,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3567":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3568":{"style":{"__isSmartRef__":true,"id":3569},"morph":{"__isSmartRef__":true,"id":3561},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3569":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3570":{"x":180.8018403394826,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3571":{"sourceObj":{"__isSmartRef__":true,"id":3561},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":3561},"targetMethodName":"updateLabel","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3572":{"sourceObj":{"__isSmartRef__":true,"id":3561},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":3561},"targetMethodName":"renameOwner","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3573":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"3574":{"updateLabel":{"__isSmartRef__":true,"id":3575},"renameOwner":{"__isSmartRef__":true,"id":3578}},"3575":{"varMapping":{"__isSmartRef__":true,"id":3576},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tif (this.oldOwner)\n\t\t\tdisconnect(this.oldOwner, 'name', this, 'updateLabel')\n\t\tif (this.owner)\n\t\t\tconnect(this.owner, 'name', this, 'updateLabel')\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar name = (this.owner ? this.owner.name : \"no owner\")\n\tif (this.textString != name)\n\tthis.setTextString(name)\n}","funcProperties":{"__isSmartRef__":true,"id":3577},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3576":{"this":{"__isSmartRef__":true,"id":3561}},"3577":{},"3578":{"varMapping":{"__isSmartRef__":true,"id":3579},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":3580},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3579":{"this":{"__isSmartRef__":true,"id":3561}},"3580":{},"3581":{"submorphs":[],"scripts":[],"id":332,"shape":{"__isSmartRef__":true,"id":3582},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3586},"_MaxTextWidth":204.41886033386783,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":3585},"showsHalos":false,"_FontSize":10,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":-0.006821560079975696,"name":"PropertyWatcher11","partsBinMetaInfo":{"__isSmartRef__":true,"id":3587},"textChunks":[{"__isSmartRef__":true,"id":3588}],"charsReplaced":"Grr","lastFindLoc":-3,"priorSelectionRange":[0,0],"prevScroll":[0,0],"_Scale":0.9999999999999998,"priorExtent":{"__isSmartRef__":true,"id":3590},"attributeConnections":[{"__isSmartRef__":true,"id":3591}],"doNotSerialize":["$$owner"],"doNotCopyProperties":["$$owner"],"isInputLine":true,"savedTextString":"BottomMiddle","targetProperty":"extent","oldOwner":{"__isSmartRef__":true,"id":3560},"owner":{"__isSmartRef__":true,"id":3560},"renderContextTable":{"__isSmartRef__":true,"id":3592},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3593},"__LivelyClassName__":"lively.morphic.Text"},"3582":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":3583},"_Extent":{"__isSmartRef__":true,"id":3584},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":3585},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3583":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3584":{"x":204.41886033386783,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3585":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"3586":{"x":41.07834421266995,"y":24.35271358276418,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3587":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3588":{"style":{"__isSmartRef__":true,"id":3589},"morph":{"__isSmartRef__":true,"id":3581},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3589":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3590":{"x":204.41886033386783,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3591":{"sourceObj":{"__isSmartRef__":true,"id":3581},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":3581},"targetMethodName":"updateLabel","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3592":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"3593":{"updateLabel":{"__isSmartRef__":true,"id":3594},"renameOwner":{"__isSmartRef__":true,"id":3597},"reset":{"__isSmartRef__":true,"id":3600},"stopWatching":{"__isSmartRef__":true,"id":3603},"startWatching":{"__isSmartRef__":true,"id":3606},"morphMenuItems":{"__isSmartRef__":true,"id":3609},"getWatchableProps":{"__isSmartRef__":true,"id":3616}},"3594":{"varMapping":{"__isSmartRef__":true,"id":3595},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tthis.stopWatching(this.oldOwner);\n\t\tthis.startWatching(this.owner);\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar obj = this.owner;\n\tvar propName = this.targetProperty;\n\tif (!obj || !propName) return;\n\tvar getter = 'get' + (propName.charAt(0).toUpperCase() + propName.substring(1));\n\t// try the getter and fall back to direct access\n\tvar value = (obj[getter] && obj[getter]() || obj[propName])\n\tvar s = propName + \": \"+ value\n\tif (this.textString != s)\n\t\tthis.setTextString(s)\n}","funcProperties":{"__isSmartRef__":true,"id":3596},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3595":{"this":{"__isSmartRef__":true,"id":3581}},"3596":{},"3597":{"varMapping":{"__isSmartRef__":true,"id":3598},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":3599},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3598":{"this":{"__isSmartRef__":true,"id":3581}},"3599":{},"3600":{"varMapping":{"__isSmartRef__":true,"id":3601},"source":"function reset() {\n\tthis.targetProperty = \"_Position\";\n\tthis.stopWatching(this.owner);\n\tthis.oldOwner = undefined;\n\tthis.setTextString('nothing to observe')\n}","funcProperties":{"__isSmartRef__":true,"id":3602},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3601":{"this":{"__isSmartRef__":true,"id":3581}},"3602":{},"3603":{"varMapping":{"__isSmartRef__":true,"id":3604},"source":"function stopWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.disconnect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":3605},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3604":{"this":{"__isSmartRef__":true,"id":3581}},"3605":{},"3606":{"varMapping":{"__isSmartRef__":true,"id":3607},"source":"function startWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.connect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":3608},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3607":{"this":{"__isSmartRef__":true,"id":3581}},"3608":{},"3609":{"varMapping":{"__isSmartRef__":true,"id":3610},"source":"function morphMenuItems() {\n\tmodule('lively.morphic.BindingsExtension').load(true)\n\tvar items = $super();\n\tif (this.owner)\n\tvar self = this;\n\tvar target = this.owner\n\t\n\titems.push(['watch', this. getWatchableProps().collect(function(ea) {\n\t\treturn [ea, function() { \n\t\t\tself.stopWatching(target)\n\t\t\tself.targetProperty = ea;\n\t\t\tself.startWatching(target);\n\t\t\tself.updateLabel();\n\t\t\t}]\n\t})])\n\treturn items\n}","funcProperties":{"__isSmartRef__":true,"id":3615},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3610":{"this":{"__isSmartRef__":true,"id":3581},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3611}},"3611":{"$super":{"__isSmartRef__":true,"id":3612}},"3612":{"varMapping":{"__isSmartRef__":true,"id":3613},"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":3614},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3613":{"obj":{"__isSmartRef__":true,"id":3581},"name":"morphMenuItems"},"3614":{},"3615":{},"3616":{"varMapping":{"__isSmartRef__":true,"id":3617},"source":"function getWatchableProps() {\n\tvar target = this.owner \n\tvar ignore = \"attributeConnections,doNotCopyProperties,doNotSerialize,droppingEnabled,eventHandler,halos,halosEnabled,partsBinMetaInfo,registeredForMouseEvents,scripts,shape,showsHalos\".split(\",\")\n\n\tvar props = Properties.own(target);\n\tif (target.connections) \n\t\tprops = props.concat(Properties.own(target.connections))\n\tprops = props\n\t\t.withoutAll(ignore)\n\t\t.select(function(ea) {return ea.match(/^[A-Za-z]/)})\n\t\t.sort().uniq()\n\treturn props \n}","funcProperties":{"__isSmartRef__":true,"id":3618},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3617":{"this":{"__isSmartRef__":true,"id":3581}},"3618":{},"3619":{"position":{"__isSmartRef__":true,"id":3620},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":3621},"_Fill":{"__isSmartRef__":true,"id":3622},"__SourceModuleName__":"Global.lively.morphic.Shapes","attributeConnections":[{"__isSmartRef__":true,"id":3623},{"__isSmartRef__":true,"id":3624},{"__isSmartRef__":true,"id":3625}],"doNotSerialize":["$$_Extent"],"doNotCopyProperties":["$$_Extent"],"_Extent":{"__isSmartRef__":true,"id":3626},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3620":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3621":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"3622":{"r":0.921,"g":0.921,"b":0.921,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"3623":{"sourceObj":{"__isSmartRef__":true,"id":3619},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":3468},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3624":{"sourceObj":{"__isSmartRef__":true,"id":3619},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":3549},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3625":{"sourceObj":{"__isSmartRef__":true,"id":3619},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":3581},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3626":{"x":146.13827646069103,"y":111.0330661101653,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3627":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3628":{"x":147.14128247070607,"y":111.0330661101653,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3629":{"sourceObj":{"__isSmartRef__":true,"id":3560},"sourceAttrName":"name","targetObj":{"__isSmartRef__":true,"id":3561},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3630":{"sourceObj":{"__isSmartRef__":true,"id":3560},"sourceAttrName":"extent","targetObj":{"__isSmartRef__":true,"id":3549},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.morphic.BindingsExtension","__LivelyClassName__":"lively.morphic.GeometryConnection"},"3631":{"sourceObj":{"__isSmartRef__":true,"id":3560},"sourceAttrName":"extent","targetObj":{"__isSmartRef__":true,"id":3581},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.morphic.BindingsExtension","__LivelyClassName__":"lively.morphic.GeometryConnection"},"3632":{"x":376.8290053133968,"y":20.088494344305644,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3633":{"submorphs":[{"__isSmartRef__":true,"id":3634},{"__isSmartRef__":true,"id":3447},{"__isSmartRef__":true,"id":3560},{"__isSmartRef__":true,"id":3646}],"scripts":[],"id":452,"shape":{"__isSmartRef__":true,"id":3677},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"LayoutContainerHallo","partsBinMetaInfo":{"__isSmartRef__":true,"id":3682},"__SourceModuleName__":"Global.lively.morphic.Core","priorExtent":{"__isSmartRef__":true,"id":3683},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Position":{"__isSmartRef__":true,"id":3684},"_Scale":1.003006010015021,"_Rotation":0,"owner":null,"__LivelyClassName__":"lively.morphic.Box"},"3634":{"submorphs":[],"scripts":[],"id":1885,"shape":{"__isSmartRef__":true,"id":3635},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":3643},"__SourceModuleName__":"Global.lively.morphic.Core","_Rotation":0,"_Scale":1,"priorExtent":{"__isSmartRef__":true,"id":3644},"owner":{"__isSmartRef__":true,"id":3633},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Position":{"__isSmartRef__":true,"id":3645},"name":"TopLeft","__LivelyClassName__":"lively.morphic.Box"},"3635":{"position":{"__isSmartRef__":true,"id":3636},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":3637},"_Fill":{"__isSmartRef__":true,"id":3638},"__SourceModuleName__":"Global.lively.morphic.Shapes","attributeConnections":[{"__isSmartRef__":true,"id":3639},{"__isSmartRef__":true,"id":3640},{"__isSmartRef__":true,"id":3641}],"doNotSerialize":["$$_Extent"],"doNotCopyProperties":["$$_Extent"],"_Extent":{"__isSmartRef__":true,"id":3642},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3636":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3637":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"3638":{"r":0.921,"g":0.921,"b":0.921,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"3639":{"sourceObj":{"__isSmartRef__":true,"id":3635},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":3317},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3640":{"sourceObj":{"__isSmartRef__":true,"id":3635},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":3436},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3641":{"sourceObj":{"__isSmartRef__":true,"id":3635},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":3397},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3642":{"x":146.13827646069103,"y":111.0330661101653,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3643":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3644":{"x":147.14128247070607,"y":111.0330661101653,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3645":{"x":28.719476752227116,"y":24.97449788656772,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3646":{"submorphs":[],"scripts":[],"id":2051,"shape":{"__isSmartRef__":true,"id":3647},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3652},"showsHalos":false,"name":"ResizeCorner1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3653},"__SourceModuleName__":"Global.lively.morphic.Core","_Rotation":0,"_Scale":0.9970029990000002,"draggingEnabled":true,"dragStartPoint":null,"originalExtent":{"__isSmartRef__":true,"id":3654},"originalTargetExtent":null,"owner":{"__isSmartRef__":true,"id":3633},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3655},"__LivelyClassName__":"lively.morphic.Box"},"3647":{"position":{"__isSmartRef__":true,"id":3648},"_Extent":{"__isSmartRef__":true,"id":3649},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":3650},"_Fill":{"__isSmartRef__":true,"id":3651},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3648":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3649":{"x":13,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3650":{"r":0.568,"g":0.568,"b":0.568,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"3651":{"r":0.258,"g":0.258,"b":0.258,"a":0.5,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"3652":{"x":528.3435693595193,"y":274.6221089378841,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3653":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3654":{"x":239,"y":138,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3655":{"onDrag":{"__isSmartRef__":true,"id":3656},"onDragEnd":{"__isSmartRef__":true,"id":3663},"onDragStart":{"__isSmartRef__":true,"id":3670}},"3656":{"varMapping":{"__isSmartRef__":true,"id":3657},"source":"function onDrag(evt) {\n\t// alert(\"onDrag\")\n\t\tvar moveDelta = evt.mousePoint.subPt(this.dragStartPoint)\n\t\tif (evt.isShiftDown()) {\n\t\t\tvar maxDelta = Math.max(moveDelta.x, moveDelta.y);\n\t\t\tmoveDelta = pt(maxDelta, maxDelta);\n\t\t}\n\t\tthis.owner.setExtent(this.originalTargetExtent.addPt(moveDelta));\n\t\tthis.align(this.bounds().bottomRight(), this.owner.getExtent())\n}","funcProperties":{"__isSmartRef__":true,"id":3662},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3657":{"this":{"__isSmartRef__":true,"id":3646},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3658}},"3658":{"$super":{"__isSmartRef__":true,"id":3659}},"3659":{"varMapping":{"__isSmartRef__":true,"id":3660},"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":3661},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3660":{"obj":{"__isSmartRef__":true,"id":3646},"name":"onDrag"},"3661":{},"3662":{},"3663":{"varMapping":{"__isSmartRef__":true,"id":3664},"source":"function onDragEnd(evt) {\n\tthis.dragStartPoint = null;\n\tthis.originalTargetExtent = null;\n}","funcProperties":{"__isSmartRef__":true,"id":3669},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3664":{"this":{"__isSmartRef__":true,"id":3646},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3665}},"3665":{"$super":{"__isSmartRef__":true,"id":3666}},"3666":{"varMapping":{"__isSmartRef__":true,"id":3667},"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":3668},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3667":{"obj":{"__isSmartRef__":true,"id":3646},"name":"onDragEnd"},"3668":{},"3669":{},"3670":{"varMapping":{"__isSmartRef__":true,"id":3671},"source":"function onDragStart(evt) {\n\tthis.dragStartPoint = evt.mousePoint;\n\tthis.originalTargetExtent = this.owner.getExtent();\n}","funcProperties":{"__isSmartRef__":true,"id":3676},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3671":{"this":{"__isSmartRef__":true,"id":3646},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3672}},"3672":{"$super":{"__isSmartRef__":true,"id":3673}},"3673":{"varMapping":{"__isSmartRef__":true,"id":3674},"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":3675},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3674":{"obj":{"__isSmartRef__":true,"id":3646},"name":"onDragStart"},"3675":{},"3676":{},"3677":{"position":{"__isSmartRef__":true,"id":3678},"_Extent":{"__isSmartRef__":true,"id":3679},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":3680},"_Fill":{"__isSmartRef__":true,"id":3681},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3678":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3679":{"x":541.3046083465193,"y":289.5771539228841,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3680":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"3681":{"r":0.921,"g":0.921,"b":0.921,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"3682":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3683":{"x":540.3046083465193,"y":290.5771539228841,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3684":{"x":68.4237605791848,"y":417.1702210549704,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3685":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"3686":{"updateLabel":{"__isSmartRef__":true,"id":3687},"renameOwner":{"__isSmartRef__":true,"id":3690},"reset":{"__isSmartRef__":true,"id":3693},"stopWatching":{"__isSmartRef__":true,"id":3696},"startWatching":{"__isSmartRef__":true,"id":3699},"morphMenuItems":{"__isSmartRef__":true,"id":3702},"getWatchableProps":{"__isSmartRef__":true,"id":3709}},"3687":{"varMapping":{"__isSmartRef__":true,"id":3688},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tthis.stopWatching(this.oldOwner);\n\t\tthis.startWatching(this.owner);\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar obj = this.owner;\n\tvar propName = this.targetProperty;\n\tif (!obj || !propName) return;\n\tvar getter = 'get' + (propName.capitalize());\n\t// try the getter and fall back to direct access\n\tvar value = (obj[getter] && obj[getter]() || obj[propName])\n\tvar s = propName + \": \"+ value\n\tif (this.textString != s)\n\t\tthis.setTextString(s)\n}","funcProperties":{"__isSmartRef__":true,"id":3689},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3688":{"this":{"__isSmartRef__":true,"id":3549}},"3689":{},"3690":{"varMapping":{"__isSmartRef__":true,"id":3691},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":3692},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3691":{"this":{"__isSmartRef__":true,"id":3549}},"3692":{},"3693":{"varMapping":{"__isSmartRef__":true,"id":3694},"source":"function reset() {\n\tthis.targetProperty = \"_Position\";\n\tthis.stopWatching(this.owner);\n\tthis.oldOwner = undefined;\n\tthis.setTextString('nothing to observe')\n}","funcProperties":{"__isSmartRef__":true,"id":3695},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3694":{"this":{"__isSmartRef__":true,"id":3549}},"3695":{},"3696":{"varMapping":{"__isSmartRef__":true,"id":3697},"source":"function stopWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.disconnect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":3698},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3697":{"this":{"__isSmartRef__":true,"id":3549}},"3698":{},"3699":{"varMapping":{"__isSmartRef__":true,"id":3700},"source":"function startWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.connect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":3701},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3700":{"this":{"__isSmartRef__":true,"id":3549}},"3701":{},"3702":{"varMapping":{"__isSmartRef__":true,"id":3703},"source":"function morphMenuItems() {\n\tmodule('lively.morphic.BindingsExtension').load(true)\n\tvar items = $super();\n\tif (this.owner)\n\tvar self = this;\n\tvar target = this.owner\n\t\n\titems.push(['watch', this. getWatchableProps().collect(function(ea) {\n\t\treturn [ea, function() { \n\t\t\tself.stopWatching(target)\n\t\t\tself.targetProperty = ea;\n\t\t\tself.startWatching(target);\n\t\t\tself.updateLabel();\n\t\t\t}]\n\t})])\n\treturn items\n}","funcProperties":{"__isSmartRef__":true,"id":3708},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3703":{"this":{"__isSmartRef__":true,"id":3549},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3704}},"3704":{"$super":{"__isSmartRef__":true,"id":3705}},"3705":{"varMapping":{"__isSmartRef__":true,"id":3706},"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":3707},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3706":{"obj":{"__isSmartRef__":true,"id":3549},"name":"morphMenuItems"},"3707":{},"3708":{},"3709":{"varMapping":{"__isSmartRef__":true,"id":3710},"source":"function getWatchableProps() {\n\tvar target = this.owner \n\tvar ignore = \"attributeConnections,doNotCopyProperties,doNotSerialize,droppingEnabled,eventHandler,halos,halosEnabled,partsBinMetaInfo,registeredForMouseEvents,scripts,shape,showsHalos\".split(\",\")\n\n\tvar props = Properties.own(target);\n\tif (target.connections) \n\t\tprops = props.concat(Properties.own(target.connections))\n\tprops = props\n\t\t.withoutAll(ignore)\n\t\t.select(function(ea) {return ea.match(/^[A-Za-z]/)})\n\t\t.sort().uniq()\n\treturn props \n}","funcProperties":{"__isSmartRef__":true,"id":3711},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3710":{"this":{"__isSmartRef__":true,"id":3549}},"3711":{},"3712":{"sourceObj":{"__isSmartRef__":true,"id":3544},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":3581},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3713":{"sourceObj":{"__isSmartRef__":true,"id":3544},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":3506},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3714":{"sourceObj":{"__isSmartRef__":true,"id":3544},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":3436},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3715":{"sourceObj":{"__isSmartRef__":true,"id":3544},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":3468},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3716":{"x":146.13827646069103,"y":111.0330661101653,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3717":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3718":{"x":147.14128247070607,"y":111.0330661101653,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3719":{"sourceObj":{"__isSmartRef__":true,"id":3447},"sourceAttrName":"name","targetObj":{"__isSmartRef__":true,"id":3448},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3720":{"sourceObj":{"__isSmartRef__":true,"id":3447},"sourceAttrName":"extent","targetObj":{"__isSmartRef__":true,"id":3436},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.morphic.BindingsExtension","__LivelyClassName__":"lively.morphic.GeometryConnection"},"3721":{"sourceObj":{"__isSmartRef__":true,"id":3447},"sourceAttrName":"extent","targetObj":{"__isSmartRef__":true,"id":3468},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.morphic.BindingsExtension","__LivelyClassName__":"lively.morphic.GeometryConnection"},"3722":{"sourceObj":{"__isSmartRef__":true,"id":3447},"sourceAttrName":"position","targetObj":{"__isSmartRef__":true,"id":3506},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.morphic.BindingsExtension","__LivelyClassName__":"lively.morphic.GeometryConnection"},"3723":{"sourceObj":{"__isSmartRef__":true,"id":3447},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":3506},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3724":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"3725":{"updateLabel":{"__isSmartRef__":true,"id":3726},"renameOwner":{"__isSmartRef__":true,"id":3729},"reset":{"__isSmartRef__":true,"id":3732},"stopWatching":{"__isSmartRef__":true,"id":3735},"startWatching":{"__isSmartRef__":true,"id":3738},"morphMenuItems":{"__isSmartRef__":true,"id":3741},"getWatchableProps":{"__isSmartRef__":true,"id":3748}},"3726":{"varMapping":{"__isSmartRef__":true,"id":3727},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tthis.stopWatching(this.oldOwner);\n\t\tthis.startWatching(this.owner);\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar obj = this.owner;\n\tvar propName = this.targetProperty;\n\tif (!obj || !propName) return;\n\tvar getter = 'get' + (propName.capitalize());\n\t// try the getter and fall back to direct access\n\tvar value = (obj[getter] && obj[getter]() || obj[propName])\n\tvar s = propName + \": \"+ value\n\tif (this.textString != s)\n\t\tthis.setTextString(s)\n}","funcProperties":{"__isSmartRef__":true,"id":3728},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3727":{"this":{"__isSmartRef__":true,"id":3436}},"3728":{},"3729":{"varMapping":{"__isSmartRef__":true,"id":3730},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":3731},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3730":{"this":{"__isSmartRef__":true,"id":3436}},"3731":{},"3732":{"varMapping":{"__isSmartRef__":true,"id":3733},"source":"function reset() {\n\tthis.targetProperty = \"_Position\";\n\tthis.stopWatching(this.owner);\n\tthis.oldOwner = undefined;\n\tthis.setTextString('nothing to observe')\n}","funcProperties":{"__isSmartRef__":true,"id":3734},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3733":{"this":{"__isSmartRef__":true,"id":3436}},"3734":{},"3735":{"varMapping":{"__isSmartRef__":true,"id":3736},"source":"function stopWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.disconnect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":3737},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3736":{"this":{"__isSmartRef__":true,"id":3436}},"3737":{},"3738":{"varMapping":{"__isSmartRef__":true,"id":3739},"source":"function startWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.connect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":3740},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3739":{"this":{"__isSmartRef__":true,"id":3436}},"3740":{},"3741":{"varMapping":{"__isSmartRef__":true,"id":3742},"source":"function morphMenuItems() {\n\tmodule('lively.morphic.BindingsExtension').load(true)\n\tvar items = $super();\n\tif (this.owner)\n\tvar self = this;\n\tvar target = this.owner\n\t\n\titems.push(['watch', this. getWatchableProps().collect(function(ea) {\n\t\treturn [ea, function() { \n\t\t\tself.stopWatching(target)\n\t\t\tself.targetProperty = ea;\n\t\t\tself.startWatching(target);\n\t\t\tself.updateLabel();\n\t\t\t}]\n\t})])\n\treturn items\n}","funcProperties":{"__isSmartRef__":true,"id":3747},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3742":{"this":{"__isSmartRef__":true,"id":3436},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3743}},"3743":{"$super":{"__isSmartRef__":true,"id":3744}},"3744":{"varMapping":{"__isSmartRef__":true,"id":3745},"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":3746},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3745":{"obj":{"__isSmartRef__":true,"id":3436},"name":"morphMenuItems"},"3746":{},"3747":{},"3748":{"varMapping":{"__isSmartRef__":true,"id":3749},"source":"function getWatchableProps() {\n\tvar target = this.owner \n\tvar ignore = \"attributeConnections,doNotCopyProperties,doNotSerialize,droppingEnabled,eventHandler,halos,halosEnabled,partsBinMetaInfo,registeredForMouseEvents,scripts,shape,showsHalos\".split(\",\")\n\n\tvar props = Properties.own(target);\n\tif (target.connections) \n\t\tprops = props.concat(Properties.own(target.connections))\n\tprops = props\n\t\t.withoutAll(ignore)\n\t\t.select(function(ea) {return ea.match(/^[A-Za-z]/)})\n\t\t.sort().uniq()\n\treturn props \n}","funcProperties":{"__isSmartRef__":true,"id":3750},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3749":{"this":{"__isSmartRef__":true,"id":3436}},"3750":{},"3751":{"sourceObj":{"__isSmartRef__":true,"id":3145},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":3549},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3752":{"sourceObj":{"__isSmartRef__":true,"id":3145},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":3753},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3753":{"submorphs":[],"scripts":[],"id":2993,"shape":{"__isSmartRef__":true,"id":3754},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3758},"_MaxTextWidth":151.4790232303003,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":3757},"showsHalos":false,"_FontSize":10,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"PropertyWatcher2","partsBinMetaInfo":{"__isSmartRef__":true,"id":3759},"textChunks":[{"__isSmartRef__":true,"id":3760}],"charsReplaced":"Grr","lastFindLoc":-3,"priorSelectionRange":[0,23],"prevScroll":[0,0],"_Scale":0.9999999999999983,"priorExtent":{"__isSmartRef__":true,"id":3762},"attributeConnections":[{"__isSmartRef__":true,"id":3763}],"doNotSerialize":["$$owner"],"doNotCopyProperties":["$$owner"],"isInputLine":true,"savedTextString":"BottomMiddle","targetProperty":"position","oldOwner":null,"owner":null,"renderContextTable":{"__isSmartRef__":true,"id":3764},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3765},"__LivelyClassName__":"lively.morphic.Text"},"3754":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":3755},"_Extent":{"__isSmartRef__":true,"id":3756},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":3757},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3755":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3756":{"x":151.4790232303003,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3757":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"3758":{"x":47.01880980462616,"y":28.164839118722,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3759":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3760":{"style":{"__isSmartRef__":true,"id":3761},"morph":{"__isSmartRef__":true,"id":3753},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3761":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3762":{"x":151.4790232303003,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3763":{"sourceObj":{"__isSmartRef__":true,"id":3753},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":3753},"targetMethodName":"updateLabel","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3764":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"3765":{"updateLabel":{"__isSmartRef__":true,"id":3766},"renameOwner":{"__isSmartRef__":true,"id":3769},"reset":{"__isSmartRef__":true,"id":3772},"stopWatching":{"__isSmartRef__":true,"id":3775},"startWatching":{"__isSmartRef__":true,"id":3778},"morphMenuItems":{"__isSmartRef__":true,"id":3781},"getWatchableProps":{"__isSmartRef__":true,"id":3788}},"3766":{"varMapping":{"__isSmartRef__":true,"id":3767},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tthis.stopWatching(this.oldOwner);\n\t\tthis.startWatching(this.owner);\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar obj = this.owner;\n\tvar propName = this.targetProperty;\n\tif (!obj || !propName) return;\n\tvar getter = 'get' + (propName.capitalize());\n\t// try the getter and fall back to direct access\n\tvar value = (obj[getter] && obj[getter]() || obj[propName])\n\tvar s = propName + \": \"+ value\n\tif (this.textString != s)\n\t\tthis.setTextString(s)\n}","funcProperties":{"__isSmartRef__":true,"id":3768},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3767":{"this":{"__isSmartRef__":true,"id":3753}},"3768":{},"3769":{"varMapping":{"__isSmartRef__":true,"id":3770},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":3771},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3770":{"this":{"__isSmartRef__":true,"id":3753}},"3771":{},"3772":{"varMapping":{"__isSmartRef__":true,"id":3773},"source":"function reset() {\n\tthis.targetProperty = \"_Position\";\n\tthis.stopWatching(this.owner);\n\tthis.oldOwner = undefined;\n\tthis.setTextString('nothing to observe')\n}","funcProperties":{"__isSmartRef__":true,"id":3774},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3773":{"this":{"__isSmartRef__":true,"id":3753}},"3774":{},"3775":{"varMapping":{"__isSmartRef__":true,"id":3776},"source":"function stopWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.disconnect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":3777},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3776":{"this":{"__isSmartRef__":true,"id":3753}},"3777":{},"3778":{"varMapping":{"__isSmartRef__":true,"id":3779},"source":"function startWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.connect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":3780},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3779":{"this":{"__isSmartRef__":true,"id":3753}},"3780":{},"3781":{"varMapping":{"__isSmartRef__":true,"id":3782},"source":"function morphMenuItems() {\n\tmodule('lively.morphic.BindingsExtension').load(true)\n\tvar items = $super();\n\tif (this.owner)\n\tvar self = this;\n\tvar target = this.owner\n\t\n\titems.push(['watch', this. getWatchableProps().collect(function(ea) {\n\t\treturn [ea, function() { \n\t\t\tself.stopWatching(target)\n\t\t\tself.targetProperty = ea;\n\t\t\tself.startWatching(target);\n\t\t\tself.updateLabel();\n\t\t\t}]\n\t})])\n\treturn items\n}","funcProperties":{"__isSmartRef__":true,"id":3787},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3782":{"this":{"__isSmartRef__":true,"id":3753},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3783}},"3783":{"$super":{"__isSmartRef__":true,"id":3784}},"3784":{"varMapping":{"__isSmartRef__":true,"id":3785},"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":3786},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3785":{"obj":{"__isSmartRef__":true,"id":3753},"name":"morphMenuItems"},"3786":{},"3787":{},"3788":{"varMapping":{"__isSmartRef__":true,"id":3789},"source":"function getWatchableProps() {\n\tvar target = this.owner \n\tvar ignore = \"attributeConnections,doNotCopyProperties,doNotSerialize,droppingEnabled,eventHandler,halos,halosEnabled,partsBinMetaInfo,registeredForMouseEvents,scripts,shape,showsHalos\".split(\",\")\n\n\tvar props = Properties.own(target);\n\tif (target.connections) \n\t\tprops = props.concat(Properties.own(target.connections))\n\tprops = props\n\t\t.withoutAll(ignore)\n\t\t.select(function(ea) {return ea.match(/^[A-Za-z]/)})\n\t\t.sort().uniq()\n\treturn props \n}","funcProperties":{"__isSmartRef__":true,"id":3790},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3789":{"this":{"__isSmartRef__":true,"id":3753}},"3790":{},"3791":{"sourceObj":{"__isSmartRef__":true,"id":3145},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":3792},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3792":{"submorphs":[],"scripts":[],"id":6225,"shape":{"__isSmartRef__":true,"id":3793},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3797},"_MaxTextWidth":151.4790232303003,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":3796},"showsHalos":false,"_FontSize":10,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"PropertyWatcher4","partsBinMetaInfo":{"__isSmartRef__":true,"id":3798},"textChunks":[{"__isSmartRef__":true,"id":3799}],"charsReplaced":"Grr","lastFindLoc":-3,"priorSelectionRange":[0,0],"prevScroll":[0,0],"_Scale":0.9999999999999981,"priorExtent":{"__isSmartRef__":true,"id":3801},"attributeConnections":[{"__isSmartRef__":true,"id":3802}],"doNotSerialize":["$$owner"],"doNotCopyProperties":["$$owner"],"isInputLine":true,"savedTextString":"BottomMiddle","targetProperty":"scale","oldOwner":null,"owner":null,"renderContextTable":{"__isSmartRef__":true,"id":3803},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3804},"__LivelyClassName__":"lively.morphic.Text"},"3793":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":3794},"_Extent":{"__isSmartRef__":true,"id":3795},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":3796},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3794":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3795":{"x":151.4790232303003,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3796":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"3797":{"x":24.796957128367808,"y":68.28439772658322,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3798":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3799":{"style":{"__isSmartRef__":true,"id":3800},"morph":{"__isSmartRef__":true,"id":3792},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3800":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3801":{"x":151.4790232303003,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3802":{"sourceObj":{"__isSmartRef__":true,"id":3792},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":3792},"targetMethodName":"updateLabel","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3803":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"3804":{"updateLabel":{"__isSmartRef__":true,"id":3805},"renameOwner":{"__isSmartRef__":true,"id":3808},"reset":{"__isSmartRef__":true,"id":3811},"stopWatching":{"__isSmartRef__":true,"id":3814},"startWatching":{"__isSmartRef__":true,"id":3817},"morphMenuItems":{"__isSmartRef__":true,"id":3820},"getWatchableProps":{"__isSmartRef__":true,"id":3827}},"3805":{"varMapping":{"__isSmartRef__":true,"id":3806},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tthis.stopWatching(this.oldOwner);\n\t\tthis.startWatching(this.owner);\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar obj = this.owner;\n\tvar propName = this.targetProperty;\n\tif (!obj || !propName) return;\n\tvar getter = 'get' + (propName.capitalize());\n\t// try the getter and fall back to direct access\n\tvar value = (obj[getter] && obj[getter]() || obj[propName])\n\tvar s = propName + \": \"+ value\n\tif (this.textString != s)\n\t\tthis.setTextString(s)\n}","funcProperties":{"__isSmartRef__":true,"id":3807},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3806":{"this":{"__isSmartRef__":true,"id":3792}},"3807":{},"3808":{"varMapping":{"__isSmartRef__":true,"id":3809},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":3810},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3809":{"this":{"__isSmartRef__":true,"id":3792}},"3810":{},"3811":{"varMapping":{"__isSmartRef__":true,"id":3812},"source":"function reset() {\n\tthis.targetProperty = \"_Position\";\n\tthis.stopWatching(this.owner);\n\tthis.oldOwner = undefined;\n\tthis.setTextString('nothing to observe')\n}","funcProperties":{"__isSmartRef__":true,"id":3813},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3812":{"this":{"__isSmartRef__":true,"id":3792}},"3813":{},"3814":{"varMapping":{"__isSmartRef__":true,"id":3815},"source":"function stopWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.disconnect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":3816},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3815":{"this":{"__isSmartRef__":true,"id":3792}},"3816":{},"3817":{"varMapping":{"__isSmartRef__":true,"id":3818},"source":"function startWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.connect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":3819},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3818":{"this":{"__isSmartRef__":true,"id":3792}},"3819":{},"3820":{"varMapping":{"__isSmartRef__":true,"id":3821},"source":"function morphMenuItems() {\n\tmodule('lively.morphic.BindingsExtension').load(true)\n\tvar items = $super();\n\tif (this.owner)\n\tvar self = this;\n\tvar target = this.owner\n\t\n\titems.push(['watch', this. getWatchableProps().collect(function(ea) {\n\t\treturn [ea, function() { \n\t\t\tself.stopWatching(target)\n\t\t\tself.targetProperty = ea;\n\t\t\tself.startWatching(target);\n\t\t\tself.updateLabel();\n\t\t\t}]\n\t})])\n\treturn items\n}","funcProperties":{"__isSmartRef__":true,"id":3826},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3821":{"this":{"__isSmartRef__":true,"id":3792},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3822}},"3822":{"$super":{"__isSmartRef__":true,"id":3823}},"3823":{"varMapping":{"__isSmartRef__":true,"id":3824},"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":3825},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3824":{"obj":{"__isSmartRef__":true,"id":3792},"name":"morphMenuItems"},"3825":{},"3826":{},"3827":{"varMapping":{"__isSmartRef__":true,"id":3828},"source":"function getWatchableProps() {\n\tvar target = this.owner \n\tvar ignore = \"attributeConnections,doNotCopyProperties,doNotSerialize,droppingEnabled,eventHandler,halos,halosEnabled,partsBinMetaInfo,registeredForMouseEvents,scripts,shape,showsHalos\".split(\",\")\n\n\tvar props = Properties.own(target);\n\tif (target.connections) \n\t\tprops = props.concat(Properties.own(target.connections))\n\tprops = props\n\t\t.withoutAll(ignore)\n\t\t.select(function(ea) {return ea.match(/^[A-Za-z]/)})\n\t\t.sort().uniq()\n\treturn props \n}","funcProperties":{"__isSmartRef__":true,"id":3829},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3828":{"this":{"__isSmartRef__":true,"id":3792}},"3829":{},"3830":{"sourceObj":{"__isSmartRef__":true,"id":3145},"sourceAttrName":"_BorderWidth","targetObj":{"__isSmartRef__":true,"id":3831},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3831":{"submorphs":[],"scripts":[],"id":6999,"shape":{"__isSmartRef__":true,"id":3832},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3836},"_MaxTextWidth":204.41886033386783,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":3835},"showsHalos":false,"_FontSize":10,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"PropertyWatcher10","partsBinMetaInfo":{"__isSmartRef__":true,"id":3837},"textChunks":[{"__isSmartRef__":true,"id":3838}],"charsReplaced":"Grr","lastFindLoc":-3,"priorSelectionRange":[0,0],"prevScroll":[0,0],"_Scale":0.9999999999999986,"priorExtent":{"__isSmartRef__":true,"id":3840},"attributeConnections":[{"__isSmartRef__":true,"id":3841}],"doNotSerialize":["$$owner"],"doNotCopyProperties":["$$owner"],"isInputLine":true,"savedTextString":"BottomMiddle","targetProperty":"fill","oldOwner":null,"owner":null,"renderContextTable":{"__isSmartRef__":true,"id":3842},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3843},"__LivelyClassName__":"lively.morphic.Text"},"3832":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":3833},"_Extent":{"__isSmartRef__":true,"id":3834},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":3835},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3833":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3834":{"x":204.41886033386783,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3835":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"3836":{"x":103.74671431921148,"y":116.75775365471804,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3837":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3838":{"style":{"__isSmartRef__":true,"id":3839},"morph":{"__isSmartRef__":true,"id":3831},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3839":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3840":{"x":204.41886033386783,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3841":{"sourceObj":{"__isSmartRef__":true,"id":3831},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":3831},"targetMethodName":"updateLabel","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3842":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"3843":{"updateLabel":{"__isSmartRef__":true,"id":3844},"renameOwner":{"__isSmartRef__":true,"id":3847},"reset":{"__isSmartRef__":true,"id":3850},"stopWatching":{"__isSmartRef__":true,"id":3853},"startWatching":{"__isSmartRef__":true,"id":3856},"morphMenuItems":{"__isSmartRef__":true,"id":3859},"getWatchableProps":{"__isSmartRef__":true,"id":3866}},"3844":{"varMapping":{"__isSmartRef__":true,"id":3845},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tthis.stopWatching(this.oldOwner);\n\t\tthis.startWatching(this.owner);\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar obj = this.owner;\n\tvar propName = this.targetProperty;\n\tif (!obj || !propName) return;\n\tvar getter = 'get' + (propName.capitalize());\n\t// try the getter and fall back to direct access\n\tvar value = (obj[getter] && obj[getter]() || obj[propName])\n\tvar s = propName + \": \"+ value\n\tif (this.textString != s)\n\t\tthis.setTextString(s)\n}","funcProperties":{"__isSmartRef__":true,"id":3846},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3845":{"this":{"__isSmartRef__":true,"id":3831}},"3846":{},"3847":{"varMapping":{"__isSmartRef__":true,"id":3848},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":3849},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3848":{"this":{"__isSmartRef__":true,"id":3831}},"3849":{},"3850":{"varMapping":{"__isSmartRef__":true,"id":3851},"source":"function reset() {\n\tthis.targetProperty = \"_Position\";\n\tthis.stopWatching(this.owner);\n\tthis.oldOwner = undefined;\n\tthis.setTextString('nothing to observe')\n}","funcProperties":{"__isSmartRef__":true,"id":3852},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3851":{"this":{"__isSmartRef__":true,"id":3831}},"3852":{},"3853":{"varMapping":{"__isSmartRef__":true,"id":3854},"source":"function stopWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.disconnect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":3855},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3854":{"this":{"__isSmartRef__":true,"id":3831}},"3855":{},"3856":{"varMapping":{"__isSmartRef__":true,"id":3857},"source":"function startWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.connect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":3858},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3857":{"this":{"__isSmartRef__":true,"id":3831}},"3858":{},"3859":{"varMapping":{"__isSmartRef__":true,"id":3860},"source":"function morphMenuItems() {\n\tmodule('lively.morphic.BindingsExtension').load(true)\n\tvar items = $super();\n\tif (this.owner)\n\tvar self = this;\n\tvar target = this.owner\n\t\n\titems.push(['watch', this. getWatchableProps().collect(function(ea) {\n\t\treturn [ea, function() { \n\t\t\tself.stopWatching(target)\n\t\t\tself.targetProperty = ea;\n\t\t\tself.startWatching(target);\n\t\t\tself.updateLabel();\n\t\t\t}]\n\t})])\n\treturn items\n}","funcProperties":{"__isSmartRef__":true,"id":3865},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3860":{"this":{"__isSmartRef__":true,"id":3831},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3861}},"3861":{"$super":{"__isSmartRef__":true,"id":3862}},"3862":{"varMapping":{"__isSmartRef__":true,"id":3863},"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":3864},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3863":{"obj":{"__isSmartRef__":true,"id":3831},"name":"morphMenuItems"},"3864":{},"3865":{},"3866":{"varMapping":{"__isSmartRef__":true,"id":3867},"source":"function getWatchableProps() {\n\tvar target = this.owner \n\tvar ignore = \"attributeConnections,doNotCopyProperties,doNotSerialize,droppingEnabled,eventHandler,halos,halosEnabled,partsBinMetaInfo,registeredForMouseEvents,scripts,shape,showsHalos\".split(\",\")\n\n\tvar props = Properties.own(target);\n\tif (target.connections) \n\t\tprops = props.concat(Properties.own(target.connections))\n\tprops = props\n\t\t.withoutAll(ignore)\n\t\t.select(function(ea) {return ea.match(/^[A-Za-z]/)})\n\t\t.sort().uniq()\n\treturn props \n}","funcProperties":{"__isSmartRef__":true,"id":3868},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3867":{"this":{"__isSmartRef__":true,"id":3831}},"3868":{},"3869":{"sourceObj":{"__isSmartRef__":true,"id":3145},"sourceAttrName":"_BorderWidth","targetObj":{"__isSmartRef__":true,"id":3870},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3870":{"submorphs":[],"scripts":[],"id":6785,"shape":{"__isSmartRef__":true,"id":3871},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3875},"_MaxTextWidth":204.41886033386783,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":3874},"showsHalos":false,"_FontSize":10,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"PropertyWatcher9","partsBinMetaInfo":{"__isSmartRef__":true,"id":3876},"textChunks":[{"__isSmartRef__":true,"id":3877}],"charsReplaced":"Grr","lastFindLoc":-3,"priorSelectionRange":[0,22],"prevScroll":[0,0],"_Scale":0.9999999999999988,"priorExtent":{"__isSmartRef__":true,"id":3879},"attributeConnections":[{"__isSmartRef__":true,"id":3880}],"doNotSerialize":["$$owner"],"doNotCopyProperties":["$$owner"],"isInputLine":true,"savedTextString":"BottomMiddle","targetProperty":"borderWidth","oldOwner":null,"owner":null,"renderContextTable":{"__isSmartRef__":true,"id":3881},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3882},"__LivelyClassName__":"lively.morphic.Text"},"3871":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":3872},"_Extent":{"__isSmartRef__":true,"id":3873},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":3874},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3872":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3873":{"x":204.41886033386783,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3874":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"3875":{"x":163.0711904379126,"y":17.46234814607277,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3876":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3877":{"style":{"__isSmartRef__":true,"id":3878},"morph":{"__isSmartRef__":true,"id":3870},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3878":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3879":{"x":204.41886033386783,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3880":{"sourceObj":{"__isSmartRef__":true,"id":3870},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":3870},"targetMethodName":"updateLabel","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3881":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"3882":{"updateLabel":{"__isSmartRef__":true,"id":3883},"renameOwner":{"__isSmartRef__":true,"id":3886},"reset":{"__isSmartRef__":true,"id":3889},"stopWatching":{"__isSmartRef__":true,"id":3892},"startWatching":{"__isSmartRef__":true,"id":3895},"morphMenuItems":{"__isSmartRef__":true,"id":3898},"getWatchableProps":{"__isSmartRef__":true,"id":3905}},"3883":{"varMapping":{"__isSmartRef__":true,"id":3884},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tthis.stopWatching(this.oldOwner);\n\t\tthis.startWatching(this.owner);\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar obj = this.owner;\n\tvar propName = this.targetProperty;\n\tif (!obj || !propName) return;\n\tvar getter = 'get' + (propName.capitalize());\n\t// try the getter and fall back to direct access\n\tvar value = (obj[getter] && obj[getter]() || obj[propName])\n\tvar s = propName + \": \"+ value\n\tif (this.textString != s)\n\t\tthis.setTextString(s)\n}","funcProperties":{"__isSmartRef__":true,"id":3885},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3884":{"this":{"__isSmartRef__":true,"id":3870}},"3885":{},"3886":{"varMapping":{"__isSmartRef__":true,"id":3887},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":3888},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3887":{"this":{"__isSmartRef__":true,"id":3870}},"3888":{},"3889":{"varMapping":{"__isSmartRef__":true,"id":3890},"source":"function reset() {\n\tthis.targetProperty = \"_Position\";\n\tthis.stopWatching(this.owner);\n\tthis.oldOwner = undefined;\n\tthis.setTextString('nothing to observe')\n}","funcProperties":{"__isSmartRef__":true,"id":3891},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3890":{"this":{"__isSmartRef__":true,"id":3870}},"3891":{},"3892":{"varMapping":{"__isSmartRef__":true,"id":3893},"source":"function stopWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.disconnect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":3894},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3893":{"this":{"__isSmartRef__":true,"id":3870}},"3894":{},"3895":{"varMapping":{"__isSmartRef__":true,"id":3896},"source":"function startWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.connect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":3897},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3896":{"this":{"__isSmartRef__":true,"id":3870}},"3897":{},"3898":{"varMapping":{"__isSmartRef__":true,"id":3899},"source":"function morphMenuItems() {\n\tmodule('lively.morphic.BindingsExtension').load(true)\n\tvar items = $super();\n\tif (this.owner)\n\tvar self = this;\n\tvar target = this.owner\n\t\n\titems.push(['watch', this. getWatchableProps().collect(function(ea) {\n\t\treturn [ea, function() { \n\t\t\tself.stopWatching(target)\n\t\t\tself.targetProperty = ea;\n\t\t\tself.startWatching(target);\n\t\t\tself.updateLabel();\n\t\t\t}]\n\t})])\n\treturn items\n}","funcProperties":{"__isSmartRef__":true,"id":3904},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3899":{"this":{"__isSmartRef__":true,"id":3870},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3900}},"3900":{"$super":{"__isSmartRef__":true,"id":3901}},"3901":{"varMapping":{"__isSmartRef__":true,"id":3902},"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":3903},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3902":{"obj":{"__isSmartRef__":true,"id":3870},"name":"morphMenuItems"},"3903":{},"3904":{},"3905":{"varMapping":{"__isSmartRef__":true,"id":3906},"source":"function getWatchableProps() {\n\tvar target = this.owner \n\tvar ignore = \"attributeConnections,doNotCopyProperties,doNotSerialize,droppingEnabled,eventHandler,halos,halosEnabled,partsBinMetaInfo,registeredForMouseEvents,scripts,shape,showsHalos\".split(\",\")\n\n\tvar props = Properties.own(target);\n\tif (target.connections) \n\t\tprops = props.concat(Properties.own(target.connections))\n\tprops = props\n\t\t.withoutAll(ignore)\n\t\t.select(function(ea) {return ea.match(/^[A-Za-z]/)})\n\t\t.sort().uniq()\n\treturn props \n}","funcProperties":{"__isSmartRef__":true,"id":3907},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3906":{"this":{"__isSmartRef__":true,"id":3870}},"3907":{},"3908":{"sourceObj":{"__isSmartRef__":true,"id":3145},"sourceAttrName":"_Fill","targetObj":{"__isSmartRef__":true,"id":3909},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3909":{"submorphs":[],"scripts":[],"id":8128,"shape":{"__isSmartRef__":true,"id":3910},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3914},"_MaxTextWidth":204.41886033386783,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":3913},"showsHalos":false,"_FontSize":10,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"PropertyWatcher","partsBinMetaInfo":{"__isSmartRef__":true,"id":3915},"textChunks":[{"__isSmartRef__":true,"id":3916}],"charsReplaced":"Grr","lastFindLoc":-3,"priorSelectionRange":[0,0],"prevScroll":[0,0],"_Scale":0.9999999999999997,"priorExtent":{"__isSmartRef__":true,"id":3918},"attributeConnections":[{"__isSmartRef__":true,"id":3919}],"doNotSerialize":["$$owner"],"doNotCopyProperties":["$$owner"],"isInputLine":true,"savedTextString":"BottomMiddle","targetProperty":"name","oldOwner":{"__isSmartRef__":true,"id":3920},"owner":{"__isSmartRef__":true,"id":3920},"renderContextTable":{"__isSmartRef__":true,"id":4166},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4167},"__LivelyClassName__":"lively.morphic.Text"},"3910":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":3911},"_Extent":{"__isSmartRef__":true,"id":3912},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":3913},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3911":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3912":{"x":204.41886033386783,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3913":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"3914":{"x":193.37745793524988,"y":16.691635443434052,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3915":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3916":{"style":{"__isSmartRef__":true,"id":3917},"morph":{"__isSmartRef__":true,"id":3909},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3917":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3918":{"x":204.41886033386783,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3919":{"sourceObj":{"__isSmartRef__":true,"id":3909},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":3909},"targetMethodName":"updateLabel","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3920":{"submorphs":[{"__isSmartRef__":true,"id":3921},{"__isSmartRef__":true,"id":3941},{"__isSmartRef__":true,"id":3979},{"__isSmartRef__":true,"id":3909}],"scripts":[],"id":1982,"shape":{"__isSmartRef__":true,"id":4017},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":4037},"__SourceModuleName__":"Global.lively.morphic.Core","priorExtent":{"__isSmartRef__":true,"id":4038},"attributeConnections":[{"__isSmartRef__":true,"id":4039},{"__isSmartRef__":true,"id":4040},{"__isSmartRef__":true,"id":4041},{"__isSmartRef__":true,"id":4042},{"__isSmartRef__":true,"id":4081},{"__isSmartRef__":true,"id":4082},{"__isSmartRef__":true,"id":4083},{"__isSmartRef__":true,"id":4084},{"__isSmartRef__":true,"id":4123},{"__isSmartRef__":true,"id":4124},{"__isSmartRef__":true,"id":4125},{"__isSmartRef__":true,"id":4164}],"doNotSerialize":["$$name","$$_Position","$$_Scale","$$_Rotation"],"doNotCopyProperties":["$$name","$$_Position","$$_Scale","$$_Rotation"],"owner":null,"name":"BottomMiddle","_Position":{"__isSmartRef__":true,"id":4165},"_Scale":1,"_Rotation":-0.006821560079975697,"__LivelyClassName__":"lively.morphic.Box"},"3921":{"submorphs":[],"scripts":[],"id":7549,"shape":{"__isSmartRef__":true,"id":3922},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3926},"_MaxTextWidth":180.8018403394826,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":3925},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"NameLabel1","partsBinMetaInfo":{"__isSmartRef__":true,"id":3927},"textChunks":[{"__isSmartRef__":true,"id":3928}],"charsReplaced":"Grr","lastFindLoc":-3,"priorSelectionRange":[12,12],"prevScroll":[0,0],"_Scale":0.9999999999999997,"priorExtent":{"__isSmartRef__":true,"id":3930},"attributeConnections":[{"__isSmartRef__":true,"id":3931},{"__isSmartRef__":true,"id":3932}],"doNotSerialize":["$$owner","$$savedTextString"],"doNotCopyProperties":["$$owner","$$savedTextString"],"isInputLine":true,"oldOwner":{"__isSmartRef__":true,"id":3920},"owner":{"__isSmartRef__":true,"id":3920},"savedTextString":"BottomMiddle","renderContextTable":{"__isSmartRef__":true,"id":3933},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3934},"__LivelyClassName__":"lively.morphic.Text"},"3922":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":3923},"_Extent":{"__isSmartRef__":true,"id":3924},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":3925},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3923":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3924":{"x":180.8018403394826,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3925":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"3926":{"x":193.58568840948033,"y":39.54966467280104,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3927":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3928":{"style":{"__isSmartRef__":true,"id":3929},"morph":{"__isSmartRef__":true,"id":3921},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3929":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3930":{"x":180.8018403394826,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3931":{"sourceObj":{"__isSmartRef__":true,"id":3921},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":3921},"targetMethodName":"updateLabel","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3932":{"sourceObj":{"__isSmartRef__":true,"id":3921},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":3921},"targetMethodName":"renameOwner","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3933":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"3934":{"updateLabel":{"__isSmartRef__":true,"id":3935},"renameOwner":{"__isSmartRef__":true,"id":3938}},"3935":{"varMapping":{"__isSmartRef__":true,"id":3936},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tif (this.oldOwner)\n\t\t\tdisconnect(this.oldOwner, 'name', this, 'updateLabel')\n\t\tif (this.owner)\n\t\t\tconnect(this.owner, 'name', this, 'updateLabel')\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar name = (this.owner ? this.owner.name : \"no owner\")\n\tif (this.textString != name)\n\tthis.setTextString(name)\n}","funcProperties":{"__isSmartRef__":true,"id":3937},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3936":{"this":{"__isSmartRef__":true,"id":3921}},"3937":{},"3938":{"varMapping":{"__isSmartRef__":true,"id":3939},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":3940},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3939":{"this":{"__isSmartRef__":true,"id":3921}},"3940":{},"3941":{"submorphs":[],"scripts":[],"id":6154,"shape":{"__isSmartRef__":true,"id":3942},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3946},"_MaxTextWidth":151.4790232303003,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":3945},"showsHalos":false,"_FontSize":10,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"PropertyWatcher2","partsBinMetaInfo":{"__isSmartRef__":true,"id":3947},"textChunks":[{"__isSmartRef__":true,"id":3948}],"charsReplaced":"Grr","lastFindLoc":-3,"priorSelectionRange":[0,23],"prevScroll":[0,0],"_Scale":0.9999999999999981,"priorExtent":{"__isSmartRef__":true,"id":3950},"attributeConnections":[{"__isSmartRef__":true,"id":3951}],"doNotSerialize":["$$owner"],"doNotCopyProperties":["$$owner"],"isInputLine":true,"savedTextString":"BottomMiddle","targetProperty":"extent","oldOwner":{"__isSmartRef__":true,"id":3920},"cachedTextString":"extent: pt(467.7,141.4)","owner":{"__isSmartRef__":true,"id":3920},"renderContextTable":{"__isSmartRef__":true,"id":3952},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3953},"__LivelyClassName__":"lively.morphic.Text"},"3942":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":3943},"_Extent":{"__isSmartRef__":true,"id":3944},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":3945},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3943":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3944":{"x":151.4790232303003,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3945":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"3946":{"x":26.751815512027903,"y":17.458079751414573,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3947":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3948":{"style":{"__isSmartRef__":true,"id":3949},"morph":{"__isSmartRef__":true,"id":3941},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3949":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3950":{"x":151.4790232303003,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3951":{"sourceObj":{"__isSmartRef__":true,"id":3941},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":3941},"targetMethodName":"updateLabel","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3952":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"3953":{"updateLabel":{"__isSmartRef__":true,"id":3954},"renameOwner":{"__isSmartRef__":true,"id":3957},"reset":{"__isSmartRef__":true,"id":3960},"stopWatching":{"__isSmartRef__":true,"id":3963},"startWatching":{"__isSmartRef__":true,"id":3966},"morphMenuItems":{"__isSmartRef__":true,"id":3969},"getWatchableProps":{"__isSmartRef__":true,"id":3976}},"3954":{"varMapping":{"__isSmartRef__":true,"id":3955},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tthis.stopWatching(this.oldOwner);\n\t\tthis.startWatching(this.owner);\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar obj = this.owner;\n\tvar propName = this.targetProperty;\n\tif (!obj || !propName) return;\n\tvar getter = 'get' + (propName.capitalize());\n\t// try the getter and fall back to direct access\n\tvar value = (obj[getter] && obj[getter]() || obj[propName])\n\tvar s = propName + \": \"+ value\n\tif (this.textString != s)\n\t\tthis.setTextString(s)\n}","funcProperties":{"__isSmartRef__":true,"id":3956},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3955":{"this":{"__isSmartRef__":true,"id":3941}},"3956":{},"3957":{"varMapping":{"__isSmartRef__":true,"id":3958},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":3959},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3958":{"this":{"__isSmartRef__":true,"id":3941}},"3959":{},"3960":{"varMapping":{"__isSmartRef__":true,"id":3961},"source":"function reset() {\n\tthis.targetProperty = \"_Position\";\n\tthis.stopWatching(this.owner);\n\tthis.oldOwner = undefined;\n\tthis.setTextString('nothing to observe')\n}","funcProperties":{"__isSmartRef__":true,"id":3962},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3961":{"this":{"__isSmartRef__":true,"id":3941}},"3962":{},"3963":{"varMapping":{"__isSmartRef__":true,"id":3964},"source":"function stopWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.disconnect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":3965},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3964":{"this":{"__isSmartRef__":true,"id":3941}},"3965":{},"3966":{"varMapping":{"__isSmartRef__":true,"id":3967},"source":"function startWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.connect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":3968},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3967":{"this":{"__isSmartRef__":true,"id":3941}},"3968":{},"3969":{"varMapping":{"__isSmartRef__":true,"id":3970},"source":"function morphMenuItems() {\n\tmodule('lively.morphic.BindingsExtension').load(true)\n\tvar items = $super();\n\tif (this.owner)\n\tvar self = this;\n\tvar target = this.owner\n\t\n\titems.push(['watch', this. getWatchableProps().collect(function(ea) {\n\t\treturn [ea, function() { \n\t\t\tself.stopWatching(target)\n\t\t\tself.targetProperty = ea;\n\t\t\tself.startWatching(target);\n\t\t\tself.updateLabel();\n\t\t\t}]\n\t})])\n\treturn items\n}","funcProperties":{"__isSmartRef__":true,"id":3975},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3970":{"this":{"__isSmartRef__":true,"id":3941},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3971}},"3971":{"$super":{"__isSmartRef__":true,"id":3972}},"3972":{"varMapping":{"__isSmartRef__":true,"id":3973},"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":3974},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3973":{"obj":{"__isSmartRef__":true,"id":3941},"name":"morphMenuItems"},"3974":{},"3975":{},"3976":{"varMapping":{"__isSmartRef__":true,"id":3977},"source":"function getWatchableProps() {\n\tvar target = this.owner \n\tvar ignore = \"attributeConnections,doNotCopyProperties,doNotSerialize,droppingEnabled,eventHandler,halos,halosEnabled,partsBinMetaInfo,registeredForMouseEvents,scripts,shape,showsHalos\".split(\",\")\n\n\tvar props = Properties.own(target);\n\tif (target.connections) \n\t\tprops = props.concat(Properties.own(target.connections))\n\tprops = props\n\t\t.withoutAll(ignore)\n\t\t.select(function(ea) {return ea.match(/^[A-Za-z]/)})\n\t\t.sort().uniq()\n\treturn props \n}","funcProperties":{"__isSmartRef__":true,"id":3978},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3977":{"this":{"__isSmartRef__":true,"id":3941}},"3978":{},"3979":{"submorphs":[],"scripts":[],"id":6367,"shape":{"__isSmartRef__":true,"id":3980},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3984},"_MaxTextWidth":151.4790232303003,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":3983},"showsHalos":false,"_FontSize":10,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"PropertyWatcher7","partsBinMetaInfo":{"__isSmartRef__":true,"id":3985},"textChunks":[{"__isSmartRef__":true,"id":3986}],"charsReplaced":"Grr","lastFindLoc":-3,"priorSelectionRange":[0,0],"prevScroll":[0,0],"_Scale":0.9999999999999981,"priorExtent":{"__isSmartRef__":true,"id":3988},"attributeConnections":[{"__isSmartRef__":true,"id":3989}],"doNotSerialize":["$$owner"],"doNotCopyProperties":["$$owner"],"isInputLine":true,"savedTextString":"BottomMiddle","targetProperty":"scale","oldOwner":{"__isSmartRef__":true,"id":3920},"cachedTextString":"scale: 1","owner":{"__isSmartRef__":true,"id":3920},"renderContextTable":{"__isSmartRef__":true,"id":3990},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3991},"__LivelyClassName__":"lively.morphic.Text"},"3980":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":3981},"_Extent":{"__isSmartRef__":true,"id":3982},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":3983},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3981":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3982":{"x":151.4790232303003,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3983":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"3984":{"x":378.6263245708833,"y":31.142088437038183,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3985":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3986":{"style":{"__isSmartRef__":true,"id":3987},"morph":{"__isSmartRef__":true,"id":3979},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3987":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"3988":{"x":151.4790232303003,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3989":{"sourceObj":{"__isSmartRef__":true,"id":3979},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":3979},"targetMethodName":"updateLabel","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"3990":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"3991":{"updateLabel":{"__isSmartRef__":true,"id":3992},"renameOwner":{"__isSmartRef__":true,"id":3995},"reset":{"__isSmartRef__":true,"id":3998},"stopWatching":{"__isSmartRef__":true,"id":4001},"startWatching":{"__isSmartRef__":true,"id":4004},"morphMenuItems":{"__isSmartRef__":true,"id":4007},"getWatchableProps":{"__isSmartRef__":true,"id":4014}},"3992":{"varMapping":{"__isSmartRef__":true,"id":3993},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tthis.stopWatching(this.oldOwner);\n\t\tthis.startWatching(this.owner);\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar obj = this.owner;\n\tvar propName = this.targetProperty;\n\tif (!obj || !propName) return;\n\tvar getter = 'get' + (propName.capitalize());\n\t// try the getter and fall back to direct access\n\tvar value = (obj[getter] && obj[getter]() || obj[propName])\n\tvar s = propName + \": \"+ value\n\tif (this.textString != s)\n\t\tthis.setTextString(s)\n}","funcProperties":{"__isSmartRef__":true,"id":3994},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3993":{"this":{"__isSmartRef__":true,"id":3979}},"3994":{},"3995":{"varMapping":{"__isSmartRef__":true,"id":3996},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":3997},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3996":{"this":{"__isSmartRef__":true,"id":3979}},"3997":{},"3998":{"varMapping":{"__isSmartRef__":true,"id":3999},"source":"function reset() {\n\tthis.targetProperty = \"_Position\";\n\tthis.stopWatching(this.owner);\n\tthis.oldOwner = undefined;\n\tthis.setTextString('nothing to observe')\n}","funcProperties":{"__isSmartRef__":true,"id":4000},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"3999":{"this":{"__isSmartRef__":true,"id":3979}},"4000":{},"4001":{"varMapping":{"__isSmartRef__":true,"id":4002},"source":"function stopWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.disconnect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":4003},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4002":{"this":{"__isSmartRef__":true,"id":3979}},"4003":{},"4004":{"varMapping":{"__isSmartRef__":true,"id":4005},"source":"function startWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.connect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":4006},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4005":{"this":{"__isSmartRef__":true,"id":3979}},"4006":{},"4007":{"varMapping":{"__isSmartRef__":true,"id":4008},"source":"function morphMenuItems() {\n\tmodule('lively.morphic.BindingsExtension').load(true)\n\tvar items = $super();\n\tif (this.owner)\n\tvar self = this;\n\tvar target = this.owner\n\t\n\titems.push(['watch', this. getWatchableProps().collect(function(ea) {\n\t\treturn [ea, function() { \n\t\t\tself.stopWatching(target)\n\t\t\tself.targetProperty = ea;\n\t\t\tself.startWatching(target);\n\t\t\tself.updateLabel();\n\t\t\t}]\n\t})])\n\treturn items\n}","funcProperties":{"__isSmartRef__":true,"id":4013},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4008":{"this":{"__isSmartRef__":true,"id":3979},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4009}},"4009":{"$super":{"__isSmartRef__":true,"id":4010}},"4010":{"varMapping":{"__isSmartRef__":true,"id":4011},"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":4012},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4011":{"obj":{"__isSmartRef__":true,"id":3979},"name":"morphMenuItems"},"4012":{},"4013":{},"4014":{"varMapping":{"__isSmartRef__":true,"id":4015},"source":"function getWatchableProps() {\n\tvar target = this.owner \n\tvar ignore = \"attributeConnections,doNotCopyProperties,doNotSerialize,droppingEnabled,eventHandler,halos,halosEnabled,partsBinMetaInfo,registeredForMouseEvents,scripts,shape,showsHalos\".split(\",\")\n\n\tvar props = Properties.own(target);\n\tif (target.connections) \n\t\tprops = props.concat(Properties.own(target.connections))\n\tprops = props\n\t\t.withoutAll(ignore)\n\t\t.select(function(ea) {return ea.match(/^[A-Za-z]/)})\n\t\t.sort().uniq()\n\treturn props \n}","funcProperties":{"__isSmartRef__":true,"id":4016},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4015":{"this":{"__isSmartRef__":true,"id":3979}},"4016":{},"4017":{"position":{"__isSmartRef__":true,"id":4018},"_BorderColor":{"__isSmartRef__":true,"id":4019},"__SourceModuleName__":"Global.lively.morphic.Shapes","attributeConnections":[{"__isSmartRef__":true,"id":4020},{"__isSmartRef__":true,"id":4021},{"__isSmartRef__":true,"id":4022},{"__isSmartRef__":true,"id":4023},{"__isSmartRef__":true,"id":4024},{"__isSmartRef__":true,"id":4025},{"__isSmartRef__":true,"id":4026},{"__isSmartRef__":true,"id":4027},{"__isSmartRef__":true,"id":4028},{"__isSmartRef__":true,"id":4029},{"__isSmartRef__":true,"id":4030},{"__isSmartRef__":true,"id":4031},{"__isSmartRef__":true,"id":4032},{"__isSmartRef__":true,"id":4033},{"__isSmartRef__":true,"id":4034}],"doNotSerialize":["$$_Extent","$$_BorderWidth","$$_Fill"],"doNotCopyProperties":["$$_Extent","$$_BorderWidth","$$_Fill"],"_Extent":{"__isSmartRef__":true,"id":4035},"_BorderWidth":5,"_Fill":{"__isSmartRef__":true,"id":4036},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4018":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"4019":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"4020":{"sourceObj":{"__isSmartRef__":true,"id":4017},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":3148},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4021":{"sourceObj":{"__isSmartRef__":true,"id":4017},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":3187},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4022":{"sourceObj":{"__isSmartRef__":true,"id":4017},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":3317},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4023":{"sourceObj":{"__isSmartRef__":true,"id":4017},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":3356},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4024":{"sourceObj":{"__isSmartRef__":true,"id":4017},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":3244},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4025":{"sourceObj":{"__isSmartRef__":true,"id":4017},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":3199},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4026":{"sourceObj":{"__isSmartRef__":true,"id":4017},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":3397},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4027":{"sourceObj":{"__isSmartRef__":true,"id":4017},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":3753},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4028":{"sourceObj":{"__isSmartRef__":true,"id":4017},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":3792},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4029":{"sourceObj":{"__isSmartRef__":true,"id":4017},"sourceAttrName":"_BorderWidth","targetObj":{"__isSmartRef__":true,"id":3831},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4030":{"sourceObj":{"__isSmartRef__":true,"id":4017},"sourceAttrName":"_BorderWidth","targetObj":{"__isSmartRef__":true,"id":3870},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4031":{"sourceObj":{"__isSmartRef__":true,"id":4017},"sourceAttrName":"_Fill","targetObj":{"__isSmartRef__":true,"id":3909},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4032":{"sourceObj":{"__isSmartRef__":true,"id":4017},"sourceAttrName":"_BorderWidth","targetObj":{"__isSmartRef__":true,"id":3909},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4033":{"sourceObj":{"__isSmartRef__":true,"id":4017},"sourceAttrName":"_Fill","targetObj":{"__isSmartRef__":true,"id":3831},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4034":{"sourceObj":{"__isSmartRef__":true,"id":4017},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":3941},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4035":{"x":467.7114482859563,"y":141.4244629003344,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"4036":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"4037":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"4038":{"x":467.7114482859563,"y":142.40483025410413,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"4039":{"sourceObj":{"__isSmartRef__":true,"id":3920},"sourceAttrName":"name","targetObj":{"__isSmartRef__":true,"id":3921},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4040":{"sourceObj":{"__isSmartRef__":true,"id":3920},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":3941},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4041":{"sourceObj":{"__isSmartRef__":true,"id":3920},"sourceAttrName":"extent","targetObj":{"__isSmartRef__":true,"id":3941},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.morphic.BindingsExtension","__LivelyClassName__":"lively.morphic.GeometryConnection"},"4042":{"sourceObj":{"__isSmartRef__":true,"id":3920},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":4043},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4043":{"submorphs":[],"scripts":[],"id":6318,"shape":{"__isSmartRef__":true,"id":4044},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4048},"_MaxTextWidth":204.41886033386783,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":4047},"showsHalos":false,"_FontSize":10,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"PropertyWatcher5","partsBinMetaInfo":{"__isSmartRef__":true,"id":4049},"textChunks":[{"__isSmartRef__":true,"id":4050}],"charsReplaced":"Grr","lastFindLoc":-3,"priorSelectionRange":[0,0],"prevScroll":[0,0],"_Scale":0.9999999999999981,"priorExtent":{"__isSmartRef__":true,"id":4052},"attributeConnections":[{"__isSmartRef__":true,"id":4053}],"doNotSerialize":["$$owner"],"doNotCopyProperties":["$$owner"],"isInputLine":true,"savedTextString":"BottomMiddle","targetProperty":"rotation","oldOwner":null,"owner":null,"renderContextTable":{"__isSmartRef__":true,"id":4054},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4055},"__LivelyClassName__":"lively.morphic.Text"},"4044":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":4045},"_Extent":{"__isSmartRef__":true,"id":4046},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4047},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4045":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"4046":{"x":204.41886033386783,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"4047":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"4048":{"x":18.93238197738725,"y":83.92326479586677,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"4049":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"4050":{"style":{"__isSmartRef__":true,"id":4051},"morph":{"__isSmartRef__":true,"id":4043},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4051":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4052":{"x":204.41886033386783,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"4053":{"sourceObj":{"__isSmartRef__":true,"id":4043},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":4043},"targetMethodName":"updateLabel","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4054":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"4055":{"updateLabel":{"__isSmartRef__":true,"id":4056},"renameOwner":{"__isSmartRef__":true,"id":4059},"reset":{"__isSmartRef__":true,"id":4062},"stopWatching":{"__isSmartRef__":true,"id":4065},"startWatching":{"__isSmartRef__":true,"id":4068},"morphMenuItems":{"__isSmartRef__":true,"id":4071},"getWatchableProps":{"__isSmartRef__":true,"id":4078}},"4056":{"varMapping":{"__isSmartRef__":true,"id":4057},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tthis.stopWatching(this.oldOwner);\n\t\tthis.startWatching(this.owner);\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar obj = this.owner;\n\tvar propName = this.targetProperty;\n\tif (!obj || !propName) return;\n\tvar getter = 'get' + (propName.capitalize());\n\t// try the getter and fall back to direct access\n\tvar value = (obj[getter] && obj[getter]() || obj[propName])\n\tvar s = propName + \": \"+ value\n\tif (this.textString != s)\n\t\tthis.setTextString(s)\n}","funcProperties":{"__isSmartRef__":true,"id":4058},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4057":{"this":{"__isSmartRef__":true,"id":4043}},"4058":{},"4059":{"varMapping":{"__isSmartRef__":true,"id":4060},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":4061},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4060":{"this":{"__isSmartRef__":true,"id":4043}},"4061":{},"4062":{"varMapping":{"__isSmartRef__":true,"id":4063},"source":"function reset() {\n\tthis.targetProperty = \"_Position\";\n\tthis.stopWatching(this.owner);\n\tthis.oldOwner = undefined;\n\tthis.setTextString('nothing to observe')\n}","funcProperties":{"__isSmartRef__":true,"id":4064},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4063":{"this":{"__isSmartRef__":true,"id":4043}},"4064":{},"4065":{"varMapping":{"__isSmartRef__":true,"id":4066},"source":"function stopWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.disconnect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":4067},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4066":{"this":{"__isSmartRef__":true,"id":4043}},"4067":{},"4068":{"varMapping":{"__isSmartRef__":true,"id":4069},"source":"function startWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.connect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":4070},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4069":{"this":{"__isSmartRef__":true,"id":4043}},"4070":{},"4071":{"varMapping":{"__isSmartRef__":true,"id":4072},"source":"function morphMenuItems() {\n\tmodule('lively.morphic.BindingsExtension').load(true)\n\tvar items = $super();\n\tif (this.owner)\n\tvar self = this;\n\tvar target = this.owner\n\t\n\titems.push(['watch', this. getWatchableProps().collect(function(ea) {\n\t\treturn [ea, function() { \n\t\t\tself.stopWatching(target)\n\t\t\tself.targetProperty = ea;\n\t\t\tself.startWatching(target);\n\t\t\tself.updateLabel();\n\t\t\t}]\n\t})])\n\treturn items\n}","funcProperties":{"__isSmartRef__":true,"id":4077},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4072":{"this":{"__isSmartRef__":true,"id":4043},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4073}},"4073":{"$super":{"__isSmartRef__":true,"id":4074}},"4074":{"varMapping":{"__isSmartRef__":true,"id":4075},"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":4076},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4075":{"obj":{"__isSmartRef__":true,"id":4043},"name":"morphMenuItems"},"4076":{},"4077":{},"4078":{"varMapping":{"__isSmartRef__":true,"id":4079},"source":"function getWatchableProps() {\n\tvar target = this.owner \n\tvar ignore = \"attributeConnections,doNotCopyProperties,doNotSerialize,droppingEnabled,eventHandler,halos,halosEnabled,partsBinMetaInfo,registeredForMouseEvents,scripts,shape,showsHalos\".split(\",\")\n\n\tvar props = Properties.own(target);\n\tif (target.connections) \n\t\tprops = props.concat(Properties.own(target.connections))\n\tprops = props\n\t\t.withoutAll(ignore)\n\t\t.select(function(ea) {return ea.match(/^[A-Za-z]/)})\n\t\t.sort().uniq()\n\treturn props \n}","funcProperties":{"__isSmartRef__":true,"id":4080},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4079":{"this":{"__isSmartRef__":true,"id":4043}},"4080":{},"4081":{"sourceObj":{"__isSmartRef__":true,"id":3920},"sourceAttrName":"scale","targetObj":{"__isSmartRef__":true,"id":3979},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.morphic.BindingsExtension","__LivelyClassName__":"lively.morphic.GeometryConnection"},"4082":{"sourceObj":{"__isSmartRef__":true,"id":3920},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":3870},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4083":{"sourceObj":{"__isSmartRef__":true,"id":3920},"sourceAttrName":"name","targetObj":{"__isSmartRef__":true,"id":3909},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4084":{"sourceObj":{"__isSmartRef__":true,"id":3920},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":4085},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4085":{"submorphs":[],"scripts":[],"id":8255,"shape":{"__isSmartRef__":true,"id":4086},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4090},"_MaxTextWidth":151.4790232303003,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":4089},"showsHalos":false,"_FontSize":10,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"PropertyWatcher","partsBinMetaInfo":{"__isSmartRef__":true,"id":4091},"textChunks":[{"__isSmartRef__":true,"id":4092}],"charsReplaced":"Grr","lastFindLoc":-3,"priorSelectionRange":[0,0],"prevScroll":[0,0],"_Scale":0.9999999999999981,"priorExtent":{"__isSmartRef__":true,"id":4094},"attributeConnections":[{"__isSmartRef__":true,"id":4095}],"doNotSerialize":["$$owner"],"doNotCopyProperties":["$$owner"],"isInputLine":true,"savedTextString":"BottomMiddle","targetProperty":"position","oldOwner":null,"owner":null,"renderContextTable":{"__isSmartRef__":true,"id":4096},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4097},"__LivelyClassName__":"lively.morphic.Text"},"4086":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":4087},"_Extent":{"__isSmartRef__":true,"id":4088},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4089},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4087":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"4088":{"x":151.4790232303003,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"4089":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"4090":{"x":18.932381977387024,"y":43.84866793082989,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"4091":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"4092":{"style":{"__isSmartRef__":true,"id":4093},"morph":{"__isSmartRef__":true,"id":4085},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4093":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4094":{"x":151.4790232303003,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"4095":{"sourceObj":{"__isSmartRef__":true,"id":4085},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":4085},"targetMethodName":"updateLabel","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4096":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"4097":{"updateLabel":{"__isSmartRef__":true,"id":4098},"renameOwner":{"__isSmartRef__":true,"id":4101},"reset":{"__isSmartRef__":true,"id":4104},"stopWatching":{"__isSmartRef__":true,"id":4107},"startWatching":{"__isSmartRef__":true,"id":4110},"morphMenuItems":{"__isSmartRef__":true,"id":4113},"getWatchableProps":{"__isSmartRef__":true,"id":4120}},"4098":{"varMapping":{"__isSmartRef__":true,"id":4099},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tthis.stopWatching(this.oldOwner);\n\t\tthis.startWatching(this.owner);\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar obj = this.owner;\n\tvar propName = this.targetProperty;\n\tif (!obj || !propName) return;\n\tvar getter = 'get' + (propName.capitalize());\n\t// try the getter and fall back to direct access\n\tvar value = (obj[getter] && obj[getter]() || obj[propName])\n\tvar s = propName + \": \"+ value\n\tif (this.textString != s)\n\t\tthis.setTextString(s)\n}","funcProperties":{"__isSmartRef__":true,"id":4100},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4099":{"this":{"__isSmartRef__":true,"id":4085}},"4100":{},"4101":{"varMapping":{"__isSmartRef__":true,"id":4102},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":4103},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4102":{"this":{"__isSmartRef__":true,"id":4085}},"4103":{},"4104":{"varMapping":{"__isSmartRef__":true,"id":4105},"source":"function reset() {\n\tthis.targetProperty = \"_Position\";\n\tthis.stopWatching(this.owner);\n\tthis.oldOwner = undefined;\n\tthis.setTextString('nothing to observe')\n}","funcProperties":{"__isSmartRef__":true,"id":4106},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4105":{"this":{"__isSmartRef__":true,"id":4085}},"4106":{},"4107":{"varMapping":{"__isSmartRef__":true,"id":4108},"source":"function stopWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.disconnect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":4109},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4108":{"this":{"__isSmartRef__":true,"id":4085}},"4109":{},"4110":{"varMapping":{"__isSmartRef__":true,"id":4111},"source":"function startWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.connect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":4112},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4111":{"this":{"__isSmartRef__":true,"id":4085}},"4112":{},"4113":{"varMapping":{"__isSmartRef__":true,"id":4114},"source":"function morphMenuItems() {\n\tmodule('lively.morphic.BindingsExtension').load(true)\n\tvar items = $super();\n\tif (this.owner)\n\tvar self = this;\n\tvar target = this.owner\n\t\n\titems.push(['watch', this. getWatchableProps().collect(function(ea) {\n\t\treturn [ea, function() { \n\t\t\tself.stopWatching(target)\n\t\t\tself.targetProperty = ea;\n\t\t\tself.startWatching(target);\n\t\t\tself.updateLabel();\n\t\t\t}]\n\t})])\n\treturn items\n}","funcProperties":{"__isSmartRef__":true,"id":4119},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4114":{"this":{"__isSmartRef__":true,"id":4085},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4115}},"4115":{"$super":{"__isSmartRef__":true,"id":4116}},"4116":{"varMapping":{"__isSmartRef__":true,"id":4117},"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":4118},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4117":{"obj":{"__isSmartRef__":true,"id":4085},"name":"morphMenuItems"},"4118":{},"4119":{},"4120":{"varMapping":{"__isSmartRef__":true,"id":4121},"source":"function getWatchableProps() {\n\tvar target = this.owner \n\tvar ignore = \"attributeConnections,doNotCopyProperties,doNotSerialize,droppingEnabled,eventHandler,halos,halosEnabled,partsBinMetaInfo,registeredForMouseEvents,scripts,shape,showsHalos\".split(\",\")\n\n\tvar props = Properties.own(target);\n\tif (target.connections) \n\t\tprops = props.concat(Properties.own(target.connections))\n\tprops = props\n\t\t.withoutAll(ignore)\n\t\t.select(function(ea) {return ea.match(/^[A-Za-z]/)})\n\t\t.sort().uniq()\n\treturn props \n}","funcProperties":{"__isSmartRef__":true,"id":4122},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4121":{"this":{"__isSmartRef__":true,"id":4085}},"4122":{},"4123":{"sourceObj":{"__isSmartRef__":true,"id":3920},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":3792},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4124":{"sourceObj":{"__isSmartRef__":true,"id":3920},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":4043},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4125":{"sourceObj":{"__isSmartRef__":true,"id":3920},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":4126},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4126":{"submorphs":[],"scripts":[],"id":6760,"shape":{"__isSmartRef__":true,"id":4127},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4131},"_MaxTextWidth":204.41886033386783,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":4130},"showsHalos":false,"_FontSize":10,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"PropertyWatcher8","partsBinMetaInfo":{"__isSmartRef__":true,"id":4132},"textChunks":[{"__isSmartRef__":true,"id":4133}],"charsReplaced":"Grr","lastFindLoc":-3,"priorSelectionRange":[0,0],"prevScroll":[0,0],"_Scale":0.9999999999999983,"priorExtent":{"__isSmartRef__":true,"id":4135},"attributeConnections":[{"__isSmartRef__":true,"id":4136}],"doNotSerialize":["$$owner"],"doNotCopyProperties":["$$owner"],"isInputLine":true,"savedTextString":"BottomMiddle","targetProperty":"rotation","oldOwner":null,"owner":null,"renderContextTable":{"__isSmartRef__":true,"id":4137},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4138},"__LivelyClassName__":"lively.morphic.Text"},"4127":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":4128},"_Extent":{"__isSmartRef__":true,"id":4129},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4130},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4128":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"4129":{"x":204.41886033386783,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"4130":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"4131":{"x":222.1795833030152,"y":93.12936476862473,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"4132":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"4133":{"style":{"__isSmartRef__":true,"id":4134},"morph":{"__isSmartRef__":true,"id":4126},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4134":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4135":{"x":204.41886033386783,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"4136":{"sourceObj":{"__isSmartRef__":true,"id":4126},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":4126},"targetMethodName":"updateLabel","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4137":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"4138":{"updateLabel":{"__isSmartRef__":true,"id":4139},"renameOwner":{"__isSmartRef__":true,"id":4142},"reset":{"__isSmartRef__":true,"id":4145},"stopWatching":{"__isSmartRef__":true,"id":4148},"startWatching":{"__isSmartRef__":true,"id":4151},"morphMenuItems":{"__isSmartRef__":true,"id":4154},"getWatchableProps":{"__isSmartRef__":true,"id":4161}},"4139":{"varMapping":{"__isSmartRef__":true,"id":4140},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tthis.stopWatching(this.oldOwner);\n\t\tthis.startWatching(this.owner);\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar obj = this.owner;\n\tvar propName = this.targetProperty;\n\tif (!obj || !propName) return;\n\tvar getter = 'get' + (propName.capitalize());\n\t// try the getter and fall back to direct access\n\tvar value = (obj[getter] && obj[getter]() || obj[propName])\n\tvar s = propName + \": \"+ value\n\tif (this.textString != s)\n\t\tthis.setTextString(s)\n}","funcProperties":{"__isSmartRef__":true,"id":4141},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4140":{"this":{"__isSmartRef__":true,"id":4126}},"4141":{},"4142":{"varMapping":{"__isSmartRef__":true,"id":4143},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":4144},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4143":{"this":{"__isSmartRef__":true,"id":4126}},"4144":{},"4145":{"varMapping":{"__isSmartRef__":true,"id":4146},"source":"function reset() {\n\tthis.targetProperty = \"_Position\";\n\tthis.stopWatching(this.owner);\n\tthis.oldOwner = undefined;\n\tthis.setTextString('nothing to observe')\n}","funcProperties":{"__isSmartRef__":true,"id":4147},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4146":{"this":{"__isSmartRef__":true,"id":4126}},"4147":{},"4148":{"varMapping":{"__isSmartRef__":true,"id":4149},"source":"function stopWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.disconnect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":4150},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4149":{"this":{"__isSmartRef__":true,"id":4126}},"4150":{},"4151":{"varMapping":{"__isSmartRef__":true,"id":4152},"source":"function startWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.connect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":4153},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4152":{"this":{"__isSmartRef__":true,"id":4126}},"4153":{},"4154":{"varMapping":{"__isSmartRef__":true,"id":4155},"source":"function morphMenuItems() {\n\tmodule('lively.morphic.BindingsExtension').load(true)\n\tvar items = $super();\n\tif (this.owner)\n\tvar self = this;\n\tvar target = this.owner\n\t\n\titems.push(['watch', this. getWatchableProps().collect(function(ea) {\n\t\treturn [ea, function() { \n\t\t\tself.stopWatching(target)\n\t\t\tself.targetProperty = ea;\n\t\t\tself.startWatching(target);\n\t\t\tself.updateLabel();\n\t\t\t}]\n\t})])\n\treturn items\n}","funcProperties":{"__isSmartRef__":true,"id":4160},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4155":{"this":{"__isSmartRef__":true,"id":4126},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4156}},"4156":{"$super":{"__isSmartRef__":true,"id":4157}},"4157":{"varMapping":{"__isSmartRef__":true,"id":4158},"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":4159},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4158":{"obj":{"__isSmartRef__":true,"id":4126},"name":"morphMenuItems"},"4159":{},"4160":{},"4161":{"varMapping":{"__isSmartRef__":true,"id":4162},"source":"function getWatchableProps() {\n\tvar target = this.owner \n\tvar ignore = \"attributeConnections,doNotCopyProperties,doNotSerialize,droppingEnabled,eventHandler,halos,halosEnabled,partsBinMetaInfo,registeredForMouseEvents,scripts,shape,showsHalos\".split(\",\")\n\n\tvar props = Properties.own(target);\n\tif (target.connections) \n\t\tprops = props.concat(Properties.own(target.connections))\n\tprops = props\n\t\t.withoutAll(ignore)\n\t\t.select(function(ea) {return ea.match(/^[A-Za-z]/)})\n\t\t.sort().uniq()\n\treturn props \n}","funcProperties":{"__isSmartRef__":true,"id":4163},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4162":{"this":{"__isSmartRef__":true,"id":4126}},"4163":{},"4164":{"sourceObj":{"__isSmartRef__":true,"id":3920},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":3979},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4165":{"x":15.133238850321703,"y":153.28088915159782,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"4166":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"4167":{"updateLabel":{"__isSmartRef__":true,"id":4168},"renameOwner":{"__isSmartRef__":true,"id":4171},"reset":{"__isSmartRef__":true,"id":4174},"stopWatching":{"__isSmartRef__":true,"id":4177},"startWatching":{"__isSmartRef__":true,"id":4180},"morphMenuItems":{"__isSmartRef__":true,"id":4183},"getWatchableProps":{"__isSmartRef__":true,"id":4190}},"4168":{"varMapping":{"__isSmartRef__":true,"id":4169},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tthis.stopWatching(this.oldOwner);\n\t\tthis.startWatching(this.owner);\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar obj = this.owner;\n\tvar propName = this.targetProperty;\n\tif (!obj || !propName) return;\n\tvar getter = 'get' + (propName.charAt(0).toUpperCase() + propName.substring(1));\n\talert('update ' + getter)\n\t// try the getter and fall back to direct access\n\tvar value = (obj[getter] && obj[getter]() || obj[propName])\n\tvar s = propName + \": \"+ value\n\tif (this.textString != s)\n\t\tthis.setTextString(s)\n}","funcProperties":{"__isSmartRef__":true,"id":4170},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4169":{"this":{"__isSmartRef__":true,"id":3909}},"4170":{},"4171":{"varMapping":{"__isSmartRef__":true,"id":4172},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":4173},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4172":{"this":{"__isSmartRef__":true,"id":3909}},"4173":{},"4174":{"varMapping":{"__isSmartRef__":true,"id":4175},"source":"function reset() {\n\tthis.targetProperty = \"_Position\";\n\tthis.stopWatching(this.owner);\n\tthis.oldOwner = undefined;\n\tthis.setTextString('nothing to observe')\n}","funcProperties":{"__isSmartRef__":true,"id":4176},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4175":{"this":{"__isSmartRef__":true,"id":3909}},"4176":{},"4177":{"varMapping":{"__isSmartRef__":true,"id":4178},"source":"function stopWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.disconnect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":4179},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4178":{"this":{"__isSmartRef__":true,"id":3909}},"4179":{},"4180":{"varMapping":{"__isSmartRef__":true,"id":4181},"source":"function startWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.connect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":4182},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4181":{"this":{"__isSmartRef__":true,"id":3909}},"4182":{},"4183":{"varMapping":{"__isSmartRef__":true,"id":4184},"source":"function morphMenuItems() {\n\tmodule('lively.morphic.BindingsExtension').load(true)\n\tvar items = $super();\n\tif (this.owner)\n\tvar self = this;\n\tvar target = this.owner\n\t\n\titems.push(['watch', this. getWatchableProps().collect(function(ea) {\n\t\treturn [ea, function() { \n\t\t\tself.stopWatching(target)\n\t\t\tself.targetProperty = ea;\n\t\t\tself.startWatching(target);\n\t\t\tself.updateLabel();\n\t\t\t}]\n\t})])\n\treturn items\n}","funcProperties":{"__isSmartRef__":true,"id":4189},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4184":{"this":{"__isSmartRef__":true,"id":3909},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4185}},"4185":{"$super":{"__isSmartRef__":true,"id":4186}},"4186":{"varMapping":{"__isSmartRef__":true,"id":4187},"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":4188},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4187":{"obj":{"__isSmartRef__":true,"id":3909},"name":"morphMenuItems"},"4188":{},"4189":{},"4190":{"varMapping":{"__isSmartRef__":true,"id":4191},"source":"function getWatchableProps() {\n\tvar target = this.owner \n\tvar ignore = \"attributeConnections,doNotCopyProperties,doNotSerialize,droppingEnabled,eventHandler,halos,halosEnabled,partsBinMetaInfo,registeredForMouseEvents,scripts,shape,showsHalos\".split(\",\")\n\n\tvar props = Properties.own(target);\n\tif (target.connections) \n\t\tprops = props.concat(Properties.own(target.connections))\n\tprops = props\n\t\t.withoutAll(ignore)\n\t\t.select(function(ea) {return ea.match(/^[A-Za-z]/)})\n\t\t.sort().uniq()\n\treturn props \n}","funcProperties":{"__isSmartRef__":true,"id":4192},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4191":{"this":{"__isSmartRef__":true,"id":3909}},"4192":{},"4193":{"sourceObj":{"__isSmartRef__":true,"id":3145},"sourceAttrName":"_BorderWidth","targetObj":{"__isSmartRef__":true,"id":3909},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4194":{"sourceObj":{"__isSmartRef__":true,"id":3145},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":3468},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4195":{"sourceObj":{"__isSmartRef__":true,"id":3145},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":3581},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4196":{"sourceObj":{"__isSmartRef__":true,"id":3145},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":3506},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4197":{"sourceObj":{"__isSmartRef__":true,"id":3145},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":4198},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4198":{"submorphs":[],"scripts":[],"id":788,"shape":{"__isSmartRef__":true,"id":4199},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4203},"_MaxTextWidth":380.8851604787262,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":4202},"showsHalos":false,"_FontSize":10,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":-0.006821560079975698,"name":"PropertyWatcher18","partsBinMetaInfo":{"__isSmartRef__":true,"id":4204},"textChunks":[{"__isSmartRef__":true,"id":4205}],"charsReplaced":"Grr","lastFindLoc":-3,"priorSelectionRange":[0,25],"prevScroll":[0,0],"_Scale":1.0030060100150184,"priorExtent":{"__isSmartRef__":true,"id":4207},"attributeConnections":[{"__isSmartRef__":true,"id":4208}],"doNotSerialize":["$$owner"],"doNotCopyProperties":["$$owner"],"isInputLine":true,"savedTextString":"BottomMiddle","targetProperty":"extent","oldOwner":null,"isCopyMorphRef":true,"morphRefId":1,"owner":null,"renderContextTable":{"__isSmartRef__":true,"id":4209},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4210},"__LivelyClassName__":"lively.morphic.Text"},"4199":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":4200},"_Extent":{"__isSmartRef__":true,"id":4201},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4202},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4200":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"4201":{"x":380.8851604787262,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"4202":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"4203":{"x":1051.1313468662495,"y":429.2847553162744,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"4204":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"4205":{"style":{"__isSmartRef__":true,"id":4206},"morph":{"__isSmartRef__":true,"id":4198},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4206":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4207":{"x":380.8851604787262,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"4208":{"sourceObj":{"__isSmartRef__":true,"id":4198},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":4198},"targetMethodName":"updateLabel","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4209":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"4210":{"updateLabel":{"__isSmartRef__":true,"id":4211},"renameOwner":{"__isSmartRef__":true,"id":4214},"reset":{"__isSmartRef__":true,"id":4217},"stopWatching":{"__isSmartRef__":true,"id":4220},"startWatching":{"__isSmartRef__":true,"id":4223},"morphMenuItems":{"__isSmartRef__":true,"id":4226},"getWatchableProps":{"__isSmartRef__":true,"id":4233}},"4211":{"varMapping":{"__isSmartRef__":true,"id":4212},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tthis.stopWatching(this.oldOwner);\n\t\tthis.startWatching(this.owner);\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar obj = this.owner;\n\tvar propName = this.targetProperty;\n\tif (!obj || !propName) return;\n\tvar getter = 'get' + (propName.charAt(0).toUpperCase() + propName.substring(1));\n\t// alert('update ' + getter)\n\t// try the getter and fall back to direct access\n\tvar value = (obj[getter] && obj[getter]() || obj[propName])\n\tvar s = propName + \": \"+ value\n\tif (this.textString != s)\n\t\tthis.setTextString(s)\n}","funcProperties":{"__isSmartRef__":true,"id":4213},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4212":{"this":{"__isSmartRef__":true,"id":4198}},"4213":{},"4214":{"varMapping":{"__isSmartRef__":true,"id":4215},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":4216},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4215":{"this":{"__isSmartRef__":true,"id":4198}},"4216":{},"4217":{"varMapping":{"__isSmartRef__":true,"id":4218},"source":"function reset() {\n\tthis.targetProperty = \"_Position\";\n\tthis.stopWatching(this.owner);\n\tthis.oldOwner = undefined;\n\tthis.setTextString('nothing to observe')\n}","funcProperties":{"__isSmartRef__":true,"id":4219},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4218":{"this":{"__isSmartRef__":true,"id":4198}},"4219":{},"4220":{"varMapping":{"__isSmartRef__":true,"id":4221},"source":"function stopWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.disconnect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":4222},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4221":{"this":{"__isSmartRef__":true,"id":4198}},"4222":{},"4223":{"varMapping":{"__isSmartRef__":true,"id":4224},"source":"function startWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.connect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":4225},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4224":{"this":{"__isSmartRef__":true,"id":4198}},"4225":{},"4226":{"varMapping":{"__isSmartRef__":true,"id":4227},"source":"function morphMenuItems() {\n\tmodule('lively.morphic.BindingsExtension').load(true)\n\tvar items = $super();\n\tif (this.owner)\n\tvar self = this;\n\tvar target = this.owner\n\t\n\titems.push(['watch', this. getWatchableProps().collect(function(ea) {\n\t\treturn [ea, function() { \n\t\t\tself.stopWatching(target)\n\t\t\tself.targetProperty = ea;\n\t\t\tself.startWatching(target);\n\t\t\tself.updateLabel();\n\t\t\t}]\n\t})])\n\treturn items\n}","funcProperties":{"__isSmartRef__":true,"id":4232},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4227":{"this":{"__isSmartRef__":true,"id":4198},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4228}},"4228":{"$super":{"__isSmartRef__":true,"id":4229}},"4229":{"varMapping":{"__isSmartRef__":true,"id":4230},"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":4231},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4230":{"obj":{"__isSmartRef__":true,"id":4198},"name":"morphMenuItems"},"4231":{},"4232":{},"4233":{"varMapping":{"__isSmartRef__":true,"id":4234},"source":"function getWatchableProps() {\n\tvar target = this.owner \n\tvar ignore = \"attributeConnections,doNotCopyProperties,doNotSerialize,droppingEnabled,eventHandler,halos,halosEnabled,partsBinMetaInfo,registeredForMouseEvents,scripts,shape,showsHalos\".split(\",\")\n\n\tvar props = Properties.own(target);\n\tif (target.connections) \n\t\tprops = props.concat(Properties.own(target.connections))\n\tprops = props\n\t\t.withoutAll(ignore)\n\t\t.select(function(ea) {return ea.match(/^[A-Za-z]/)})\n\t\t.sort().uniq()\n\treturn props \n}","funcProperties":{"__isSmartRef__":true,"id":4235},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4234":{"this":{"__isSmartRef__":true,"id":4198}},"4235":{},"4236":{"x":2,"y":2,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"4237":{"r":0.8,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"4238":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setOpacity":"setOpacityHTML"},"4239":{"sourceObj":{"__isSmartRef__":true,"id":3144},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":3941},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4240":{"sourceObj":{"__isSmartRef__":true,"id":3144},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":3979},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4241":{"x":1081,"y":467,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4242":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"4243":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":4244},"_Fill":{"__isSmartRef__":true,"id":4245},"attributeConnections":[{"__isSmartRef__":true,"id":4246},{"__isSmartRef__":true,"id":4247},{"__isSmartRef__":true,"id":4248},{"__isSmartRef__":true,"id":4351}],"doNotSerialize":["$$_Extent","$$_BorderWidth"],"doNotCopyProperties":["$$_Extent","$$_BorderWidth"],"_Extent":{"__isSmartRef__":true,"id":4352},"renderContextTable":{"__isSmartRef__":true,"id":4353},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4244":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"4245":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"4246":{"sourceObj":{"__isSmartRef__":true,"id":4243},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":3356},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4247":{"sourceObj":{"__isSmartRef__":true,"id":4243},"sourceAttrName":"_BorderWidth","targetObj":{"__isSmartRef__":true,"id":3870},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4248":{"sourceObj":{"__isSmartRef__":true,"id":4243},"sourceAttrName":"_BorderWidth","targetObj":{"__isSmartRef__":true,"id":4249},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4249":{"submorphs":[],"scripts":[],"id":136,"shape":{"__isSmartRef__":true,"id":4250},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4254},"_MaxTextWidth":204.41886033386783,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":4253},"showsHalos":false,"_FontSize":10,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":-0.006821560079975698,"name":"PropertyWatcher13","partsBinMetaInfo":{"__isSmartRef__":true,"id":4255},"textChunks":[{"__isSmartRef__":true,"id":4256}],"charsReplaced":"Grr","lastFindLoc":-3,"priorSelectionRange":[0,62],"prevScroll":[0,0],"_Scale":1.0230909904865695,"priorExtent":{"__isSmartRef__":true,"id":4258},"attributeConnections":[{"__isSmartRef__":true,"id":4259}],"doNotSerialize":["$$owner"],"doNotCopyProperties":["$$owner"],"isInputLine":true,"savedTextString":"BottomMiddle","targetProperty":"globalTransform","oldOwner":{"__isSmartRef__":true,"id":4260},"owner":{"__isSmartRef__":true,"id":4260},"renderContextTable":{"__isSmartRef__":true,"id":4324},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4325},"__LivelyClassName__":"lively.morphic.Text"},"4250":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":4251},"_Extent":{"__isSmartRef__":true,"id":4252},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4253},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4251":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"4252":{"x":204.41886033386783,"y":45,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"4253":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"4254":{"x":35.00247857650032,"y":36.00495715299863,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"4255":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"4256":{"style":{"__isSmartRef__":true,"id":4257},"morph":{"__isSmartRef__":true,"id":4249},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4257":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"4258":{"x":204.41886033386783,"y":45,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"4259":{"sourceObj":{"__isSmartRef__":true,"id":4249},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":4249},"targetMethodName":"updateLabel","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4260":{"submorphs":[{"__isSmartRef__":true,"id":4249}],"scripts":[],"id":2205,"shape":{"__isSmartRef__":true,"id":4261},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"joe","partsBinMetaInfo":{"__isSmartRef__":true,"id":4266},"__SourceModuleName__":"Global.lively.morphic.Core","attributeConnections":[{"__isSmartRef__":true,"id":4267},{"__isSmartRef__":true,"id":4316},{"__isSmartRef__":true,"id":4317},{"__isSmartRef__":true,"id":4318},{"__isSmartRef__":true,"id":4319}],"doNotSerialize":["$$_Position","$$_Scale","$$_Rotation","$$owner"],"doNotCopyProperties":["$$_Position","$$_Scale","$$_Rotation","$$owner"],"priorExtent":{"__isSmartRef__":true,"id":4323},"__LivelyClassName__":"lively.morphic.Box"},"4261":{"position":{"__isSmartRef__":true,"id":4262},"_Extent":{"__isSmartRef__":true,"id":4263},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4264},"_Fill":{"__isSmartRef__":true,"id":4265},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4262":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"4263":{"x":257.8393017962345,"y":100,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"4264":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"4265":{"r":0,"g":0,"b":0.8,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"4266":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"4267":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"globalTransform","targetObj":{"__isSmartRef__":true,"id":4249},"targetMethodName":"updateLabel","converterString":"function (newOwner, oldOwner) {\n\t\t\t\t\treturn [newOwner, oldOwner]\n\t\t\t\t}","updater":null,"updaterString":null,"dependendConnections":[{"__isSmartRef__":true,"id":4268},{"__isSmartRef__":true,"id":4269},{"__isSmartRef__":true,"id":4270},{"__isSmartRef__":true,"id":4271},{"__isSmartRef__":true,"id":4272},{"__isSmartRef__":true,"id":4273},{"__isSmartRef__":true,"id":4274},{"__isSmartRef__":true,"id":4275},{"__isSmartRef__":true,"id":4276},{"__isSmartRef__":true,"id":4277},{"__isSmartRef__":true,"id":4278},{"__isSmartRef__":true,"id":4279},{"__isSmartRef__":true,"id":4280},{"__isSmartRef__":true,"id":4281},{"__isSmartRef__":true,"id":4282},{"__isSmartRef__":true,"id":4283},{"__isSmartRef__":true,"id":4284},{"__isSmartRef__":true,"id":4285},{"__isSmartRef__":true,"id":4286},{"__isSmartRef__":true,"id":4287},{"__isSmartRef__":true,"id":4288},{"__isSmartRef__":true,"id":4289},{"__isSmartRef__":true,"id":4290},{"__isSmartRef__":true,"id":4291},{"__isSmartRef__":true,"id":4292},{"__isSmartRef__":true,"id":4293},{"__isSmartRef__":true,"id":4294},{"__isSmartRef__":true,"id":4295},{"__isSmartRef__":true,"id":4296},{"__isSmartRef__":true,"id":4297},{"__isSmartRef__":true,"id":4298},{"__isSmartRef__":true,"id":4299},{"__isSmartRef__":true,"id":4300},{"__isSmartRef__":true,"id":4301},{"__isSmartRef__":true,"id":4302},{"__isSmartRef__":true,"id":4303},{"__isSmartRef__":true,"id":4304},{"__isSmartRef__":true,"id":4305},{"__isSmartRef__":true,"id":4306},{"__isSmartRef__":true,"id":4307},{"__isSmartRef__":true,"id":4308},{"__isSmartRef__":true,"id":4309},{"__isSmartRef__":true,"id":4310},{"__isSmartRef__":true,"id":4311},{"__isSmartRef__":true,"id":4312},{"__isSmartRef__":true,"id":4313},{"__isSmartRef__":true,"id":4314},{"__isSmartRef__":true,"id":4315},{"__isSmartRef__":true,"id":4316},{"__isSmartRef__":true,"id":4317},{"__isSmartRef__":true,"id":4318},{"__isSmartRef__":true,"id":4319},{"__isSmartRef__":true,"id":4316},{"__isSmartRef__":true,"id":4317},{"__isSmartRef__":true,"id":4318},{"__isSmartRef__":true,"id":4319}],"oldTransform":{"__isSmartRef__":true,"id":4321},"__SourceModuleName__":"Global.lively.morphic.BindingsExtension","__LivelyClassName__":"lively.morphic.GeometryTransformConnection"},"4268":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4269":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4270":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4271":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"updateOwners","converterString":"function (newOwner, oldOwner) {\n\t\t\t\t\treturn [newOwner, oldOwner]\n\t\t\t\t}","updater":null,"updaterString":null,"dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4272":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4273":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4274":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4275":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"updateOwners","converter":null,"converterString":"function (newOwner, oldOwner) {\n\t\t\t\t\treturn [newOwner, oldOwner]\n\t\t\t\t}","updater":null,"updaterString":null,"dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4276":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4277":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4278":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4279":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"updateOwners","converter":null,"converterString":"function (newOwner, oldOwner) {\n\t\t\t\t\treturn [newOwner, oldOwner]\n\t\t\t\t}","updater":null,"updaterString":null,"dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4280":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4281":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4282":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4283":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"updateOwners","converter":null,"converterString":"function (newOwner, oldOwner) {\n\t\t\t\t\treturn [newOwner, oldOwner]\n\t\t\t\t}","updater":null,"updaterString":null,"dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4284":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4285":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4286":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4287":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"updateOwners","converter":null,"converterString":"function (newOwner, oldOwner) {\n\t\t\t\t\treturn [newOwner, oldOwner]\n\t\t\t\t}","updater":null,"updaterString":null,"dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4288":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4289":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4290":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4291":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"updateOwners","converter":null,"converterString":"function (newOwner, oldOwner) {\n\t\t\t\t\treturn [newOwner, oldOwner]\n\t\t\t\t}","updater":null,"updaterString":null,"dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4292":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4293":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4294":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4295":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"updateOwners","converter":null,"converterString":"function (newOwner, oldOwner) {\n\t\t\t\t\treturn [newOwner, oldOwner]\n\t\t\t\t}","updater":null,"updaterString":null,"dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4296":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4297":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4298":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4299":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"updateOwners","converter":null,"converterString":"function (newOwner, oldOwner) {\n\t\t\t\t\treturn [newOwner, oldOwner]\n\t\t\t\t}","updater":null,"updaterString":null,"dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4300":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4301":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4302":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4303":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"updateOwners","converter":null,"converterString":"function (newOwner, oldOwner) {\n\t\t\t\t\treturn [newOwner, oldOwner]\n\t\t\t\t}","updater":null,"updaterString":null,"dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4304":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4305":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4306":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4307":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"updateOwners","converter":null,"converterString":"function (newOwner, oldOwner) {\n\t\t\t\t\treturn [newOwner, oldOwner]\n\t\t\t\t}","updater":null,"updaterString":null,"dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4308":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4309":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4310":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4311":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"updateOwners","converter":null,"converterString":"function (newOwner, oldOwner) {\n\t\t\t\t\treturn [newOwner, oldOwner]\n\t\t\t\t}","updater":null,"updaterString":null,"dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4312":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4313":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4314":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4315":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"updateOwners","converter":null,"converterString":"function (newOwner, oldOwner) {\n\t\t\t\t\treturn [newOwner, oldOwner]\n\t\t\t\t}","updater":null,"updaterString":null,"dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4316":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"_Position","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4317":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"_Scale","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4318":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"_Rotation","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"signalTarget","dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4319":{"sourceObj":{"__isSmartRef__":true,"id":4260},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":4267},"targetMethodName":"updateOwners","converter":null,"converterString":"function (newOwner, oldOwner) {\n return [newOwner, oldOwner]\n }","updater":null,"updaterString":null,"dependedBy":{"__isSmartRef__":true,"id":4267},"__SourceModuleName__":"Global.lively.bindings","varMapping":{"__isSmartRef__":true,"id":4320},"__LivelyClassName__":"AttributeConnection"},"4320":{"source":{"__isSmartRef__":true,"id":4260},"target":{"__isSmartRef__":true,"id":4267}},"4321":{"d":0.9803683341381026,"a":0.9803683341381026,"f":168.6257833896672,"e":305.8773501690017,"c":0,"b":0,"matrix_":{"__isSmartRef__":true,"id":4322},"__SourceModuleName__":"Global.lively.morphic.Core","__LivelyClassName__":"lively.morphic.Similitude"},"4322":{"a":0.9803683341381026,"b":0,"c":0,"d":0.9803683341381026,"e":305.8773501690017,"f":168.6257833896672,"__SourceModuleName__":"Global.lively.morphic.Core","__LivelyClassName__":"lively.morphic.Similitude"},"4323":{"x":252.93746012554402,"y":100,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"4324":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"4325":{"updateLabel":{"__isSmartRef__":true,"id":4326},"renameOwner":{"__isSmartRef__":true,"id":4329},"reset":{"__isSmartRef__":true,"id":4332},"stopWatching":{"__isSmartRef__":true,"id":4335},"startWatching":{"__isSmartRef__":true,"id":4338},"morphMenuItems":{"__isSmartRef__":true,"id":4341},"getWatchableProps":{"__isSmartRef__":true,"id":4348}},"4326":{"varMapping":{"__isSmartRef__":true,"id":4327},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tthis.stopWatching(this.oldOwner);\n\t\tthis.startWatching(this.owner);\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar obj = this.owner;\n\tvar propName = this.targetProperty;\n\tif (!obj || !propName) return;\n\tvar getter = 'get' + (propName.charAt(0).toUpperCase() + propName.substring(1));\n\talert('update ' + getter)\n\t// try the getter and fall back to direct access\n\tvar value = (obj[getter] && obj[getter]() || obj[propName])\n\tvar s = propName + \": \"+ value\n\tif (this.textString != s)\n\t\tthis.setTextString(s)\n}","funcProperties":{"__isSmartRef__":true,"id":4328},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4327":{"this":{"__isSmartRef__":true,"id":4249}},"4328":{},"4329":{"varMapping":{"__isSmartRef__":true,"id":4330},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":4331},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4330":{"this":{"__isSmartRef__":true,"id":4249}},"4331":{},"4332":{"varMapping":{"__isSmartRef__":true,"id":4333},"source":"function reset() {\n\tthis.targetProperty = \"_Position\";\n\tthis.stopWatching(this.owner);\n\tthis.oldOwner = undefined;\n\tthis.setTextString('nothing to observe')\n}","funcProperties":{"__isSmartRef__":true,"id":4334},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4333":{"this":{"__isSmartRef__":true,"id":4249}},"4334":{},"4335":{"varMapping":{"__isSmartRef__":true,"id":4336},"source":"function stopWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.disconnect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":4337},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4336":{"this":{"__isSmartRef__":true,"id":4249}},"4337":{},"4338":{"varMapping":{"__isSmartRef__":true,"id":4339},"source":"function startWatching(target) {\n\tif (!target) return;\n\t\tlively.bindings.connect(target, this.targetProperty, this, 'updateLabel')\n}","funcProperties":{"__isSmartRef__":true,"id":4340},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4339":{"this":{"__isSmartRef__":true,"id":4249}},"4340":{},"4341":{"varMapping":{"__isSmartRef__":true,"id":4342},"source":"function morphMenuItems() {\n\tmodule('lively.morphic.BindingsExtension').load(true)\n\tvar items = $super();\n\tif (this.owner)\n\tvar self = this;\n\tvar target = this.owner\n\t\n\titems.push(['watch', this. getWatchableProps().collect(function(ea) {\n\t\treturn [ea, function() { \n\t\t\tself.stopWatching(target)\n\t\t\tself.targetProperty = ea;\n\t\t\tself.startWatching(target);\n\t\t\tself.updateLabel();\n\t\t\t}]\n\t})])\n\treturn items\n}","funcProperties":{"__isSmartRef__":true,"id":4347},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4342":{"this":{"__isSmartRef__":true,"id":4249},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4343}},"4343":{"$super":{"__isSmartRef__":true,"id":4344}},"4344":{"varMapping":{"__isSmartRef__":true,"id":4345},"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":4346},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4345":{"obj":{"__isSmartRef__":true,"id":4249},"name":"morphMenuItems"},"4346":{},"4347":{},"4348":{"varMapping":{"__isSmartRef__":true,"id":4349},"source":"function getWatchableProps() {\n\tvar target = this.owner \n\tvar ignore = \"attributeConnections,doNotCopyProperties,doNotSerialize,droppingEnabled,eventHandler,halos,halosEnabled,partsBinMetaInfo,registeredForMouseEvents,scripts,shape,showsHalos\".split(\",\")\n\n\tvar props = Properties.own(target);\n\tif (target.connections) \n\t\tprops = props.concat(Properties.own(target.connections))\n\tprops = props\n\t\t.withoutAll(ignore)\n\t\t.select(function(ea) {return ea.match(/^[A-Za-z]/)})\n\t\t.sort().uniq()\n\treturn props \n}","funcProperties":{"__isSmartRef__":true,"id":4350},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"4349":{"this":{"__isSmartRef__":true,"id":4249}},"4350":{},"4351":{"sourceObj":{"__isSmartRef__":true,"id":4243},"sourceAttrName":"_Extent","targetObj":{"__isSmartRef__":true,"id":4198},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"4352":{"x":2800,"y":2900,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"4353":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setOpacity":"setOpacityHTML"},"4354":{"name":"Local code","__LivelyClassName__":"ChangeSet","__SourceModuleName__":"Global.lively.ChangeSet"},"4355":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"4356":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"isSimplifiedRegistry":true}}]]>