0) {\n\t\tthis.get('testResult').setFill(Color.red)\n\t\tvar msg = testCase.result.failed.collect(function(failed) {\n\t\t\treturn '' + failed + '\\n' + failed.err.stack\n\t\t}).join('\\n\\n')\n\tthis.get('testResult').setTextString(msg)\n\t} else {\n\t\tthis.get('testResult').setFill(Color.green)\n\t\tthis.get('testResult').setTextString('result:' + testCase.result)\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":125},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"124":{"this":{"__isSmartRef__":true,"id":40}},"125":{},"126":{"submorphs":[{"__isSmartRef__":true,"id":127},{"__isSmartRef__":true,"id":169},{"__isSmartRef__":true,"id":183}],"scripts":[],"id":634,"shape":{"__isSmartRef__":true,"id":196},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":201},"showsHalos":false,"name":"TestClassRunner2","_Rotation":0,"__SourceModuleName__":"Global.lively.morphic.Core","partsBinMetaInfo":{"__isSmartRef__":true,"id":202},"_Scale":1,"owner":{"__isSmartRef__":true,"id":0},"priorExtent":{"__isSmartRef__":true,"id":203},"renderContextTable":{"__isSmartRef__":true,"id":204},"eventHandler":{"__isSmartRef__":true,"id":205},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":206},"__LivelyClassName__":"lively.morphic.Box"},"127":{"submorphs":[{"__isSmartRef__":true,"id":128}],"scripts":[],"id":45,"shape":{"__isSmartRef__":true,"id":141},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":156},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":144},"lighterFill":{"__isSmartRef__":true,"id":157},"label":{"__isSmartRef__":true,"id":128},"owner":{"__isSmartRef__":true,"id":126},"_Rotation":0,"showsHalos":false,"name":"runButton","attributeConnections":[{"__isSmartRef__":true,"id":166}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","renderContextTable":{"__isSmartRef__":true,"id":167},"eventHandler":{"__isSmartRef__":true,"id":168},"__LivelyClassName__":"lively.morphic.Button"},"128":{"submorphs":[],"scripts":[],"id":46,"shape":{"__isSmartRef__":true,"id":129},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":false,"allowsInput":false,"_OverflowMode":"visible","_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":134},"_MaxTextWidth":null,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":132},"padding":{"__isSmartRef__":true,"id":135},"_Padding":{"__isSmartRef__":true,"id":135},"owner":{"__isSmartRef__":true,"id":127},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","priorExtent":{"__isSmartRef__":true,"id":136},"textChunks":[{"__isSmartRef__":true,"id":137}],"renderContextTable":{"__isSmartRef__":true,"id":139},"eventHandler":{"__isSmartRef__":true,"id":140},"__LivelyClassName__":"lively.morphic.Text"},"129":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":130},"_Extent":{"__isSmartRef__":true,"id":131},"_BorderColor":{"__isSmartRef__":true,"id":132},"renderContextTable":{"__isSmartRef__":true,"id":133},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"130":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"131":{"x":57,"y":29,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"132":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"133":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"134":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"135":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"136":{"x":57,"y":29,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"137":{"style":{"__isSmartRef__":true,"id":138},"morph":{"__isSmartRef__":true,"id":128},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"run","__LivelyClassName__":"lively.morphic.TextChunk"},"138":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"139":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"140":{"morph":{"__isSmartRef__":true,"id":128},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"141":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":142},"_Extent":{"__isSmartRef__":true,"id":143},"_Fill":{"__isSmartRef__":true,"id":144},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":154},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":155},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"142":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"143":{"x":57,"y":29,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"144":{"stops":[{"__isSmartRef__":true,"id":145},{"__isSmartRef__":true,"id":147},{"__isSmartRef__":true,"id":149},{"__isSmartRef__":true,"id":151}],"vector":{"__isSmartRef__":true,"id":153},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"145":{"offset":0,"color":{"__isSmartRef__":true,"id":146}},"146":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"147":{"offset":0.4,"color":{"__isSmartRef__":true,"id":148}},"148":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"149":{"offset":0.6,"color":{"__isSmartRef__":true,"id":150}},"150":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"151":{"offset":1,"color":{"__isSmartRef__":true,"id":152}},"152":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"153":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"154":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"155":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"156":{"x":10,"y":10,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"157":{"stops":[{"__isSmartRef__":true,"id":158},{"__isSmartRef__":true,"id":160},{"__isSmartRef__":true,"id":162},{"__isSmartRef__":true,"id":164}],"vector":{"__isSmartRef__":true,"id":153},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"158":{"offset":0,"color":{"__isSmartRef__":true,"id":159}},"159":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"160":{"offset":0.4,"color":{"__isSmartRef__":true,"id":161}},"161":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"162":{"offset":0.6,"color":{"__isSmartRef__":true,"id":163}},"163":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"164":{"offset":1,"color":{"__isSmartRef__":true,"id":165}},"165":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"166":{"sourceObj":{"__isSmartRef__":true,"id":127},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":126},"targetMethodName":"runTest","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"167":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"168":{"morph":{"__isSmartRef__":true,"id":127},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"169":{"submorphs":[],"scripts":[],"id":76,"shape":{"__isSmartRef__":true,"id":170},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_OverflowMode":"scroll","_FontFamily":"Monaco","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":175},"_MaxTextWidth":263,"_MaxTextHeight":49,"textColor":{"__isSmartRef__":true,"id":132},"owner":{"__isSmartRef__":true,"id":126},"showsHalos":false,"name":"testResult","__SourceModuleName__":"Global.lively.morphic.TextCore","savedTextString":"module('lively.morphic.Tests').load()\nrunning lively.morphic.Tests.ImageTests\nthis.owner.runTest\n\nthis.owner.addScript(function runTest() {\n\tvar testName = this.get('testName').textString,\n\t\tklass = Class.forName(testName),\n\t\ttestCase = new klass();\n\tif (testCase == undefined) {\n\t\talert('no test found named ' + testName);\n\t\treturn;\n\t} else {\n\t\talert('run test ' + testName)\n\t}\n\ttestCase.runAll();\n\tthis.get('testResult').setTextString('result:' + testCase.result)\n})","padding":{"__isSmartRef__":true,"id":176},"layout":{"__isSmartRef__":true,"id":177},"_FontSize":10,"_Padding":{"__isSmartRef__":true,"id":176},"priorExtent":{"__isSmartRef__":true,"id":178},"textChunks":[{"__isSmartRef__":true,"id":179}],"priorSelectionRange":[67,67],"_ClipMode":"auto","renderContextTable":{"__isSmartRef__":true,"id":181},"eventHandler":{"__isSmartRef__":true,"id":182},"__LivelyClassName__":"lively.morphic.Text"},"170":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":171},"_Extent":{"__isSmartRef__":true,"id":172},"_Fill":{"__isSmartRef__":true,"id":173},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":132},"renderContextTable":{"__isSmartRef__":true,"id":174},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"171":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"172":{"x":263,"y":49,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"173":{"r":0,"g":0.8,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"174":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"175":{"x":11,"y":48,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"176":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"177":{"resizeWidth":true,"resizeHeight":true},"178":{"x":263,"y":49,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"179":{"style":{"__isSmartRef__":true,"id":180},"morph":{"__isSmartRef__":true,"id":169},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"result:[TestResult Tests run: 6 -- Tests failed: 0 -- Time: 0.17s]","__LivelyClassName__":"lively.morphic.TextChunk"},"180":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"181":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"182":{"morph":{"__isSmartRef__":true,"id":169},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"183":{"submorphs":[],"scripts":[],"id":157,"shape":{"__isSmartRef__":true,"id":184},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":190},"_MaxTextWidth":166,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":188},"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.TextCore","owner":{"__isSmartRef__":true,"id":126},"_Rotation":0,"name":"testName","charsReplaced":"lively.morphic.Tests,","lastFindLoc":-21,"priorExtent":{"__isSmartRef__":true,"id":191},"textChunks":[{"__isSmartRef__":true,"id":192}],"priorSelectionRange":[21,35],"renderContextTable":{"__isSmartRef__":true,"id":194},"eventHandler":{"__isSmartRef__":true,"id":195},"__LivelyClassName__":"lively.morphic.Text"},"184":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":185},"_Extent":{"__isSmartRef__":true,"id":186},"_Fill":{"__isSmartRef__":true,"id":187},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":188},"renderContextTable":{"__isSmartRef__":true,"id":189},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"185":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"186":{"x":166,"y":37,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"187":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"188":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"189":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"190":{"x":102,"y":12,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"191":{"x":166,"y":37,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"192":{"style":{"__isSmartRef__":true,"id":193},"morph":{"__isSmartRef__":true,"id":183},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"lively.morphic.Tests.TextMorphTests","__LivelyClassName__":"lively.morphic.TextChunk"},"193":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"194":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"195":{"morph":{"__isSmartRef__":true,"id":183},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"196":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":197},"_Extent":{"__isSmartRef__":true,"id":198},"_Fill":{"__isSmartRef__":true,"id":199},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":132},"renderContextTable":{"__isSmartRef__":true,"id":200},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"197":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"198":{"x":286,"y":105,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"199":{"r":0.8,"g":0.8,"b":0.8,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"200":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"201":{"x":399,"y":26,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"202":{"partsSpaceName":"PartsBin/Testing/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"Enter a class name of a TestCase in this test runner and run all its test methods.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"203":{"x":287,"y":105,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"204":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"205":{"morph":{"__isSmartRef__":true,"id":126},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"206":{"runTest":{"__isSmartRef__":true,"id":207}},"207":{"varMapping":{"__isSmartRef__":true,"id":208},"source":"function runTest() {\n\tvar testName = this.get('testName').textString,\n\t\tklass = Class.forName(testName),\n\t\ttestCase = new klass();\n\tif (testCase == undefined) {\n\t\talert('no test found named ' + testName);\n\t\treturn;\n\t} else {\n\t\talert('run test ' + testName)\n\t}\n\ttestCase.runAll();\n\tif (testCase.result.failed.length > 0) {\n\t\tthis.get('testResult').setFill(Color.red)\n\t\tvar msg = testCase.result.failed.collect(function(failed) {\n\t\t\treturn '' + failed + '\\n' + failed.err.stack\n\t\t}).join('\\n\\n')\n\tthis.get('testResult').setTextString(msg)\n\t} else {\n\t\tthis.get('testResult').setFill(Color.green)\n\t\tthis.get('testResult').setTextString('result:' + testCase.result)\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":209},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"208":{"this":{"__isSmartRef__":true,"id":126}},"209":{},"210":{"submorphs":[{"__isSmartRef__":true,"id":211},{"__isSmartRef__":true,"id":253},{"__isSmartRef__":true,"id":267}],"scripts":[],"id":1385,"shape":{"__isSmartRef__":true,"id":280},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":285},"showsHalos":false,"name":"TestClassRunner3","_Rotation":0,"__SourceModuleName__":"Global.lively.morphic.Core","partsBinMetaInfo":{"__isSmartRef__":true,"id":286},"_Scale":1,"owner":{"__isSmartRef__":true,"id":0},"renderContextTable":{"__isSmartRef__":true,"id":287},"eventHandler":{"__isSmartRef__":true,"id":288},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":289},"__LivelyClassName__":"lively.morphic.Box"},"211":{"submorphs":[{"__isSmartRef__":true,"id":212}],"scripts":[],"id":45,"shape":{"__isSmartRef__":true,"id":225},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":240},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":228},"lighterFill":{"__isSmartRef__":true,"id":241},"label":{"__isSmartRef__":true,"id":212},"owner":{"__isSmartRef__":true,"id":210},"_Rotation":0,"showsHalos":false,"name":"runButton","attributeConnections":[{"__isSmartRef__":true,"id":250}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","renderContextTable":{"__isSmartRef__":true,"id":251},"eventHandler":{"__isSmartRef__":true,"id":252},"__LivelyClassName__":"lively.morphic.Button"},"212":{"submorphs":[],"scripts":[],"id":46,"shape":{"__isSmartRef__":true,"id":213},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":false,"allowsInput":false,"_OverflowMode":"visible","_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":218},"_MaxTextWidth":null,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":216},"padding":{"__isSmartRef__":true,"id":219},"_Padding":{"__isSmartRef__":true,"id":219},"owner":{"__isSmartRef__":true,"id":211},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","priorExtent":{"__isSmartRef__":true,"id":220},"textChunks":[{"__isSmartRef__":true,"id":221}],"renderContextTable":{"__isSmartRef__":true,"id":223},"eventHandler":{"__isSmartRef__":true,"id":224},"__LivelyClassName__":"lively.morphic.Text"},"213":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":214},"_Extent":{"__isSmartRef__":true,"id":215},"_BorderColor":{"__isSmartRef__":true,"id":216},"renderContextTable":{"__isSmartRef__":true,"id":217},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"214":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"215":{"x":57,"y":29,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"216":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"217":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"218":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"219":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"220":{"x":57,"y":29,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"221":{"style":{"__isSmartRef__":true,"id":222},"morph":{"__isSmartRef__":true,"id":212},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"run","__LivelyClassName__":"lively.morphic.TextChunk"},"222":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"223":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"224":{"morph":{"__isSmartRef__":true,"id":212},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"225":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":226},"_Extent":{"__isSmartRef__":true,"id":227},"_Fill":{"__isSmartRef__":true,"id":228},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":238},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":239},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"226":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"227":{"x":57,"y":29,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"228":{"stops":[{"__isSmartRef__":true,"id":229},{"__isSmartRef__":true,"id":231},{"__isSmartRef__":true,"id":233},{"__isSmartRef__":true,"id":235}],"vector":{"__isSmartRef__":true,"id":237},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"229":{"offset":0,"color":{"__isSmartRef__":true,"id":230}},"230":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"231":{"offset":0.4,"color":{"__isSmartRef__":true,"id":232}},"232":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"233":{"offset":0.6,"color":{"__isSmartRef__":true,"id":234}},"234":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"235":{"offset":1,"color":{"__isSmartRef__":true,"id":236}},"236":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"237":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"238":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"239":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"240":{"x":10,"y":10,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"241":{"stops":[{"__isSmartRef__":true,"id":242},{"__isSmartRef__":true,"id":244},{"__isSmartRef__":true,"id":246},{"__isSmartRef__":true,"id":248}],"vector":{"__isSmartRef__":true,"id":237},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"242":{"offset":0,"color":{"__isSmartRef__":true,"id":243}},"243":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"244":{"offset":0.4,"color":{"__isSmartRef__":true,"id":245}},"245":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"246":{"offset":0.6,"color":{"__isSmartRef__":true,"id":247}},"247":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"248":{"offset":1,"color":{"__isSmartRef__":true,"id":249}},"249":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"250":{"sourceObj":{"__isSmartRef__":true,"id":211},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":210},"targetMethodName":"runTest","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"251":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"252":{"morph":{"__isSmartRef__":true,"id":211},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"253":{"submorphs":[],"scripts":[],"id":76,"shape":{"__isSmartRef__":true,"id":254},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_OverflowMode":"scroll","_FontFamily":"Monaco","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":259},"_MaxTextWidth":451,"_MaxTextHeight":160,"textColor":{"__isSmartRef__":true,"id":216},"owner":{"__isSmartRef__":true,"id":210},"showsHalos":false,"name":"testResult","__SourceModuleName__":"Global.lively.morphic.TextCore","savedTextString":"module('lively.morphic.Tests').load()\nrunning lively.morphic.Tests.ImageTests\nthis.owner.runTest\n\nthis.owner.addScript(function runTest() {\n\tvar testName = this.get('testName').textString,\n\t\tklass = Class.forName(testName),\n\t\ttestCase = new klass();\n\tif (testCase == undefined) {\n\t\talert('no test found named ' + testName);\n\t\treturn;\n\t} else {\n\t\talert('run test ' + testName)\n\t}\n\ttestCase.runAll();\n\tthis.get('testResult').setTextString('result:' + testCase.result)\n})","padding":{"__isSmartRef__":true,"id":260},"layout":{"__isSmartRef__":true,"id":261},"_FontSize":10,"_Padding":{"__isSmartRef__":true,"id":260},"priorExtent":{"__isSmartRef__":true,"id":262},"textChunks":[{"__isSmartRef__":true,"id":263}],"priorSelectionRange":[395,395],"_ClipMode":"auto","prevScroll":[0,153],"renderContextTable":{"__isSmartRef__":true,"id":265},"eventHandler":{"__isSmartRef__":true,"id":266},"__LivelyClassName__":"lively.morphic.Text"},"254":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":255},"_Extent":{"__isSmartRef__":true,"id":256},"_Fill":{"__isSmartRef__":true,"id":257},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":216},"renderContextTable":{"__isSmartRef__":true,"id":258},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"255":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"256":{"x":451,"y":160,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"257":{"r":0.8,"g":0,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"258":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"259":{"x":11,"y":48,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"260":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"261":{"resizeWidth":true,"resizeHeight":true},"262":{"x":451,"y":160,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"263":{"style":{"__isSmartRef__":true,"id":264},"morph":{"__isSmartRef__":true,"id":253},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"lively.morphic.Tests.RichTextTests.test03EmphasizeRichText failed: \n\t(textString was expected to be ein (ein != eintest)) (undefined)\nundefined","__LivelyClassName__":"lively.morphic.TextChunk"},"264":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"265":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"266":{"morph":{"__isSmartRef__":true,"id":253},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"267":{"submorphs":[],"scripts":[],"id":157,"shape":{"__isSmartRef__":true,"id":268},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":274},"_MaxTextWidth":366,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":272},"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.TextCore","owner":{"__isSmartRef__":true,"id":210},"_Rotation":0,"name":"testName","charsReplaced":"lively.morphic.Tests,","lastFindLoc":-21,"priorExtent":{"__isSmartRef__":true,"id":275},"textChunks":[{"__isSmartRef__":true,"id":276}],"priorSelectionRange":[0,43],"renderContextTable":{"__isSmartRef__":true,"id":278},"eventHandler":{"__isSmartRef__":true,"id":279},"__LivelyClassName__":"lively.morphic.Text"},"268":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":269},"_Extent":{"__isSmartRef__":true,"id":270},"_Fill":{"__isSmartRef__":true,"id":271},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":272},"renderContextTable":{"__isSmartRef__":true,"id":273},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"269":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"270":{"x":366,"y":18,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"271":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"272":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"273":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"274":{"x":102,"y":12,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"275":{"x":366,"y":18,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"276":{"style":{"__isSmartRef__":true,"id":277},"morph":{"__isSmartRef__":true,"id":267},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"lively.morphic.Tests.RichTextTests","__LivelyClassName__":"lively.morphic.TextChunk"},"277":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"278":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"279":{"morph":{"__isSmartRef__":true,"id":267},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"280":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":281},"_Extent":{"__isSmartRef__":true,"id":282},"_Fill":{"__isSmartRef__":true,"id":283},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":216},"renderContextTable":{"__isSmartRef__":true,"id":284},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"281":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"282":{"x":479,"y":225,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"283":{"r":0.8,"g":0.8,"b":0.8,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"284":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"285":{"x":1219,"y":19,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"286":{"partsSpaceName":"PartsBin/Testing/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"Enter a class name of a TestCase in this test runner and run all its test methods.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"287":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"288":{"morph":{"__isSmartRef__":true,"id":210},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"289":{"runTest":{"__isSmartRef__":true,"id":290}},"290":{"varMapping":{"__isSmartRef__":true,"id":291},"source":"function runTest() {\n\tvar testName = this.get('testName').textString,\n\t\tklass = Class.forName(testName),\n\t\ttestCase = new klass();\n\tif (testCase == undefined) {\n\t\talert('no test found named ' + testName);\n\t\treturn;\n\t} else {\n\t\talert('run test ' + testName)\n\t}\n\ttestCase.runAll();\n\tif (testCase.result.failed.length > 0) {\n\t\tthis.get('testResult').setFill(Color.red)\n\t\tvar msg = testCase.result.failed.collect(function(failed) {\n\t\t\treturn '' + failed + '\\n' + failed.err.stack\n\t\t}).join('\\n\\n')\n\tthis.get('testResult').setTextString(msg)\n\t} else {\n\t\tthis.get('testResult').setFill(Color.green)\n\t\tthis.get('testResult').setTextString('result:' + testCase.result)\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":292},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"291":{"this":{"__isSmartRef__":true,"id":210}},"292":{},"293":{"submorphs":[],"scripts":[],"id":169,"shape":{"__isSmartRef__":true,"id":294},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":299},"_MaxTextWidth":352,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":297},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"Text","partsBinMetaInfo":{"__isSmartRef__":true,"id":300},"textChunks":[{"__isSmartRef__":true,"id":301}],"charsReplaced":"abc def ghi","lastFindLoc":-11,"priorSelectionRange":[6,6],"prevScroll":[0,0],"_Scale":1,"priorExtent":{"__isSmartRef__":true,"id":303},"owner":{"__isSmartRef__":true,"id":0},"syntaxHighlightingWhileTyping":true,"attributeConnections":[{"__isSmartRef__":true,"id":304}],"doNotSerialize":["$$textString"],"doNotCopyProperties":["$$textString"],"lastSyntaxHighlightTime":1306497241492,"savedTextString":"abc def ghi","renderContextTable":{"__isSmartRef__":true,"id":305},"eventHandler":{"__isSmartRef__":true,"id":306},"textString":"\" 12 3 33 44 55\"","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":307},"__LivelyClassName__":"lively.morphic.Text"},"294":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":295},"_Extent":{"__isSmartRef__":true,"id":296},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":297},"renderContextTable":{"__isSmartRef__":true,"id":298},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"295":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"296":{"x":352,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"297":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"298":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"299":{"x":232,"y":323,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"300":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"301":{"style":{"__isSmartRef__":true,"id":302},"morph":{"__isSmartRef__":true,"id":293},"storedString":"\" 12 3 33 44 55\"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"302":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"303":{"x":352,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"304":{"sourceObj":{"__isSmartRef__":true,"id":293},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":293},"targetMethodName":"highlightJavaScriptSyntax","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"305":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"306":{"morph":{"__isSmartRef__":true,"id":293},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"307":{"showSelRange":{"__isSmartRef__":true,"id":308},"startSteppingScripts":{"__isSmartRef__":true,"id":311},"setSelectionRange":{"__isSmartRef__":true,"id":314}},"308":{"varMapping":{"__isSmartRef__":true,"id":309},"source":"function showSelRange() {\n // alert(this.getSelectionRange())\n var sel = this.domSelection();\n alert('anchorNode: ' + sel.anchorNode + ' ' + sel.anchorOffset)\n alert('focusNode: ' + sel.focusNode + ' ' + sel.focusOffset)\n}","funcProperties":{"__isSmartRef__":true,"id":310},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"309":{"this":{"__isSmartRef__":true,"id":293}},"310":{},"311":{"varMapping":{"__isSmartRef__":true,"id":312},"source":"function startSteppingScripts() {\n // this.startSteppingScripts();\n // this.stopStepping();\n this.startStepping(2000, 'showSelRange')\n}","funcProperties":{"__isSmartRef__":true,"id":313},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"312":{"this":{"__isSmartRef__":true,"id":293}},"313":{},"314":{"varMapping":{"__isSmartRef__":true,"id":315},"source":"function setSelectionRange(start, end) {\n var sel = this.domSelection();\n if (sel) sel.removeAllRanges();\n\n // actually it should not be necessary to switch the values\n // bot somehow range expects smaller value in setStart....\n // if (start > end) {\n // var temp = end;\n // end = start;\n // start = temp;\n // }\n\n var startBoundaryPoint = this.getTextElementAndLocalIndexForGlobalIndex(start),\n endBoundaryPoint = this.getTextElementAndLocalIndexForGlobalIndex(end);\n\n // found nothing to select...\n if (startBoundaryPoint === undefined && endBoundaryPoint === undefined) return;\n if (startBoundaryPoint === undefined) startBoundaryPoint = endBoundaryPoint;\n if (endBoundaryPoint === undefined) endBoundaryPoint = startBoundaryPoint;\n\nalert('selecting ' + startBoundaryPoint[0].textContent + '[' + startBoundaryPoint[1] + ']-'\n + endBoundaryPoint[0].textContent + '[' + endBoundaryPoint[1] + ']')\n\n // var range = document.createRange();\n // range.setStart(startBoundaryPoint[0], startBoundaryPoint[1])\n // range.setEnd(endBoundaryPoint[0], endBoundaryPoint[1])\n \n if (!sel) sel = Global.getSelection();\n // sel.addRange(range);\n sel.setBaseAndExtent(startBoundaryPoint[0], startBoundaryPoint[1], endBoundaryPoint[0], endBoundaryPoint[1])\n\n}","funcProperties":{"__isSmartRef__":true,"id":320},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"315":{"this":{"__isSmartRef__":true,"id":293},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":316}},"316":{"$super":{"__isSmartRef__":true,"id":317}},"317":{"varMapping":{"__isSmartRef__":true,"id":318},"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":319},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"318":{"obj":{"__isSmartRef__":true,"id":293},"name":"setSelectionRange"},"319":{},"320":{},"321":{"submorphs":[{"__isSmartRef__":true,"id":322},{"__isSmartRef__":true,"id":430},{"__isSmartRef__":true,"id":566}],"scripts":[],"id":493,"shape":{"__isSmartRef__":true,"id":600},"droppingEnabled":true,"halosEnabled":true,"draggingEnabled":true,"layout":{"__isSmartRef__":true,"id":603},"_Position":{"__isSmartRef__":true,"id":604},"priorExtent":{"__isSmartRef__":true,"id":605},"targetMorph":{"__isSmartRef__":true,"id":322},"titleBar":{"__isSmartRef__":true,"id":430},"contentOffset":{"__isSmartRef__":true,"id":606},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":null,"expandedExtent":null,"ignoreEventsOnExpand":false,"highlighted":true,"_Rotation":0,"_Scale":1,"prevDragPos":{"__isSmartRef__":true,"id":607},"showsHalos":false,"name":"ScriptEditor","partsBinMetaInfo":{"__isSmartRef__":true,"id":608},"__SourceModuleName__":"Global.lively.morphic.Widgets","owner":{"__isSmartRef__":true,"id":0},"renderContextTable":{"__isSmartRef__":true,"id":609},"eventHandler":{"__isSmartRef__":true,"id":610},"__LivelyClassName__":"lively.morphic.Window"},"322":{"submorphs":[{"__isSmartRef__":true,"id":323}],"scripts":[],"id":494,"shape":{"__isSmartRef__":true,"id":345},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":351},"showsHalos":false,"name":"ScriptEditorPane","partsBinMetaInfo":{"__isSmartRef__":true,"id":352},"__SourceModuleName__":"Global.lively.morphic.Core","owner":{"__isSmartRef__":true,"id":321},"_Rotation":0,"targetName":null,"searchText":null,"scriptList":null,"scriptSource":{"__isSmartRef__":true,"id":323},"targetFound":null,"removeButton":null,"addButton":null,"closeButton":null,"target":{"__isSmartRef__":true,"id":293},"_Scale":1,"layout":{"__isSmartRef__":true,"id":353},"priorExtent":{"__isSmartRef__":true,"id":354},"renderContextTable":{"__isSmartRef__":true,"id":355},"eventHandler":{"__isSmartRef__":true,"id":356},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":357},"__LivelyClassName__":"lively.morphic.Box"},"323":{"submorphs":[],"scripts":[],"id":495,"shape":{"__isSmartRef__":true,"id":324},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco, Courier","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":330},"_MaxTextWidth":1028.0469530469531,"_MaxTextHeight":422.98201798201796,"textStyle":null,"owner":{"__isSmartRef__":true,"id":322},"layout":{"__isSmartRef__":true,"id":331},"doitContext":{"__isSmartRef__":true,"id":293},"charsReplaced":"isMozilla","lastFindLoc":1902,"showsHalos":false,"_Rotation":0,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"scriptSource","savedTextString":"// Text (this)\n\n\n\n// ** Text's Connections **\n\n\nthis.addScript(function showSelRange() {\n // alert(this.getSelectionRange())\n var sel = this.domSelection();\n alert('anchorNode: ' + sel.anchorNode + ' ' + sel.anchorOffset)\n alert('focusNode: ' + sel.focusNode + ' ' + sel.focusOffset)\n})\nthis.addScript(function startSteppingScripts() {\n // this.startSteppingScripts();\n // this.stopStepping();\n this.startStepping(2000, 'showSelRange')\n})\n\nthis.addScript(function setSelectionRange(start, end) {\n var sel = this.domSelection();\n if (sel) sel.removeAllRanges();\n\n // actually it should not be necessary to switch the values\n // bot somehow range expects smaller value in setStart....\n // if (start > end) {\n // var temp = end;\n // end = start;\n // start = temp;\n // }\n\n var startBoundaryPoint = this.getTextElementAndLocalIndexForGlobalIndex(start),\n endBoundaryPoint = this.getTextElementAndLocalIndexForGlobalIndex(end);\n\n // found nothing to select...\n if (startBoundaryPoint === undefined && endBoundaryPoint === undefined) return;\n if (startBoundaryPoint === undefined) startBoundaryPoint = endBoundaryPoint;\n if (endBoundaryPoint === undefined) endBoundaryPoint = startBoundaryPoint;\n\nalert('selecting ' + startBoundaryPoint[0].textContent + '[' + startBoundaryPoint[1] + ']-'\n + endBoundaryPoint[0].textContent + '[' + endBoundaryPoint[1] + ']')\n\n // var range = document.createRange();\n // range.setStart(startBoundaryPoint[0], startBoundaryPoint[1])\n // range.setEnd(endBoundaryPoint[0], endBoundaryPoint[1])\n \n if (!sel) sel = Global.getSelection();\n // sel.addRange(range);\n sel.setBaseAndExtent(startBoundaryPoint[0], startBoundaryPoint[1], endBoundaryPoint[0], endBoundaryPoint[1])\n\n})\nGlobal.getSelection().extend\nthis.setSelectionRange(3, 1);\nthis.setSelectionRange(7, 4);\nsel = this.domSelection()\nthis.getSelectionRange\n","textChunks":[{"__isSmartRef__":true,"id":332}],"priorSelectionRange":[1915,1909],"_ClipMode":"auto","prevScroll":[0,408],"_FontSize":10,"priorExtent":{"__isSmartRef__":true,"id":334},"lastSyntaxHighlightTime":1305412837954,"syntaxHighlightingWhileTyping":false,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"lastSearchString":"anchorNode","renderContextTable":{"__isSmartRef__":true,"id":335},"eventHandler":{"__isSmartRef__":true,"id":336},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":337},"__LivelyClassName__":"lively.morphic.Text"},"324":{"position":{"__isSmartRef__":true,"id":325},"_Extent":{"__isSmartRef__":true,"id":326},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":327},"_Fill":{"__isSmartRef__":true,"id":328},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":329},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"325":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"326":{"x":1028.0469530469531,"y":422.98201798201796,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"327":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"328":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"329":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"330":{"x":7,"y":9,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"331":{"resizeWidth":true,"resizeHeight":true},"332":{"style":{"__isSmartRef__":true,"id":333},"morph":{"__isSmartRef__":true,"id":323},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"// Text (this)\n\n\n\n// ** Text's Connections **\n\n\nthis.addScript(function showSelRange() {\n // alert(this.getSelectionRange())\n var sel = this.domSelection();\n alert('anchorNode: ' + sel.anchorNode + ' ' + sel.anchorOffset)\n alert('focusNode: ' + sel.focusNode + ' ' + sel.focusOffset)\n})\nthis.addScript(function startSteppingScripts() {\n // this.startSteppingScripts();\n // this.stopStepping();\n this.startStepping(2000, 'showSelRange')\n})\n\nthis.addScript(function setSelectionRange(start, end) {\n var sel = this.domSelection();\n if (sel) sel.removeAllRanges();\n\n // actually it should not be necessary to switch the values\n // bot somehow range expects smaller value in setStart....\n // if (start > end) {\n // var temp = end;\n // end = start;\n // start = temp;\n // }\n\n var startBoundaryPoint = this.getTextElementAndLocalIndexForGlobalIndex(start),\n endBoundaryPoint = this.getTextElementAndLocalIndexForGlobalIndex(end);\n\n // found nothing to select...\n if (startBoundaryPoint === undefined && endBoundaryPoint === undefined) return;\n if (startBoundaryPoint === undefined) startBoundaryPoint = endBoundaryPoint;\n if (endBoundaryPoint === undefined) endBoundaryPoint = startBoundaryPoint;\n\nalert('selecting ' + startBoundaryPoint[0].textContent + '[' + startBoundaryPoint[1] + ']-'\n + endBoundaryPoint[0].textContent + '[' + endBoundaryPoint[1] + ']')\n\n // var range = document.createRange();\n // range.setStart(startBoundaryPoint[0], startBoundaryPoint[1])\n // range.setEnd(endBoundaryPoint[0], endBoundaryPoint[1])\n \n if (!sel) sel = Global.getSelection();\n // sel.addRange(range);\n \n\n})\nUserAgent.fireFoxVersion\nGlobal.getSelection().extend\nthis.setSelectionRange(3, 1);\nthis.setSelectionRange(7, 4);\nsel = this.domSelection()\nthis.getSelectionRange\n","__LivelyClassName__":"lively.morphic.TextChunk"},"333":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"334":{"x":1028.0469530469531,"y":422.98201798201796,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"335":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"336":{"morph":{"__isSmartRef__":true,"id":323},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"337":{"doSave":{"__isSmartRef__":true,"id":338}},"338":{"varMapping":{"__isSmartRef__":true,"id":339},"source":"function doSave() {\n\t$super()\n\talertOK(\"eval all for \" + this.getDoitContext())\n\tthis.boundEval(this.textString)\n}","funcProperties":{"__isSmartRef__":true,"id":344},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"339":{"this":{"__isSmartRef__":true,"id":323},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":340}},"340":{"$super":{"__isSmartRef__":true,"id":341}},"341":{"varMapping":{"__isSmartRef__":true,"id":342},"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":343},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"342":{"obj":{"__isSmartRef__":true,"id":323},"name":"doSave"},"343":{},"344":{},"345":{"position":{"__isSmartRef__":true,"id":346},"_Extent":{"__isSmartRef__":true,"id":347},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":348},"_Fill":{"__isSmartRef__":true,"id":349},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":350},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"346":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"347":{"x":1041.0799200799202,"y":437.9980019980019,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"348":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"349":{"r":0.921,"g":0.921,"b":0.921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"350":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"351":{"x":-0.9990009990010549,"y":20.001998001998004,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"352":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"353":{"resizeWidth":true,"resizeHeight":true,"adjustForNewBounds":true},"354":{"x":1041.0799200799202,"y":437.9980019980019,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"355":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"356":{"morph":{"__isSmartRef__":true,"id":322},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"357":{"addTargetScript":{"__isSmartRef__":true,"id":358},"addTestObject":{"__isSmartRef__":true,"id":361},"allMorphNames":{"__isSmartRef__":true,"id":364},"allScriptListItems":{"__isSmartRef__":true,"id":367},"bindMorphNames":{"__isSmartRef__":true,"id":370},"doSearch":{"__isSmartRef__":true,"id":373},"findSubobjects":{"__isSmartRef__":true,"id":376},"generateSourceForConnection":{"__isSmartRef__":true,"id":379},"generateSourceForObject":{"__isSmartRef__":true,"id":382},"generateSourceForProperty":{"__isSmartRef__":true,"id":385},"generateSourceForScript":{"__isSmartRef__":true,"id":388},"generateSourceForValue":{"__isSmartRef__":true,"id":391},"generateTargetCode":{"__isSmartRef__":true,"id":394},"highlightSelectedObject":{"__isSmartRef__":true,"id":397},"listItemsForObj":{"__isSmartRef__":true,"id":400},"removeTargetScript":{"__isSmartRef__":true,"id":403},"reset":{"__isSmartRef__":true,"id":406},"setSourceInPane":{"__isSmartRef__":true,"id":409},"setTarget":{"__isSmartRef__":true,"id":412},"setupConnections":{"__isSmartRef__":true,"id":415},"showTopLevelItems":{"__isSmartRef__":true,"id":418},"sortedScriptNamesOfObj":{"__isSmartRef__":true,"id":421},"updateScriptList":{"__isSmartRef__":true,"id":424},"updateSourcePane":{"__isSmartRef__":true,"id":427}},"358":{"varMapping":{"__isSmartRef__":true,"id":359},"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":360},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"359":{"this":{"__isSmartRef__":true,"id":322}},"360":{},"361":{"varMapping":{"__isSmartRef__":true,"id":362},"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":363},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"362":{"this":{"__isSmartRef__":true,"id":322}},"363":{},"364":{"varMapping":{"__isSmartRef__":true,"id":365},"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":366},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"365":{"this":{"__isSmartRef__":true,"id":322}},"366":{},"367":{"varMapping":{"__isSmartRef__":true,"id":368},"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":369},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"368":{"this":{"__isSmartRef__":true,"id":322}},"369":{},"370":{"varMapping":{"__isSmartRef__":true,"id":371},"source":"function bindMorphNames(submorphNames) {\n\tsubmorphNames.forEach(function(ea) {\n\t\tthis[ea]= this.getMorphNamed(ea)\n\t}, this)\n}","funcProperties":{"__isSmartRef__":true,"id":372},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"371":{"this":{"__isSmartRef__":true,"id":322}},"372":{},"373":{"varMapping":{"__isSmartRef__":true,"id":374},"source":"function doSearch(string) {\n\talert('searching ' + string);\n\tvar allItems = this.allScriptListItems();\n\tallItems.select(function(item) {})\n}","funcProperties":{"__isSmartRef__":true,"id":375},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"374":{"this":{"__isSmartRef__":true,"id":322}},"375":{},"376":{"varMapping":{"__isSmartRef__":true,"id":377},"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":378},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"377":{"this":{"__isSmartRef__":true,"id":322}},"378":{},"379":{"varMapping":{"__isSmartRef__":true,"id":380},"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":381},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"380":{"this":{"__isSmartRef__":true,"id":322}},"381":{},"382":{"varMapping":{"__isSmartRef__":true,"id":383},"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":384},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"383":{"this":{"__isSmartRef__":true,"id":322}},"384":{},"385":{"varMapping":{"__isSmartRef__":true,"id":386},"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":387},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"386":{"this":{"__isSmartRef__":true,"id":322}},"387":{},"388":{"varMapping":{"__isSmartRef__":true,"id":389},"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":390},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"389":{"this":{"__isSmartRef__":true,"id":322}},"390":{},"391":{"varMapping":{"__isSmartRef__":true,"id":392},"source":"function generateSourceForValue(value) {\n\tif (Object.isString(value)) \n\t\treturn '\"' + value + '\"'\n\telse \n\t\treturn value\n}","funcProperties":{"__isSmartRef__":true,"id":393},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"392":{"this":{"__isSmartRef__":true,"id":322}},"393":{},"394":{"varMapping":{"__isSmartRef__":true,"id":395},"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":396},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"395":{"this":{"__isSmartRef__":true,"id":322}},"396":{},"397":{"varMapping":{"__isSmartRef__":true,"id":398},"source":"function highlightSelectedObject(selection) {\n\tif (selection && selection.targetObj) showMorph(selection.targetObj)\n}","funcProperties":{"__isSmartRef__":true,"id":399},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"398":{"this":{"__isSmartRef__":true,"id":322}},"399":{},"400":{"varMapping":{"__isSmartRef__":true,"id":401},"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":402},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"401":{"this":{"__isSmartRef__":true,"id":322}},"402":{},"403":{"varMapping":{"__isSmartRef__":true,"id":404},"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":405},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"404":{"this":{"__isSmartRef__":true,"id":322}},"405":{},"406":{"varMapping":{"__isSmartRef__":true,"id":407},"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":408},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"407":{"this":{"__isSmartRef__":true,"id":322}},"408":{},"409":{"varMapping":{"__isSmartRef__":true,"id":410},"source":"function setSourceInPane(source, pane) {\n\tpane.setTextString(source);\n\tpane.owner.owner.scrollToTop();\n\n\tpane.highlightJavaScriptSyntax()\n}","funcProperties":{"__isSmartRef__":true,"id":411},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"410":{"this":{"__isSmartRef__":true,"id":322}},"411":{},"412":{"varMapping":{"__isSmartRef__":true,"id":413},"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":414},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"413":{"this":{"__isSmartRef__":true,"id":322}},"414":{},"415":{"varMapping":{"__isSmartRef__":true,"id":416},"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":417},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"416":{"this":{"__isSmartRef__":true,"id":322}},"417":{},"418":{"varMapping":{"__isSmartRef__":true,"id":419},"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":420},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"419":{"this":{"__isSmartRef__":true,"id":322}},"420":{},"421":{"varMapping":{"__isSmartRef__":true,"id":422},"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":423},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"422":{"this":{"__isSmartRef__":true,"id":322}},"423":{},"424":{"varMapping":{"__isSmartRef__":true,"id":425},"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":426},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"425":{"this":{"__isSmartRef__":true,"id":322}},"426":{},"427":{"varMapping":{"__isSmartRef__":true,"id":428},"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":429},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"428":{"this":{"__isSmartRef__":true,"id":322}},"429":{},"430":{"submorphs":[{"__isSmartRef__":true,"id":431},{"__isSmartRef__":true,"id":443},{"__isSmartRef__":true,"id":486},{"__isSmartRef__":true,"id":517}],"scripts":[],"id":496,"shape":{"__isSmartRef__":true,"id":549},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":561},"_Position":{"__isSmartRef__":true,"id":562},"eventsAreIgnored":true,"windowMorph":{"__isSmartRef__":true,"id":321},"label":{"__isSmartRef__":true,"id":431},"closeButton":{"__isSmartRef__":true,"id":443},"menuButton":{"__isSmartRef__":true,"id":486},"collapseButton":{"__isSmartRef__":true,"id":517},"priorExtent":{"__isSmartRef__":true,"id":563},"owner":{"__isSmartRef__":true,"id":321},"__SourceModuleName__":"Global.lively.morphic.Widgets","renderContextTable":{"__isSmartRef__":true,"id":564},"eventHandler":{"__isSmartRef__":true,"id":565},"__LivelyClassName__":"lively.morphic.TitleBar"},"431":{"submorphs":[],"scripts":[],"id":497,"shape":{"__isSmartRef__":true,"id":432},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":436},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":437},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":438}],"isLabel":true,"eventsAreIgnored":true,"_FontSize":10,"owner":{"__isSmartRef__":true,"id":430},"__SourceModuleName__":"Global.lively.morphic.TextCore","priorExtent":{"__isSmartRef__":true,"id":440},"renderContextTable":{"__isSmartRef__":true,"id":441},"eventHandler":{"__isSmartRef__":true,"id":442},"__LivelyClassName__":"lively.morphic.Text"},"432":{"_Position":{"__isSmartRef__":true,"id":433},"_Extent":{"__isSmartRef__":true,"id":434},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":348},"_Fill":null,"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":435},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"433":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"434":{"x":981.0809190809191,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"435":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"436":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"437":{"x":20,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"438":{"style":{"__isSmartRef__":true,"id":439},"morph":{"__isSmartRef__":true,"id":431},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"ScriptEditorPane","__LivelyClassName__":"lively.morphic.TextChunk"},"439":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"440":{"x":981.0809190809191,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"441":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"442":{"morph":{"__isSmartRef__":true,"id":431},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"443":{"submorphs":[{"__isSmartRef__":true,"id":444}],"scripts":[],"id":498,"shape":{"__isSmartRef__":true,"id":456},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":471},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":460},"lighterFill":{"__isSmartRef__":true,"id":472},"label":{"__isSmartRef__":true,"id":444},"owner":{"__isSmartRef__":true,"id":430},"layout":{"__isSmartRef__":true,"id":481},"attributeConnections":[{"__isSmartRef__":true,"id":482},{"__isSmartRef__":true,"id":483}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","renderContextTable":{"__isSmartRef__":true,"id":484},"eventHandler":{"__isSmartRef__":true,"id":485},"__LivelyClassName__":"lively.morphic.WindowControl"},"444":{"submorphs":[],"scripts":[],"id":499,"shape":{"__isSmartRef__":true,"id":445},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":449},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":450},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":451}],"owner":{"__isSmartRef__":true,"id":443},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","priorExtent":{"__isSmartRef__":true,"id":453},"renderContextTable":{"__isSmartRef__":true,"id":454},"eventHandler":{"__isSmartRef__":true,"id":455},"__LivelyClassName__":"lively.morphic.Text"},"445":{"_Position":{"__isSmartRef__":true,"id":446},"_Extent":{"__isSmartRef__":true,"id":447},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":348},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":448},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"446":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"447":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"448":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"449":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"450":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"451":{"style":{"__isSmartRef__":true,"id":452},"morph":{"__isSmartRef__":true,"id":444},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"X","__LivelyClassName__":"lively.morphic.TextChunk"},"452":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"453":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"454":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"455":{"morph":{"__isSmartRef__":true,"id":444},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"456":{"_Position":{"__isSmartRef__":true,"id":457},"_Extent":{"__isSmartRef__":true,"id":458},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":459},"_Fill":{"__isSmartRef__":true,"id":460},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":470},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"457":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"458":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"459":{"r":0.8392156862745098,"g":0.8392156862745098,"b":0.8392156862745098,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"460":{"stops":[{"__isSmartRef__":true,"id":461},{"__isSmartRef__":true,"id":463},{"__isSmartRef__":true,"id":465},{"__isSmartRef__":true,"id":467}],"vector":{"__isSmartRef__":true,"id":469},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"461":{"offset":0,"color":{"__isSmartRef__":true,"id":462}},"462":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"463":{"offset":0.4,"color":{"__isSmartRef__":true,"id":464}},"464":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"465":{"offset":0.6,"color":{"__isSmartRef__":true,"id":466}},"466":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"467":{"offset":1,"color":{"__isSmartRef__":true,"id":468}},"468":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"469":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"470":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"471":{"x":1020.0809190809191,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"472":{"stops":[{"__isSmartRef__":true,"id":473},{"__isSmartRef__":true,"id":475},{"__isSmartRef__":true,"id":477},{"__isSmartRef__":true,"id":479}],"vector":{"__isSmartRef__":true,"id":469},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"473":{"offset":0,"color":{"__isSmartRef__":true,"id":474}},"474":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"475":{"offset":0.4,"color":{"__isSmartRef__":true,"id":476}},"476":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"477":{"offset":0.6,"color":{"__isSmartRef__":true,"id":478}},"478":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"479":{"offset":1,"color":{"__isSmartRef__":true,"id":480}},"480":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"481":{"moveHorizontal":true},"482":{"sourceObj":{"__isSmartRef__":true,"id":443},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":321},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"483":{"sourceObj":{"__isSmartRef__":true,"id":443},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":321},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"484":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"485":{"morph":{"__isSmartRef__":true,"id":443},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"486":{"submorphs":[{"__isSmartRef__":true,"id":487}],"scripts":[],"id":500,"shape":{"__isSmartRef__":true,"id":499},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":503},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":460},"lighterFill":{"__isSmartRef__":true,"id":504},"label":{"__isSmartRef__":true,"id":487},"owner":{"__isSmartRef__":true,"id":430},"attributeConnections":[{"__isSmartRef__":true,"id":513},{"__isSmartRef__":true,"id":514}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","renderContextTable":{"__isSmartRef__":true,"id":515},"eventHandler":{"__isSmartRef__":true,"id":516},"__LivelyClassName__":"lively.morphic.WindowControl"},"487":{"submorphs":[],"scripts":[],"id":501,"shape":{"__isSmartRef__":true,"id":488},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":492},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":493},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":494}],"owner":{"__isSmartRef__":true,"id":486},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","priorExtent":{"__isSmartRef__":true,"id":496},"renderContextTable":{"__isSmartRef__":true,"id":497},"eventHandler":{"__isSmartRef__":true,"id":498},"__LivelyClassName__":"lively.morphic.Text"},"488":{"_Position":{"__isSmartRef__":true,"id":489},"_Extent":{"__isSmartRef__":true,"id":490},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":348},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":491},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"489":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"490":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"491":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"492":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"493":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"494":{"style":{"__isSmartRef__":true,"id":495},"morph":{"__isSmartRef__":true,"id":487},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"M","__LivelyClassName__":"lively.morphic.TextChunk"},"495":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"496":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"497":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"498":{"morph":{"__isSmartRef__":true,"id":487},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"499":{"_Position":{"__isSmartRef__":true,"id":500},"_Extent":{"__isSmartRef__":true,"id":501},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":459},"_Fill":{"__isSmartRef__":true,"id":460},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":502},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"500":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"501":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"502":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"503":{"x":3,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"504":{"stops":[{"__isSmartRef__":true,"id":505},{"__isSmartRef__":true,"id":507},{"__isSmartRef__":true,"id":509},{"__isSmartRef__":true,"id":511}],"vector":{"__isSmartRef__":true,"id":469},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"505":{"offset":0,"color":{"__isSmartRef__":true,"id":506}},"506":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"507":{"offset":0.4,"color":{"__isSmartRef__":true,"id":508}},"508":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"509":{"offset":0.6,"color":{"__isSmartRef__":true,"id":510}},"510":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"511":{"offset":1,"color":{"__isSmartRef__":true,"id":512}},"512":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"513":{"sourceObj":{"__isSmartRef__":true,"id":486},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":321},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"514":{"sourceObj":{"__isSmartRef__":true,"id":486},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":321},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"515":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"516":{"morph":{"__isSmartRef__":true,"id":486},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"517":{"submorphs":[{"__isSmartRef__":true,"id":518}],"scripts":[],"id":502,"shape":{"__isSmartRef__":true,"id":530},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":534},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":460},"lighterFill":{"__isSmartRef__":true,"id":535},"label":{"__isSmartRef__":true,"id":518},"owner":{"__isSmartRef__":true,"id":430},"layout":{"__isSmartRef__":true,"id":544},"attributeConnections":[{"__isSmartRef__":true,"id":545},{"__isSmartRef__":true,"id":546}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","renderContextTable":{"__isSmartRef__":true,"id":547},"eventHandler":{"__isSmartRef__":true,"id":548},"__LivelyClassName__":"lively.morphic.WindowControl"},"518":{"submorphs":[],"scripts":[],"id":503,"shape":{"__isSmartRef__":true,"id":519},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":523},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":524},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":525}],"owner":{"__isSmartRef__":true,"id":517},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","priorExtent":{"__isSmartRef__":true,"id":527},"renderContextTable":{"__isSmartRef__":true,"id":528},"eventHandler":{"__isSmartRef__":true,"id":529},"__LivelyClassName__":"lively.morphic.Text"},"519":{"_Position":{"__isSmartRef__":true,"id":520},"_Extent":{"__isSmartRef__":true,"id":521},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":348},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":522},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"520":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"521":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"522":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"523":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"524":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"525":{"style":{"__isSmartRef__":true,"id":526},"morph":{"__isSmartRef__":true,"id":518},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"–","__LivelyClassName__":"lively.morphic.TextChunk"},"526":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"527":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"528":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"529":{"morph":{"__isSmartRef__":true,"id":518},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"530":{"_Position":{"__isSmartRef__":true,"id":531},"_Extent":{"__isSmartRef__":true,"id":532},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":459},"_Fill":{"__isSmartRef__":true,"id":460},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":533},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"531":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"532":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"533":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"534":{"x":1001.0809190809191,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"535":{"stops":[{"__isSmartRef__":true,"id":536},{"__isSmartRef__":true,"id":538},{"__isSmartRef__":true,"id":540},{"__isSmartRef__":true,"id":542}],"vector":{"__isSmartRef__":true,"id":469},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"536":{"offset":0,"color":{"__isSmartRef__":true,"id":537}},"537":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"538":{"offset":0.4,"color":{"__isSmartRef__":true,"id":539}},"539":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"540":{"offset":0.6,"color":{"__isSmartRef__":true,"id":541}},"541":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"542":{"offset":1,"color":{"__isSmartRef__":true,"id":543}},"543":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"544":{"moveHorizontal":true},"545":{"sourceObj":{"__isSmartRef__":true,"id":517},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":321},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"546":{"sourceObj":{"__isSmartRef__":true,"id":517},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":321},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"547":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"548":{"morph":{"__isSmartRef__":true,"id":517},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"549":{"_Position":{"__isSmartRef__":true,"id":550},"_Extent":{"__isSmartRef__":true,"id":551},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":327},"_Fill":{"__isSmartRef__":true,"id":552},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":560},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"550":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"551":{"x":1040.080919080919,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"552":{"stops":[{"__isSmartRef__":true,"id":553},{"__isSmartRef__":true,"id":555},{"__isSmartRef__":true,"id":557}],"vector":{"__isSmartRef__":true,"id":559},"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes"},"553":{"offset":0,"color":{"__isSmartRef__":true,"id":554}},"554":{"r":0.7200000000000001,"g":0.7200000000000001,"b":0.7200000000000001,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"555":{"offset":0.6,"color":{"__isSmartRef__":true,"id":556}},"556":{"r":0.9,"g":0.9,"b":0.9,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"557":{"offset":1,"color":{"__isSmartRef__":true,"id":558}},"558":{"r":0.7200000000000001,"g":0.7200000000000001,"b":0.7200000000000001,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"559":{"x":0,"y":1,"width":0,"height":-1,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"560":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"561":{"resizeWidth":true,"adjustForNewBounds":true},"562":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"563":{"x":1040.080919080919,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"564":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"565":{"morph":{"__isSmartRef__":true,"id":430},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"566":{"submorphs":[],"scripts":[],"id":504,"shape":{"__isSmartRef__":true,"id":567},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":573},"showsHalos":false,"name":"ResizeCorner","partsBinMetaInfo":{"__isSmartRef__":true,"id":574},"__SourceModuleName__":"Global.lively.morphic.Core","_Rotation":0,"_Scale":1,"draggingEnabled":true,"dragStartPoint":null,"originalExtent":{"__isSmartRef__":true,"id":575},"originalTargetExtent":null,"owner":{"__isSmartRef__":true,"id":321},"renderContextTable":{"__isSmartRef__":true,"id":576},"eventHandler":{"__isSmartRef__":true,"id":577},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":578},"__LivelyClassName__":"lively.morphic.Box"},"567":{"position":{"__isSmartRef__":true,"id":568},"_Extent":{"__isSmartRef__":true,"id":569},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":570},"_Fill":{"__isSmartRef__":true,"id":571},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":572},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"568":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"569":{"x":13,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"570":{"r":0.568,"g":0.568,"b":0.568,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"571":{"r":0.258,"g":0.258,"b":0.258,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"572":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"573":{"x":1027.080919080919,"y":441.00199800199795,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"574":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"575":{"x":239,"y":138,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"576":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"577":{"morph":{"__isSmartRef__":true,"id":566},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"578":{"onDrag":{"__isSmartRef__":true,"id":579},"onDragEnd":{"__isSmartRef__":true,"id":586},"onDragStart":{"__isSmartRef__":true,"id":593}},"579":{"varMapping":{"__isSmartRef__":true,"id":580},"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":585},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"580":{"this":{"__isSmartRef__":true,"id":566},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":581}},"581":{"$super":{"__isSmartRef__":true,"id":582}},"582":{"varMapping":{"__isSmartRef__":true,"id":583},"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":584},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"583":{"obj":{"__isSmartRef__":true,"id":566},"name":"onDrag"},"584":{},"585":{},"586":{"varMapping":{"__isSmartRef__":true,"id":587},"source":"function onDragEnd(evt) {\n\tthis.dragStartPoint = null;\n\tthis.originalTargetExtent = null;\n}","funcProperties":{"__isSmartRef__":true,"id":592},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"587":{"this":{"__isSmartRef__":true,"id":566},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":588}},"588":{"$super":{"__isSmartRef__":true,"id":589}},"589":{"varMapping":{"__isSmartRef__":true,"id":590},"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":591},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"590":{"obj":{"__isSmartRef__":true,"id":566},"name":"onDragEnd"},"591":{},"592":{},"593":{"varMapping":{"__isSmartRef__":true,"id":594},"source":"function onDragStart(evt) {\n\tthis.dragStartPoint = evt.mousePoint;\n\tthis.originalTargetExtent = this.owner.getExtent();\n}","funcProperties":{"__isSmartRef__":true,"id":599},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"594":{"this":{"__isSmartRef__":true,"id":566},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":595}},"595":{"$super":{"__isSmartRef__":true,"id":596}},"596":{"varMapping":{"__isSmartRef__":true,"id":597},"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":598},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"597":{"obj":{"__isSmartRef__":true,"id":566},"name":"onDragStart"},"598":{},"599":{},"600":{"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_Extent":{"__isSmartRef__":true,"id":601},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":602},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"601":{"x":1040.080919080919,"y":456.00199800199795,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"602":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"603":{"adjustForNewBounds":true},"604":{"x":565.999000999001,"y":274,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"605":{"x":1040.080919080919,"y":456.00199800199795,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"606":{"x":0,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"607":{"x":1132,"y":276,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"608":{"requiredModules":[],"partsSpaceName":"PartsBin/Tools/","migrationLevel":2,"__SourceModuleName__":"Global.lively.PartsBin","comment":"Early version. Requires improvement.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"609":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"610":{"morph":{"__isSmartRef__":true,"id":321},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"611":{"submorphs":[],"scripts":[],"id":97,"shape":{"__isSmartRef__":true,"id":612},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":617},"_MaxTextWidth":1414.0488791155778,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":615},"showsHalos":false,"_FontSize":39,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"Text3","partsBinMetaInfo":{"__isSmartRef__":true,"id":618},"textChunks":[{"__isSmartRef__":true,"id":619}],"charsReplaced":"some text","lastFindLoc":-9,"priorSelectionRange":[0,0],"prevScroll":[0,0],"_Scale":1,"priorExtent":{"__isSmartRef__":true,"id":621},"renderContextTable":{"__isSmartRef__":true,"id":622},"eventHandler":{"__isSmartRef__":true,"id":623},"owner":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.Text"},"612":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":613},"_Extent":{"__isSmartRef__":true,"id":614},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":615},"renderContextTable":{"__isSmartRef__":true,"id":616},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"613":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"614":{"x":1414.0488791155778,"y":60,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"615":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"616":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"617":{"x":104,"y":874,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"618":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"619":{"style":{"__isSmartRef__":true,"id":620},"morph":{"__isSmartRef__":true,"id":611},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"My Rich Text Experiments / Rich Text Transformations","__LivelyClassName__":"lively.morphic.TextChunk"},"620":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"621":{"x":1414.0488791155778,"y":60,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"622":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"623":{"morph":{"__isSmartRef__":true,"id":611},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"624":{"submorphs":[],"scripts":[],"id":175,"shape":{"__isSmartRef__":true,"id":625},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":630},"_MaxTextWidth":198.66082550174417,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":631},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"RichTextExample","partsBinMetaInfo":{"__isSmartRef__":true,"id":632},"textChunks":[{"__isSmartRef__":true,"id":633},{"__isSmartRef__":true,"id":635},{"__isSmartRef__":true,"id":637},{"__isSmartRef__":true,"id":639},{"__isSmartRef__":true,"id":641},{"__isSmartRef__":true,"id":644},{"__isSmartRef__":true,"id":646}],"charsReplaced":"Example Richt Text\n1. nothing\n2. bold\n3. colored\n4. hyperlink","lastFindLoc":-61,"priorSelectionRange":[48,48],"prevScroll":[0,0],"_Scale":1,"priorExtent":{"__isSmartRef__":true,"id":648},"renderContextTable":{"__isSmartRef__":true,"id":649},"eventHandler":{"__isSmartRef__":true,"id":650},"owner":{"__isSmartRef__":true,"id":0},"_WhiteSpaceHandling":"pre-wrap","__LivelyClassName__":"lively.morphic.Text"},"625":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":626},"_Extent":{"__isSmartRef__":true,"id":627},"_BorderWidth":1.9240000000000002,"_BorderColor":{"__isSmartRef__":true,"id":628},"renderContextTable":{"__isSmartRef__":true,"id":629},"_BorderRadius":7.400000000000001,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"626":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"627":{"x":198.66082550174417,"y":110,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"628":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"629":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"630":{"x":115,"y":945,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"631":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"632":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"633":{"style":{"__isSmartRef__":true,"id":634},"morph":{"__isSmartRef__":true,"id":624},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"Example Richt Text","__LivelyClassName__":"lively.morphic.TextChunk"},"634":{"textDecoration":"underline","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"635":{"style":{"__isSmartRef__":true,"id":636},"morph":{"__isSmartRef__":true,"id":624},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"\n1. nothing\n","__LivelyClassName__":"lively.morphic.TextChunk"},"636":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"637":{"style":{"__isSmartRef__":true,"id":638},"morph":{"__isSmartRef__":true,"id":624},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"2. bold","__LivelyClassName__":"lively.morphic.TextChunk"},"638":{"__SourceModuleName__":"Global.lively.morphic.TextCore","fontWeight":"bold","__LivelyClassName__":"lively.morphic.TextEmphasis"},"639":{"style":{"__isSmartRef__":true,"id":640},"morph":{"__isSmartRef__":true,"id":624},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk"},"640":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"641":{"style":{"__isSmartRef__":true,"id":642},"morph":{"__isSmartRef__":true,"id":624},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"3. colored","__LivelyClassName__":"lively.morphic.TextChunk"},"642":{"color":{"__isSmartRef__":true,"id":643},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"643":{"r":1,"g":0.56,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"644":{"style":{"__isSmartRef__":true,"id":645},"morph":{"__isSmartRef__":true,"id":624},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk"},"645":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"646":{"style":{"__isSmartRef__":true,"id":647},"morph":{"__isSmartRef__":true,"id":624},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"4. hyperlink","__LivelyClassName__":"lively.morphic.TextChunk"},"647":{"uri":"hpi-web.de","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"648":{"x":198.66082550174417,"y":110,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"649":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"650":{"morph":{"__isSmartRef__":true,"id":624},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"651":{"submorphs":[],"scripts":[],"id":1095,"shape":{"__isSmartRef__":true,"id":652},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":658},"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_OverflowMode":"auto","_FontFamily":"Monaco,Courier","_Position":{"__isSmartRef__":true,"id":659},"_MaxTextWidth":881.7180847304021,"_MaxTextHeight":895.0269009834778,"textChunks":[{"__isSmartRef__":true,"id":660}],"layout":{"__isSmartRef__":true,"id":662},"showsHalos":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1,"priorSelectionRange":[289,289],"name":"CodePane","charsReplaced":"","lastFindLoc":106,"partsBinMetaInfo":{"__isSmartRef__":true,"id":663},"__SourceModuleName__":"Global.lively.morphic.TextCore","priorExtent":{"__isSmartRef__":true,"id":664},"_ClipMode":"auto","renderContextTable":{"__isSmartRef__":true,"id":665},"eventHandler":{"__isSmartRef__":true,"id":666},"owner":{"__isSmartRef__":true,"id":0},"savedTextString":"textMorph = this.get('RichTextExample')\nObject.subclass(\"RichText\", {\n initialize: function() {\n this.childNodes = []\n },\n toString: function() {return JSON.prettyPrint(this)},\n toDOMNode: function() {\n var node = XHTMLNS.create('div');\n this.childNodes.forEach(function(ea) {\n var span = XHTMLNS.create('span');\n span.textContent = ea.textContent\n ea.style.applyToHTML(span)\n node.appendChild(span)\n })\n return node\n }\n})\nrichText = new RichText()\nrichText.childNodes = textMorph.textChunks.collect(function(ea) {\n return {textContent: ea.textString, style: ea.style} \n}) \n\nthis.get('RichtextJSON').setTextString(richText.toString())\n\nthis.get('RichtextHTML').setTextString(Exporter.stringify(richText.toDOMNode())\n .replace(/\n Example Richt Text\n \n \n1. nothing\n\n \n 2. bold\n \n \n\n \n 3. colored\n \n \n\n \n 4. hyperlink\n ","__LivelyClassName__":"lively.morphic.TextChunk"},"685":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"686":{"_Position":{"__isSmartRef__":true,"id":687},"renderContextTable":{"__isSmartRef__":true,"id":688},"_Extent":{"__isSmartRef__":true,"id":689},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":690},"_Fill":{"__isSmartRef__":true,"id":691},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"687":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"688":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"689":{"x":654.2362166039737,"y":291.83530454282413,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"690":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"691":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"692":{"x":2,"y":1,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"693":{"morph":{"__isSmartRef__":true,"id":682},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"694":{"x":1078.3047432500477,"y":961.6652063754361,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"695":{"x":654.2362166039737,"y":291.83530454282413,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"696":{"resizeWidth":true,"resizeHeight":true},"697":{"submorphs":[],"scripts":[],"id":952,"shape":{"__isSmartRef__":true,"id":698},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":703},"_MaxTextWidth":168,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":704},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"Text4","partsBinMetaInfo":{"__isSmartRef__":true,"id":705},"textChunks":[{"__isSmartRef__":true,"id":706}],"charsReplaced":"c","lastFindLoc":2,"priorSelectionRange":[0,61],"prevScroll":[0,0],"_Scale":1.2775343959060061,"priorExtent":{"__isSmartRef__":true,"id":708},"renderContextTable":{"__isSmartRef__":true,"id":709},"eventHandler":{"__isSmartRef__":true,"id":710},"owner":{"__isSmartRef__":true,"id":0},"_Padding":{"__isSmartRef__":true,"id":711},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":712},"__LivelyClassName__":"lively.morphic.Text"},"698":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":699},"_Extent":{"__isSmartRef__":true,"id":700},"_BorderWidth":1.8780000000000001,"_BorderColor":{"__isSmartRef__":true,"id":701},"renderContextTable":{"__isSmartRef__":true,"id":702},"_BorderRadius":12.315000000000001,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"699":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"700":{"x":168,"y":147,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"701":{"r":1,"g":0.56,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"702":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"703":{"x":1111.4549244382254,"y":1448.7240049574111,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"704":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"705":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"706":{"style":{"__isSmartRef__":true,"id":707},"morph":{"__isSmartRef__":true,"id":697},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"Example Richt Text\n1. nothing\n2. bold\n3. colored\n4. hyperlink","__LivelyClassName__":"lively.morphic.TextChunk"},"707":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"708":{"x":168,"y":147,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"709":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"710":{"morph":{"__isSmartRef__":true,"id":697},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"711":{"x":5,"y":5,"width":5,"height":5,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"712":{"onPaste":{"__isSmartRef__":true,"id":713}},"713":{"varMapping":{"__isSmartRef__":true,"id":714},"source":"function onPaste(evt) {\n alertOK('onPaste')\n var text = evt.clipboardData.getData(\"text\");\n var html = evt.clipboardData.getData(\"text/HTML\");\n (function() {\n this.get('PasteTextHTML').setTextString(html)\n this.get('PasteText').setTextString(text)\n }).bind(this).delay(0.1)\n return $super(evt)\n}","funcProperties":{"__isSmartRef__":true,"id":719},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"714":{"this":{"__isSmartRef__":true,"id":697},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":715}},"715":{"$super":{"__isSmartRef__":true,"id":716}},"716":{"varMapping":{"__isSmartRef__":true,"id":717},"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":718},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"717":{"obj":{"__isSmartRef__":true,"id":697},"name":"onPaste"},"718":{},"719":{},"720":{"submorphs":[],"scripts":[],"id":2204,"renderContextTable":{"__isSmartRef__":true,"id":721},"textChunks":[{"__isSmartRef__":true,"id":722}],"shape":{"__isSmartRef__":true,"id":724},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":730},"_ClipMode":"auto","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco,monospace","eventHandler":{"__isSmartRef__":true,"id":731},"_Position":{"__isSmartRef__":true,"id":732},"priorExtent":{"__isSmartRef__":true,"id":733},"_MaxTextWidth":954.6254692893904,"_MaxTextHeight":196.19028936349673,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":0},"layout":{"__isSmartRef__":true,"id":734},"syntaxHighlightingWhileTyping":true,"attributeConnections":[{"__isSmartRef__":true,"id":735}],"doNotSerialize":["$$textString"],"doNotCopyProperties":["$$textString"],"lastSyntaxHighlightTime":1306506875064,"priorSelectionRange":[793,792],"showsHalos":false,"_Rotation":0,"_Scale":1,"name":"PasteTextHTML","prevScroll":[0,18],"__SourceModuleName__":"Global.lively.morphic.TextCore","textString":"Example Richt Text\n1. nothing\n2. bold\n3. colored\n4. hyperlink","__LivelyClassName__":"lively.morphic.Text"},"721":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"722":{"style":{"__isSmartRef__":true,"id":723},"morph":{"__isSmartRef__":true,"id":720},"storedString":"Example Richt Text\n1. nothing\n2. bold\n3. colored\n4. hyperlink","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"723":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"724":{"_Position":{"__isSmartRef__":true,"id":725},"renderContextTable":{"__isSmartRef__":true,"id":726},"_Extent":{"__isSmartRef__":true,"id":727},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":728},"_Fill":{"__isSmartRef__":true,"id":729},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"725":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"726":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"727":{"x":954.6254692893904,"y":196.19028936349673,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"728":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"729":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"730":{"x":2,"y":1,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"731":{"morph":{"__isSmartRef__":true,"id":720},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"732":{"x":1374.7371475784869,"y":1368.6313908685547,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"733":{"x":954.6254692893904,"y":196.19028936349673,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"734":{"resizeWidth":true,"resizeHeight":true},"735":{"sourceObj":{"__isSmartRef__":true,"id":720},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":720},"targetMethodName":"highlightJavaScriptSyntax","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"736":{"submorphs":[],"scripts":[],"id":2508,"renderContextTable":{"__isSmartRef__":true,"id":737},"textChunks":[{"__isSmartRef__":true,"id":738}],"shape":{"__isSmartRef__":true,"id":740},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":746},"_ClipMode":"auto","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco,monospace","eventHandler":{"__isSmartRef__":true,"id":747},"_Position":{"__isSmartRef__":true,"id":748},"priorExtent":{"__isSmartRef__":true,"id":749},"_MaxTextWidth":500,"_MaxTextHeight":200,"evalEnabled":false,"layout":{"__isSmartRef__":true,"id":750},"syntaxHighlightingWhileTyping":true,"attributeConnections":[{"__isSmartRef__":true,"id":751}],"doNotSerialize":["$$textString"],"doNotCopyProperties":["$$textString"],"lastSyntaxHighlightTime":1306506875125,"priorSelectionRange":[3,3],"showsHalos":false,"_Rotation":0,"_Scale":1,"name":"PasteText","__SourceModuleName__":"Global.lively.morphic.TextCore","owner":{"__isSmartRef__":true,"id":0},"prevScroll":[0,0],"savedTextString":"abu","textString":"Example Richt Text\n1. nothing\n2. bold\n3. colored\n4. hyperlink","__LivelyClassName__":"lively.morphic.Text"},"737":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"738":{"style":{"__isSmartRef__":true,"id":739},"morph":{"__isSmartRef__":true,"id":736},"storedString":"Example Richt Text\n1. nothing\n2. bold\n3. colored\n4. hyperlink","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"739":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"740":{"_Position":{"__isSmartRef__":true,"id":741},"renderContextTable":{"__isSmartRef__":true,"id":742},"_Extent":{"__isSmartRef__":true,"id":743},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":744},"_Fill":{"__isSmartRef__":true,"id":745},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"741":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"742":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"743":{"x":500,"y":200,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"744":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"745":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"746":{"x":2,"y":1,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"747":{"morph":{"__isSmartRef__":true,"id":736},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"748":{"x":1381.124819558017,"y":1601.142650923448,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"749":{"x":500,"y":200,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"750":{"resizeWidth":true,"resizeHeight":true},"751":{"sourceObj":{"__isSmartRef__":true,"id":736},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":736},"targetMethodName":"highlightJavaScriptSyntax","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"752":{"submorphs":[],"scripts":[],"id":2699,"renderContextTable":{"__isSmartRef__":true,"id":753},"shape":{"__isSmartRef__":true,"id":754},"droppingEnabled":true,"halosEnabled":true,"eventHandler":{"__isSmartRef__":true,"id":763},"showsHalos":false,"_Position":{"__isSmartRef__":true,"id":764},"name":"Line","partsBinMetaInfo":{"__isSmartRef__":true,"id":765},"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","controlPoints":[{"__isSmartRef__":true,"id":766},{"__isSmartRef__":true,"id":767}],"_Rotation":0,"_Scale":1.2699035455010903,"owner":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.Path","withLayers":["ScriptListUpdateLayer"]},"753":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"754":{"dontChangeShape":false,"cachedVertices":[{"__isSmartRef__":true,"id":755},{"__isSmartRef__":true,"id":756}],"_PathElements":[{"__isSmartRef__":true,"id":757},{"__isSmartRef__":true,"id":758}],"renderContextTable":{"__isSmartRef__":true,"id":759},"_Position":{"__isSmartRef__":true,"id":760},"_Extent":{"__isSmartRef__":true,"id":761},"__SourceModuleName__":"Global.lively.morphic.PathShapes","_BorderWidth":1,"_BorderRadius":0,"_BorderStyle":"solid","_BorderColor":{"__isSmartRef__":true,"id":762},"__LivelyClassName__":"lively.morphic.Shapes.Path"},"755":{"x":127.0000000000008,"y":-113.99999999999523,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"756":{"x":198.0000000000008,"y":-136.99999999999454,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"757":{"isAbsolute":true,"x":127.0000000000008,"y":-113.99999999999523,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"758":{"isAbsolute":true,"x":198.0000000000008,"y":-136.99999999999454,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"759":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"760":{"x":127.0000000000008,"y":-136.99999999999454,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"761":{"x":71,"y":22.999999999999318,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"762":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"763":{"morph":{"__isSmartRef__":true,"id":752},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"764":{"x":1114.9753129499572,"y":1584.8396247853607,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"765":{"requiredModules":[],"migrationLevel":2,"partsSpaceName":"PartsBin/Basic/","__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"766":{"morph":{"__isSmartRef__":true,"id":752},"index":0,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"767":{"morph":{"__isSmartRef__":true,"id":752},"index":1,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"768":{"submorphs":[],"scripts":[],"id":2781,"renderContextTable":{"__isSmartRef__":true,"id":769},"shape":{"__isSmartRef__":true,"id":770},"droppingEnabled":true,"halosEnabled":true,"eventHandler":{"__isSmartRef__":true,"id":779},"showsHalos":false,"_Position":{"__isSmartRef__":true,"id":780},"name":"Line1","partsBinMetaInfo":{"__isSmartRef__":true,"id":781},"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","controlPoints":[{"__isSmartRef__":true,"id":782},{"__isSmartRef__":true,"id":783}],"_Rotation":0,"_Scale":1.26990354550109,"owner":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.Path","withLayers":["ScriptListUpdateLayer"]},"769":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"770":{"dontChangeShape":false,"cachedVertices":[{"__isSmartRef__":true,"id":771},{"__isSmartRef__":true,"id":772}],"_PathElements":[{"__isSmartRef__":true,"id":773},{"__isSmartRef__":true,"id":774}],"renderContextTable":{"__isSmartRef__":true,"id":775},"_Position":{"__isSmartRef__":true,"id":776},"_Extent":{"__isSmartRef__":true,"id":777},"__SourceModuleName__":"Global.lively.morphic.PathShapes","_BorderWidth":1,"_BorderRadius":0,"_BorderStyle":"solid","_BorderColor":{"__isSmartRef__":true,"id":778},"__LivelyClassName__":"lively.morphic.Shapes.Path"},"771":{"x":143.00000000000102,"y":-165.99999999999886,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"772":{"x":219.00000000000136,"y":-17.000000000000227,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"773":{"isAbsolute":true,"x":143.00000000000102,"y":-165.99999999999886,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"774":{"isAbsolute":true,"x":219.00000000000136,"y":-17.000000000000227,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"775":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"776":{"x":143.00000000000102,"y":-165.99999999999886,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"777":{"x":76.00000000000034,"y":148.99999999999864,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"778":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"779":{"morph":{"__isSmartRef__":true,"id":768},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"780":{"x":1095.926759767441,"y":1701.670750971461,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"781":{"requiredModules":[],"migrationLevel":2,"partsSpaceName":"PartsBin/Basic/","__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"782":{"morph":{"__isSmartRef__":true,"id":768},"index":0,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"783":{"morph":{"__isSmartRef__":true,"id":768},"index":1,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"784":{"submorphs":[],"scripts":[],"id":3261,"shape":{"__isSmartRef__":true,"id":785},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":790},"_MaxTextWidth":487.3766208479583,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":788},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"Text5","partsBinMetaInfo":{"__isSmartRef__":true,"id":791},"textChunks":[{"__isSmartRef__":true,"id":792}],"charsReplaced":"","lastFindLoc":37,"priorSelectionRange":[12,20],"prevScroll":[0,0],"_Scale":1.267367543047453,"priorExtent":{"__isSmartRef__":true,"id":794},"renderContextTable":{"__isSmartRef__":true,"id":795},"eventHandler":{"__isSmartRef__":true,"id":796},"owner":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.Text"},"785":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":786},"_Extent":{"__isSmartRef__":true,"id":787},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":788},"renderContextTable":{"__isSmartRef__":true,"id":789},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"786":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"787":{"x":487.3766208479583,"y":44,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"788":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"789":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"790":{"x":1127.957113312233,"y":1310.4580395110663,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"791":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"792":{"style":{"__isSmartRef__":true,"id":793},"morph":{"__isSmartRef__":true,"id":784},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"inspect the contents during pasting \n(paste into the orange)","__LivelyClassName__":"lively.morphic.TextChunk"},"793":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"794":{"x":487.3766208479583,"y":44,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"795":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"796":{"morph":{"__isSmartRef__":true,"id":784},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"797":{"submorphs":[],"scripts":[],"id":3411,"shape":{"__isSmartRef__":true,"id":798},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":803},"_MaxTextWidth":42.279297554112844,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":801},"showsHalos":false,"_FontSize":27,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"Text6","partsBinMetaInfo":{"__isSmartRef__":true,"id":804},"textChunks":[{"__isSmartRef__":true,"id":805}],"charsReplaced":"A","lastFindLoc":-1,"priorSelectionRange":[0,0],"prevScroll":[0,0],"_Scale":1.267367543047453,"priorExtent":{"__isSmartRef__":true,"id":807},"renderContextTable":{"__isSmartRef__":true,"id":808},"eventHandler":{"__isSmartRef__":true,"id":809},"owner":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.Text"},"798":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":799},"_Extent":{"__isSmartRef__":true,"id":800},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":801},"renderContextTable":{"__isSmartRef__":true,"id":802},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"799":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"800":{"x":42.279297554112844,"y":42,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"801":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"802":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"803":{"x":258.8907590719222,"y":1025.071873521581,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"804":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"805":{"style":{"__isSmartRef__":true,"id":806},"morph":{"__isSmartRef__":true,"id":797},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"B","__LivelyClassName__":"lively.morphic.TextChunk"},"806":{"__SourceModuleName__":"Global.lively.morphic.TextCore","fontWeight":"bold","__LivelyClassName__":"lively.morphic.TextEmphasis"},"807":{"x":42.279297554112844,"y":42,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"808":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"809":{"morph":{"__isSmartRef__":true,"id":797},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"810":{"submorphs":[],"scripts":[],"id":3487,"shape":{"__isSmartRef__":true,"id":811},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":816},"_MaxTextWidth":42.279297554112844,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":814},"showsHalos":false,"_FontSize":27,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"Text7","partsBinMetaInfo":{"__isSmartRef__":true,"id":817},"textChunks":[{"__isSmartRef__":true,"id":818}],"charsReplaced":"some text","lastFindLoc":-9,"priorSelectionRange":[0,0],"prevScroll":[0,0],"_Scale":1.267367543047453,"priorExtent":{"__isSmartRef__":true,"id":820},"renderContextTable":{"__isSmartRef__":true,"id":821},"eventHandler":{"__isSmartRef__":true,"id":822},"owner":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.Text"},"811":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":812},"_Extent":{"__isSmartRef__":true,"id":813},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":814},"renderContextTable":{"__isSmartRef__":true,"id":815},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"812":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"813":{"x":42.279297554112844,"y":42,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"814":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"815":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"816":{"x":1320.532246392747,"y":1362.866892214571,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"817":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"818":{"style":{"__isSmartRef__":true,"id":819},"morph":{"__isSmartRef__":true,"id":810},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"A","__LivelyClassName__":"lively.morphic.TextChunk"},"819":{"__SourceModuleName__":"Global.lively.morphic.TextCore","fontWeight":"bold","__LivelyClassName__":"lively.morphic.TextEmphasis"},"820":{"x":42.279297554112844,"y":42,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"821":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"822":{"morph":{"__isSmartRef__":true,"id":810},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"823":{"submorphs":[],"scripts":[],"id":3664,"shape":{"__isSmartRef__":true,"id":824},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":829},"_MaxTextWidth":795.9637995787723,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":827},"showsHalos":false,"_FontSize":24,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"Text8","partsBinMetaInfo":{"__isSmartRef__":true,"id":830},"textChunks":[{"__isSmartRef__":true,"id":831}],"charsReplaced":"","lastFindLoc":43,"priorSelectionRange":[23,24],"prevScroll":[0,0],"_Scale":1.267367543047453,"priorExtent":{"__isSmartRef__":true,"id":833},"renderContextTable":{"__isSmartRef__":true,"id":834},"eventHandler":{"__isSmartRef__":true,"id":835},"owner":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.Text"},"824":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":825},"_Extent":{"__isSmartRef__":true,"id":826},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":827},"renderContextTable":{"__isSmartRef__":true,"id":828},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"825":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"826":{"x":795.9637995787723,"y":37,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"827":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"828":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"829":{"x":1083.5104003263134,"y":1843.8185953421028,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"830":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"831":{"style":{"__isSmartRef__":true,"id":832},"morph":{"__isSmartRef__":true,"id":823},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"The question is, how to I get from A to B?","__LivelyClassName__":"lively.morphic.TextChunk"},"832":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"833":{"x":795.9637995787723,"y":37,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"834":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"835":{"morph":{"__isSmartRef__":true,"id":823},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"836":{"submorphs":[],"scripts":[],"id":3955,"renderContextTable":{"__isSmartRef__":true,"id":837},"textChunks":[{"__isSmartRef__":true,"id":838}],"shape":{"__isSmartRef__":true,"id":840},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":846},"_ClipMode":"auto","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco,monospace","eventHandler":{"__isSmartRef__":true,"id":847},"_Position":{"__isSmartRef__":true,"id":848},"priorExtent":{"__isSmartRef__":true,"id":849},"_MaxTextWidth":846.6843612901735,"_MaxTextHeight":376.5169458583673,"evalEnabled":false,"layout":{"__isSmartRef__":true,"id":850},"syntaxHighlightingWhileTyping":true,"attributeConnections":[{"__isSmartRef__":true,"id":851}],"doNotSerialize":["$$textString"],"doNotCopyProperties":["$$textString"],"lastSyntaxHighlightTime":1306507433313,"priorSelectionRange":[563,525],"showsHalos":false,"_Rotation":0,"_Scale":1,"name":"PasteText1","__SourceModuleName__":"Global.lively.morphic.TextCore","prevScroll":[0,0],"owner":{"__isSmartRef__":true,"id":0},"charsReplaced":"","lastFindLoc":524,"savedTextString":"string = \"\" + this.get('PasteTextHTML').textString\nstring = string.replace(\"\", \"\")\nnode = new DOMParser().parseFromString(string,\"text/xml\");\n\nhtmlToRichText = function(node, richText) {\n richText = richText || new RichText();\n $A(node.childNodes).forEach(function(ea) {\n if (ea.nodeName = 'text' && ea.data) { \n richText.childNodes.push({textContent: ea.data, style: {}})\n }\n htmlToRichText(ea, richText) \n })\n return richText\n}\n\nthis.get('ParsedPasteText').setTextString(htmlToRichText(node))\n","textString":"string = \"\" + this.get('PasteTextHTML').textString\nstring = string.replace(\"\", \"\")\nnode = new DOMParser().parseFromString(string,\"text/xml\");\n\nhtmlToRichText = function(node, richText) {\n richText = richText || new RichText();\n $A(node.childNodes).forEach(function(ea) {\n if (ea.nodeName = 'text' && ea.data) { \n richText.childNodes.push({textContent: ea.data, style: {}})\n }\n htmlToRichText(ea, richText) \n })\n return richText\n}\n\nthis.get('ParsedPasteText').setTextString(PastedTextAsJSO)\n","__LivelyClassName__":"lively.morphic.Text"},"837":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"838":{"style":{"__isSmartRef__":true,"id":839},"morph":{"__isSmartRef__":true,"id":836},"storedString":"string = \"\" + this.get('PasteTextHTML').textString\nstring = string.replace(\"\", \"\")\nnode = new DOMParser().parseFromString(string,\"text/xml\");\n\nhtmlToRichText = function(node, richText) {\n richText = richText || new RichText();\n $A(node.childNodes).forEach(function(ea) {\n if (ea.nodeName = 'text' && ea.data) { \n richText.childNodes.push({textContent: ea.data, style: {}})\n }\n htmlToRichText(ea, richText) \n })\n return richText\n}\n\nthis.get('ParsedPasteText').setTextString(PastedTextAsJSO)\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"839":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"840":{"_Position":{"__isSmartRef__":true,"id":841},"renderContextTable":{"__isSmartRef__":true,"id":842},"_Extent":{"__isSmartRef__":true,"id":843},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":844},"_Fill":{"__isSmartRef__":true,"id":845},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"841":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"842":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"843":{"x":846.6843612901735,"y":376.5169458583673,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"844":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"845":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"846":{"x":2,"y":1,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"847":{"morph":{"__isSmartRef__":true,"id":836},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"848":{"x":1120.7940720690585,"y":2135.7731128397963,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"849":{"x":846.6843612901735,"y":376.5169458583673,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"850":{"resizeWidth":true,"resizeHeight":true},"851":{"sourceObj":{"__isSmartRef__":true,"id":836},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":836},"targetMethodName":"highlightJavaScriptSyntax","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"852":{"submorphs":[],"scripts":[],"id":4370,"shape":{"__isSmartRef__":true,"id":853},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":858},"_MaxTextWidth":795.9637995787723,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":856},"showsHalos":false,"_FontSize":15,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"Text9","partsBinMetaInfo":{"__isSmartRef__":true,"id":859},"textChunks":[{"__isSmartRef__":true,"id":860}],"charsReplaced":"The question is, how to I get from A to B?","lastFindLoc":-42,"priorSelectionRange":[0,0],"prevScroll":[0,0],"_Scale":1.267367543047453,"priorExtent":{"__isSmartRef__":true,"id":862},"renderContextTable":{"__isSmartRef__":true,"id":863},"eventHandler":{"__isSmartRef__":true,"id":864},"owner":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.Text"},"853":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":854},"_Extent":{"__isSmartRef__":true,"id":855},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":856},"renderContextTable":{"__isSmartRef__":true,"id":857},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"854":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"855":{"x":795.9637995787723,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"856":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"857":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"858":{"x":1115.258052459113,"y":1916.2032422048865,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"859":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"860":{"style":{"__isSmartRef__":true,"id":861},"morph":{"__isSmartRef__":true,"id":852},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"we have to flatten a tree structure with various styling information into a list of textChunks","__LivelyClassName__":"lively.morphic.TextChunk"},"861":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"862":{"x":795.9637995787723,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"863":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"864":{"morph":{"__isSmartRef__":true,"id":852},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"865":{"submorphs":[],"scripts":[],"id":4553,"renderContextTable":{"__isSmartRef__":true,"id":866},"textChunks":[{"__isSmartRef__":true,"id":867}],"shape":{"__isSmartRef__":true,"id":869},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":875},"_ClipMode":"auto","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco,monospace","eventHandler":{"__isSmartRef__":true,"id":876},"_Position":{"__isSmartRef__":true,"id":877},"priorExtent":{"__isSmartRef__":true,"id":878},"_MaxTextWidth":790.8084935364459,"_MaxTextHeight":461.6006535742704,"evalEnabled":false,"layout":{"__isSmartRef__":true,"id":879},"syntaxHighlightingWhileTyping":true,"attributeConnections":[{"__isSmartRef__":true,"id":880}],"doNotSerialize":["$$textString"],"doNotCopyProperties":["$$textString"],"lastSyntaxHighlightTime":1306507014271,"priorSelectionRange":[0,195],"showsHalos":false,"_Rotation":0,"_Scale":1,"name":"ParsedPasteText","__SourceModuleName__":"Global.lively.morphic.TextCore","prevScroll":[0,126],"owner":{"__isSmartRef__":true,"id":0},"_FontSize":null,"textString":"{\n \"childNodes\": [\n {\n \"textContent\": \"Example Richt Text\",\n \"style\": {\n \"textDecoration\": \"underline\"\n }\n },\n {\n \"textContent\": \"\n1. nothing\n\",\n \"style\": {\n \"textDecoration\": \"none\"\n }\n },\n {\n \"textContent\": \"2. bold\",\n \"style\": {\n \"textDecoration\": \"none\",\n \"fontWeight\": \"bold\"\n }\n },\n {\n \"textContent\": \"\n\",\n \"style\": {\n \"textDecoration\": \"none\"\n }\n },\n {\n \"textContent\": \"3. colored\",\n \"style\": {\n \"textDecoration\": \"none\",\n \"color\": \"rgb(255,143,0)\"\n }\n },\n {\n \"textContent\": \"\n\",\n \"style\": {\n \"textDecoration\": \"none\"\n }\n },\n {\n \"textContent\": \"4. hyperlink\",\n \"style\": {\n \"color\": \"blue\",\n \"textDecoration\": \"underline\",\n \"cursor\": \"pointer\"\n }\n }\n ]\n}","__LivelyClassName__":"lively.morphic.Text"},"866":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"867":{"style":{"__isSmartRef__":true,"id":868},"morph":{"__isSmartRef__":true,"id":865},"storedString":"{\n \"childNodes\": [\n {\n \"textContent\": \"Example Richt Text\",\n \"style\": {\n \"textDecoration\": \"underline\"\n }\n },\n {\n \"textContent\": \"\n1. nothing\n\",\n \"style\": {\n \"textDecoration\": \"none\"\n }\n },\n {\n \"textContent\": \"2. bold\",\n \"style\": {\n \"textDecoration\": \"none\",\n \"fontWeight\": \"bold\"\n }\n },\n {\n \"textContent\": \"\n\",\n \"style\": {\n \"textDecoration\": \"none\"\n }\n },\n {\n \"textContent\": \"3. colored\",\n \"style\": {\n \"textDecoration\": \"none\",\n \"color\": \"rgb(255,143,0)\"\n }\n },\n {\n \"textContent\": \"\n\",\n \"style\": {\n \"textDecoration\": \"none\"\n }\n },\n {\n \"textContent\": \"4. hyperlink\",\n \"style\": {\n \"color\": \"blue\",\n \"textDecoration\": \"underline\",\n \"cursor\": \"pointer\"\n }\n }\n ]\n}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"868":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"869":{"_Position":{"__isSmartRef__":true,"id":870},"renderContextTable":{"__isSmartRef__":true,"id":871},"_Extent":{"__isSmartRef__":true,"id":872},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":873},"_Fill":{"__isSmartRef__":true,"id":874},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"870":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"871":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"872":{"x":790.8084935364459,"y":461.6006535742704,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"873":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"874":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"875":{"x":2,"y":1,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"876":{"morph":{"__isSmartRef__":true,"id":865},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"877":{"x":2085.922696906172,"y":2154.821704119476,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"878":{"x":790.8084935364459,"y":461.6006535742704,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"879":{"resizeWidth":true,"resizeHeight":true},"880":{"sourceObj":{"__isSmartRef__":true,"id":865},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":865},"targetMethodName":"highlightJavaScriptSyntax","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"881":{"submorphs":[],"scripts":[],"id":5286,"shape":{"__isSmartRef__":true,"id":882},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":887},"_MaxTextWidth":795.9637995787723,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":885},"showsHalos":false,"_FontSize":15,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"Text10","partsBinMetaInfo":{"__isSmartRef__":true,"id":888},"textChunks":[{"__isSmartRef__":true,"id":889}],"charsReplaced":"we have to flatten a tree structure with various styling information into a list of textChunks","lastFindLoc":-94,"priorSelectionRange":[0,0],"prevScroll":[0,0],"_Scale":1.267367543047453,"priorExtent":{"__isSmartRef__":true,"id":891},"renderContextTable":{"__isSmartRef__":true,"id":892},"eventHandler":{"__isSmartRef__":true,"id":893},"owner":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.Text"},"882":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":883},"_Extent":{"__isSmartRef__":true,"id":884},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":885},"renderContextTable":{"__isSmartRef__":true,"id":886},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"883":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"884":{"x":795.9637995787723,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"885":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"886":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"887":{"x":1092.3997429234971,"y":2067.3220663570137,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"888":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"889":{"style":{"__isSmartRef__":true,"id":890},"morph":{"__isSmartRef__":true,"id":881},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"1. Simple Version that parses the XML and prints only the pure text chunks","__LivelyClassName__":"lively.morphic.TextChunk"},"890":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"891":{"x":795.9637995787723,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"892":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"893":{"morph":{"__isSmartRef__":true,"id":881},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"894":{"submorphs":[],"scripts":[],"id":5363,"shape":{"__isSmartRef__":true,"id":895},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":900},"_MaxTextWidth":795.9637995787723,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":898},"showsHalos":false,"_FontSize":15,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"Text11","partsBinMetaInfo":{"__isSmartRef__":true,"id":901},"textChunks":[{"__isSmartRef__":true,"id":902}],"charsReplaced":"Simple Version that parses the XML and prints only the pure text chunks","lastFindLoc":-68,"priorSelectionRange":[0,0],"prevScroll":[0,0],"_Scale":1.267367543047453,"priorExtent":{"__isSmartRef__":true,"id":904},"renderContextTable":{"__isSmartRef__":true,"id":905},"eventHandler":{"__isSmartRef__":true,"id":906},"owner":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.Text"},"895":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":896},"_Extent":{"__isSmartRef__":true,"id":897},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":898},"renderContextTable":{"__isSmartRef__":true,"id":899},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"896":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"897":{"x":795.9637995787723,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"898":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"899":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"900":{"x":1087.320118582249,"y":2688.306142074577,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"901":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"902":{"style":{"__isSmartRef__":true,"id":903},"morph":{"__isSmartRef__":true,"id":894},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"2. If we maintain a stack of style, we should be able the flatten them for each chunk","__LivelyClassName__":"lively.morphic.TextChunk"},"903":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"904":{"x":795.9637995787723,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"905":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"906":{"morph":{"__isSmartRef__":true,"id":894},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"907":{"submorphs":[],"scripts":[],"id":5544,"renderContextTable":{"__isSmartRef__":true,"id":908},"textChunks":[{"__isSmartRef__":true,"id":909}],"shape":{"__isSmartRef__":true,"id":911},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":917},"_ClipMode":"auto","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco,monospace","eventHandler":{"__isSmartRef__":true,"id":918},"_Position":{"__isSmartRef__":true,"id":919},"priorExtent":{"__isSmartRef__":true,"id":920},"_MaxTextWidth":844.2003412851138,"_MaxTextHeight":792.8052211257636,"evalEnabled":false,"layout":{"__isSmartRef__":true,"id":921},"syntaxHighlightingWhileTyping":false,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"lastSyntaxHighlightTime":1306505051106,"priorSelectionRange":[1324,1344],"showsHalos":false,"_Rotation":0,"_Scale":1,"name":"PasteText2","__SourceModuleName__":"Global.lively.morphic.TextCore","prevScroll":[0,196],"charsReplaced":"","lastFindLoc":1307,"savedTextString":"string = \"\" + this.get('PasteTextHTML').textString\nstring = string.replace(\"\", \"\")\nnode = new DOMParser().parseFromString(string,\"text/xml\");\n\nnode.childNodes[0].childNodes[0].childNodes[0].getAttribute(\"style\")\n\nconvertStyleName = function(name) {\n var s = name.split(\"-\").invoke('capitalize').join(\"\")\n return s.charAt(0).toLowerCase() + s.substring(1);\n }\n// convertStyleName(\"hello-world-what\")\n\n\nhtmlToRichText = function(node, richText, styles) {\n richText = richText || new RichText();\n styles = styles || [];\n $A(node.childNodes).forEach(function(ea) {\n if (ea.getAttribute && (ea.getAttribute('class') !== 'Apple-style-span')) {\n var htmlStyle = ea.getAttribute(\"style\")\n var style = {}\n htmlStyle.split(\";\").forEach(function(ea) {\n if (ea.match(\":\")) {\n var pair = ea.replace(/ /g,\"\").split(\":\") \n style[convertStyleName(pair[0])] = pair[1]\n }\n })\n }\n if (ea.nodeName = 'text' && ea.data) { \n richText.childNodes.push({textContent: ea.data, style: Object.merge(styles)})\n }\n htmlToRichText(ea, richText, [style].concat(styles)) \n })\n return richText\n}\n\nthis.get('ParsedPasteText2').setTextString(htmlToRichText(node))\n\nObject.merge([{a: 2}, {b: 3}]).a\n\na = [1,2,3]\nb = [4]\nc = a.concat(b)\nb\n","owner":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.Text"},"908":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"909":{"style":{"__isSmartRef__":true,"id":910},"morph":{"__isSmartRef__":true,"id":907},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"string = \"\" + this.get('PasteTextHTML').textString\nstring = string.replace(\"\", \"\")\nnode = new DOMParser().parseFromString(string,\"text/xml\");\n\nnode.childNodes[0].childNodes[0].childNodes[0].getAttribute(\"style\")\n\nconvertStyleName = function(name) {\n var s = name.split(\"-\").invoke('capitalize').join(\"\")\n return s.charAt(0).toLowerCase() + s.substring(1);\n }\n// convertStyleName(\"hello-world-what\")\n\n\nhtmlToRichText = function(node, richText, styles) {\n richText = richText || new RichText();\n styles = styles || [];\n $A(node.childNodes).forEach(function(ea) {\n if (ea.getAttribute && (ea.getAttribute('class') !== 'Apple-style-span')) {\n var htmlStyle = ea.getAttribute(\"style\")\n var style = {}\n htmlStyle.split(\";\").forEach(function(ea) {\n if (ea.match(\":\")) {\n var pair = ea.replace(/ /g,\"\").split(\":\") \n style[convertStyleName(pair[0])] = pair[1]\n }\n })\n }\n if (ea.nodeName = 'text' && ea.data) { \n richText.childNodes.push({textContent: ea.data, style: Object.merge(styles)})\n }\n htmlToRichText(ea, richText, [style].concat(styles)) \n })\n return richText\n}\n\nPastedTextAsJSO = htmlToRichText(node)\n\nthis.get('ParsedPasteText2').setTextString(htmlToRichText(node))\n\nObject.merge([{a: 2}, {b: 3}]).a\n\na = [1,2,3]\nb = [4]\nc = a.concat(b)\nb\n","__LivelyClassName__":"lively.morphic.TextChunk"},"910":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"911":{"_Position":{"__isSmartRef__":true,"id":912},"renderContextTable":{"__isSmartRef__":true,"id":913},"_Extent":{"__isSmartRef__":true,"id":914},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":915},"_Fill":{"__isSmartRef__":true,"id":916},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"912":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"913":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"914":{"x":844.2003412851138,"y":792.8052211257636,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"915":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"916":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"917":{"x":2,"y":1,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"918":{"morph":{"__isSmartRef__":true,"id":907},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"919":{"x":1124.6037903249946,"y":2750.4076581308,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"920":{"x":844.2003412851138,"y":792.8052211257636,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"921":{"resizeWidth":true,"resizeHeight":true},"922":{"submorphs":[],"scripts":[],"id":5645,"renderContextTable":{"__isSmartRef__":true,"id":923},"textChunks":[{"__isSmartRef__":true,"id":924}],"shape":{"__isSmartRef__":true,"id":926},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":932},"_ClipMode":"auto","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco,monospace","eventHandler":{"__isSmartRef__":true,"id":933},"_Position":{"__isSmartRef__":true,"id":934},"priorExtent":{"__isSmartRef__":true,"id":935},"_MaxTextWidth":790.8084935364459,"_MaxTextHeight":461.6006535742704,"evalEnabled":false,"layout":{"__isSmartRef__":true,"id":936},"syntaxHighlightingWhileTyping":true,"attributeConnections":[{"__isSmartRef__":true,"id":937}],"doNotSerialize":["$$textString"],"doNotCopyProperties":["$$textString"],"lastSyntaxHighlightTime":1306506896779,"priorSelectionRange":[287,287],"showsHalos":false,"_Rotation":0,"_Scale":1,"name":"ParsedPasteText2","__SourceModuleName__":"Global.lively.morphic.TextCore","prevScroll":[0,593],"_FontSize":null,"owner":{"__isSmartRef__":true,"id":0},"textString":"{\n \"childNodes\": [\n {\n \"textContent\": \"Example Richt Text\",\n \"style\": {\n \"textDecoration\": \"underline\"\n }\n },\n {\n \"textContent\": \"\n1. nothing\n\",\n \"style\": {\n \"textDecoration\": \"none\"\n }\n },\n {\n \"textContent\": \"2. bold\",\n \"style\": {\n \"textDecoration\": \"none\",\n \"fontWeight\": \"bold\"\n }\n },\n {\n \"textContent\": \"\n\",\n \"style\": {\n \"textDecoration\": \"none\"\n }\n },\n {\n \"textContent\": \"3. colored\",\n \"style\": {\n \"textDecoration\": \"none\",\n \"color\": \"rgb(255,143,0)\"\n }\n },\n {\n \"textContent\": \"\n\",\n \"style\": {\n \"textDecoration\": \"none\"\n }\n },\n {\n \"textContent\": \"4. hyperlink\",\n \"style\": {\n \"color\": \"blue\",\n \"textDecoration\": \"underline\",\n \"cursor\": \"pointer\"\n }\n }\n ]\n}","__LivelyClassName__":"lively.morphic.Text"},"923":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"924":{"style":{"__isSmartRef__":true,"id":925},"morph":{"__isSmartRef__":true,"id":922},"storedString":"{\n \"childNodes\": [\n {\n \"textContent\": \"Example Richt Text\",\n \"style\": {\n \"textDecoration\": \"underline\"\n }\n },\n {\n \"textContent\": \"\n1. nothing\n\",\n \"style\": {\n \"textDecoration\": \"none\"\n }\n },\n {\n \"textContent\": \"2. bold\",\n \"style\": {\n \"textDecoration\": \"none\",\n \"fontWeight\": \"bold\"\n }\n },\n {\n \"textContent\": \"\n\",\n \"style\": {\n \"textDecoration\": \"none\"\n }\n },\n {\n \"textContent\": \"3. colored\",\n \"style\": {\n \"textDecoration\": \"none\",\n \"color\": \"rgb(255,143,0)\"\n }\n },\n {\n \"textContent\": \"\n\",\n \"style\": {\n \"textDecoration\": \"none\"\n }\n },\n {\n \"textContent\": \"4. hyperlink\",\n \"style\": {\n \"color\": \"blue\",\n \"textDecoration\": \"underline\",\n \"cursor\": \"pointer\"\n }\n }\n ]\n}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"925":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"926":{"_Position":{"__isSmartRef__":true,"id":927},"renderContextTable":{"__isSmartRef__":true,"id":928},"_Extent":{"__isSmartRef__":true,"id":929},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":930},"_Fill":{"__isSmartRef__":true,"id":931},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"927":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"928":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"929":{"x":790.8084935364459,"y":461.6006535742704,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"930":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"931":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"932":{"x":2,"y":1,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"933":{"morph":{"__isSmartRef__":true,"id":922},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"934":{"x":2077.0333543089882,"y":2764.376625069232,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"935":{"x":790.8084935364459,"y":461.6006535742704,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"936":{"resizeWidth":true,"resizeHeight":true},"937":{"sourceObj":{"__isSmartRef__":true,"id":922},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":922},"targetMethodName":"highlightJavaScriptSyntax","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"938":{"submorphs":[],"scripts":[],"id":6569,"shape":{"__isSmartRef__":true,"id":939},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":944},"_MaxTextWidth":795.9637995787723,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":942},"showsHalos":false,"_FontSize":15,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"Text12","partsBinMetaInfo":{"__isSmartRef__":true,"id":945},"textChunks":[{"__isSmartRef__":true,"id":946}],"charsReplaced":"2","lastFindLoc":-1,"priorSelectionRange":[0,0],"prevScroll":[0,0],"_Scale":1.2673675430474531,"priorExtent":{"__isSmartRef__":true,"id":948},"renderContextTable":{"__isSmartRef__":true,"id":949},"eventHandler":{"__isSmartRef__":true,"id":950},"owner":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.Text"},"939":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":940},"_Extent":{"__isSmartRef__":true,"id":941},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":942},"renderContextTable":{"__isSmartRef__":true,"id":943},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"940":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"941":{"x":795.9637995787723,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"942":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"943":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"944":{"x":1049.2990162486587,"y":3607.149448469674,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"945":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"946":{"style":{"__isSmartRef__":true,"id":947},"morph":{"__isSmartRef__":true,"id":938},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"3. If we maintain a stack of style, we should be able the flatten them for each chunk","__LivelyClassName__":"lively.morphic.TextChunk"},"947":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"948":{"x":795.9637995787723,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"949":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"950":{"morph":{"__isSmartRef__":true,"id":938},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"951":{"submorphs":[],"scripts":[],"id":6674,"renderContextTable":{"__isSmartRef__":true,"id":952},"textChunks":[{"__isSmartRef__":true,"id":953}],"shape":{"__isSmartRef__":true,"id":955},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":961},"_ClipMode":"auto","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco,monospace","eventHandler":{"__isSmartRef__":true,"id":962},"_Position":{"__isSmartRef__":true,"id":963},"priorExtent":{"__isSmartRef__":true,"id":964},"_MaxTextWidth":844.2003412851138,"_MaxTextHeight":792.8052211257636,"evalEnabled":false,"layout":{"__isSmartRef__":true,"id":965},"syntaxHighlightingWhileTyping":false,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"lastSyntaxHighlightTime":1306505051106,"priorSelectionRange":[93,393],"showsHalos":false,"_Rotation":0,"_Scale":1.0000000000000002,"name":"PasteText3","__SourceModuleName__":"Global.lively.morphic.TextCore","prevScroll":[0,0],"charsReplaced":"","lastFindLoc":184,"savedTextString":"richText = JSON.parse(this.get('ParsedPasteText2').textString)\n\n\ntextMorph = this.get('TargetText')\ntextMorph.setTextString(richText.childNodes.pluck('textContent').join(''));\n\nto = 0\nfrom = 0\nrichText.childNodes.forEach(function(ea) {\n if (!ea.textContent) return;\n to += ea.textContent.length;\n textMorph.emphasize(ea.style, from, to);\n from = to;\n})\n\n","owner":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.Text"},"952":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"953":{"style":{"__isSmartRef__":true,"id":954},"morph":{"__isSmartRef__":true,"id":951},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"// richText = JSON.parse(this.get('ParsedPasteText2').textString)\nrichText = PastedTextAsJSO\n\ntextMorph = this.get('TargetText')\ntextMorph.setTextString(richText.childNodes.pluck('textContent').join(''));\n\nto = 0\nfrom = 0\nrichText.childNodes.forEach(function(ea) {\n if (!ea.textContent) return;\n to += ea.textContent.length;\n textMorph.emphasize(ea.style, from, to);\n from = to;\n})\n\n","__LivelyClassName__":"lively.morphic.TextChunk"},"954":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"955":{"_Position":{"__isSmartRef__":true,"id":956},"renderContextTable":{"__isSmartRef__":true,"id":957},"_Extent":{"__isSmartRef__":true,"id":958},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":959},"_Fill":{"__isSmartRef__":true,"id":960},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"956":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"957":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"958":{"x":844.2003412851138,"y":792.8052211257636,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"959":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"960":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"961":{"x":2,"y":1,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"962":{"morph":{"__isSmartRef__":true,"id":951},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"963":{"x":1142.3469714140035,"y":3732.6194684152147,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"964":{"x":844.2003412851138,"y":792.8052211257636,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"965":{"resizeWidth":true,"resizeHeight":true},"966":{"submorphs":[{"__isSmartRef__":true,"id":967}],"scripts":[],"id":7598,"shape":{"__isSmartRef__":true,"id":993},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":999},"showsHalos":false,"name":"Rectangle1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1000},"__SourceModuleName__":"Global.lively.morphic.Core","_Rotation":0,"_Scale":2,"renderContextTable":{"__isSmartRef__":true,"id":1001},"eventHandler":{"__isSmartRef__":true,"id":1002},"owner":{"__isSmartRef__":true,"id":0},"priorExtent":{"__isSmartRef__":true,"id":1003},"__LivelyClassName__":"lively.morphic.Box"},"967":{"submorphs":[],"scripts":[],"id":6858,"shape":{"__isSmartRef__":true,"id":968},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":973},"_MaxTextWidth":354.6842519446582,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":974},"showsHalos":false,"_FontSize":21,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"TargetText","partsBinMetaInfo":{"__isSmartRef__":true,"id":975},"textChunks":[{"__isSmartRef__":true,"id":976},{"__isSmartRef__":true,"id":978},{"__isSmartRef__":true,"id":980},{"__isSmartRef__":true,"id":982},{"__isSmartRef__":true,"id":984},{"__isSmartRef__":true,"id":986},{"__isSmartRef__":true,"id":988}],"charsReplaced":"","lastFindLoc":62,"priorSelectionRange":[27,27],"prevScroll":[0,0],"_Scale":1.0000000000000002,"priorExtent":{"__isSmartRef__":true,"id":990},"renderContextTable":{"__isSmartRef__":true,"id":991},"eventHandler":{"__isSmartRef__":true,"id":992},"owner":{"__isSmartRef__":true,"id":966},"__LivelyClassName__":"lively.morphic.Text"},"968":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":969},"_Extent":{"__isSmartRef__":true,"id":970},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":971},"renderContextTable":{"__isSmartRef__":true,"id":972},"_BorderRadius":8.915000000000001,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"969":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"970":{"x":354.6842519446582,"y":166,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"971":{"r":0,"g":0.309,"b":0.595,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"972":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"973":{"x":7.39577953328228,"y":8.63647245175548,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"974":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"975":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"976":{"style":{"__isSmartRef__":true,"id":977},"morph":{"__isSmartRef__":true,"id":967},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"Example Richt Text","__LivelyClassName__":"lively.morphic.TextChunk"},"977":{"textDecoration":"underline","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"978":{"style":{"__isSmartRef__":true,"id":979},"morph":{"__isSmartRef__":true,"id":967},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"\n1. nothing\n","__LivelyClassName__":"lively.morphic.TextChunk"},"979":{"textDecoration":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"980":{"style":{"__isSmartRef__":true,"id":981},"morph":{"__isSmartRef__":true,"id":967},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"2. bold","__LivelyClassName__":"lively.morphic.TextChunk"},"981":{"textDecoration":"none","fontWeight":"bold","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"982":{"style":{"__isSmartRef__":true,"id":983},"morph":{"__isSmartRef__":true,"id":967},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk"},"983":{"textDecoration":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"984":{"style":{"__isSmartRef__":true,"id":985},"morph":{"__isSmartRef__":true,"id":967},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"3. colored","__LivelyClassName__":"lively.morphic.TextChunk"},"985":{"textDecoration":"none","color":"rgb(255,143,0)","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"986":{"style":{"__isSmartRef__":true,"id":987},"morph":{"__isSmartRef__":true,"id":967},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk"},"987":{"textDecoration":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"988":{"style":{"__isSmartRef__":true,"id":989},"morph":{"__isSmartRef__":true,"id":967},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"4. hyperlink","__LivelyClassName__":"lively.morphic.TextChunk"},"989":{"color":"blue","textDecoration":"underline","cursor":"pointer","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"990":{"x":354.6842519446582,"y":166,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"991":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"992":{"morph":{"__isSmartRef__":true,"id":967},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"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","renderContextTable":{"__isSmartRef__":true,"id":998},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"994":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"995":{"x":389.2928502677969,"y":280.6525984442728,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"996":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"997":{"r":0.921,"g":0.921,"b":0.921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"998":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"999":{"x":2196.3523448037295,"y":3856.6071467038364,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1000":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","comment":"A simple box morph","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1001":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"1002":{"morph":{"__isSmartRef__":true,"id":966},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1003":{"x":389.2928502677969,"y":281.6525984442728,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1004":{"submorphs":[],"scripts":[],"id":8175,"shape":{"__isSmartRef__":true,"id":1005},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1010},"_MaxTextWidth":42.279297554112844,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":1008},"showsHalos":false,"_FontSize":27,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"Text13","partsBinMetaInfo":{"__isSmartRef__":true,"id":1011},"textChunks":[{"__isSmartRef__":true,"id":1012}],"charsReplaced":"some text","lastFindLoc":-9,"priorSelectionRange":[0,1],"prevScroll":[0,0],"_Scale":1.2673675430474527,"priorExtent":{"__isSmartRef__":true,"id":1014},"renderContextTable":{"__isSmartRef__":true,"id":1015},"eventHandler":{"__isSmartRef__":true,"id":1016},"owner":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.Text"},"1005":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1006},"_Extent":{"__isSmartRef__":true,"id":1007},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1008},"renderContextTable":{"__isSmartRef__":true,"id":1009},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1006":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1007":{"x":42.279297554112844,"y":42,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1008":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1009":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1010":{"x":2124.8270162555955,"y":3677.931567630607,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1011":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1012":{"style":{"__isSmartRef__":true,"id":1013},"morph":{"__isSmartRef__":true,"id":1004},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"C","__LivelyClassName__":"lively.morphic.TextChunk"},"1013":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1014":{"x":42.279297554112844,"y":42,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1015":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"1016":{"morph":{"__isSmartRef__":true,"id":1004},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1017":{"submorphs":[],"scripts":[],"id":8496,"shape":{"__isSmartRef__":true,"id":1018},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1023},"_MaxTextWidth":795.9637995787723,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":1021},"showsHalos":false,"_FontSize":15,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"Text14","partsBinMetaInfo":{"__isSmartRef__":true,"id":1024},"textChunks":[{"__isSmartRef__":true,"id":1025},{"__isSmartRef__":true,"id":1027}],"charsReplaced":"3. If we maintain a stack of style, we should be able the flatten them for each chunk","lastFindLoc":-85,"priorSelectionRange":[0,40],"prevScroll":[0,0],"_Scale":1.2673675430474531,"priorExtent":{"__isSmartRef__":true,"id":1029},"renderContextTable":{"__isSmartRef__":true,"id":1030},"eventHandler":{"__isSmartRef__":true,"id":1031},"owner":{"__isSmartRef__":true,"id":0},"_WhiteSpaceHandling":"pre-wrap","__LivelyClassName__":"lively.morphic.Text"},"1018":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1019},"_Extent":{"__isSmartRef__":true,"id":1020},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1021},"renderContextTable":{"__isSmartRef__":true,"id":1022},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1019":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1020":{"x":795.9637995787723,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1021":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1022":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1023":{"x":2146.2990162486585,"y":3771.149448469674,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1024":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1025":{"style":{"__isSmartRef__":true,"id":1026},"morph":{"__isSmartRef__":true,"id":1017},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"Success","__LivelyClassName__":"lively.morphic.TextChunk"},"1026":{"__SourceModuleName__":"Global.lively.morphic.TextCore","color":{"__isSmartRef__":true,"id":701},"__LivelyClassName__":"lively.morphic.TextEmphasis"},"1027":{"style":{"__isSmartRef__":true,"id":1028},"morph":{"__isSmartRef__":true,"id":1017},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"!! We did it, we copied RICH TEXT","__LivelyClassName__":"lively.morphic.TextChunk"},"1028":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1029":{"x":795.9637995787723,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1030":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"1031":{"morph":{"__isSmartRef__":true,"id":1017},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1032":{"submorphs":[],"scripts":[],"id":8721,"shape":{"__isSmartRef__":true,"id":1033},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1038},"_MaxTextWidth":42.279297554112844,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":1036},"showsHalos":false,"_FontSize":27,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"Text16","partsBinMetaInfo":{"__isSmartRef__":true,"id":1039},"textChunks":[{"__isSmartRef__":true,"id":1040}],"charsReplaced":"C","lastFindLoc":-1,"priorSelectionRange":[0,0],"prevScroll":[0,0],"_Scale":1.2673675430474527,"priorExtent":{"__isSmartRef__":true,"id":1042},"renderContextTable":{"__isSmartRef__":true,"id":1043},"eventHandler":{"__isSmartRef__":true,"id":1044},"owner":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.Text"},"1033":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1034},"_Extent":{"__isSmartRef__":true,"id":1035},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1036},"renderContextTable":{"__isSmartRef__":true,"id":1037},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1034":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1035":{"x":42.279297554112844,"y":42,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1036":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1037":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1038":{"x":2123.8270162555955,"y":4621.931567630607,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1039":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1040":{"style":{"__isSmartRef__":true,"id":1041},"morph":{"__isSmartRef__":true,"id":1032},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"D","__LivelyClassName__":"lively.morphic.TextChunk"},"1041":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1042":{"x":42.279297554112844,"y":42,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1043":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"1044":{"morph":{"__isSmartRef__":true,"id":1032},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1045":{"submorphs":[],"scripts":[],"id":8946,"shape":{"__isSmartRef__":true,"id":1046},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1051},"_MaxTextWidth":795.9637995787723,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":1049},"showsHalos":false,"_FontSize":15,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"Text17","partsBinMetaInfo":{"__isSmartRef__":true,"id":1052},"textChunks":[{"__isSmartRef__":true,"id":1053}],"charsReplaced":"If we maintain a stack of style, we should be able the flatten them for each chunk","lastFindLoc":-79,"priorSelectionRange":[55,55],"prevScroll":[0,0],"_Scale":1.2673675430474531,"priorExtent":{"__isSmartRef__":true,"id":1055},"renderContextTable":{"__isSmartRef__":true,"id":1056},"eventHandler":{"__isSmartRef__":true,"id":1057},"owner":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.Text"},"1046":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1047},"_Extent":{"__isSmartRef__":true,"id":1048},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1049},"renderContextTable":{"__isSmartRef__":true,"id":1050},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1047":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1048":{"x":795.9637995787723,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1049":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1050":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1051":{"x":1081.2990162486587,"y":4585.149448469674,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1052":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1053":{"style":{"__isSmartRef__":true,"id":1054},"morph":{"__isSmartRef__":true,"id":1045},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"4. Now lets build an text object which does all this!!!","__LivelyClassName__":"lively.morphic.TextChunk"},"1054":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1055":{"x":795.9637995787723,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1056":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"1057":{"morph":{"__isSmartRef__":true,"id":1045},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1058":{"submorphs":[],"scripts":[],"id":9518,"shape":{"__isSmartRef__":true,"id":1059},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1064},"_MaxTextWidth":168,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":1065},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"PasteRichTextExampleText","partsBinMetaInfo":{"__isSmartRef__":true,"id":1066},"textChunks":[{"__isSmartRef__":true,"id":1067},{"__isSmartRef__":true,"id":1069},{"__isSmartRef__":true,"id":1071},{"__isSmartRef__":true,"id":1073},{"__isSmartRef__":true,"id":1075},{"__isSmartRef__":true,"id":1077},{"__isSmartRef__":true,"id":1079},{"__isSmartRef__":true,"id":1081},{"__isSmartRef__":true,"id":1083},{"__isSmartRef__":true,"id":1085},{"__isSmartRef__":true,"id":1087}],"charsReplaced":"Example Richt Text\n1. nothing\n2. bold\n3. colored\nExample Richt Text\n1. nothing\n2. bold\n3. colored\n4. hyperlink\n4. hyperlink","lastFindLoc":78,"priorSelectionRange":[42,50],"prevScroll":[0,0],"_Scale":1.2775343959060061,"priorExtent":{"__isSmartRef__":true,"id":1089},"renderContextTable":{"__isSmartRef__":true,"id":1090},"eventHandler":{"__isSmartRef__":true,"id":1091},"_Padding":{"__isSmartRef__":true,"id":1092},"owner":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1093},"__LivelyClassName__":"lively.morphic.Text"},"1059":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1060},"_Extent":{"__isSmartRef__":true,"id":1061},"_BorderWidth":1.8780000000000001,"_BorderColor":{"__isSmartRef__":true,"id":1062},"renderContextTable":{"__isSmartRef__":true,"id":1063},"_BorderRadius":12.315000000000001,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1060":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1061":{"x":168,"y":199,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1062":{"r":1,"g":0.56,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1063":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1064":{"x":2180,"y":4701,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1065":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1066":{"partsSpaceName":"PartsBin/Demos/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1067":{"style":{"__isSmartRef__":true,"id":1068},"morph":{"__isSmartRef__":true,"id":1058},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk"},"1068":{"textDecoration":"underline","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1069":{"style":{"__isSmartRef__":true,"id":1070},"morph":{"__isSmartRef__":true,"id":1058},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"Hello World\n","__LivelyClassName__":"lively.morphic.TextChunk"},"1070":{"textDecoration":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1071":{"style":{"__isSmartRef__":true,"id":1072},"morph":{"__isSmartRef__":true,"id":1058},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"Example Richt Text","__LivelyClassName__":"lively.morphic.TextChunk"},"1072":{"textDecoration":"underline","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1073":{"style":{"__isSmartRef__":true,"id":1074},"morph":{"__isSmartRef__":true,"id":1058},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"\n1. nothing\n","__LivelyClassName__":"lively.morphic.TextChunk"},"1074":{"textDecoration":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1075":{"style":{"__isSmartRef__":true,"id":1076},"morph":{"__isSmartRef__":true,"id":1058},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"2. bold","__LivelyClassName__":"lively.morphic.TextChunk"},"1076":{"textDecoration":"none","fontWeight":"bold","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1077":{"style":{"__isSmartRef__":true,"id":1078},"morph":{"__isSmartRef__":true,"id":1058},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk"},"1078":{"textDecoration":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1079":{"style":{"__isSmartRef__":true,"id":1080},"morph":{"__isSmartRef__":true,"id":1058},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"3. colored","__LivelyClassName__":"lively.morphic.TextChunk"},"1080":{"textDecoration":"none","color":"rgb(255,143,0)","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1081":{"style":{"__isSmartRef__":true,"id":1082},"morph":{"__isSmartRef__":true,"id":1058},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk"},"1082":{"textDecoration":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1083":{"style":{"__isSmartRef__":true,"id":1084},"morph":{"__isSmartRef__":true,"id":1058},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"4. hyperlink","__LivelyClassName__":"lively.morphic.TextChunk"},"1084":{"textDecoration":"underline","color":"blue","cursor":"pointer","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1085":{"style":{"__isSmartRef__":true,"id":1086},"morph":{"__isSmartRef__":true,"id":1058},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"\n\nwas","__LivelyClassName__":"lively.morphic.TextChunk"},"1086":{"textDecoration":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1087":{"style":{"__isSmartRef__":true,"id":1088},"morph":{"__isSmartRef__":true,"id":1058},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk"},"1088":{"color":"blue","textDecoration":"underline","cursor":"pointer","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1089":{"x":168,"y":199,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1090":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"1091":{"morph":{"__isSmartRef__":true,"id":1058},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1092":{"x":5,"y":5,"width":5,"height":5,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1093":{"onPaste":{"__isSmartRef__":true,"id":1094}},"1094":{"varMapping":{"__isSmartRef__":true,"id":1095},"source":"function onPaste(evt) {\n // FIXME How to parse the HTML?\n // try to make valid XML from the HTML we got here...\n var string = \"
\" + evt.clipboardData.getData(\"text/HTML\") + \"
\";\n string = string.replace(\"\", \"\")\n string = string.replace(//g, \"
\")\n \n var node = new DOMParser().parseFromString(string,\"text/xml\"); \n var richText = lively.morphic.RichText.htmlToRichText(node)\n richText.replaceSelectionInMorph(this)\n\n this.show()\n\n evt.stop()\n return true;\n}","funcProperties":{"__isSmartRef__":true,"id":1100},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1095":{"this":{"__isSmartRef__":true,"id":1058},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1096}},"1096":{"$super":{"__isSmartRef__":true,"id":1097}},"1097":{"varMapping":{"__isSmartRef__":true,"id":1098},"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":1099},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1098":{"obj":{"__isSmartRef__":true,"id":1058},"name":"onPaste"},"1099":{},"1100":{},"1101":{"submorphs":[],"scripts":[],"id":3969,"shape":{"__isSmartRef__":true,"id":1102},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1107},"_MaxTextWidth":230,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":1108},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"PasteRichTextExampleText1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1109},"textChunks":[{"__isSmartRef__":true,"id":1110}],"charsReplaced":"Hello World\n\nExample Richt Text\n1. nothing\n2. bold\n3. colored\n4. hyperlink\n\nwas","lastFindLoc":-79,"priorSelectionRange":[3,3],"prevScroll":[0,0],"_Scale":1.2775343959060061,"priorExtent":{"__isSmartRef__":true,"id":1112},"renderContextTable":{"__isSmartRef__":true,"id":1113},"eventHandler":{"__isSmartRef__":true,"id":1114},"_Padding":{"__isSmartRef__":true,"id":1115},"owner":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1116},"__LivelyClassName__":"lively.morphic.Text"},"1102":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1103},"_Extent":{"__isSmartRef__":true,"id":1104},"_BorderWidth":1.8780000000000001,"_BorderColor":{"__isSmartRef__":true,"id":1105},"renderContextTable":{"__isSmartRef__":true,"id":1106},"_BorderRadius":12.315000000000001,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1103":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1104":{"x":230,"y":38,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1105":{"r":1,"g":0.56,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1106":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1107":{"x":2278,"y":4542,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1108":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1109":{"partsSpaceName":"PartsBin/Demos/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1110":{"style":{"__isSmartRef__":true,"id":1111},"morph":{"__isSmartRef__":true,"id":1101},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"12311","__LivelyClassName__":"lively.morphic.TextChunk"},"1111":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1112":{"x":230,"y":38,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1113":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"1114":{"morph":{"__isSmartRef__":true,"id":1101},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1115":{"x":5,"y":5,"width":5,"height":5,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1116":{"onPaste":{"__isSmartRef__":true,"id":1117}},"1117":{"varMapping":{"__isSmartRef__":true,"id":1118},"source":"function onPaste(evt) {\n alertOK('onPaste')\n\nvar convertStyleName = function(name) {\n var s = name.split(\"-\").invoke('capitalize').join(\"\")\n return s.charAt(0).toLowerCase() + s.substring(1);\n }\n\n\nvar htmlToRichText = function(node, richText, styles) {\n richText = richText || {childNodes: []};\n styles = styles || [];\n $A(node.childNodes).forEach(function(ea) {\n if (ea.getAttribute && (ea.getAttribute('class') !== 'Apple-style-span')) {\n var htmlStyle = ea.getAttribute(\"style\")\n var style = {}\n if (htmlStyle) {\n htmlStyle.split(\";\").forEach(function(ea) {\n if (ea.match(\":\")) {\n var pair = ea.replace(/ /g,\"\").split(\":\") \n style[convertStyleName(pair[0])] = pair[1]\n }\n })\n }\n }\n if (ea.nodeName = 'text' && ea.data) { \n richText.childNodes.push({textContent: ea.data, style: Object.merge(styles)})\n }\n htmlToRichText(ea, richText, [style].concat(styles)) \n })\n return richText\n}\n\n \n var string = \"
\" + evt.clipboardData.getData(\"text/HTML\") + \"
\";\n string = string.replace(\"\", \"\")\n string = string.replace(//g, \"
\")\n \n alert(string)\n\n var node = new DOMParser().parseFromString(string,\"text/xml\");\n\n \n var richText = htmlToRichText(node)\n\n var range = this.getSelectionRange(),\n to = range[0],\n from = to;\n string = richText.childNodes.pluck('textContent').join('');\n this.insertAtCursor(string, true, true)\n richText.childNodes.forEach(function(ea) {\n if (!ea.textContent) return;\n to += ea.textContent.length;\n this.emphasize(ea.style, from, to);\n from = to;\n }.bind(this))\n \n evt.stop()\n return true;\n // return $super(evt)\n}","funcProperties":{"__isSmartRef__":true,"id":1123},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1118":{"this":{"__isSmartRef__":true,"id":1101},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1119}},"1119":{"$super":{"__isSmartRef__":true,"id":1120}},"1120":{"varMapping":{"__isSmartRef__":true,"id":1121},"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":1122},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1121":{"obj":{"__isSmartRef__":true,"id":1101},"name":"onPaste"},"1122":{},"1123":{},"1124":{"submorphs":[],"scripts":[],"id":477,"shape":{"__isSmartRef__":true,"id":1125},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1130},"_MaxTextWidth":168,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":1128},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"Text15","partsBinMetaInfo":{"__isSmartRef__":true,"id":1131},"textChunks":[{"__isSmartRef__":true,"id":1132},{"__isSmartRef__":true,"id":1134},{"__isSmartRef__":true,"id":1136},{"__isSmartRef__":true,"id":1138},{"__isSmartRef__":true,"id":1140},{"__isSmartRef__":true,"id":1142},{"__isSmartRef__":true,"id":1144},{"__isSmartRef__":true,"id":1146},{"__isSmartRef__":true,"id":1148}],"charsReplaced":"some text","lastFindLoc":78,"priorSelectionRange":[0,9],"prevScroll":[0,0],"_Scale":1,"priorExtent":{"__isSmartRef__":true,"id":1150},"renderContextTable":{"__isSmartRef__":true,"id":1151},"eventHandler":{"__isSmartRef__":true,"id":1152},"owner":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.Text"},"1125":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1126},"_Extent":{"__isSmartRef__":true,"id":1127},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1128},"renderContextTable":{"__isSmartRef__":true,"id":1129},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1126":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1127":{"x":168,"y":184,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1128":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1129":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1130":{"x":2176,"y":4473,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1131":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1132":{"style":{"__isSmartRef__":true,"id":1133},"morph":{"__isSmartRef__":true,"id":1124},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"Hello World\n","__LivelyClassName__":"lively.morphic.TextChunk"},"1133":{"__SourceModuleName__":"Global.lively.morphic.TextCore","textDecoration":"none","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1134":{"style":{"__isSmartRef__":true,"id":1135},"morph":{"__isSmartRef__":true,"id":1124},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"Example Richt Text","__LivelyClassName__":"lively.morphic.TextChunk"},"1135":{"__SourceModuleName__":"Global.lively.morphic.TextCore","textDecoration":"underline","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1136":{"style":{"__isSmartRef__":true,"id":1137},"morph":{"__isSmartRef__":true,"id":1124},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"\n1. nothing\n","__LivelyClassName__":"lively.morphic.TextChunk"},"1137":{"__SourceModuleName__":"Global.lively.morphic.TextCore","textDecoration":"none","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1138":{"style":{"__isSmartRef__":true,"id":1139},"morph":{"__isSmartRef__":true,"id":1124},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"2. bold","__LivelyClassName__":"lively.morphic.TextChunk"},"1139":{"__SourceModuleName__":"Global.lively.morphic.TextCore","textDecoration":"none","fontWeight":"bold","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1140":{"style":{"__isSmartRef__":true,"id":1141},"morph":{"__isSmartRef__":true,"id":1124},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk"},"1141":{"__SourceModuleName__":"Global.lively.morphic.TextCore","textDecoration":"none","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1142":{"style":{"__isSmartRef__":true,"id":1143},"morph":{"__isSmartRef__":true,"id":1124},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"3. colored","__LivelyClassName__":"lively.morphic.TextChunk"},"1143":{"__SourceModuleName__":"Global.lively.morphic.TextCore","textDecoration":"none","color":"rgb(255,143,0)","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1144":{"style":{"__isSmartRef__":true,"id":1145},"morph":{"__isSmartRef__":true,"id":1124},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk"},"1145":{"__SourceModuleName__":"Global.lively.morphic.TextCore","textDecoration":"none","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1146":{"style":{"__isSmartRef__":true,"id":1147},"morph":{"__isSmartRef__":true,"id":1124},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"4. hyperlink","__LivelyClassName__":"lively.morphic.TextChunk"},"1147":{"__SourceModuleName__":"Global.lively.morphic.TextCore","textDecoration":"underline","color":"blue","cursor":"pointer","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1148":{"style":{"__isSmartRef__":true,"id":1149},"morph":{"__isSmartRef__":true,"id":1124},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"\n\nwas","__LivelyClassName__":"lively.morphic.TextChunk"},"1149":{"__SourceModuleName__":"Global.lively.morphic.TextCore","textDecoration":"none","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1150":{"x":168,"y":184,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1151":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"1152":{"morph":{"__isSmartRef__":true,"id":1124},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1153":{"submorphs":[],"scripts":[],"id":505,"shape":{"__isSmartRef__":true,"id":1154},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1159},"_MaxTextWidth":795.9637995787723,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":1157},"showsHalos":false,"_FontSize":15,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"Text18","partsBinMetaInfo":{"__isSmartRef__":true,"id":1160},"textChunks":[{"__isSmartRef__":true,"id":1161}],"charsReplaced":"Now lets build an text object which does all this!!!","lastFindLoc":-49,"priorSelectionRange":[81,81],"prevScroll":[0,0],"_Scale":1.2673675430474531,"priorExtent":{"__isSmartRef__":true,"id":1163},"renderContextTable":{"__isSmartRef__":true,"id":1164},"eventHandler":{"__isSmartRef__":true,"id":1165},"owner":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.Text"},"1154":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1155},"_Extent":{"__isSmartRef__":true,"id":1156},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1157},"renderContextTable":{"__isSmartRef__":true,"id":1158},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1155":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1156":{"x":795.9637995787723,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1157":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1158":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1159":{"x":1078.2990162486587,"y":4697.149448469674,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1160":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1161":{"style":{"__isSmartRef__":true,"id":1162},"morph":{"__isSmartRef__":true,"id":1153},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"5. After moving the code into the Text module, every Text can now past Rich Text!","__LivelyClassName__":"lively.morphic.TextChunk"},"1162":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1163":{"x":795.9637995787723,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1164":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"1165":{"morph":{"__isSmartRef__":true,"id":1153},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1166":{"submorphs":[{"__isSmartRef__":true,"id":1167},{"__isSmartRef__":true,"id":1215},{"__isSmartRef__":true,"id":1263},{"__isSmartRef__":true,"id":1311}],"scripts":[],"id":197,"shape":{"__isSmartRef__":true,"id":1359},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1366},"showsHalos":false,"name":"Rectangle2","partsBinMetaInfo":{"__isSmartRef__":true,"id":1367},"__SourceModuleName__":"Global.lively.morphic.Core","_Rotation":0,"_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":1368},"eventHandler":{"__isSmartRef__":true,"id":1369},"owner":{"__isSmartRef__":true,"id":0},"priorExtent":{"__isSmartRef__":true,"id":1370},"layout":{"__isSmartRef__":true,"id":1371},"__LivelyClassName__":"lively.morphic.Box"},"1167":{"submorphs":[],"scripts":[],"id":175,"shape":{"__isSmartRef__":true,"id":1168},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1174},"showsHalos":false,"name":"ResizeCorner","partsBinMetaInfo":{"__isSmartRef__":true,"id":1175},"__SourceModuleName__":"Global.lively.morphic.Core","_Rotation":0,"_Scale":1,"draggingEnabled":true,"dragStartPoint":null,"originalExtent":{"__isSmartRef__":true,"id":1176},"originalTargetExtent":null,"renderContextTable":{"__isSmartRef__":true,"id":1177},"eventHandler":{"__isSmartRef__":true,"id":1178},"owner":{"__isSmartRef__":true,"id":1166},"cornerName":"bottomRight","priorExtent":{"__isSmartRef__":true,"id":1179},"originalTargetInnerBounds":null,"isResizeCorner":true,"relativeOrigin":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1180},"__LivelyClassName__":"lively.morphic.Box"},"1168":{"position":{"__isSmartRef__":true,"id":1169},"_Extent":{"__isSmartRef__":true,"id":1170},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1171},"_Fill":{"__isSmartRef__":true,"id":1172},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1173},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1169":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1170":{"x":10,"y":10,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1171":{"r":0.568,"g":0.568,"b":0.568,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1172":{"r":0.258,"g":0.258,"b":0.258,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1173":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1174":{"x":58.20934111759826,"y":115.32727611592578,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1175":{"partsSpaceName":"PartsBin/Widgets/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"Resize an object without using halos.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1176":{"x":239,"y":138,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1177":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"1178":{"morph":{"__isSmartRef__":true,"id":1167},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1179":{"x":10,"y":10,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1180":{"onDrag":{"__isSmartRef__":true,"id":1181},"onDragEnd":{"__isSmartRef__":true,"id":1188},"onDragStart":{"__isSmartRef__":true,"id":1195},"reset":{"__isSmartRef__":true,"id":1202},"morphMenuItems":{"__isSmartRef__":true,"id":1205},"alignToOwner":{"__isSmartRef__":true,"id":1212}},"1181":{"varMapping":{"__isSmartRef__":true,"id":1182},"source":"function onDrag(evt) {\n // alert(\"onDrag\")\n // this.owner.setPosition(pt(0,0))\n // this.owner.setOrigin(pt(0,0))\n var moveDelta = evt.mousePoint.subPt(this.dragStartPoint)\n \n // moveDelta = moveDelta.maxPt(pt(0,0))\n var ownerExtent = this.owner.getExtent();\n\n // TODO does not work\n if (evt.isShiftDown()) {\n var maxDelta = Math.max(moveDelta.x, moveDelta.y);\n if (maxDelta == 0) return;\n var factor = ownerExtent.x / ownerExtent.y\n moveDelta = pt(maxDelta * factor, maxDelta )\n }\n var accessor = (\"with-\" + this.cornerName).camelize(),\n newCorner = this.originalTargetInnerBounds[this.cornerName]().addPt(moveDelta),\n newBounds = this.originalTargetInnerBounds[accessor](newCorner);\n this.owner.shape.setBounds(newBounds)\n \n // var newExtent = this.originalTargetExtent.addPt(moveDelta)\n // alertOK(\"new extent\" + newExtent)\n // this.owner.setExtent(newExtent);\n this.owner.submorphs.select(function(ea) {\n return ea.isResizeCorner\n }).invoke('alignToOwner');\n if (this.owner.halos)\n this.owner.halos.invoke('alignAtTarget')\n\n // alertOK(\"relative \" + this.relativeOrigin)\n var newOrigin = pt(0,0).extent(this.owner.getExtent()).relativeToAbsPoint(this.relativeOrigin)\n\n // TODO IMPLEMENT updating the origin does not work yet\n // this.owner.setOrigin(newOrigin);\n // alertOK(\"new origin \" + newOrigin)\n\n}","funcProperties":{"__isSmartRef__":true,"id":1187},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1182":{"this":{"__isSmartRef__":true,"id":1167},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1183}},"1183":{"$super":{"__isSmartRef__":true,"id":1184}},"1184":{"varMapping":{"__isSmartRef__":true,"id":1185},"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":1186},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"1185":{"obj":{"__isSmartRef__":true,"id":1167},"name":"onDrag"},"1186":{},"1187":{},"1188":{"varMapping":{"__isSmartRef__":true,"id":1189},"source":"function onDragEnd(evt) {\n this.dragStartPoint = null;\n this.originalTargetInnerBounds = null;\n this.relativeOrigin = null;\n}","funcProperties":{"__isSmartRef__":true,"id":1194},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1189":{"this":{"__isSmartRef__":true,"id":1167},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1190}},"1190":{"$super":{"__isSmartRef__":true,"id":1191}},"1191":{"varMapping":{"__isSmartRef__":true,"id":1192},"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":1193},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1192":{"obj":{"__isSmartRef__":true,"id":1167},"name":"onDragEnd"},"1193":{},"1194":{},"1195":{"varMapping":{"__isSmartRef__":true,"id":1196},"source":"function onDragStart(evt) {\n var absToRelativePoint = function (r, absPt) {\n\t\treturn new Point(\n\t\t\t(absPt.x - r.x) / r.width,\n\t\t\t(absPt.y - r.y) / r.height)\n\t}\n // absToRelativePoint(new Rectangle(10,10,100,100), pt(20,20))\n // absToRelativePoint(new Rectangle(10,10,100,100), pt(0,0))\n // absToRelativePoint(new Rectangle(-100,-100,200,200), pt(0,0))\n\n\n this.dragStartPoint = evt.mousePoint;\n this.originalTargetInnerBounds= this.owner.innerBounds();\n this.relativeOrigin = absToRelativePoint(pt(0,0).extent(this.owner.getExtent()), this.owner.getOrigin())\n}","funcProperties":{"__isSmartRef__":true,"id":1201},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1196":{"this":{"__isSmartRef__":true,"id":1167},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1197}},"1197":{"$super":{"__isSmartRef__":true,"id":1198}},"1198":{"varMapping":{"__isSmartRef__":true,"id":1199},"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":1200},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1199":{"obj":{"__isSmartRef__":true,"id":1167},"name":"onDragStart"},"1200":{},"1201":{},"1202":{"varMapping":{"__isSmartRef__":true,"id":1203},"source":"function reset() {\n this.isResizeCorner = true\n this.cornerName = 'bottomRight'\n this.setExtent(pt(10,10));\n this.setPosition(pt(0,0))\n}","funcProperties":{"__isSmartRef__":true,"id":1204},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1203":{"this":{"__isSmartRef__":true,"id":1167}},"1204":{},"1205":{"varMapping":{"__isSmartRef__":true,"id":1206},"source":"function morphMenuItems() {\n return $super().concat([\n [\"corner\", [\n [\"top left\", function() { this.cornerName = 'topLeft'}.bind(this)],\n [\"top right\", function() { this.cornerName = 'topRight'}.bind(this)],\n [\"bottom right\", function() { this.cornerName = 'bottomRight'}.bind(this)],\n [\"bottom left\", function() { this.cornerName = 'bottomLeft'}.bind(this)],\n ]]\n ])\t\n}","funcProperties":{"__isSmartRef__":true,"id":1211},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1206":{"this":{"__isSmartRef__":true,"id":1167},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1207}},"1207":{"$super":{"__isSmartRef__":true,"id":1208}},"1208":{"varMapping":{"__isSmartRef__":true,"id":1209},"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":1210},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1209":{"obj":{"__isSmartRef__":true,"id":1167},"name":"morphMenuItems"},"1210":{},"1211":{},"1212":{"varMapping":{"__isSmartRef__":true,"id":1213},"source":"function alignToOwner() {\n this.align(this.bounds()[this.cornerName](), this.owner.shape.bounds()[this.cornerName]() )\n}","funcProperties":{"__isSmartRef__":true,"id":1214},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1213":{"this":{"__isSmartRef__":true,"id":1167}},"1214":{},"1215":{"submorphs":[],"scripts":[],"id":3018,"shape":{"__isSmartRef__":true,"id":1216},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1222},"showsHalos":false,"name":"ResizeCorner1","partsBinMetaInfo":{"__isSmartRef__":true,"id":1223},"__SourceModuleName__":"Global.lively.morphic.Core","_Rotation":0,"_Scale":1,"draggingEnabled":true,"dragStartPoint":null,"originalExtent":{"__isSmartRef__":true,"id":1224},"originalTargetExtent":null,"renderContextTable":{"__isSmartRef__":true,"id":1225},"eventHandler":{"__isSmartRef__":true,"id":1226},"cornerName":"bottomLeft","priorExtent":{"__isSmartRef__":true,"id":1227},"originalTargetInnerBounds":null,"isResizeCorner":true,"owner":{"__isSmartRef__":true,"id":1166},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1228},"__LivelyClassName__":"lively.morphic.Box"},"1216":{"position":{"__isSmartRef__":true,"id":1217},"_Extent":{"__isSmartRef__":true,"id":1218},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1219},"_Fill":{"__isSmartRef__":true,"id":1220},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1221},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1217":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1218":{"x":10,"y":10,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1219":{"r":0.568,"g":0.568,"b":0.568,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1220":{"r":0.258,"g":0.258,"b":0.258,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1221":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1222":{"x":-164.97247706421993,"y":115.32727611592578,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1223":{"partsSpaceName":"PartsBin/Widgets/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"Resize an object without using halos.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1224":{"x":239,"y":138,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1225":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"1226":{"morph":{"__isSmartRef__":true,"id":1215},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1227":{"x":10,"y":10,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1228":{"onDrag":{"__isSmartRef__":true,"id":1229},"onDragEnd":{"__isSmartRef__":true,"id":1236},"onDragStart":{"__isSmartRef__":true,"id":1243},"reset":{"__isSmartRef__":true,"id":1250},"morphMenuItems":{"__isSmartRef__":true,"id":1253},"alignToOwner":{"__isSmartRef__":true,"id":1260}},"1229":{"varMapping":{"__isSmartRef__":true,"id":1230},"source":"function onDrag(evt) {\n // alert(\"onDrag\")\n \n var moveDelta = evt.mousePoint.subPt(this.dragStartPoint)\n \n // moveDelta = moveDelta.maxPt(pt(0,0))\n var ownerExtent = this.owner.getExtent();\n\n // TODO does not work\n if (evt.isShiftDown()) {\n var maxDelta = Math.max(moveDelta.x, moveDelta.y);\n if (maxDelta == 0) return;\n var factor = ownerExtent.x / ownerExtent.y\n moveDelta = pt(maxDelta * factor, maxDelta )\n }\n var accessor = \"with\" + this.cornerName.charAt(0).toUpperCase() + this.cornerName.substring(1);\n \n var newCorner = this.originalTargetInnerBounds[this.cornerName]().addPt(moveDelta)\n var newBounds = this.originalTargetInnerBounds[accessor ](newCorner)\n this.owner.shape.setBounds(newBounds)\n // var newExtent = this.originalTargetExtent.addPt(moveDelta)\n // alertOK(\"new extent\" + newExtent)\n // this.owner.setExtent(newExtent);\n this.owner.submorphs.select(function(ea) {\n return ea.isResizeCorner\n }).invoke('alignToOwner')\n}","funcProperties":{"__isSmartRef__":true,"id":1235},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1230":{"this":{"__isSmartRef__":true,"id":1215},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1231}},"1231":{"$super":{"__isSmartRef__":true,"id":1232}},"1232":{"varMapping":{"__isSmartRef__":true,"id":1233},"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":1234},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1233":{"obj":{"__isSmartRef__":true,"id":1215},"name":"onDrag"},"1234":{},"1235":{},"1236":{"varMapping":{"__isSmartRef__":true,"id":1237},"source":"function onDragEnd(evt) {\n this.dragStartPoint = null;\n this.originalTargetInnerBounds = null;\n}","funcProperties":{"__isSmartRef__":true,"id":1242},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1237":{"this":{"__isSmartRef__":true,"id":1215},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1238}},"1238":{"$super":{"__isSmartRef__":true,"id":1239}},"1239":{"varMapping":{"__isSmartRef__":true,"id":1240},"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":1241},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1240":{"obj":{"__isSmartRef__":true,"id":1215},"name":"onDragEnd"},"1241":{},"1242":{},"1243":{"varMapping":{"__isSmartRef__":true,"id":1244},"source":"function onDragStart(evt) {\n this.dragStartPoint = evt.mousePoint;\n this.originalTargetInnerBounds= this.owner.innerBounds();\n}","funcProperties":{"__isSmartRef__":true,"id":1249},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1244":{"this":{"__isSmartRef__":true,"id":1215},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1245}},"1245":{"$super":{"__isSmartRef__":true,"id":1246}},"1246":{"varMapping":{"__isSmartRef__":true,"id":1247},"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":1248},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1247":{"obj":{"__isSmartRef__":true,"id":1215},"name":"onDragStart"},"1248":{},"1249":{},"1250":{"varMapping":{"__isSmartRef__":true,"id":1251},"source":"function reset() {\n\n // this.cornerName = 'topLeft'\n this.isResizeCorner = true\n this.cornerName = 'bottomRight'\n this.setExtent(pt(10,10));\n this.setPosition(pt(0,0))\n}","funcProperties":{"__isSmartRef__":true,"id":1252},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1251":{"this":{"__isSmartRef__":true,"id":1215}},"1252":{},"1253":{"varMapping":{"__isSmartRef__":true,"id":1254},"source":"function morphMenuItems() {\n return $super().concat([\n [\"corner\", [\n [\"top left\", function() { this.cornerName = 'topLeft'}.bind(this)],\n [\"top right\", function() { this.cornerName = 'topRight'}.bind(this)],\n [\"bottom right\", function() { this.cornerName = 'bottomRight'}.bind(this)],\n [\"bottom left\", function() { this.cornerName = 'bottomLeft'}.bind(this)],\n ]]\n ])\t\n}","funcProperties":{"__isSmartRef__":true,"id":1259},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1254":{"this":{"__isSmartRef__":true,"id":1215},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1255}},"1255":{"$super":{"__isSmartRef__":true,"id":1256}},"1256":{"varMapping":{"__isSmartRef__":true,"id":1257},"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":1258},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1257":{"obj":{"__isSmartRef__":true,"id":1215},"name":"morphMenuItems"},"1258":{},"1259":{},"1260":{"varMapping":{"__isSmartRef__":true,"id":1261},"source":"function alignToOwner() {\n this.align(this.bounds()[this.cornerName](), this.owner.shape.bounds()[this.cornerName]() )\n}","funcProperties":{"__isSmartRef__":true,"id":1262},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1261":{"this":{"__isSmartRef__":true,"id":1215}},"1262":{},"1263":{"submorphs":[],"scripts":[],"id":3397,"shape":{"__isSmartRef__":true,"id":1264},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1270},"showsHalos":false,"name":"ResizeCorner2","partsBinMetaInfo":{"__isSmartRef__":true,"id":1271},"__SourceModuleName__":"Global.lively.morphic.Core","_Rotation":0,"_Scale":1,"draggingEnabled":true,"dragStartPoint":null,"originalExtent":{"__isSmartRef__":true,"id":1272},"originalTargetExtent":null,"renderContextTable":{"__isSmartRef__":true,"id":1273},"eventHandler":{"__isSmartRef__":true,"id":1274},"owner":{"__isSmartRef__":true,"id":1166},"cornerName":"topRight","priorExtent":{"__isSmartRef__":true,"id":1275},"originalTargetInnerBounds":null,"isResizeCorner":true,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1276},"__LivelyClassName__":"lively.morphic.Box"},"1264":{"position":{"__isSmartRef__":true,"id":1265},"_Extent":{"__isSmartRef__":true,"id":1266},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1267},"_Fill":{"__isSmartRef__":true,"id":1268},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1269},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1265":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1266":{"x":10,"y":10,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1267":{"r":0.568,"g":0.568,"b":0.568,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1268":{"r":0.258,"g":0.258,"b":0.258,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1269":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1270":{"x":58.20934111759826,"y":-9.672723884074216,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1271":{"partsSpaceName":"PartsBin/Widgets/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"Resize an object without using halos.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1272":{"x":239,"y":138,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1273":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"1274":{"morph":{"__isSmartRef__":true,"id":1263},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1275":{"x":10,"y":10,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1276":{"onDrag":{"__isSmartRef__":true,"id":1277},"onDragEnd":{"__isSmartRef__":true,"id":1284},"onDragStart":{"__isSmartRef__":true,"id":1291},"reset":{"__isSmartRef__":true,"id":1298},"morphMenuItems":{"__isSmartRef__":true,"id":1301},"alignToOwner":{"__isSmartRef__":true,"id":1308}},"1277":{"varMapping":{"__isSmartRef__":true,"id":1278},"source":"function onDrag(evt) {\n // alert(\"onDrag\")\n \n var moveDelta = evt.mousePoint.subPt(this.dragStartPoint)\n \n // moveDelta = moveDelta.maxPt(pt(0,0))\n var ownerExtent = this.owner.getExtent();\n\n // TODO does not work\n if (evt.isShiftDown()) {\n var maxDelta = Math.max(moveDelta.x, moveDelta.y);\n if (maxDelta == 0) return;\n var factor = ownerExtent.x / ownerExtent.y\n moveDelta = pt(maxDelta * factor, maxDelta )\n }\n var accessor = \"with\" + this.cornerName.charAt(0).toUpperCase() + this.cornerName.substring(1);\n \n var newCorner = this.originalTargetInnerBounds[this.cornerName]().addPt(moveDelta)\n var newBounds = this.originalTargetInnerBounds[accessor ](newCorner)\n this.owner.shape.setBounds(newBounds)\n // var newExtent = this.originalTargetExtent.addPt(moveDelta)\n // alertOK(\"new extent\" + newExtent)\n // this.owner.setExtent(newExtent);\n this.owner.submorphs.select(function(ea) {\n return ea.isResizeCorner\n }).invoke('alignToOwner')\n}","funcProperties":{"__isSmartRef__":true,"id":1283},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1278":{"this":{"__isSmartRef__":true,"id":1263},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1279}},"1279":{"$super":{"__isSmartRef__":true,"id":1280}},"1280":{"varMapping":{"__isSmartRef__":true,"id":1281},"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":1282},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1281":{"obj":{"__isSmartRef__":true,"id":1263},"name":"onDrag"},"1282":{},"1283":{},"1284":{"varMapping":{"__isSmartRef__":true,"id":1285},"source":"function onDragEnd(evt) {\n this.dragStartPoint = null;\n this.originalTargetInnerBounds = null;\n}","funcProperties":{"__isSmartRef__":true,"id":1290},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1285":{"this":{"__isSmartRef__":true,"id":1263},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1286}},"1286":{"$super":{"__isSmartRef__":true,"id":1287}},"1287":{"varMapping":{"__isSmartRef__":true,"id":1288},"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":1289},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1288":{"obj":{"__isSmartRef__":true,"id":1263},"name":"onDragEnd"},"1289":{},"1290":{},"1291":{"varMapping":{"__isSmartRef__":true,"id":1292},"source":"function onDragStart(evt) {\n this.dragStartPoint = evt.mousePoint;\n this.originalTargetInnerBounds= this.owner.innerBounds();\n}","funcProperties":{"__isSmartRef__":true,"id":1297},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1292":{"this":{"__isSmartRef__":true,"id":1263},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1293}},"1293":{"$super":{"__isSmartRef__":true,"id":1294}},"1294":{"varMapping":{"__isSmartRef__":true,"id":1295},"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":1296},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1295":{"obj":{"__isSmartRef__":true,"id":1263},"name":"onDragStart"},"1296":{},"1297":{},"1298":{"varMapping":{"__isSmartRef__":true,"id":1299},"source":"function reset() {\n this.isResizeCorner = true\n this.cornerName = 'bottomRight'\n this.setExtent(pt(10,10));\n this.setPosition(pt(0,0))\n}","funcProperties":{"__isSmartRef__":true,"id":1300},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1299":{"this":{"__isSmartRef__":true,"id":1263}},"1300":{},"1301":{"varMapping":{"__isSmartRef__":true,"id":1302},"source":"function morphMenuItems() {\n return $super().concat([\n [\"corner\", [\n [\"top left\", function() { this.cornerName = 'topLeft'}.bind(this)],\n [\"top right\", function() { this.cornerName = 'topRight'}.bind(this)],\n [\"bottom right\", function() { this.cornerName = 'bottomRight'}.bind(this)],\n [\"bottom left\", function() { this.cornerName = 'bottomLeft'}.bind(this)],\n ]]\n ])\t\n}","funcProperties":{"__isSmartRef__":true,"id":1307},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1302":{"this":{"__isSmartRef__":true,"id":1263},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1303}},"1303":{"$super":{"__isSmartRef__":true,"id":1304}},"1304":{"varMapping":{"__isSmartRef__":true,"id":1305},"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":1306},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1305":{"obj":{"__isSmartRef__":true,"id":1263},"name":"morphMenuItems"},"1306":{},"1307":{},"1308":{"varMapping":{"__isSmartRef__":true,"id":1309},"source":"function alignToOwner() {\n this.align(this.bounds()[this.cornerName](), this.owner.shape.bounds()[this.cornerName]() )\n}","funcProperties":{"__isSmartRef__":true,"id":1310},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1309":{"this":{"__isSmartRef__":true,"id":1263}},"1310":{},"1311":{"submorphs":[],"scripts":[],"id":3631,"shape":{"__isSmartRef__":true,"id":1312},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1318},"showsHalos":false,"name":"ResizeCorner3","partsBinMetaInfo":{"__isSmartRef__":true,"id":1319},"__SourceModuleName__":"Global.lively.morphic.Core","_Rotation":0,"_Scale":1,"draggingEnabled":true,"dragStartPoint":null,"originalExtent":{"__isSmartRef__":true,"id":1320},"originalTargetExtent":null,"renderContextTable":{"__isSmartRef__":true,"id":1321},"eventHandler":{"__isSmartRef__":true,"id":1322},"cornerName":"topLeft","priorExtent":{"__isSmartRef__":true,"id":1323},"originalTargetInnerBounds":null,"isResizeCorner":true,"owner":{"__isSmartRef__":true,"id":1166},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1324},"__LivelyClassName__":"lively.morphic.Box"},"1312":{"position":{"__isSmartRef__":true,"id":1313},"_Extent":{"__isSmartRef__":true,"id":1314},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1315},"_Fill":{"__isSmartRef__":true,"id":1316},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1317},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1313":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1314":{"x":10,"y":10,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1315":{"r":0.568,"g":0.568,"b":0.568,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1316":{"r":0.258,"g":0.258,"b":0.258,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1317":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1318":{"x":-164.97247706421993,"y":-9.672723884074216,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1319":{"partsSpaceName":"PartsBin/Widgets/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"Resize an object without using halos.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1320":{"x":239,"y":138,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1321":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"1322":{"morph":{"__isSmartRef__":true,"id":1311},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1323":{"x":10,"y":10,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1324":{"onDrag":{"__isSmartRef__":true,"id":1325},"onDragEnd":{"__isSmartRef__":true,"id":1332},"onDragStart":{"__isSmartRef__":true,"id":1339},"reset":{"__isSmartRef__":true,"id":1346},"morphMenuItems":{"__isSmartRef__":true,"id":1349},"alignToOwner":{"__isSmartRef__":true,"id":1356}},"1325":{"varMapping":{"__isSmartRef__":true,"id":1326},"source":"function onDrag(evt) {\n // alert(\"onDrag\")\n \n var moveDelta = evt.mousePoint.subPt(this.dragStartPoint)\n \n // moveDelta = moveDelta.maxPt(pt(0,0))\n var ownerExtent = this.owner.getExtent();\n\n // TODO does not work\n if (evt.isShiftDown()) {\n var maxDelta = Math.max(moveDelta.x, moveDelta.y);\n if (maxDelta == 0) return;\n var factor = ownerExtent.x / ownerExtent.y\n moveDelta = pt(maxDelta * factor, maxDelta )\n }\n var accessor = \"with\" + this.cornerName.charAt(0).toUpperCase() + this.cornerName.substring(1);\n \n var newCorner = this.originalTargetInnerBounds[this.cornerName]().addPt(moveDelta)\n var newBounds = this.originalTargetInnerBounds[accessor ](newCorner)\n this.owner.shape.setBounds(newBounds)\n // var newExtent = this.originalTargetExtent.addPt(moveDelta)\n // alertOK(\"new extent\" + newExtent)\n // this.owner.setExtent(newExtent);\n this.owner.submorphs.select(function(ea) {\n return ea.isResizeCorner\n }).invoke('alignToOwner')\n}","funcProperties":{"__isSmartRef__":true,"id":1331},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1326":{"this":{"__isSmartRef__":true,"id":1311},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1327}},"1327":{"$super":{"__isSmartRef__":true,"id":1328}},"1328":{"varMapping":{"__isSmartRef__":true,"id":1329},"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":1330},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1329":{"obj":{"__isSmartRef__":true,"id":1311},"name":"onDrag"},"1330":{},"1331":{},"1332":{"varMapping":{"__isSmartRef__":true,"id":1333},"source":"function onDragEnd(evt) {\n this.dragStartPoint = null;\n this.originalTargetInnerBounds = null;\n}","funcProperties":{"__isSmartRef__":true,"id":1338},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1333":{"this":{"__isSmartRef__":true,"id":1311},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1334}},"1334":{"$super":{"__isSmartRef__":true,"id":1335}},"1335":{"varMapping":{"__isSmartRef__":true,"id":1336},"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":1337},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1336":{"obj":{"__isSmartRef__":true,"id":1311},"name":"onDragEnd"},"1337":{},"1338":{},"1339":{"varMapping":{"__isSmartRef__":true,"id":1340},"source":"function onDragStart(evt) {\n this.dragStartPoint = evt.mousePoint;\n this.originalTargetInnerBounds= this.owner.innerBounds();\n}","funcProperties":{"__isSmartRef__":true,"id":1345},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1340":{"this":{"__isSmartRef__":true,"id":1311},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1341}},"1341":{"$super":{"__isSmartRef__":true,"id":1342}},"1342":{"varMapping":{"__isSmartRef__":true,"id":1343},"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":1344},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1343":{"obj":{"__isSmartRef__":true,"id":1311},"name":"onDragStart"},"1344":{},"1345":{},"1346":{"varMapping":{"__isSmartRef__":true,"id":1347},"source":"function reset() {\n this.isResizeCorner = true\n this.cornerName = 'bottomRight'\n this.setExtent(pt(10,10));\n this.setPosition(pt(0,0))\n}","funcProperties":{"__isSmartRef__":true,"id":1348},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1347":{"this":{"__isSmartRef__":true,"id":1311}},"1348":{},"1349":{"varMapping":{"__isSmartRef__":true,"id":1350},"source":"function morphMenuItems() {\n return $super().concat([\n [\"corner\", [\n [\"top left\", function() { this.cornerName = 'topLeft'}.bind(this)],\n [\"top right\", function() { this.cornerName = 'topRight'}.bind(this)],\n [\"bottom right\", function() { this.cornerName = 'bottomRight'}.bind(this)],\n [\"bottom left\", function() { this.cornerName = 'bottomLeft'}.bind(this)],\n ]]\n ])\t\n}","funcProperties":{"__isSmartRef__":true,"id":1355},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1350":{"this":{"__isSmartRef__":true,"id":1311},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1351}},"1351":{"$super":{"__isSmartRef__":true,"id":1352}},"1352":{"varMapping":{"__isSmartRef__":true,"id":1353},"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":1354},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1353":{"obj":{"__isSmartRef__":true,"id":1311},"name":"morphMenuItems"},"1354":{},"1355":{},"1356":{"varMapping":{"__isSmartRef__":true,"id":1357},"source":"function alignToOwner() {\n this.align(this.bounds()[this.cornerName](), this.owner.shape.bounds()[this.cornerName]() )\n}","funcProperties":{"__isSmartRef__":true,"id":1358},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1357":{"this":{"__isSmartRef__":true,"id":1311}},"1358":{},"1359":{"position":{"__isSmartRef__":true,"id":1360},"_Extent":{"__isSmartRef__":true,"id":1361},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1362},"_Fill":{"__isSmartRef__":true,"id":1363},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1364},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_Position":{"__isSmartRef__":true,"id":1365},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1360":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1361":{"x":233.1818181818182,"y":135,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1362":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1363":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1364":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1365":{"x":-164.97247706421993,"y":-9.672723884074216,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1366":{"x":2071.2477064220175,"y":151.63423725654656,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1367":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","comment":"A simple box morph","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1368":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"1369":{"morph":{"__isSmartRef__":true,"id":1166},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1370":{"x":100,"y":100,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1371":{},"1372":{"submorphs":[{"__isSmartRef__":true,"id":1373},{"__isSmartRef__":true,"id":1388}],"scripts":[],"id":1396,"renderContextTable":{"__isSmartRef__":true,"id":1526},"shape":{"__isSmartRef__":true,"id":1527},"droppingEnabled":true,"halosEnabled":true,"draggingEnabled":true,"layout":{"__isSmartRef__":true,"id":1530},"eventHandler":{"__isSmartRef__":true,"id":1531},"_Position":{"__isSmartRef__":true,"id":1532},"priorExtent":{"__isSmartRef__":true,"id":1533},"targetMorph":{"__isSmartRef__":true,"id":1373},"titleBar":{"__isSmartRef__":true,"id":1388},"contentOffset":{"__isSmartRef__":true,"id":1385},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":null,"expandedExtent":null,"ignoreEventsOnExpand":false,"owner":{"__isSmartRef__":true,"id":0},"highlighted":true,"_Rotation":0,"_Scale":1,"cameForward":false,"prevDragPos":{"__isSmartRef__":true,"id":1534},"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.Window"},"1373":{"submorphs":[],"scripts":[],"id":1395,"renderContextTable":{"__isSmartRef__":true,"id":1374},"textChunks":[{"__isSmartRef__":true,"id":1375}],"shape":{"__isSmartRef__":true,"id":1377},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1383},"_ClipMode":"auto","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","eventHandler":{"__isSmartRef__":true,"id":1384},"_Position":{"__isSmartRef__":true,"id":1385},"priorExtent":{"__isSmartRef__":true,"id":1386},"_MaxTextWidth":500,"_MaxTextHeight":200,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1372},"layout":{"__isSmartRef__":true,"id":1387},"doitContext":{"__isSmartRef__":true,"id":1166},"priorSelectionRange":[27,27],"charsReplaced":"submorphs:\t\nscripts:\t\nid:\t197\nshape:\t[object Object]\ndroppingEnabled:\ttrue\nhalosEnabled:\ttrue\nregisteredForMouseEvents:\ttrue\n_Position:\tpt(1820.0,154.0)\nshowsHalos:\tfalse\nname:\tRectangle2\npartsBinMetaInfo:\t[object Object]\n__SourceModuleName__:\tGlobal.lively.morphic.Core\n_Rotation:\t0\n_Scale:\t1\nrenderContextTable:\t[object Object]\n_renderContext:\talively.morphic.HTML.RenderContext\neventHandler:\t\nowner:\t\npriorExtent:\tpt(233.0,164.0)\nhalos:\t,,","__LivelyClassName__":"lively.morphic.TextChunk"},"1392":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1393":{"_Position":{"__isSmartRef__":true,"id":1394},"renderContextTable":{"__isSmartRef__":true,"id":1395},"_Extent":{"__isSmartRef__":true,"id":1396},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1381},"_Fill":null,"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1394":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1395":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1396":{"x":0,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1397":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1398":{"morph":{"__isSmartRef__":true,"id":1389},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1399":{"x":20,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1400":{"x":0,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1401":{"submorphs":[{"__isSmartRef__":true,"id":1402}],"scripts":[],"id":1399,"renderContextTable":{"__isSmartRef__":true,"id":1414},"shape":{"__isSmartRef__":true,"id":1415},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"eventHandler":{"__isSmartRef__":true,"id":1430},"_Position":{"__isSmartRef__":true,"id":1431},"priorExtent":{"__isSmartRef__":true,"id":1432},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1420},"lighterFill":{"__isSmartRef__":true,"id":1433},"label":{"__isSmartRef__":true,"id":1402},"owner":{"__isSmartRef__":true,"id":1388},"layout":{"__isSmartRef__":true,"id":1442},"attributeConnections":[{"__isSmartRef__":true,"id":1443},{"__isSmartRef__":true,"id":1445}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"1402":{"submorphs":[],"scripts":[],"id":1400,"renderContextTable":{"__isSmartRef__":true,"id":1403},"textChunks":[{"__isSmartRef__":true,"id":1404}],"shape":{"__isSmartRef__":true,"id":1406},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1410},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","eventHandler":{"__isSmartRef__":true,"id":1411},"_Position":{"__isSmartRef__":true,"id":1412},"priorExtent":{"__isSmartRef__":true,"id":1413},"_MaxTextWidth":null,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1401},"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"1403":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"1404":{"style":{"__isSmartRef__":true,"id":1405},"morph":{"__isSmartRef__":true,"id":1402},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"X","__LivelyClassName__":"lively.morphic.TextChunk"},"1405":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1406":{"_Position":{"__isSmartRef__":true,"id":1407},"renderContextTable":{"__isSmartRef__":true,"id":1408},"_Extent":{"__isSmartRef__":true,"id":1409},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1381},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1407":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1408":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1409":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1410":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1411":{"morph":{"__isSmartRef__":true,"id":1402},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1412":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1413":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1414":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"1415":{"_Position":{"__isSmartRef__":true,"id":1416},"renderContextTable":{"__isSmartRef__":true,"id":1417},"_Extent":{"__isSmartRef__":true,"id":1418},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1419},"_Fill":{"__isSmartRef__":true,"id":1420},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1416":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1417":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1418":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1419":{"r":0.7411764705882353,"g":0.7450980392156863,"b":0.7529411764705882,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1420":{"stops":[{"__isSmartRef__":true,"id":1421},{"__isSmartRef__":true,"id":1423},{"__isSmartRef__":true,"id":1425},{"__isSmartRef__":true,"id":1427}],"vector":{"__isSmartRef__":true,"id":1429},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1421":{"offset":0,"color":{"__isSmartRef__":true,"id":1422}},"1422":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1423":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1424}},"1424":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1425":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1426}},"1426":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1427":{"offset":1,"color":{"__isSmartRef__":true,"id":1428}},"1428":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1429":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1430":{"morph":{"__isSmartRef__":true,"id":1401},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1431":{"x":480,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1432":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1433":{"stops":[{"__isSmartRef__":true,"id":1434},{"__isSmartRef__":true,"id":1436},{"__isSmartRef__":true,"id":1438},{"__isSmartRef__":true,"id":1440}],"vector":{"__isSmartRef__":true,"id":1429},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1434":{"offset":0,"color":{"__isSmartRef__":true,"id":1435}},"1435":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1436":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1437}},"1437":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1438":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1439}},"1439":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1440":{"offset":1,"color":{"__isSmartRef__":true,"id":1441}},"1441":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1442":{"moveHorizontal":true},"1443":{"sourceObj":{"__isSmartRef__":true,"id":1401},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":1372},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1444},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1444":{"source":{"__isSmartRef__":true,"id":1401},"target":{"__isSmartRef__":true,"id":1372}},"1445":{"sourceObj":{"__isSmartRef__":true,"id":1401},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1372},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1446},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1446":{"source":{"__isSmartRef__":true,"id":1401},"target":{"__isSmartRef__":true,"id":1372}},"1447":{"submorphs":[{"__isSmartRef__":true,"id":1448}],"scripts":[],"id":1401,"renderContextTable":{"__isSmartRef__":true,"id":1460},"shape":{"__isSmartRef__":true,"id":1461},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"eventHandler":{"__isSmartRef__":true,"id":1465},"_Position":{"__isSmartRef__":true,"id":1466},"priorExtent":{"__isSmartRef__":true,"id":1467},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1420},"lighterFill":{"__isSmartRef__":true,"id":1468},"label":{"__isSmartRef__":true,"id":1448},"owner":{"__isSmartRef__":true,"id":1388},"attributeConnections":[{"__isSmartRef__":true,"id":1477},{"__isSmartRef__":true,"id":1479}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"1448":{"submorphs":[],"scripts":[],"id":1402,"renderContextTable":{"__isSmartRef__":true,"id":1449},"textChunks":[{"__isSmartRef__":true,"id":1450}],"shape":{"__isSmartRef__":true,"id":1452},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1456},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","eventHandler":{"__isSmartRef__":true,"id":1457},"_Position":{"__isSmartRef__":true,"id":1458},"priorExtent":{"__isSmartRef__":true,"id":1459},"_MaxTextWidth":null,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1447},"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"1449":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"1450":{"style":{"__isSmartRef__":true,"id":1451},"morph":{"__isSmartRef__":true,"id":1448},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"M","__LivelyClassName__":"lively.morphic.TextChunk"},"1451":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1452":{"_Position":{"__isSmartRef__":true,"id":1453},"renderContextTable":{"__isSmartRef__":true,"id":1454},"_Extent":{"__isSmartRef__":true,"id":1455},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1381},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1453":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1454":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1455":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1456":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1457":{"morph":{"__isSmartRef__":true,"id":1448},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1458":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1459":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1460":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"1461":{"_Position":{"__isSmartRef__":true,"id":1462},"renderContextTable":{"__isSmartRef__":true,"id":1463},"_Extent":{"__isSmartRef__":true,"id":1464},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1419},"_Fill":{"__isSmartRef__":true,"id":1420},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1462":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1463":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1464":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1465":{"morph":{"__isSmartRef__":true,"id":1447},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1466":{"x":3,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1467":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1468":{"stops":[{"__isSmartRef__":true,"id":1469},{"__isSmartRef__":true,"id":1471},{"__isSmartRef__":true,"id":1473},{"__isSmartRef__":true,"id":1475}],"vector":{"__isSmartRef__":true,"id":1429},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1469":{"offset":0,"color":{"__isSmartRef__":true,"id":1470}},"1470":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1471":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1472}},"1472":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1473":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1474}},"1474":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1475":{"offset":1,"color":{"__isSmartRef__":true,"id":1476}},"1476":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1477":{"sourceObj":{"__isSmartRef__":true,"id":1447},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":1372},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1478},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1478":{"source":{"__isSmartRef__":true,"id":1447},"target":{"__isSmartRef__":true,"id":1372}},"1479":{"sourceObj":{"__isSmartRef__":true,"id":1447},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1372},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1480},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1480":{"source":{"__isSmartRef__":true,"id":1447},"target":{"__isSmartRef__":true,"id":1372}},"1481":{"submorphs":[{"__isSmartRef__":true,"id":1482}],"scripts":[],"id":1403,"renderContextTable":{"__isSmartRef__":true,"id":1494},"shape":{"__isSmartRef__":true,"id":1495},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"eventHandler":{"__isSmartRef__":true,"id":1499},"_Position":{"__isSmartRef__":true,"id":1500},"priorExtent":{"__isSmartRef__":true,"id":1501},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1420},"lighterFill":{"__isSmartRef__":true,"id":1502},"label":{"__isSmartRef__":true,"id":1482},"owner":{"__isSmartRef__":true,"id":1388},"layout":{"__isSmartRef__":true,"id":1511},"attributeConnections":[{"__isSmartRef__":true,"id":1512},{"__isSmartRef__":true,"id":1514}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"1482":{"submorphs":[],"scripts":[],"id":1404,"renderContextTable":{"__isSmartRef__":true,"id":1483},"textChunks":[{"__isSmartRef__":true,"id":1484}],"shape":{"__isSmartRef__":true,"id":1486},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1490},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","eventHandler":{"__isSmartRef__":true,"id":1491},"_Position":{"__isSmartRef__":true,"id":1492},"priorExtent":{"__isSmartRef__":true,"id":1493},"_MaxTextWidth":null,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1481},"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"1483":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"1484":{"style":{"__isSmartRef__":true,"id":1485},"morph":{"__isSmartRef__":true,"id":1482},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"–","__LivelyClassName__":"lively.morphic.TextChunk"},"1485":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1486":{"_Position":{"__isSmartRef__":true,"id":1487},"renderContextTable":{"__isSmartRef__":true,"id":1488},"_Extent":{"__isSmartRef__":true,"id":1489},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1381},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1487":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1488":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1489":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1490":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1491":{"morph":{"__isSmartRef__":true,"id":1482},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1492":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1493":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1494":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"1495":{"_Position":{"__isSmartRef__":true,"id":1496},"renderContextTable":{"__isSmartRef__":true,"id":1497},"_Extent":{"__isSmartRef__":true,"id":1498},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1419},"_Fill":{"__isSmartRef__":true,"id":1420},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1496":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1497":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1498":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1499":{"morph":{"__isSmartRef__":true,"id":1481},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1500":{"x":461,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1501":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1502":{"stops":[{"__isSmartRef__":true,"id":1503},{"__isSmartRef__":true,"id":1505},{"__isSmartRef__":true,"id":1507},{"__isSmartRef__":true,"id":1509}],"vector":{"__isSmartRef__":true,"id":1429},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1503":{"offset":0,"color":{"__isSmartRef__":true,"id":1504}},"1504":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1505":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1506}},"1506":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1507":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1508}},"1508":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1509":{"offset":1,"color":{"__isSmartRef__":true,"id":1510}},"1510":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1511":{"moveHorizontal":true},"1512":{"sourceObj":{"__isSmartRef__":true,"id":1481},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":1372},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1513},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1513":{"source":{"__isSmartRef__":true,"id":1481},"target":{"__isSmartRef__":true,"id":1372}},"1514":{"sourceObj":{"__isSmartRef__":true,"id":1481},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1372},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1515},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1515":{"source":{"__isSmartRef__":true,"id":1481},"target":{"__isSmartRef__":true,"id":1372}},"1516":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"1517":{"_Position":{"__isSmartRef__":true,"id":1518},"renderContextTable":{"__isSmartRef__":true,"id":1519},"_Extent":{"__isSmartRef__":true,"id":1520},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1521},"_Fill":{"__isSmartRef__":true,"id":552},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1518":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1519":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1520":{"x":500,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1521":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1522":{"resizeWidth":true,"adjustForNewBounds":true},"1523":{"morph":{"__isSmartRef__":true,"id":1388},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1524":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1525":{"x":500,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1526":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"1527":{"renderContextTable":{"__isSmartRef__":true,"id":1528},"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_Extent":{"__isSmartRef__":true,"id":1529},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1528":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1529":{"x":500,"y":222,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1530":{"adjustForNewBounds":true},"1531":{"morph":{"__isSmartRef__":true,"id":1372},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1532":{"x":2185,"y":465,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1533":{"x":500,"y":222,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1534":{"x":2569,"y":473,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1535":{"submorphs":[{"__isSmartRef__":true,"id":1536},{"__isSmartRef__":true,"id":1552}],"scripts":[],"id":4648,"renderContextTable":{"__isSmartRef__":true,"id":1690},"shape":{"__isSmartRef__":true,"id":1691},"droppingEnabled":true,"halosEnabled":true,"draggingEnabled":true,"layout":{"__isSmartRef__":true,"id":1694},"eventHandler":{"__isSmartRef__":true,"id":1695},"_Position":{"__isSmartRef__":true,"id":1696},"priorExtent":{"__isSmartRef__":true,"id":1697},"targetMorph":{"__isSmartRef__":true,"id":1536},"titleBar":{"__isSmartRef__":true,"id":1552},"contentOffset":{"__isSmartRef__":true,"id":1548},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":null,"expandedExtent":null,"ignoreEventsOnExpand":false,"owner":{"__isSmartRef__":true,"id":0},"prevDragPos":{"__isSmartRef__":true,"id":1698},"highlighted":true,"_Rotation":0,"_Scale":1,"cameForward":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.Window"},"1536":{"submorphs":[],"scripts":[],"id":4647,"renderContextTable":{"__isSmartRef__":true,"id":1537},"textChunks":[{"__isSmartRef__":true,"id":1538}],"shape":{"__isSmartRef__":true,"id":1540},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1546},"_ClipMode":"auto","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","eventHandler":{"__isSmartRef__":true,"id":1547},"_Position":{"__isSmartRef__":true,"id":1548},"priorExtent":{"__isSmartRef__":true,"id":1549},"_MaxTextWidth":500,"_MaxTextHeight":200,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1535},"layout":{"__isSmartRef__":true,"id":1550},"doitContext":{"__isSmartRef__":true,"id":1551},"priorSelectionRange":[43,54],"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"1537":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"1538":{"style":{"__isSmartRef__":true,"id":1539},"morph":{"__isSmartRef__":true,"id":1536},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"x:\t-95.2935779816512\ny:\t-68.01369863013701\nwidth:\t178\nheight:\t136","__LivelyClassName__":"lively.morphic.TextChunk"},"1539":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1540":{"_Position":{"__isSmartRef__":true,"id":1541},"renderContextTable":{"__isSmartRef__":true,"id":1542},"_Extent":{"__isSmartRef__":true,"id":1543},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":1544},"_Fill":{"__isSmartRef__":true,"id":1545},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1541":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1542":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1543":{"x":500,"y":200,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1544":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1545":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1546":{"x":2,"y":1,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1547":{"morph":{"__isSmartRef__":true,"id":1536},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1548":{"x":0,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1549":{"x":500,"y":200,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1550":{"resizeWidth":true,"resizeHeight":true},"1551":{"x":-95.2935779816512,"y":-68.01369863013701,"width":178,"height":136,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1552":{"submorphs":[{"__isSmartRef__":true,"id":1553},{"__isSmartRef__":true,"id":1565},{"__isSmartRef__":true,"id":1611},{"__isSmartRef__":true,"id":1645}],"scripts":[],"id":4649,"renderContextTable":{"__isSmartRef__":true,"id":1680},"shape":{"__isSmartRef__":true,"id":1681},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":1686},"eventHandler":{"__isSmartRef__":true,"id":1687},"_Position":{"__isSmartRef__":true,"id":1688},"eventsAreIgnored":true,"_HandStyle":"default","windowMorph":{"__isSmartRef__":true,"id":1535},"label":{"__isSmartRef__":true,"id":1553},"closeButton":{"__isSmartRef__":true,"id":1565},"menuButton":{"__isSmartRef__":true,"id":1611},"collapseButton":{"__isSmartRef__":true,"id":1645},"priorExtent":{"__isSmartRef__":true,"id":1689},"owner":{"__isSmartRef__":true,"id":1535},"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.TitleBar"},"1553":{"submorphs":[],"scripts":[],"id":4650,"renderContextTable":{"__isSmartRef__":true,"id":1554},"textChunks":[{"__isSmartRef__":true,"id":1555}],"shape":{"__isSmartRef__":true,"id":1557},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1561},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","eventHandler":{"__isSmartRef__":true,"id":1562},"_Position":{"__isSmartRef__":true,"id":1563},"priorExtent":{"__isSmartRef__":true,"id":1564},"_MaxTextWidth":null,"_MaxTextHeight":14,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"_FontSize":10,"_Align":"center","owner":{"__isSmartRef__":true,"id":1552},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"1554":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"1555":{"style":{"__isSmartRef__":true,"id":1556},"morph":{"__isSmartRef__":true,"id":1553},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"Inspector for rect(pt(-95.3,-68.0),pt(82.7,68.0))","__LivelyClassName__":"lively.morphic.TextChunk"},"1556":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1557":{"_Position":{"__isSmartRef__":true,"id":1558},"renderContextTable":{"__isSmartRef__":true,"id":1559},"_Extent":{"__isSmartRef__":true,"id":1560},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1544},"_Fill":null,"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1558":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1559":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1560":{"x":0,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1561":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1562":{"morph":{"__isSmartRef__":true,"id":1553},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1563":{"x":20,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1564":{"x":0,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1565":{"submorphs":[{"__isSmartRef__":true,"id":1566}],"scripts":[],"id":4651,"renderContextTable":{"__isSmartRef__":true,"id":1578},"shape":{"__isSmartRef__":true,"id":1579},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"eventHandler":{"__isSmartRef__":true,"id":1594},"_Position":{"__isSmartRef__":true,"id":1595},"priorExtent":{"__isSmartRef__":true,"id":1596},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1584},"lighterFill":{"__isSmartRef__":true,"id":1597},"label":{"__isSmartRef__":true,"id":1566},"owner":{"__isSmartRef__":true,"id":1552},"layout":{"__isSmartRef__":true,"id":1606},"attributeConnections":[{"__isSmartRef__":true,"id":1607},{"__isSmartRef__":true,"id":1609}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"1566":{"submorphs":[],"scripts":[],"id":4652,"renderContextTable":{"__isSmartRef__":true,"id":1567},"textChunks":[{"__isSmartRef__":true,"id":1568}],"shape":{"__isSmartRef__":true,"id":1570},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1574},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","eventHandler":{"__isSmartRef__":true,"id":1575},"_Position":{"__isSmartRef__":true,"id":1576},"priorExtent":{"__isSmartRef__":true,"id":1577},"_MaxTextWidth":null,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1565},"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"1567":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"1568":{"style":{"__isSmartRef__":true,"id":1569},"morph":{"__isSmartRef__":true,"id":1566},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"X","__LivelyClassName__":"lively.morphic.TextChunk"},"1569":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1570":{"_Position":{"__isSmartRef__":true,"id":1571},"renderContextTable":{"__isSmartRef__":true,"id":1572},"_Extent":{"__isSmartRef__":true,"id":1573},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1544},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1571":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1572":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1573":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1574":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1575":{"morph":{"__isSmartRef__":true,"id":1566},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1576":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1577":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1578":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"1579":{"_Position":{"__isSmartRef__":true,"id":1580},"renderContextTable":{"__isSmartRef__":true,"id":1581},"_Extent":{"__isSmartRef__":true,"id":1582},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1583},"_Fill":{"__isSmartRef__":true,"id":1584},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1580":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1581":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1582":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1583":{"r":0.7411764705882353,"g":0.7450980392156863,"b":0.7529411764705882,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1584":{"stops":[{"__isSmartRef__":true,"id":1585},{"__isSmartRef__":true,"id":1587},{"__isSmartRef__":true,"id":1589},{"__isSmartRef__":true,"id":1591}],"vector":{"__isSmartRef__":true,"id":1593},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1585":{"offset":0,"color":{"__isSmartRef__":true,"id":1586}},"1586":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1587":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1588}},"1588":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1589":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1590}},"1590":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1591":{"offset":1,"color":{"__isSmartRef__":true,"id":1592}},"1592":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1593":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1594":{"morph":{"__isSmartRef__":true,"id":1565},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1595":{"x":480,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1596":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1597":{"stops":[{"__isSmartRef__":true,"id":1598},{"__isSmartRef__":true,"id":1600},{"__isSmartRef__":true,"id":1602},{"__isSmartRef__":true,"id":1604}],"vector":{"__isSmartRef__":true,"id":1593},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1598":{"offset":0,"color":{"__isSmartRef__":true,"id":1599}},"1599":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1600":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1601}},"1601":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1602":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1603}},"1603":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1604":{"offset":1,"color":{"__isSmartRef__":true,"id":1605}},"1605":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1606":{"moveHorizontal":true},"1607":{"sourceObj":{"__isSmartRef__":true,"id":1565},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":1535},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1608},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1608":{"source":{"__isSmartRef__":true,"id":1565},"target":{"__isSmartRef__":true,"id":1535}},"1609":{"sourceObj":{"__isSmartRef__":true,"id":1565},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1535},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1610},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1610":{"source":{"__isSmartRef__":true,"id":1565},"target":{"__isSmartRef__":true,"id":1535}},"1611":{"submorphs":[{"__isSmartRef__":true,"id":1612}],"scripts":[],"id":4653,"renderContextTable":{"__isSmartRef__":true,"id":1624},"shape":{"__isSmartRef__":true,"id":1625},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"eventHandler":{"__isSmartRef__":true,"id":1629},"_Position":{"__isSmartRef__":true,"id":1630},"priorExtent":{"__isSmartRef__":true,"id":1631},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1584},"lighterFill":{"__isSmartRef__":true,"id":1632},"label":{"__isSmartRef__":true,"id":1612},"owner":{"__isSmartRef__":true,"id":1552},"attributeConnections":[{"__isSmartRef__":true,"id":1641},{"__isSmartRef__":true,"id":1643}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"1612":{"submorphs":[],"scripts":[],"id":4654,"renderContextTable":{"__isSmartRef__":true,"id":1613},"textChunks":[{"__isSmartRef__":true,"id":1614}],"shape":{"__isSmartRef__":true,"id":1616},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1620},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","eventHandler":{"__isSmartRef__":true,"id":1621},"_Position":{"__isSmartRef__":true,"id":1622},"priorExtent":{"__isSmartRef__":true,"id":1623},"_MaxTextWidth":null,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1611},"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"1613":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"1614":{"style":{"__isSmartRef__":true,"id":1615},"morph":{"__isSmartRef__":true,"id":1612},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"M","__LivelyClassName__":"lively.morphic.TextChunk"},"1615":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1616":{"_Position":{"__isSmartRef__":true,"id":1617},"renderContextTable":{"__isSmartRef__":true,"id":1618},"_Extent":{"__isSmartRef__":true,"id":1619},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1544},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1617":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1618":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1619":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1620":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1621":{"morph":{"__isSmartRef__":true,"id":1612},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1622":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1623":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1624":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"1625":{"_Position":{"__isSmartRef__":true,"id":1626},"renderContextTable":{"__isSmartRef__":true,"id":1627},"_Extent":{"__isSmartRef__":true,"id":1628},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1583},"_Fill":{"__isSmartRef__":true,"id":1584},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1626":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1627":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1628":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1629":{"morph":{"__isSmartRef__":true,"id":1611},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1630":{"x":3,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1631":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1632":{"stops":[{"__isSmartRef__":true,"id":1633},{"__isSmartRef__":true,"id":1635},{"__isSmartRef__":true,"id":1637},{"__isSmartRef__":true,"id":1639}],"vector":{"__isSmartRef__":true,"id":1593},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1633":{"offset":0,"color":{"__isSmartRef__":true,"id":1634}},"1634":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1635":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1636}},"1636":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1637":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1638}},"1638":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1639":{"offset":1,"color":{"__isSmartRef__":true,"id":1640}},"1640":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1641":{"sourceObj":{"__isSmartRef__":true,"id":1611},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":1535},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1642},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1642":{"source":{"__isSmartRef__":true,"id":1611},"target":{"__isSmartRef__":true,"id":1535}},"1643":{"sourceObj":{"__isSmartRef__":true,"id":1611},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1535},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1644},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1644":{"source":{"__isSmartRef__":true,"id":1611},"target":{"__isSmartRef__":true,"id":1535}},"1645":{"submorphs":[{"__isSmartRef__":true,"id":1646}],"scripts":[],"id":4655,"renderContextTable":{"__isSmartRef__":true,"id":1658},"shape":{"__isSmartRef__":true,"id":1659},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"eventHandler":{"__isSmartRef__":true,"id":1663},"_Position":{"__isSmartRef__":true,"id":1664},"priorExtent":{"__isSmartRef__":true,"id":1665},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1584},"lighterFill":{"__isSmartRef__":true,"id":1666},"label":{"__isSmartRef__":true,"id":1646},"owner":{"__isSmartRef__":true,"id":1552},"layout":{"__isSmartRef__":true,"id":1675},"attributeConnections":[{"__isSmartRef__":true,"id":1676},{"__isSmartRef__":true,"id":1678}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"1646":{"submorphs":[],"scripts":[],"id":4656,"renderContextTable":{"__isSmartRef__":true,"id":1647},"textChunks":[{"__isSmartRef__":true,"id":1648}],"shape":{"__isSmartRef__":true,"id":1650},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1654},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","eventHandler":{"__isSmartRef__":true,"id":1655},"_Position":{"__isSmartRef__":true,"id":1656},"priorExtent":{"__isSmartRef__":true,"id":1657},"_MaxTextWidth":null,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1645},"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"1647":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"1648":{"style":{"__isSmartRef__":true,"id":1649},"morph":{"__isSmartRef__":true,"id":1646},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"–","__LivelyClassName__":"lively.morphic.TextChunk"},"1649":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1650":{"_Position":{"__isSmartRef__":true,"id":1651},"renderContextTable":{"__isSmartRef__":true,"id":1652},"_Extent":{"__isSmartRef__":true,"id":1653},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1544},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1651":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1652":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1653":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1654":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1655":{"morph":{"__isSmartRef__":true,"id":1646},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1656":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1657":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1658":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"1659":{"_Position":{"__isSmartRef__":true,"id":1660},"renderContextTable":{"__isSmartRef__":true,"id":1661},"_Extent":{"__isSmartRef__":true,"id":1662},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1583},"_Fill":{"__isSmartRef__":true,"id":1584},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1660":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1661":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1662":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1663":{"morph":{"__isSmartRef__":true,"id":1645},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1664":{"x":461,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1665":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1666":{"stops":[{"__isSmartRef__":true,"id":1667},{"__isSmartRef__":true,"id":1669},{"__isSmartRef__":true,"id":1671},{"__isSmartRef__":true,"id":1673}],"vector":{"__isSmartRef__":true,"id":1593},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1667":{"offset":0,"color":{"__isSmartRef__":true,"id":1668}},"1668":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1669":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1670}},"1670":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1671":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1672}},"1672":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1673":{"offset":1,"color":{"__isSmartRef__":true,"id":1674}},"1674":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1675":{"moveHorizontal":true},"1676":{"sourceObj":{"__isSmartRef__":true,"id":1645},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":1535},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1677},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1677":{"source":{"__isSmartRef__":true,"id":1645},"target":{"__isSmartRef__":true,"id":1535}},"1678":{"sourceObj":{"__isSmartRef__":true,"id":1645},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1535},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1679},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1679":{"source":{"__isSmartRef__":true,"id":1645},"target":{"__isSmartRef__":true,"id":1535}},"1680":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"1681":{"_Position":{"__isSmartRef__":true,"id":1682},"renderContextTable":{"__isSmartRef__":true,"id":1683},"_Extent":{"__isSmartRef__":true,"id":1684},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1685},"_Fill":{"__isSmartRef__":true,"id":552},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1682":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1683":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1684":{"x":500,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1685":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1686":{"resizeWidth":true,"adjustForNewBounds":true},"1687":{"morph":{"__isSmartRef__":true,"id":1552},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1688":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1689":{"x":500,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1690":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"1691":{"renderContextTable":{"__isSmartRef__":true,"id":1692},"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_Extent":{"__isSmartRef__":true,"id":1693},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1692":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1693":{"x":500,"y":222,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1694":{"adjustForNewBounds":true},"1695":{"morph":{"__isSmartRef__":true,"id":1535},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1696":{"x":2380,"y":801,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1697":{"x":500,"y":222,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1698":{"x":2539,"y":814,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1699":{"submorphs":[{"__isSmartRef__":true,"id":1700},{"__isSmartRef__":true,"id":1841},{"__isSmartRef__":true,"id":1875},{"__isSmartRef__":true,"id":1891},{"__isSmartRef__":true,"id":1925},{"__isSmartRef__":true,"id":1970},{"__isSmartRef__":true,"id":1983},{"__isSmartRef__":true,"id":2001},{"__isSmartRef__":true,"id":2015},{"__isSmartRef__":true,"id":2061},{"__isSmartRef__":true,"id":2107},{"__isSmartRef__":true,"id":2153},{"__isSmartRef__":true,"id":2200}],"scripts":[],"id":33,"shape":{"__isSmartRef__":true,"id":2253},"droppingEnabled":true,"halosEnabled":true,"draggingEnabled":true,"layout":{"__isSmartRef__":true,"id":2258},"priorExtent":{"__isSmartRef__":true,"id":2259},"titleBar":{"__isSmartRef__":true,"id":1700},"contentOffset":{"__isSmartRef__":true,"id":2260},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":{"__isSmartRef__":true,"id":2261},"expandedExtent":{"__isSmartRef__":true,"id":2262},"highlighted":true,"_Rotation":0,"_Scale":1,"prevDragPos":{"__isSmartRef__":true,"id":2263},"showsHalos":false,"name":"ObjectEditor","__SourceModuleName__":"Global.lively.morphic.Widgets","target":{"__isSmartRef__":true,"id":1167},"expandedPosition":{"__isSmartRef__":true,"id":2264},"partsBinMetaInfo":{"__isSmartRef__":true,"id":2265},"scriptList":{"__isSmartRef__":true,"id":1875},"scriptPane":{"__isSmartRef__":true,"id":1891},"classButton":{"__isSmartRef__":true,"id":1925},"connectionList":{"__isSmartRef__":true,"id":1983},"targetButton":{"__isSmartRef__":true,"id":2266},"renderContextTable":{"__isSmartRef__":true,"id":2309},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Position":{"__isSmartRef__":true,"id":2310},"morphSelector":{"__isSmartRef__":true,"id":2200},"eventHandler":{"__isSmartRef__":true,"id":2311},"cameForward":false,"owner":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2312},"__LivelyClassName__":"lively.morphic.Window"},"1700":{"submorphs":[{"__isSmartRef__":true,"id":1701},{"__isSmartRef__":true,"id":1714},{"__isSmartRef__":true,"id":1758},{"__isSmartRef__":true,"id":1790}],"scripts":[],"id":34,"shape":{"__isSmartRef__":true,"id":1823},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":1836},"_Position":{"__isSmartRef__":true,"id":1837},"eventsAreIgnored":true,"windowMorph":{"__isSmartRef__":true,"id":1699},"label":{"__isSmartRef__":true,"id":1701},"closeButton":{"__isSmartRef__":true,"id":1714},"menuButton":{"__isSmartRef__":true,"id":1758},"collapseButton":{"__isSmartRef__":true,"id":1790},"priorExtent":{"__isSmartRef__":true,"id":1838},"owner":{"__isSmartRef__":true,"id":1699},"__SourceModuleName__":"Global.lively.morphic.Widgets","name":"ObjectEditorTitleBar","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":1839},"eventHandler":{"__isSmartRef__":true,"id":1840},"__LivelyClassName__":"lively.morphic.TitleBar"},"1701":{"submorphs":[],"scripts":[],"id":35,"shape":{"__isSmartRef__":true,"id":1702},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1707},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":1708},"priorExtent":{"__isSmartRef__":true,"id":1709},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":1710}],"evalEnabled":false,"isLabel":true,"eventsAreIgnored":true,"_FontSize":10,"_Align":"center","owner":{"__isSmartRef__":true,"id":1700},"__SourceModuleName__":"Global.lively.morphic.TextCore","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":1712},"eventHandler":{"__isSmartRef__":true,"id":1713},"__LivelyClassName__":"lively.morphic.Text"},"1702":{"_Position":{"__isSmartRef__":true,"id":1703},"_Extent":{"__isSmartRef__":true,"id":1704},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1705},"_Fill":null,"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1706},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1703":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1704":{"x":1077.9776803724167,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1705":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1706":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1707":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1708":{"x":20,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1709":{"x":1077.9776803724167,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1710":{"style":{"__isSmartRef__":true,"id":1711},"morph":{"__isSmartRef__":true,"id":1701},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"ObjectEditor","__LivelyClassName__":"lively.morphic.TextChunk"},"1711":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1712":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"1713":{"morph":{"__isSmartRef__":true,"id":1701},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1714":{"submorphs":[{"__isSmartRef__":true,"id":1715}],"scripts":[],"id":36,"shape":{"__isSmartRef__":true,"id":1727},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1742},"priorExtent":{"__isSmartRef__":true,"id":1743},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1731},"lighterFill":{"__isSmartRef__":true,"id":1744},"label":{"__isSmartRef__":true,"id":1715},"owner":{"__isSmartRef__":true,"id":1700},"layout":{"__isSmartRef__":true,"id":1753},"attributeConnections":[{"__isSmartRef__":true,"id":1754},{"__isSmartRef__":true,"id":1755}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":1756},"eventHandler":{"__isSmartRef__":true,"id":1757},"__LivelyClassName__":"lively.morphic.WindowControl"},"1715":{"submorphs":[],"scripts":[],"id":37,"shape":{"__isSmartRef__":true,"id":1716},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1720},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":1721},"priorExtent":{"__isSmartRef__":true,"id":1722},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":1723}],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1714},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":1725},"eventHandler":{"__isSmartRef__":true,"id":1726},"__LivelyClassName__":"lively.morphic.Text"},"1716":{"_Position":{"__isSmartRef__":true,"id":1717},"_Extent":{"__isSmartRef__":true,"id":1718},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1705},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1719},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1717":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1718":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1719":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1720":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1721":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1722":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1723":{"style":{"__isSmartRef__":true,"id":1724},"morph":{"__isSmartRef__":true,"id":1715},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"X","__LivelyClassName__":"lively.morphic.TextChunk"},"1724":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1725":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"1726":{"morph":{"__isSmartRef__":true,"id":1715},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1727":{"_Position":{"__isSmartRef__":true,"id":1728},"_Extent":{"__isSmartRef__":true,"id":1729},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1730},"_Fill":{"__isSmartRef__":true,"id":1731},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1741},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1728":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1729":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1730":{"r":0.7411764705882353,"g":0.7450980392156863,"b":0.7529411764705882,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1731":{"stops":[{"__isSmartRef__":true,"id":1732},{"__isSmartRef__":true,"id":1734},{"__isSmartRef__":true,"id":1736},{"__isSmartRef__":true,"id":1738}],"vector":{"__isSmartRef__":true,"id":1740},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1732":{"offset":0,"color":{"__isSmartRef__":true,"id":1733}},"1733":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1734":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1735}},"1735":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1736":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1737}},"1737":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1738":{"offset":1,"color":{"__isSmartRef__":true,"id":1739}},"1739":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1740":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1741":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1742":{"x":1116.9776803724167,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1743":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1744":{"stops":[{"__isSmartRef__":true,"id":1745},{"__isSmartRef__":true,"id":1747},{"__isSmartRef__":true,"id":1749},{"__isSmartRef__":true,"id":1751}],"vector":{"__isSmartRef__":true,"id":1740},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1745":{"offset":0,"color":{"__isSmartRef__":true,"id":1746}},"1746":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1747":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1748}},"1748":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1749":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1750}},"1750":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1751":{"offset":1,"color":{"__isSmartRef__":true,"id":1752}},"1752":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1753":{"moveHorizontal":true},"1754":{"sourceObj":{"__isSmartRef__":true,"id":1714},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":1699},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1755":{"sourceObj":{"__isSmartRef__":true,"id":1714},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1699},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1756":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"1757":{"morph":{"__isSmartRef__":true,"id":1714},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1758":{"submorphs":[{"__isSmartRef__":true,"id":1759}],"scripts":[],"id":38,"shape":{"__isSmartRef__":true,"id":1771},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1775},"priorExtent":{"__isSmartRef__":true,"id":1776},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1731},"lighterFill":{"__isSmartRef__":true,"id":1777},"label":{"__isSmartRef__":true,"id":1759},"owner":{"__isSmartRef__":true,"id":1700},"attributeConnections":[{"__isSmartRef__":true,"id":1786},{"__isSmartRef__":true,"id":1787}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","showsHalos":false,"_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":1788},"eventHandler":{"__isSmartRef__":true,"id":1789},"__LivelyClassName__":"lively.morphic.WindowControl"},"1759":{"submorphs":[],"scripts":[],"id":39,"shape":{"__isSmartRef__":true,"id":1760},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1764},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":1765},"priorExtent":{"__isSmartRef__":true,"id":1766},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":1767}],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1758},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":1769},"eventHandler":{"__isSmartRef__":true,"id":1770},"__LivelyClassName__":"lively.morphic.Text"},"1760":{"_Position":{"__isSmartRef__":true,"id":1761},"_Extent":{"__isSmartRef__":true,"id":1762},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1705},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1763},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1761":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1762":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1763":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1764":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1765":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1766":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1767":{"style":{"__isSmartRef__":true,"id":1768},"morph":{"__isSmartRef__":true,"id":1759},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"M","__LivelyClassName__":"lively.morphic.TextChunk"},"1768":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1769":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"1770":{"morph":{"__isSmartRef__":true,"id":1759},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1771":{"_Position":{"__isSmartRef__":true,"id":1772},"_Extent":{"__isSmartRef__":true,"id":1773},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1730},"_Fill":{"__isSmartRef__":true,"id":1731},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1774},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1772":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1773":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1774":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1775":{"x":3,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1776":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1777":{"stops":[{"__isSmartRef__":true,"id":1778},{"__isSmartRef__":true,"id":1780},{"__isSmartRef__":true,"id":1782},{"__isSmartRef__":true,"id":1784}],"vector":{"__isSmartRef__":true,"id":1740},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1778":{"offset":0,"color":{"__isSmartRef__":true,"id":1779}},"1779":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1780":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1781}},"1781":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1782":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1783}},"1783":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1784":{"offset":1,"color":{"__isSmartRef__":true,"id":1785}},"1785":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1786":{"sourceObj":{"__isSmartRef__":true,"id":1758},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":1699},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1787":{"sourceObj":{"__isSmartRef__":true,"id":1758},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1699},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1788":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"1789":{"morph":{"__isSmartRef__":true,"id":1758},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1790":{"submorphs":[{"__isSmartRef__":true,"id":1791}],"scripts":[],"id":40,"shape":{"__isSmartRef__":true,"id":1803},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1807},"priorExtent":{"__isSmartRef__":true,"id":1808},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1731},"lighterFill":{"__isSmartRef__":true,"id":1809},"label":{"__isSmartRef__":true,"id":1791},"owner":{"__isSmartRef__":true,"id":1700},"layout":{"__isSmartRef__":true,"id":1818},"attributeConnections":[{"__isSmartRef__":true,"id":1819},{"__isSmartRef__":true,"id":1820}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":1821},"eventHandler":{"__isSmartRef__":true,"id":1822},"__LivelyClassName__":"lively.morphic.WindowControl"},"1791":{"submorphs":[],"scripts":[],"id":41,"shape":{"__isSmartRef__":true,"id":1792},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1796},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":1797},"priorExtent":{"__isSmartRef__":true,"id":1798},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":1799}],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":1790},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":1801},"eventHandler":{"__isSmartRef__":true,"id":1802},"__LivelyClassName__":"lively.morphic.Text"},"1792":{"_Position":{"__isSmartRef__":true,"id":1793},"_Extent":{"__isSmartRef__":true,"id":1794},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1705},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1795},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1793":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1794":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1795":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1796":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1797":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1798":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1799":{"style":{"__isSmartRef__":true,"id":1800},"morph":{"__isSmartRef__":true,"id":1791},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"–","__LivelyClassName__":"lively.morphic.TextChunk"},"1800":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1801":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"1802":{"morph":{"__isSmartRef__":true,"id":1791},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1803":{"_Position":{"__isSmartRef__":true,"id":1804},"_Extent":{"__isSmartRef__":true,"id":1805},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1730},"_Fill":{"__isSmartRef__":true,"id":1731},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1806},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1804":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1805":{"x":17,"y":17,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1806":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1807":{"x":1097.9776803724167,"y":3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1808":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1809":{"stops":[{"__isSmartRef__":true,"id":1810},{"__isSmartRef__":true,"id":1812},{"__isSmartRef__":true,"id":1814},{"__isSmartRef__":true,"id":1816}],"vector":{"__isSmartRef__":true,"id":1740},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1810":{"offset":0,"color":{"__isSmartRef__":true,"id":1811}},"1811":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1812":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1813}},"1813":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1814":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1815}},"1815":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1816":{"offset":1,"color":{"__isSmartRef__":true,"id":1817}},"1817":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1818":{"moveHorizontal":true},"1819":{"sourceObj":{"__isSmartRef__":true,"id":1790},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":1699},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1820":{"sourceObj":{"__isSmartRef__":true,"id":1790},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1699},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"1821":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"1822":{"morph":{"__isSmartRef__":true,"id":1790},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1823":{"_Position":{"__isSmartRef__":true,"id":1824},"_Extent":{"__isSmartRef__":true,"id":1825},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":1826},"_Fill":{"__isSmartRef__":true,"id":1827},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1835},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1824":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1825":{"x":1136.9776803724167,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1826":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1827":{"stops":[{"__isSmartRef__":true,"id":1828},{"__isSmartRef__":true,"id":1830},{"__isSmartRef__":true,"id":1832}],"vector":{"__isSmartRef__":true,"id":1834},"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes"},"1828":{"offset":0,"color":{"__isSmartRef__":true,"id":1829}},"1829":{"r":0.8600000000000001,"g":0.8600000000000001,"b":0.8600000000000001,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1830":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1831}},"1831":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1832":{"offset":1,"color":{"__isSmartRef__":true,"id":1833}},"1833":{"r":0.8600000000000001,"g":0.8600000000000001,"b":0.8600000000000001,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1834":{"x":0,"y":0,"width":0,"height":1,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"1835":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1836":{"resizeWidth":true,"adjustForNewBounds":true},"1837":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1838":{"x":1136.9776803724167,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1839":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"1840":{"morph":{"__isSmartRef__":true,"id":1700},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1841":{"submorphs":[],"scripts":[],"id":42,"shape":{"__isSmartRef__":true,"id":1842},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1848},"showsHalos":false,"name":"ResizeCorner","partsBinMetaInfo":{"__isSmartRef__":true,"id":1849},"__SourceModuleName__":"Global.lively.morphic.Core","_Rotation":0,"_Scale":1,"draggingEnabled":true,"dragStartPoint":null,"originalExtent":{"__isSmartRef__":true,"id":1850},"originalTargetExtent":null,"owner":{"__isSmartRef__":true,"id":1699},"renderContextTable":{"__isSmartRef__":true,"id":1851},"eventHandler":{"__isSmartRef__":true,"id":1852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1853},"__LivelyClassName__":"lively.morphic.Box"},"1842":{"position":{"__isSmartRef__":true,"id":1843},"_Extent":{"__isSmartRef__":true,"id":1844},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1845},"_Fill":{"__isSmartRef__":true,"id":1846},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1847},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1843":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1844":{"x":13,"y":15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1845":{"r":0.568,"g":0.568,"b":0.568,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1846":{"r":0.258,"g":0.258,"b":0.258,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1847":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1848":{"x":1124,"y":569.2,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1849":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"Resize an object without using halos.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1850":{"x":239,"y":138,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1851":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"1852":{"morph":{"__isSmartRef__":true,"id":1841},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1853":{"onDrag":{"__isSmartRef__":true,"id":1854},"onDragEnd":{"__isSmartRef__":true,"id":1861},"onDragStart":{"__isSmartRef__":true,"id":1868}},"1854":{"varMapping":{"__isSmartRef__":true,"id":1855},"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":1860},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1855":{"this":{"__isSmartRef__":true,"id":1841},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1856}},"1856":{"$super":{"__isSmartRef__":true,"id":1857}},"1857":{"varMapping":{"__isSmartRef__":true,"id":1858},"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":1859},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1858":{"obj":{"__isSmartRef__":true,"id":1841},"name":"onDrag"},"1859":{},"1860":{},"1861":{"varMapping":{"__isSmartRef__":true,"id":1862},"source":"function onDragEnd(evt) {\n\tthis.dragStartPoint = null;\n\tthis.originalTargetExtent = null;\n}","funcProperties":{"__isSmartRef__":true,"id":1867},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1862":{"this":{"__isSmartRef__":true,"id":1841},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1863}},"1863":{"$super":{"__isSmartRef__":true,"id":1864}},"1864":{"varMapping":{"__isSmartRef__":true,"id":1865},"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":1866},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1865":{"obj":{"__isSmartRef__":true,"id":1841},"name":"onDragEnd"},"1866":{},"1867":{},"1868":{"varMapping":{"__isSmartRef__":true,"id":1869},"source":"function onDragStart(evt) {\n\tthis.dragStartPoint = evt.mousePoint;\n\tthis.originalTargetExtent = this.owner.getExtent();\n}","funcProperties":{"__isSmartRef__":true,"id":1874},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1869":{"this":{"__isSmartRef__":true,"id":1841},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1870}},"1870":{"$super":{"__isSmartRef__":true,"id":1871}},"1871":{"varMapping":{"__isSmartRef__":true,"id":1872},"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":1873},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1872":{"obj":{"__isSmartRef__":true,"id":1841},"name":"onDragStart"},"1873":{},"1874":{},"1875":{"submorphs":[],"scripts":[],"id":43,"shape":{"__isSmartRef__":true,"id":1876},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1882},"itemList":["-- ALL --","alignToOwner","morphMenuItems","onDrag","onDragEnd","onDragStart","reset"],"selectedLineNo":3,"showsHalos":false,"name":"ObjectEditorScriptList","partsBinMetaInfo":{"__isSmartRef__":true,"id":1883},"__SourceModuleName__":"Global.lively.morphic.Core","_Rotation":0,"_Scale":1,"_ClipMode":"auto","owner":{"__isSmartRef__":true,"id":1699},"priorExtent":{"__isSmartRef__":true,"id":1884},"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":1885}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"layout":{"__isSmartRef__":true,"id":1887},"doitContext":{"__isSmartRef__":true,"id":1699},"renderContextTable":{"__isSmartRef__":true,"id":1888},"AttributeConnection(.selection --> ObjectEditor - ObjectEditor.displaySourceForConnection)":{"__isSmartRef__":true,"id":1889},"eventHandler":{"__isSmartRef__":true,"id":1890},"selection":"onDrag","__LivelyClassName__":"lively.morphic.List"},"1876":{"position":{"__isSmartRef__":true,"id":1877},"_Extent":{"__isSmartRef__":true,"id":1878},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1879},"_Fill":{"__isSmartRef__":true,"id":1880},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderRadius":0,"renderContextTable":{"__isSmartRef__":true,"id":1881},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1877":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1878":{"x":173.7,"y":224.23350080310803,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1879":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1880":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1881":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1882":{"x":16,"y":72,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1883":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":2,"__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1884":{"x":173.7,"y":225.23350080310803,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1885":{"sourceObj":{"__isSmartRef__":true,"id":1875},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":1699},"targetMethodName":"displaySourceForScript","__SourceModuleName__":"Global.lively.bindings","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":1886},"__LivelyClassName__":"AttributeConnection"},"1886":{"source":{"__isSmartRef__":true,"id":1875},"target":{"__isSmartRef__":true,"id":1699}},"1887":{"resizeHeight":true},"1888":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","updateListContent":"updateListContentHTML","resizeList":"resizeListHTML","getItemIndexFromEvent":"getItemIndexFromEventHTML","selectAt":"selectAtHTML","getListExtent":"getListExtentHTML","setSize":"setSizeHTML","getSelectedIndexes":"getSelectedIndexesHTML","renderAsDropDownList":"renderAsDropDownListHTML"},"1889":{"x":827.4732883452064,"y":307.96892271588695,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1890":{"morph":{"__isSmartRef__":true,"id":1875},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1891":{"submorphs":[],"scripts":[],"id":44,"shape":{"__isSmartRef__":true,"id":1892},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":1898},"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_OverflowMode":"auto","_FontFamily":"Monaco,Courier","_Position":{"__isSmartRef__":true,"id":1899},"_MaxTextWidth":921.4776803724167,"_MaxTextHeight":494.2335008031081,"textChunks":[{"__isSmartRef__":true,"id":1900}],"layout":{"__isSmartRef__":true,"id":1902},"showsHalos":false,"prevScroll":[0,116],"_Rotation":0,"_Scale":1,"priorSelectionRange":[1078,1078],"name":"ObjectEditorScriptPane","charsReplaced":"","lastFindLoc":708,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1903},"__SourceModuleName__":"Global.lively.morphic.TextCore","priorExtent":{"__isSmartRef__":true,"id":1904},"_ClipMode":"auto","owner":{"__isSmartRef__":true,"id":1699},"_FontSize":11,"lastSyntaxHighlightTime":1306542120931,"doitContext":{"__isSmartRef__":true,"id":1167},"savedTextString":"this.addScript(function onDrag(evt) {\n // alert(\"onDrag\")\n // this.owner.setPosition(pt(0,0))\n // this.owner.setOrigin(pt(0,0))\n var moveDelta = evt.mousePoint.subPt(this.dragStartPoint)\n \n // moveDelta = moveDelta.maxPt(pt(0,0))\n var ownerExtent = this.owner.getExtent();\n\n // TODO does not work\n if (evt.isShiftDown()) {\n var maxDelta = Math.max(moveDelta.x, moveDelta.y);\n if (maxDelta == 0) return;\n var factor = ownerExtent.x / ownerExtent.y\n moveDelta = pt(maxDelta * factor, maxDelta )\n }\n var accessor = (\"with-\" + this.cornerName).camelize(),\n newCorner = this.originalTargetInnerBounds[this.cornerName]().addPt(moveDelta),\n newBounds = this.originalTargetInnerBounds[accessor](newCorner);\n this.owner.shape.setBounds(newBounds)\n \n // var newExtent = this.originalTargetExtent.addPt(moveDelta)\n // alertOK(\"new extent\" + newExtent)\n // this.owner.setExtent(newExtent);\n this.owner.submorphs.select(function(ea) {\n return ea.isResizeCorner\n }).invoke('alignToOwner');\n if (this.owner.halos)\n this.owner.halos.invoke('alignAtTarget')\n\n // alertOK(\"relative \" + this.relativeOrigin)\n var newOrigin = pt(0,0).extent(this.owner.getExtent()).relativeToAbsPoint(this.relativeOrigin)\n\n // TODO IMPLEMENT updating the origin does not work yet\n // this.owner.setOrigin(newOrigin);\n // alertOK(\"new origin \" + newOrigin)\n\n});","_Align":"justify","renderContextTable":{"__isSmartRef__":true,"id":1905},"lastSearchString":"var ","eventHandler":{"__isSmartRef__":true,"id":1906},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1907},"__LivelyClassName__":"lively.morphic.Text"},"1892":{"_Position":{"__isSmartRef__":true,"id":1893},"_Extent":{"__isSmartRef__":true,"id":1894},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1895},"_Fill":{"__isSmartRef__":true,"id":1896},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderRadius":0,"renderContextTable":{"__isSmartRef__":true,"id":1897},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1893":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1894":{"x":921.4776803724167,"y":494.2335008031081,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1895":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1896":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1897":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1898":{"x":2,"y":1,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1899":{"x":200,"y":72,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1900":{"style":{"__isSmartRef__":true,"id":1901},"morph":{"__isSmartRef__":true,"id":1891},"storedString":"this.addScript(function onDrag(evt) {\n // alert(\"onDrag\")\n // this.owner.setPosition(pt(0,0))\n // this.owner.setOrigin(pt(0,0))\n var moveDelta = evt.mousePoint.subPt(this.dragStartPoint)\n \n // moveDelta = moveDelta.maxPt(pt(0,0))\n var ownerExtent = this.owner.getExtent();\n\n // TODO does not work\n if (evt.isShiftDown()) {\n var maxDelta = Math.max(moveDelta.x, moveDelta.y);\n if (maxDelta == 0) return;\n var factor = ownerExtent.x / ownerExtent.y\n moveDelta = pt(maxDelta * factor, maxDelta )\n }\n var accessor = (\"with-\" + this.cornerName).camelize(),\n newCorner = this.originalTargetInnerBounds[this.cornerName]().addPt(moveDelta),\n newBounds = this.originalTargetInnerBounds[accessor](newCorner);\n this.owner.shape.setBounds(newBounds)\n \n // var newExtent = this.originalTargetExtent.addPt(moveDelta)\n // alertOK(\"new extent\" + newExtent)\n // this.owner.setExtent(newExtent);\n this.owner.submorphs.select(function(ea) {\n return ea.isResizeCorner\n }).invoke('alignToOwner');\n if (this.owner.halos)\n this.owner.halos.invoke('alignAtTarget')\n\n // alertOK(\"relative \" + this.relativeOrigin)\n var newOrigin = pt(0,0).extent(this.owner.getExtent()).relativeToAbsPoint(this.relativeOrigin)\n\n // TODO IMPLEMENT updating the origin does not work yet\n // this.owner.setOrigin(newOrigin);\n // alertOK(\"new origin \" + newOrigin)\n\n});","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1901":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1902":{"resizeWidth":true,"resizeHeight":true},"1903":{"requiredModules":[],"partsSpaceName":"PartsBin/Widgets/","migrationLevel":2,"__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1904":{"x":921.4776803724167,"y":494.2335008031081,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1905":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"1906":{"morph":{"__isSmartRef__":true,"id":1891},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1907":{"doSave":{"__isSmartRef__":true,"id":1908},"boundEval":{"__isSmartRef__":true,"id":1915},"createScriptListUpdateLayer":{"__isSmartRef__":true,"id":1922}},"1908":{"varMapping":{"__isSmartRef__":true,"id":1909},"source":"function doSave() {\n $super();\n this.boundEval(this.textString);\n alertOK(\"saved source\");\n}","funcProperties":{"__isSmartRef__":true,"id":1914},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1909":{"this":{"__isSmartRef__":true,"id":1891},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1910}},"1910":{"$super":{"__isSmartRef__":true,"id":1911}},"1911":{"varMapping":{"__isSmartRef__":true,"id":1912},"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":1913},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1912":{"obj":{"__isSmartRef__":true,"id":1891},"name":"doSave"},"1913":{},"1914":{},"1915":{"varMapping":{"__isSmartRef__":true,"id":1916},"source":"function boundEval(str) {\n module('lively.LayerableMorphs').load(true);\n if (!(\"ScriptListUpdateLayer\" in Global)) this.createScriptListUpdateLayer();\n if (this.owner.target) this.owner.target.currentEditor = this.owner;\n var result;\n cop.withLayers([ScriptListUpdateLayer], function() {\n result = $super(str);\n }); \n if (this.owner.target && this.owner.target.currentEditor) delete this.owner.target.currentEditor;\n return result;\n}","funcProperties":{"__isSmartRef__":true,"id":1921},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1916":{"this":{"__isSmartRef__":true,"id":1891},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1917}},"1917":{"$super":{"__isSmartRef__":true,"id":1918}},"1918":{"varMapping":{"__isSmartRef__":true,"id":1919},"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":1920},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1919":{"obj":{"__isSmartRef__":true,"id":1891},"name":"boundEval"},"1920":{},"1921":{},"1922":{"varMapping":{"__isSmartRef__":true,"id":1923},"source":"function createScriptListUpdateLayer(str) {\n cop.create(\"ScriptListUpdateLayer\").refineClass(lively.morphic.Morph,{\n addScript : function(funcOrString) {\n var result = cop.proceed.apply(this, arguments);\n if (this.currentEditor) {\n this.currentEditor.updateLists();\n if (\"name\" in funcOrString) { // name is not standard for all browsers\n var index = this.currentEditor.scriptList.getList().indexOf(funcOrString.name);\n if (index !== -1) {this.currentEditor.scriptList.selectAt(index)};\n }\n return result;\n }\n }\n });\n}","funcProperties":{"__isSmartRef__":true,"id":1924},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1923":{"this":{"__isSmartRef__":true,"id":1891}},"1924":{},"1925":{"submorphs":[{"__isSmartRef__":true,"id":1926}],"scripts":[],"id":45,"shape":{"__isSmartRef__":true,"id":1940},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1955},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1943},"lighterFill":{"__isSmartRef__":true,"id":1956},"label":{"__isSmartRef__":true,"id":1926},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","_Rotation":0,"padding":{"__isSmartRef__":true,"id":1965},"name":"ObjectEditorClassButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":1966},"_Scale":1,"owner":{"__isSmartRef__":true,"id":1699},"layout":{"__isSmartRef__":true,"id":1967},"renderContextTable":{"__isSmartRef__":true,"id":1968},"eventHandler":{"__isSmartRef__":true,"id":1969},"__LivelyClassName__":"lively.morphic.Button"},"1926":{"submorphs":[],"scripts":[],"id":46,"shape":{"__isSmartRef__":true,"id":1927},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":116,"_MaxTextHeight":18,"fixedHeight":true,"allowsInput":false,"_OverflowMode":"visible","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1932},"textColor":{"__isSmartRef__":true,"id":1930},"owner":{"__isSmartRef__":true,"id":1925},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":1933}],"padding":{"__isSmartRef__":true,"id":1935},"_Padding":{"__isSmartRef__":true,"id":1936},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":1937},"_FontFamily":"Helvetica, Sans-Serif","_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_Align":"center","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":1938},"eventHandler":{"__isSmartRef__":true,"id":1939},"__LivelyClassName__":"lively.morphic.Text"},"1927":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1928},"_Extent":{"__isSmartRef__":true,"id":1929},"_BorderColor":{"__isSmartRef__":true,"id":1930},"renderContextTable":{"__isSmartRef__":true,"id":1931},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1928":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1929":{"x":116,"y":18,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1930":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1931":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1932":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1933":{"style":{"__isSmartRef__":true,"id":1934},"morph":{"__isSmartRef__":true,"id":1926},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"Class","__LivelyClassName__":"lively.morphic.TextChunk"},"1934":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1935":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1936":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1937":{"x":116,"y":18,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1938":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"1939":{"morph":{"__isSmartRef__":true,"id":1926},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1940":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1941},"_Extent":{"__isSmartRef__":true,"id":1942},"_Fill":{"__isSmartRef__":true,"id":1943},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1953},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":1954},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1941":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1942":{"x":116,"y":20,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1943":{"stops":[{"__isSmartRef__":true,"id":1944},{"__isSmartRef__":true,"id":1946},{"__isSmartRef__":true,"id":1948},{"__isSmartRef__":true,"id":1950}],"vector":{"__isSmartRef__":true,"id":1952},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1944":{"offset":0,"color":{"__isSmartRef__":true,"id":1945}},"1945":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1946":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1947}},"1947":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1948":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1949}},"1949":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1950":{"offset":1,"color":{"__isSmartRef__":true,"id":1951}},"1951":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1952":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1953":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1954":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1955":{"x":976,"y":35,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1956":{"stops":[{"__isSmartRef__":true,"id":1957},{"__isSmartRef__":true,"id":1959},{"__isSmartRef__":true,"id":1961},{"__isSmartRef__":true,"id":1963}],"vector":{"__isSmartRef__":true,"id":1952},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"1957":{"offset":0,"color":{"__isSmartRef__":true,"id":1958}},"1958":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1959":{"offset":0.4,"color":{"__isSmartRef__":true,"id":1960}},"1960":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1961":{"offset":0.6,"color":{"__isSmartRef__":true,"id":1962}},"1962":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1963":{"offset":1,"color":{"__isSmartRef__":true,"id":1964}},"1964":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1965":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"1966":{"partsSpaceName":"PartsBin/Inputs/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"Simple button. Connect to 'fire' to trigger actions when the button is pressed.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1967":{"moveHorizontal":true},"1968":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"1969":{"morph":{"__isSmartRef__":true,"id":1925},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1970":{"submorphs":[],"scripts":[],"id":47,"shape":{"__isSmartRef__":true,"id":1971},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":false,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1976},"_MaxTextWidth":64.8979476392384,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":1974},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"ObjectEditorScriptsText","partsBinMetaInfo":{"__isSmartRef__":true,"id":1977},"textChunks":[{"__isSmartRef__":true,"id":1978}],"charsReplaced":"Scripts","lastFindLoc":-7,"priorSelectionRange":[0,0],"prevScroll":[0,0],"_Scale":1,"priorExtent":{"__isSmartRef__":true,"id":1980},"owner":{"__isSmartRef__":true,"id":1699},"renderContextTable":{"__isSmartRef__":true,"id":1981},"eventHandler":{"__isSmartRef__":true,"id":1982},"__LivelyClassName__":"lively.morphic.Text"},"1971":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":1972},"_Extent":{"__isSmartRef__":true,"id":1973},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1974},"renderContextTable":{"__isSmartRef__":true,"id":1975},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1972":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1973":{"x":64.8979476392384,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1974":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1975":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1976":{"x":14.797889305450894,"y":46.17876045210768,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1977":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1978":{"style":{"__isSmartRef__":true,"id":1979},"morph":{"__isSmartRef__":true,"id":1970},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"Scripts","__LivelyClassName__":"lively.morphic.TextChunk"},"1979":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"1980":{"x":64.8979476392384,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"1981":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"1982":{"morph":{"__isSmartRef__":true,"id":1970},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1983":{"submorphs":[],"scripts":[],"id":48,"shape":{"__isSmartRef__":true,"id":1984},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":1990},"itemList":["-- ALL --"],"selectedLineNo":-1,"showsHalos":false,"name":"ObjectEditorConnectionList","partsBinMetaInfo":{"__isSmartRef__":true,"id":1991},"__SourceModuleName__":"Global.lively.morphic.Core","_Rotation":0,"_Scale":1,"_ClipMode":"auto","owner":{"__isSmartRef__":true,"id":1699},"priorExtent":{"__isSmartRef__":true,"id":1992},"attributeConnections":[{"__isSmartRef__":true,"id":1993}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"prevScroll":[0,0],"layout":{"__isSmartRef__":true,"id":1998},"renderContextTable":{"__isSmartRef__":true,"id":1999},"eventHandler":{"__isSmartRef__":true,"id":2000},"__LivelyClassName__":"lively.morphic.List"},"1984":{"position":{"__isSmartRef__":true,"id":1985},"_Extent":{"__isSmartRef__":true,"id":1986},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1987},"_Fill":{"__isSmartRef__":true,"id":1988},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderRadius":0,"renderContextTable":{"__isSmartRef__":true,"id":1989},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1985":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1986":{"x":173.7,"y":224.2,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1987":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"1988":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"1989":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1990":{"x":16,"y":343,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1991":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":2,"__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1992":{"x":173.7,"y":225.2,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"1993":{"sourceObj":{"__isSmartRef__":true,"id":1983},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":1699},"targetMethodName":"displaySourceForConnection","converterString":"function (newValue) {\n if (!newValue) return;\n if (typeof newValue === \"string\") { \n return newValue;\n } else {\n return newValue[1];\n }; \n}","updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","varMapping":{"__isSmartRef__":true,"id":1994},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1995},"__LivelyClassName__":"AttributeConnection"},"1994":{"source":{"__isSmartRef__":true,"id":1983},"target":{"__isSmartRef__":true,"id":1699}},"1995":{"converter":{"__isSmartRef__":true,"id":1996}},"1996":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":1994},"source":"function (newValue) {\n if (!newValue) return;\n if (typeof newValue === \"string\") { \n return newValue;\n } else {\n return newValue[1];\n }; \n}","funcProperties":{"__isSmartRef__":true,"id":1997},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"1997":{},"1998":{"resizeHeight":true,"moveVertical":true},"1999":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","updateListContent":"updateListContentHTML","resizeList":"resizeListHTML","getItemIndexFromEvent":"getItemIndexFromEventHTML","selectAt":"selectAtHTML","getListExtent":"getListExtentHTML","setSize":"setSizeHTML","getSelectedIndexes":"getSelectedIndexesHTML","renderAsDropDownList":"renderAsDropDownListHTML"},"2000":{"morph":{"__isSmartRef__":true,"id":1983},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2001":{"submorphs":[],"scripts":[],"id":49,"shape":{"__isSmartRef__":true,"id":2002},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":false,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2007},"_MaxTextWidth":124.10506681670552,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":2005},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"ObjectEditorConnectionsText","partsBinMetaInfo":{"__isSmartRef__":true,"id":2008},"textChunks":[{"__isSmartRef__":true,"id":2009}],"charsReplaced":"Scripts","lastFindLoc":-7,"priorSelectionRange":[0,0],"prevScroll":[0,0],"_Scale":1,"priorExtent":{"__isSmartRef__":true,"id":2011},"owner":{"__isSmartRef__":true,"id":1699},"layout":{"__isSmartRef__":true,"id":2012},"renderContextTable":{"__isSmartRef__":true,"id":2013},"eventHandler":{"__isSmartRef__":true,"id":2014},"__LivelyClassName__":"lively.morphic.Text"},"2002":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":2003},"_Extent":{"__isSmartRef__":true,"id":2004},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2005},"_BorderRadius":0,"renderContextTable":{"__isSmartRef__":true,"id":2006},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2003":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2004":{"x":124.10506681670552,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2005":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2006":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"2007":{"x":12.000000000000114,"y":317,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2008":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"2009":{"style":{"__isSmartRef__":true,"id":2010},"morph":{"__isSmartRef__":true,"id":2001},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"Connections","__LivelyClassName__":"lively.morphic.TextChunk"},"2010":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"2011":{"x":124.10506681670552,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2012":{"moveVertical":true},"2013":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"2014":{"morph":{"__isSmartRef__":true,"id":2001},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2015":{"submorphs":[{"__isSmartRef__":true,"id":2016}],"scripts":[],"id":50,"shape":{"__isSmartRef__":true,"id":2030},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2045},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":2033},"lighterFill":{"__isSmartRef__":true,"id":2046},"label":{"__isSmartRef__":true,"id":2016},"attributeConnections":[{"__isSmartRef__":true,"id":2055}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","_Rotation":0,"padding":{"__isSmartRef__":true,"id":2056},"name":"ObjectEditorAddConnectionButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":2057},"_Scale":1.0916059898444812,"renderContextTable":{"__isSmartRef__":true,"id":2058},"priorExtent":{"__isSmartRef__":true,"id":2059},"owner":{"__isSmartRef__":true,"id":1699},"eventHandler":{"__isSmartRef__":true,"id":2060},"__LivelyClassName__":"lively.morphic.Button"},"2016":{"submorphs":[],"scripts":[],"id":51,"shape":{"__isSmartRef__":true,"id":2017},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":25,"_MaxTextHeight":20,"fixedHeight":true,"allowsInput":false,"_OverflowMode":"visible","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2022},"textColor":{"__isSmartRef__":true,"id":2020},"owner":{"__isSmartRef__":true,"id":2015},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":2023}],"padding":{"__isSmartRef__":true,"id":2025},"_Padding":{"__isSmartRef__":true,"id":2026},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":2027},"_FontFamily":"Helvetica, Sans-Serif","renderContextTable":{"__isSmartRef__":true,"id":2028},"_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_Align":"center","eventHandler":{"__isSmartRef__":true,"id":2029},"__LivelyClassName__":"lively.morphic.Text"},"2017":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":2018},"_Extent":{"__isSmartRef__":true,"id":2019},"_BorderColor":{"__isSmartRef__":true,"id":2020},"renderContextTable":{"__isSmartRef__":true,"id":2021},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2018":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2019":{"x":25,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2020":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2021":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"2022":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2023":{"style":{"__isSmartRef__":true,"id":2024},"morph":{"__isSmartRef__":true,"id":2016},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"+","__LivelyClassName__":"lively.morphic.TextChunk"},"2024":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"2025":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"2026":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"2027":{"x":25,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2028":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"2029":{"morph":{"__isSmartRef__":true,"id":2016},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2030":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":2031},"_Extent":{"__isSmartRef__":true,"id":2032},"_Fill":{"__isSmartRef__":true,"id":2033},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2043},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":2044},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2031":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2032":{"x":25,"y":20,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2033":{"stops":[{"__isSmartRef__":true,"id":2034},{"__isSmartRef__":true,"id":2036},{"__isSmartRef__":true,"id":2038},{"__isSmartRef__":true,"id":2040}],"vector":{"__isSmartRef__":true,"id":2042},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"2034":{"offset":0,"color":{"__isSmartRef__":true,"id":2035}},"2035":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2036":{"offset":0.4,"color":{"__isSmartRef__":true,"id":2037}},"2037":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2038":{"offset":0.6,"color":{"__isSmartRef__":true,"id":2039}},"2039":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2040":{"offset":1,"color":{"__isSmartRef__":true,"id":2041}},"2041":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2042":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"2043":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2044":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"2045":{"x":129,"y":313,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2046":{"stops":[{"__isSmartRef__":true,"id":2047},{"__isSmartRef__":true,"id":2049},{"__isSmartRef__":true,"id":2051},{"__isSmartRef__":true,"id":2053}],"vector":{"__isSmartRef__":true,"id":2042},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"2047":{"offset":0,"color":{"__isSmartRef__":true,"id":2048}},"2048":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2049":{"offset":0.4,"color":{"__isSmartRef__":true,"id":2050}},"2050":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2051":{"offset":0.6,"color":{"__isSmartRef__":true,"id":2052}},"2052":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2053":{"offset":1,"color":{"__isSmartRef__":true,"id":2054}},"2054":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2055":{"sourceObj":{"__isSmartRef__":true,"id":2015},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1699},"targetMethodName":"newConnection","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2056":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"2057":{"partsSpaceName":"PartsBin/Inputs/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"Simple button. Connect to 'fire' to trigger actions when the button is pressed.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"2058":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"2059":{"x":30,"y":20,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2060":{"morph":{"__isSmartRef__":true,"id":2015},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2061":{"submorphs":[{"__isSmartRef__":true,"id":2062}],"scripts":[],"id":52,"shape":{"__isSmartRef__":true,"id":2076},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2091},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":2079},"lighterFill":{"__isSmartRef__":true,"id":2092},"label":{"__isSmartRef__":true,"id":2062},"attributeConnections":[{"__isSmartRef__":true,"id":2101}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","_Rotation":0,"padding":{"__isSmartRef__":true,"id":2102},"name":"ObjectEditorAddScriptButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":2103},"_Scale":1.0916059898444812,"renderContextTable":{"__isSmartRef__":true,"id":2104},"owner":{"__isSmartRef__":true,"id":1699},"priorExtent":{"__isSmartRef__":true,"id":2105},"eventHandler":{"__isSmartRef__":true,"id":2106},"__LivelyClassName__":"lively.morphic.Button"},"2062":{"submorphs":[],"scripts":[],"id":53,"shape":{"__isSmartRef__":true,"id":2063},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":25,"_MaxTextHeight":20,"fixedHeight":true,"allowsInput":false,"_OverflowMode":"visible","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2068},"textColor":{"__isSmartRef__":true,"id":2066},"owner":{"__isSmartRef__":true,"id":2061},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":2069}],"padding":{"__isSmartRef__":true,"id":2071},"_Padding":{"__isSmartRef__":true,"id":2072},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":2073},"_FontFamily":"Helvetica, Sans-Serif","renderContextTable":{"__isSmartRef__":true,"id":2074},"_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_Align":"center","eventHandler":{"__isSmartRef__":true,"id":2075},"__LivelyClassName__":"lively.morphic.Text"},"2063":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":2064},"_Extent":{"__isSmartRef__":true,"id":2065},"_BorderColor":{"__isSmartRef__":true,"id":2066},"renderContextTable":{"__isSmartRef__":true,"id":2067},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2064":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2065":{"x":25,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2066":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2067":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"2068":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2069":{"style":{"__isSmartRef__":true,"id":2070},"morph":{"__isSmartRef__":true,"id":2062},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"+","__LivelyClassName__":"lively.morphic.TextChunk"},"2070":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"2071":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"2072":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"2073":{"x":25,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2074":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"2075":{"morph":{"__isSmartRef__":true,"id":2062},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2076":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":2077},"_Extent":{"__isSmartRef__":true,"id":2078},"_Fill":{"__isSmartRef__":true,"id":2079},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2089},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":2090},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2077":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2078":{"x":25,"y":20,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2079":{"stops":[{"__isSmartRef__":true,"id":2080},{"__isSmartRef__":true,"id":2082},{"__isSmartRef__":true,"id":2084},{"__isSmartRef__":true,"id":2086}],"vector":{"__isSmartRef__":true,"id":2088},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"2080":{"offset":0,"color":{"__isSmartRef__":true,"id":2081}},"2081":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2082":{"offset":0.4,"color":{"__isSmartRef__":true,"id":2083}},"2083":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2084":{"offset":0.6,"color":{"__isSmartRef__":true,"id":2085}},"2085":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2086":{"offset":1,"color":{"__isSmartRef__":true,"id":2087}},"2087":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2088":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"2089":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2090":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"2091":{"x":129,"y":44,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2092":{"stops":[{"__isSmartRef__":true,"id":2093},{"__isSmartRef__":true,"id":2095},{"__isSmartRef__":true,"id":2097},{"__isSmartRef__":true,"id":2099}],"vector":{"__isSmartRef__":true,"id":2088},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"2093":{"offset":0,"color":{"__isSmartRef__":true,"id":2094}},"2094":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2095":{"offset":0.4,"color":{"__isSmartRef__":true,"id":2096}},"2096":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2097":{"offset":0.6,"color":{"__isSmartRef__":true,"id":2098}},"2098":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2099":{"offset":1,"color":{"__isSmartRef__":true,"id":2100}},"2100":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2101":{"sourceObj":{"__isSmartRef__":true,"id":2061},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1699},"targetMethodName":"newScript","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2102":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"2103":{"partsSpaceName":"PartsBin/Inputs/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"Simple button. Connect to 'fire' to trigger actions when the button is pressed.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"2104":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"2105":{"x":30,"y":20,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2106":{"morph":{"__isSmartRef__":true,"id":2061},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2107":{"submorphs":[{"__isSmartRef__":true,"id":2108}],"scripts":[],"id":54,"shape":{"__isSmartRef__":true,"id":2122},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2137},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":2125},"lighterFill":{"__isSmartRef__":true,"id":2138},"label":{"__isSmartRef__":true,"id":2108},"attributeConnections":[{"__isSmartRef__":true,"id":2147}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","_Rotation":0,"padding":{"__isSmartRef__":true,"id":2148},"name":"ObjectEditorRemoveConnectionButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":2149},"_Scale":1.0916059898444812,"renderContextTable":{"__isSmartRef__":true,"id":2150},"priorExtent":{"__isSmartRef__":true,"id":2151},"owner":{"__isSmartRef__":true,"id":1699},"eventHandler":{"__isSmartRef__":true,"id":2152},"__LivelyClassName__":"lively.morphic.Button"},"2108":{"submorphs":[],"scripts":[],"id":55,"shape":{"__isSmartRef__":true,"id":2109},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":25,"_MaxTextHeight":20,"fixedHeight":true,"allowsInput":false,"_OverflowMode":"visible","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2114},"textColor":{"__isSmartRef__":true,"id":2112},"owner":{"__isSmartRef__":true,"id":2107},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":2115}],"padding":{"__isSmartRef__":true,"id":2117},"_Padding":{"__isSmartRef__":true,"id":2118},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":2119},"_FontFamily":"Helvetica, Sans-Serif","renderContextTable":{"__isSmartRef__":true,"id":2120},"_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_Align":"center","eventHandler":{"__isSmartRef__":true,"id":2121},"__LivelyClassName__":"lively.morphic.Text"},"2109":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":2110},"_Extent":{"__isSmartRef__":true,"id":2111},"_BorderColor":{"__isSmartRef__":true,"id":2112},"renderContextTable":{"__isSmartRef__":true,"id":2113},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2110":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2111":{"x":25,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2112":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2113":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"2114":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2115":{"style":{"__isSmartRef__":true,"id":2116},"morph":{"__isSmartRef__":true,"id":2108},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk"},"2116":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"2117":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"2118":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"2119":{"x":25,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2120":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"2121":{"morph":{"__isSmartRef__":true,"id":2108},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2122":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":2123},"_Extent":{"__isSmartRef__":true,"id":2124},"_Fill":{"__isSmartRef__":true,"id":2125},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2135},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":2136},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2123":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2124":{"x":25,"y":20,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2125":{"stops":[{"__isSmartRef__":true,"id":2126},{"__isSmartRef__":true,"id":2128},{"__isSmartRef__":true,"id":2130},{"__isSmartRef__":true,"id":2132}],"vector":{"__isSmartRef__":true,"id":2134},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"2126":{"offset":0,"color":{"__isSmartRef__":true,"id":2127}},"2127":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2128":{"offset":0.4,"color":{"__isSmartRef__":true,"id":2129}},"2129":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2130":{"offset":0.6,"color":{"__isSmartRef__":true,"id":2131}},"2131":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2132":{"offset":1,"color":{"__isSmartRef__":true,"id":2133}},"2133":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2134":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"2135":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2136":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"2137":{"x":160,"y":313,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2138":{"stops":[{"__isSmartRef__":true,"id":2139},{"__isSmartRef__":true,"id":2141},{"__isSmartRef__":true,"id":2143},{"__isSmartRef__":true,"id":2145}],"vector":{"__isSmartRef__":true,"id":2134},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"2139":{"offset":0,"color":{"__isSmartRef__":true,"id":2140}},"2140":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2141":{"offset":0.4,"color":{"__isSmartRef__":true,"id":2142}},"2142":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2143":{"offset":0.6,"color":{"__isSmartRef__":true,"id":2144}},"2144":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2145":{"offset":1,"color":{"__isSmartRef__":true,"id":2146}},"2146":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2147":{"sourceObj":{"__isSmartRef__":true,"id":2107},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1699},"targetMethodName":"disconnectConnection","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2148":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"2149":{"partsSpaceName":"PartsBin/Inputs/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"Simple button. Connect to 'fire' to trigger actions when the button is pressed.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"2150":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"2151":{"x":30,"y":20,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2152":{"morph":{"__isSmartRef__":true,"id":2107},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2153":{"submorphs":[{"__isSmartRef__":true,"id":2154}],"scripts":[],"id":56,"shape":{"__isSmartRef__":true,"id":2168},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2183},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":2171},"lighterFill":{"__isSmartRef__":true,"id":2184},"label":{"__isSmartRef__":true,"id":2154},"attributeConnections":[{"__isSmartRef__":true,"id":2193}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","_Rotation":0,"padding":{"__isSmartRef__":true,"id":2195},"name":"ObjectEditorRemoveScriptButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":2196},"_Scale":1.0916059898444812,"renderContextTable":{"__isSmartRef__":true,"id":2197},"priorExtent":{"__isSmartRef__":true,"id":2198},"owner":{"__isSmartRef__":true,"id":1699},"eventHandler":{"__isSmartRef__":true,"id":2199},"__LivelyClassName__":"lively.morphic.Button"},"2154":{"submorphs":[],"scripts":[],"id":57,"shape":{"__isSmartRef__":true,"id":2155},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":25,"_MaxTextHeight":20,"fixedHeight":true,"allowsInput":false,"_OverflowMode":"visible","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2160},"textColor":{"__isSmartRef__":true,"id":2158},"owner":{"__isSmartRef__":true,"id":2153},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":2161}],"padding":{"__isSmartRef__":true,"id":2163},"_Padding":{"__isSmartRef__":true,"id":2164},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":2165},"_FontFamily":"Helvetica, Sans-Serif","renderContextTable":{"__isSmartRef__":true,"id":2166},"_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_Align":"center","eventHandler":{"__isSmartRef__":true,"id":2167},"__LivelyClassName__":"lively.morphic.Text"},"2155":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":2156},"_Extent":{"__isSmartRef__":true,"id":2157},"_BorderColor":{"__isSmartRef__":true,"id":2158},"renderContextTable":{"__isSmartRef__":true,"id":2159},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2156":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2157":{"x":25,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2158":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2159":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"2160":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2161":{"style":{"__isSmartRef__":true,"id":2162},"morph":{"__isSmartRef__":true,"id":2154},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"-","__LivelyClassName__":"lively.morphic.TextChunk"},"2162":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"2163":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"2164":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"2165":{"x":25,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2166":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"2167":{"morph":{"__isSmartRef__":true,"id":2154},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2168":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":2169},"_Extent":{"__isSmartRef__":true,"id":2170},"_Fill":{"__isSmartRef__":true,"id":2171},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2181},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":2182},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2169":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2170":{"x":25,"y":20,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2171":{"stops":[{"__isSmartRef__":true,"id":2172},{"__isSmartRef__":true,"id":2174},{"__isSmartRef__":true,"id":2176},{"__isSmartRef__":true,"id":2178}],"vector":{"__isSmartRef__":true,"id":2180},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"2172":{"offset":0,"color":{"__isSmartRef__":true,"id":2173}},"2173":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2174":{"offset":0.4,"color":{"__isSmartRef__":true,"id":2175}},"2175":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2176":{"offset":0.6,"color":{"__isSmartRef__":true,"id":2177}},"2177":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2178":{"offset":1,"color":{"__isSmartRef__":true,"id":2179}},"2179":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2180":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"2181":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2182":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"2183":{"x":160,"y":44,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2184":{"stops":[{"__isSmartRef__":true,"id":2185},{"__isSmartRef__":true,"id":2187},{"__isSmartRef__":true,"id":2189},{"__isSmartRef__":true,"id":2191}],"vector":{"__isSmartRef__":true,"id":2180},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"2185":{"offset":0,"color":{"__isSmartRef__":true,"id":2186}},"2186":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2187":{"offset":0.4,"color":{"__isSmartRef__":true,"id":2188}},"2188":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2189":{"offset":0.6,"color":{"__isSmartRef__":true,"id":2190}},"2190":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2191":{"offset":1,"color":{"__isSmartRef__":true,"id":2192}},"2192":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2193":{"sourceObj":{"__isSmartRef__":true,"id":2153},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1699},"targetMethodName":"deleteSelectedScript","__SourceModuleName__":"Global.lively.bindings","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":2194},"__LivelyClassName__":"AttributeConnection"},"2194":{"source":{"__isSmartRef__":true,"id":2153},"target":{"__isSmartRef__":true,"id":1699}},"2195":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"2196":{"partsSpaceName":"PartsBin/Inputs/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"Simple button. Connect to 'fire' to trigger actions when the button is pressed.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"2197":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"2198":{"x":30,"y":20,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2199":{"morph":{"__isSmartRef__":true,"id":2153},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2200":{"submorphs":[],"scripts":[],"id":58,"shape":{"__isSmartRef__":true,"id":2201},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2206},"_MaxTextWidth":246,"_MaxTextHeight":27,"textColor":{"__isSmartRef__":true,"id":2204},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Rotation":0,"name":"ObjectEditorMorphSelector","partsBinMetaInfo":{"__isSmartRef__":true,"id":2207},"textChunks":[{"__isSmartRef__":true,"id":2208}],"charsReplaced":"empty","lastFindLoc":-5,"priorSelectionRange":[7,7],"prevScroll":[0,0],"_Scale":1,"_ClipMode":"hidden","list":[],"attributeConnections":[{"__isSmartRef__":true,"id":2210},{"__isSmartRef__":true,"id":2212},{"__isSmartRef__":true,"id":2213}],"doNotSerialize":["$$selection","$$savedTextString"],"doNotCopyProperties":["$$selection","$$savedTextString"],"listMorph":null,"_WhiteSpaceHandling":"pre-wrap","owner":{"__isSmartRef__":true,"id":1699},"priorExtent":{"__isSmartRef__":true,"id":2214},"_Align":"left","renderContextTable":{"__isSmartRef__":true,"id":2215},"eventHandler":{"__isSmartRef__":true,"id":2216},"savedTextString":"100","selection":{"__isSmartRef__":true,"id":1699},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2217},"__LivelyClassName__":"lively.morphic.Text"},"2201":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":2202},"_Extent":{"__isSmartRef__":true,"id":2203},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2204},"renderContextTable":{"__isSmartRef__":true,"id":2205},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2202":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2203":{"x":246,"y":27,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2204":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2205":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"2206":{"x":200,"y":36.3,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2207":{"partsSpaceName":"PartsBin/Inputs/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"2208":{"style":{"__isSmartRef__":true,"id":2209},"morph":{"__isSmartRef__":true,"id":2200},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"ResizeCorner","__LivelyClassName__":"lively.morphic.TextChunk"},"2209":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"2210":{"sourceObj":{"__isSmartRef__":true,"id":2200},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":2200},"targetMethodName":"textString","converter":null,"converterString":"function (morph) { return morph.getName() }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":2211},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2211":{"source":{"__isSmartRef__":true,"id":2200},"target":{"__isSmartRef__":true,"id":2200}},"2212":{"sourceObj":{"__isSmartRef__":true,"id":2200},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":2200},"targetMethodName":"selection","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2213":{"sourceObj":{"__isSmartRef__":true,"id":2200},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":1699},"targetMethodName":"setTarget","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"2214":{"x":246,"y":27,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2215":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"2216":{"morph":{"__isSmartRef__":true,"id":2200},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2217":{"onMouseUp":{"__isSmartRef__":true,"id":2218},"getList":{"__isSmartRef__":true,"id":2225},"setList":{"__isSmartRef__":true,"id":2228},"reset":{"__isSmartRef__":true,"id":2231},"example":{"__isSmartRef__":true,"id":2234},"removeList":{"__isSmartRef__":true,"id":2237},"onBlur":{"__isSmartRef__":true,"id":2240},"createListMorph":{"__isSmartRef__":true,"id":2247},"resetConnections":{"__isSmartRef__":true,"id":2250}},"2218":{"varMapping":{"__isSmartRef__":true,"id":2219},"source":"function onMouseUp(evt) {\n if (evt.isCommandKey() || evt.isRightMouseButtonDown()) return $super(evt);\n if (this.listMorph) { this.removeList(); return true }\n var list = this.createListMorph();\n this.addMorph(list);\n list.align(list.bounds().topLeft(), this.shape.bounds().bottomLeft())\n connect(list, 'selection', this, 'selection');\n connect(list, 'selection', this, 'removeList');\n if (this.listMorph) this.listMorph.remove();\n this.listMorph = list;\n return true;\n}","funcProperties":{"__isSmartRef__":true,"id":2224},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2219":{"this":{"__isSmartRef__":true,"id":2200},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2220}},"2220":{"$super":{"__isSmartRef__":true,"id":2221}},"2221":{"varMapping":{"__isSmartRef__":true,"id":2222},"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":2223},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2222":{"obj":{"__isSmartRef__":true,"id":2200},"name":"onMouseUp"},"2223":{},"2224":{},"2225":{"varMapping":{"__isSmartRef__":true,"id":2226},"source":"function getList() {\n return this.world().indentedListItemsOfMorphNames();\n}","funcProperties":{"__isSmartRef__":true,"id":2227},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2226":{"this":{"__isSmartRef__":true,"id":2200}},"2227":{},"2228":{"varMapping":{"__isSmartRef__":true,"id":2229},"source":"function setList(list) {\n return this.list = list;\n}","funcProperties":{"__isSmartRef__":true,"id":2230},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2229":{"this":{"__isSmartRef__":true,"id":2200}},"2230":{},"2231":{"varMapping":{"__isSmartRef__":true,"id":2232},"source":"function reset() {\n this.list = [];\n this.textString = 'empty';\n this.removeList();\n this.resetConnections();\n this.applyStyle({fixedWidth: true, fixedHeight: true, borderWidth: 1, overflow: 'hidden'})\n}","funcProperties":{"__isSmartRef__":true,"id":2233},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2232":{"this":{"__isSmartRef__":true,"id":2200}},"2233":{},"2234":{"varMapping":{"__isSmartRef__":true,"id":2235},"source":"function example() {\n/*\nthis.example()\nthis.getList()\n*/\n this.setList(Array.range(0,100));\n this.textString = 'empty';\n}","funcProperties":{"__isSmartRef__":true,"id":2236},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2235":{"this":{"__isSmartRef__":true,"id":2200}},"2236":{},"2237":{"varMapping":{"__isSmartRef__":true,"id":2238},"source":"function removeList() {\n this.listMorph && this.listMorph.remove()\n this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":2239},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2238":{"this":{"__isSmartRef__":true,"id":2200}},"2239":{},"2240":{"varMapping":{"__isSmartRef__":true,"id":2241},"source":"function onBlur() {\n $super();\n this.removeList();\n}","funcProperties":{"__isSmartRef__":true,"id":2246},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2241":{"this":{"__isSmartRef__":true,"id":2200},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2242}},"2242":{"$super":{"__isSmartRef__":true,"id":2243}},"2243":{"varMapping":{"__isSmartRef__":true,"id":2244},"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":2245},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2244":{"obj":{"__isSmartRef__":true,"id":2200},"name":"onBlur"},"2245":{},"2246":{},"2247":{"varMapping":{"__isSmartRef__":true,"id":2248},"source":"function createListMorph() {\n return new lively.morphic.List(new Rectangle(0,0, this.getExtent().x, 520), this.getList());\n}","funcProperties":{"__isSmartRef__":true,"id":2249},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2248":{"this":{"__isSmartRef__":true,"id":2200}},"2249":{},"2250":{"varMapping":{"__isSmartRef__":true,"id":2251},"source":"function resetConnections() {\n disconnectAll(this);\n connect(this, 'selection', this, 'textString', {converter: function(morph) { return morph.getName() }});\n connect(this, 'savedTextString', this, 'selection');\n connect(this, \"selection\", this.owner, \"setTarget\");\n}","funcProperties":{"__isSmartRef__":true,"id":2252},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2251":{"this":{"__isSmartRef__":true,"id":2200}},"2252":{},"2253":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":2254},"_StrokeOpacity":0,"_BorderRadius":0,"_Extent":{"__isSmartRef__":true,"id":2255},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderColor":{"__isSmartRef__":true,"id":2256},"renderContextTable":{"__isSmartRef__":true,"id":2257},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2254":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"2255":{"x":1137,"y":584.2,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2256":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2257":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"2258":{"adjustForNewBounds":true},"2259":{"x":1137,"y":584.2,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2260":{"x":0,"y":22,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2261":{"a":1,"b":0,"c":0,"d":1,"e":377.6609726943286,"f":419.5142810783999,"__SourceModuleName__":"Global.lively.morphic.Core","__LivelyClassName__":"lively.morphic.Similitude"},"2262":{"x":861.5223196275833,"y":575.166499196892,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2263":{"x":2570,"y":409,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2264":{"x":377.6609726943286,"y":419.5142810783999,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2265":{"requiredModules":[],"migrationLevel":2,"partsSpaceName":"PartsBin/Tools","__SourceModuleName__":"Global.lively.PartsBin","comment":"Edit scripts and connections of a specific morph. Early version.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"2266":{"submorphs":[{"__isSmartRef__":true,"id":2267}],"scripts":[],"id":47,"shape":{"__isSmartRef__":true,"id":2280},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2295},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":2283},"lighterFill":{"__isSmartRef__":true,"id":2296},"label":{"__isSmartRef__":true,"id":2267},"attributeConnections":[{"__isSmartRef__":true,"id":2305}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","_Rotation":0,"padding":{"__isSmartRef__":true,"id":2306},"name":"ObjectEditorTargetButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":2307},"_Scale":1,"owner":null,"renderContextTable":{"__isSmartRef__":true,"id":2308},"isCopyMorphRef":true,"morphRefId":1,"__LivelyClassName__":"lively.morphic.Button"},"2267":{"submorphs":[],"scripts":[],"id":48,"shape":{"__isSmartRef__":true,"id":2268},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":116,"_MaxTextHeight":20,"fixedHeight":true,"allowsInput":false,"_OverflowMode":"visible","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2273},"textColor":{"__isSmartRef__":true,"id":2271},"owner":{"__isSmartRef__":true,"id":2266},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":2274}],"padding":{"__isSmartRef__":true,"id":2276},"_Padding":{"__isSmartRef__":true,"id":2277},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":2278},"_FontFamily":"Helvetica, Sans-Serif","_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_Align":"center","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":2279},"__LivelyClassName__":"lively.morphic.Text"},"2268":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":2269},"_Extent":{"__isSmartRef__":true,"id":2270},"_BorderColor":{"__isSmartRef__":true,"id":2271},"renderContextTable":{"__isSmartRef__":true,"id":2272},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2269":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2270":{"x":116,"y":20,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2271":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2272":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setOpacity":"setOpacityHTML"},"2273":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2274":{"style":{"__isSmartRef__":true,"id":2275},"morph":{"__isSmartRef__":true,"id":2267},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2275":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2276":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"2277":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"2278":{"x":116,"y":20,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2279":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"2280":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":2281},"_Extent":{"__isSmartRef__":true,"id":2282},"_Fill":{"__isSmartRef__":true,"id":2283},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2293},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":2294},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2281":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2282":{"x":116,"y":20,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2283":{"stops":[{"__isSmartRef__":true,"id":2284},{"__isSmartRef__":true,"id":2286},{"__isSmartRef__":true,"id":2288},{"__isSmartRef__":true,"id":2290}],"vector":{"__isSmartRef__":true,"id":2292},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"2284":{"offset":0,"color":{"__isSmartRef__":true,"id":2285}},"2285":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2286":{"offset":0.4,"color":{"__isSmartRef__":true,"id":2287}},"2287":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2288":{"offset":0.6,"color":{"__isSmartRef__":true,"id":2289}},"2289":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2290":{"offset":1,"color":{"__isSmartRef__":true,"id":2291}},"2291":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2292":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"2293":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2294":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setOpacity":"setOpacityHTML"},"2295":{"x":215,"y":35,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2296":{"stops":[{"__isSmartRef__":true,"id":2297},{"__isSmartRef__":true,"id":2299},{"__isSmartRef__":true,"id":2301},{"__isSmartRef__":true,"id":2303}],"vector":{"__isSmartRef__":true,"id":2292},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"2297":{"offset":0,"color":{"__isSmartRef__":true,"id":2298}},"2298":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2299":{"offset":0.4,"color":{"__isSmartRef__":true,"id":2300}},"2300":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2301":{"offset":0.6,"color":{"__isSmartRef__":true,"id":2302}},"2302":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2303":{"offset":1,"color":{"__isSmartRef__":true,"id":2304}},"2304":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"2305":{"sourceObj":{"__isSmartRef__":true,"id":2266},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1699},"targetMethodName":"chooseTargetMorphMenu","__SourceModuleName__":"Global.lively.bindings","converter":null,"converterString":null,"updater":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection"},"2306":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"2307":{"partsSpaceName":"PartsBin/Inputs/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"Simple button. Connect to 'fire' to trigger actions when the button is pressed.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"2308":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"2309":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"2310":{"x":1912,"y":394.4,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2311":{"morph":{"__isSmartRef__":true,"id":1699},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2312":{"sortedScriptNamesOfObj":{"__isSmartRef__":true,"id":2313},"setTarget":{"__isSmartRef__":true,"id":2316},"generateSourceForScript":{"__isSmartRef__":true,"id":2319},"generateSourceForConnection":{"__isSmartRef__":true,"id":2322},"generateTargetCode":{"__isSmartRef__":true,"id":2325},"sortedConnectionNamesOfObj":{"__isSmartRef__":true,"id":2328},"displayJavaScriptSource":{"__isSmartRef__":true,"id":2331},"displaySourceForScript":{"__isSmartRef__":true,"id":2334},"displaySourceForConnection":{"__isSmartRef__":true,"id":2337},"updateConnectionListOnChanges":{"__isSmartRef__":true,"id":2340},"newScript":{"__isSmartRef__":true,"id":2343},"newConnection":{"__isSmartRef__":true,"id":2346},"deleteSelectedScript":{"__isSmartRef__":true,"id":2349},"disconnectConnection":{"__isSmartRef__":true,"id":2352},"updateLists":{"__isSmartRef__":true,"id":2355},"displayInitialScript":{"__isSmartRef__":true,"id":2358},"reset":{"__isSmartRef__":true,"id":2361}},"2313":{"varMapping":{"__isSmartRef__":true,"id":2314},"source":"function sortedScriptNamesOfObj(obj) {\n if (!Functions.own(obj) || Functions.own(obj).size() == 0) return [];\n return Functions.own(obj)\n\t.select(function(name) { return obj[name].hasLivelyClosure })\n\t.sortBy(function(name) { return name.toLowerCase() });\n}","funcProperties":{"__isSmartRef__":true,"id":2315},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2314":{"this":{"__isSmartRef__":true,"id":1699}},"2315":{},"2316":{"varMapping":{"__isSmartRef__":true,"id":2317},"source":"function setTarget(morph) {\n this.reset();\n module('lively.ide.SyntaxHighlighting').load(true);\n this.target = morph;\n this.morphSelector.textString = (this.target.getName() || this.target.toString());\n this.scriptPane.doitContext = this.target;\n this.updateLists();\n this.displayInitialScript();\n this.updateConnectionListOnChanges();\n}","funcProperties":{"__isSmartRef__":true,"id":2318},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2317":{"this":{"__isSmartRef__":true,"id":1699}},"2318":{},"2319":{"varMapping":{"__isSmartRef__":true,"id":2320},"source":"function generateSourceForScript(scriptName) {\n var script = this.target[scriptName].getOriginal();\n return Strings.format('this.addScript(%s);' ,script)\n}","funcProperties":{"__isSmartRef__":true,"id":2321},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2320":{"this":{"__isSmartRef__":true,"id":1699}},"2321":{},"2322":{"varMapping":{"__isSmartRef__":true,"id":2323},"source":"function generateSourceForConnection(connection) {\n var c = connection, 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":2324},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2323":{"this":{"__isSmartRef__":true,"id":1699}},"2324":{},"2325":{"varMapping":{"__isSmartRef__":true,"id":2326},"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":2327},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2326":{"this":{"__isSmartRef__":true,"id":1699}},"2327":{},"2328":{"varMapping":{"__isSmartRef__":true,"id":2329},"source":"function sortedConnectionNamesOfObj(obj) {\n if (\"attributeConnections\" in obj) {\n return obj.attributeConnections\n .sortBy(function(each) {return name.toLowerCase() })\n .collect(function(each) {return [each.getSourceAttrName(), each]});\n } else {\n return [];\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2330},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2329":{"this":{"__isSmartRef__":true,"id":1699}},"2330":{},"2331":{"varMapping":{"__isSmartRef__":true,"id":2332},"source":"function displayJavaScriptSource(jsCode) {\n this.scriptPane.setTextString(jsCode);\n this.scriptPane.highlightJavaScriptSyntax();\n}","funcProperties":{"__isSmartRef__":true,"id":2333},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2332":{"this":{"__isSmartRef__":true,"id":1699}},"2333":{},"2334":{"varMapping":{"__isSmartRef__":true,"id":2335},"source":"function displaySourceForScript(scriptName) {\n if (!scriptName) return;\n var code = \"\", that = this;\n if (scriptName === \"-- ALL --\") {\n this.sortedScriptNamesOfObj(this.target).forEach(function(each) {\n code = code.concat(that.generateSourceForScript(each)).concat(\"\\n\\n\");\n });\n } else {\n code = this.generateSourceForScript(scriptName); \n }\n this.displayJavaScriptSource(code);\n}","funcProperties":{"__isSmartRef__":true,"id":2336},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2335":{"this":{"__isSmartRef__":true,"id":1699}},"2336":{},"2337":{"varMapping":{"__isSmartRef__":true,"id":2338},"source":"function displaySourceForConnection(connection) {\n if (!connection) return;\n var code = \"\", that = this;\n if ((typeof connection === \"string\") && connection === \"-- ALL --\") {\n this.sortedConnectionNamesOfObj(this.target).forEach(function(each) {\n code = code.concat(that.generateSourceForConnection(each[1])).concat(\"\\n\\n\");\n })\n } else {\n code = this.generateSourceForConnection(connection);\n }\n this.displayJavaScriptSource(code);\n}","funcProperties":{"__isSmartRef__":true,"id":2339},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2338":{"this":{"__isSmartRef__":true,"id":1699}},"2339":{},"2340":{"varMapping":{"__isSmartRef__":true,"id":2341},"source":"function updateConnectionListOnChanges() {\n if (!this.target.hasOwnProperty(\"onConnect\")) {\n this.target.onConnect = function() {\n if (this.currentEditor) this.currentEditor.updateLists();\n }\n }\n if (!this.target.hasOwnProperty(\"onDisconnect\")) {\n this.target.onDisconnect = function() {\n if (this.currentEditor) this.currentEditor.updateLists();\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2342},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2341":{"this":{"__isSmartRef__":true,"id":1699}},"2342":{},"2343":{"varMapping":{"__isSmartRef__":true,"id":2344},"source":"function newScript() {\n if (this.target) {\n var code = \"this.addScript(function SCRIPTNAME() {\\n\\t\\n});\";\n this.displayJavaScriptSource(code);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2345},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2344":{"this":{"__isSmartRef__":true,"id":1699}},"2345":{},"2346":{"varMapping":{"__isSmartRef__":true,"id":2347},"source":"function newConnection() {\n if (this.target) {\n var code = \"connect(SOURCE, SOURCE_PROPERTY, TARGET, TARGET_PROPERTY);\";\n this.displayJavaScriptSource(code);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2348},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2347":{"this":{"__isSmartRef__":true,"id":1699}},"2348":{},"2349":{"varMapping":{"__isSmartRef__":true,"id":2350},"source":"function deleteSelectedScript() {\n if (this.scriptList.selection && this.target) {\n if (!this.target.hasOwnProperty(this.scriptList.selection)) return;\n delete this.target[this.scriptList.selection];\n this.updateLists();\n this.displayInitialScript();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2351},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2350":{"this":{"__isSmartRef__":true,"id":1699}},"2351":{},"2352":{"varMapping":{"__isSmartRef__":true,"id":2353},"source":"function disconnectConnection() {\n var selection = this.connectionList.selection;\n if (selection && \n (typeof selection !== \"string\") &&\n this.target.attributeConnections.indexOf(selection[1]) > -1) {\n var c = this.connectionList.selection[1];\n disconnect(c.sourceObj, c.sourceAttrName, c.targetObj, c.targetMethodName);\n this.updateLists();\n this.displayInitialScript();\n } \n}","funcProperties":{"__isSmartRef__":true,"id":2354},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2353":{"this":{"__isSmartRef__":true,"id":1699}},"2354":{},"2355":{"varMapping":{"__isSmartRef__":true,"id":2356},"source":"function updateLists() {\n this.scriptList.setList(this.sortedScriptNamesOfObj(this.target));\n var scriptListItems = this.scriptList.getList();\n scriptListItems.unshift(\"-- ALL --\");\n this.scriptList.setList(scriptListItems);\n\n this.connectionList.setList(this.sortedConnectionNamesOfObj(this.target));\n var connectionListItems = this.connectionList.getList();\n connectionListItems.unshift(\"-- ALL --\");\n this.connectionList.setList(connectionListItems);\n}","funcProperties":{"__isSmartRef__":true,"id":2357},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2356":{"this":{"__isSmartRef__":true,"id":1699}},"2357":{},"2358":{"varMapping":{"__isSmartRef__":true,"id":2359},"source":"function displayInitialScript() {\n if (this.scriptList.getList().size() > 1) {\n this.scriptList.selectAt(0);\n } else if (this.connectionList.getList().size() > 1) {\n this.connectionList.selectAt(0);\n } else {\n this.scriptList.selectAt(0);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2360},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2359":{"this":{"__isSmartRef__":true,"id":1699}},"2360":{},"2361":{"varMapping":{"__isSmartRef__":true,"id":2362},"source":"function reset() {\n this.target = null;\n this.scriptPane.doitContext = null;\n this.scriptList.setList();\n this.connectionList.setList();\n this.scriptPane.setTextString(\"\");\n this.morphSelector.reset();\n}","funcProperties":{"__isSmartRef__":true,"id":2363},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"2362":{"this":{"__isSmartRef__":true,"id":1699}},"2363":{},"2364":{"submorphs":[],"scripts":[],"id":226,"shape":{"__isSmartRef__":true,"id":2365},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":false,"registeredForMouseEvents":true,"_world":{"__isSmartRef__":true,"id":0},"_Position":{"__isSmartRef__":true,"id":2370},"owner":{"__isSmartRef__":true,"id":0},"__SourceModuleName__":"Global.lively.morphic.Events","carriesGrabbedMorphs":false,"_Rotation":0,"_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":2371},"eventHandler":{"__isSmartRef__":true,"id":2372},"__LivelyClassName__":"lively.morphic.HandMorph"},"2365":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":2366},"_Extent":{"__isSmartRef__":true,"id":2367},"_Fill":{"__isSmartRef__":true,"id":2368},"renderContextTable":{"__isSmartRef__":true,"id":2369},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2366":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2367":{"x":2,"y":2,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2368":{"r":0.8,"g":0,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"2369":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"2370":{"x":567,"y":718,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2371":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"2372":{"morph":{"__isSmartRef__":true,"id":2364},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2373":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":2374},"_Extent":{"__isSmartRef__":true,"id":2375},"_Fill":{"__isSmartRef__":true,"id":2376},"renderContextTable":{"__isSmartRef__":true,"id":2377},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2374":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2375":{"x":10000,"y":10000,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2376":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"2377":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"2378":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"2379":{"submorphs":[],"scripts":[],"id":161,"renderContextTable":{"__isSmartRef__":true,"id":2380},"textChunks":[{"__isSmartRef__":true,"id":2381}],"shape":{"__isSmartRef__":true,"id":2383},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":2389},"_ClipMode":"visible","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","eventHandler":{"__isSmartRef__":true,"id":2390},"_Position":{"__isSmartRef__":true,"id":2391},"priorExtent":{"__isSmartRef__":true,"id":2392},"_MaxTextWidth":null,"_MaxTextHeight":28,"evalEnabled":false,"_HandStyle":"default","_TextColor":{"__isSmartRef__":true,"id":2393},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2394},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2380":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","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"},"2381":{"style":{"__isSmartRef__":true,"id":2382},"morph":{"__isSmartRef__":true,"id":2379},"storedString":"save world","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2382":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2383":{"_Position":{"__isSmartRef__":true,"id":2384},"renderContextTable":{"__isSmartRef__":true,"id":2385},"_Extent":{"__isSmartRef__":true,"id":2386},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2387},"_Fill":{"__isSmartRef__":true,"id":2388},"_BorderRadius":8,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"2384":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2385":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"2386":{"x":220,"y":28,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2387":{"r":0,"g":0,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"2388":{"r":0,"g":0.309,"b":0.595,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"2389":{"x":3,"y":3,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"2390":{"morph":{"__isSmartRef__":true,"id":2379},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2391":{"x":0,"y":252,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2392":{"x":220,"y":28,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2393":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"2394":{"onMouseWheel":{"__isSmartRef__":true,"id":2395}},"2395":{"varMapping":{"__isSmartRef__":true,"id":2396},"source":"function onMouseWheel(evt) {\n return false; // to allow scrolling\n }","funcProperties":{"__isSmartRef__":true,"id":2401},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2396":{"this":{"__isSmartRef__":true,"id":2379},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2397}},"2397":{"$super":{"__isSmartRef__":true,"id":2398}},"2398":{"varMapping":{"__isSmartRef__":true,"id":2399},"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":2400},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"2399":{"obj":{"__isSmartRef__":true,"id":2379},"name":"onMouseWheel"},"2400":{},"2401":{},"2402":{"name":"Local code","__LivelyClassName__":"ChangeSet","__SourceModuleName__":"Global.lively.ChangeSet"},"2403":{"sourceObj":{"__isSmartRef__":true,"id":0},"sourceAttrName":"savedWorldAsURL","targetObj":{"__isSmartRef__":true,"id":0},"targetMethodName":"visitNewPageAfterSaveAs","converter":null,"converterString":null,"updaterString":"function ($upd, v) { \n if (v && v.toString() !== URL.source.toString()) {\n $upd(v) \n }\n }","__SourceModuleName__":"Global.lively.bindings","varMapping":{"__isSmartRef__":true,"id":2404},"updater":null,"__LivelyClassName__":"AttributeConnection"},"2404":{"source":{"__isSmartRef__":true,"id":0},"target":{"__isSmartRef__":true,"id":0}},"2405":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"2406":{"morph":{"__isSmartRef__":true,"id":0},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2407":{"x":565,"y":716,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"2408":{"x":2800,"y":2900,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"isSimplifiedRegistry":true}}]]>