{"id":0,"registry":{"0":{"submorphs":[{"__isSmartRef__":true,"id":1}],"scripts":[],"id":522,"shape":{"__isSmartRef__":true,"id":23},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":29},"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":30},"__SourceModuleName__":"Global.lively.morphic.Core","__layered_draggingEnabled__":true,"dropColor":{"__isSmartRef__":true,"id":31},"priorExtent":{"__isSmartRef__":true,"id":32},"attributeConnections":[{"__isSmartRef__":true,"id":33}],"doNotSerialize":["$$name"],"doNotCopyProperties":["$$name"],"_traitConfig_":{"__isSmartRef__":true,"id":34},"renderContextTable":{"__isSmartRef__":true,"id":36},"eventHandler":{"__isSmartRef__":true,"id":37},"name":"InvisibleBehavior","_Rotation":0,"_Scale":1.002003004005006,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":38},"__LivelyClassName__":"lively.morphic.Box"},"1":{"submorphs":[],"scripts":[],"id":523,"shape":{"__isSmartRef__":true,"id":2},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":7},"_MaxTextWidth":73.8018403394826,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":5},"showsHalos":false,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"NameLabel","partsBinMetaInfo":{"__isSmartRef__":true,"id":8},"textChunks":[{"__isSmartRef__":true,"id":9}],"charsReplaced":"Grr","lastFindLoc":-3,"priorSelectionRange":[0,13],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":11},"attributeConnections":[{"__isSmartRef__":true,"id":12},{"__isSmartRef__":true,"id":13}],"doNotSerialize":["$$owner","$$savedTextString"],"doNotCopyProperties":["$$owner","$$savedTextString"],"oldOwner":{"__isSmartRef__":true,"id":0},"isInputLine":true,"eventsAreIgnored":true,"renderContextTable":{"__isSmartRef__":true,"id":14},"eventHandler":{"__isSmartRef__":true,"id":15},"_HandStyle":"default","_PointerEvents":"none","owner":{"__isSmartRef__":true,"id":0},"savedTextString":"TopLeft","_Rotation":0,"_Scale":1.0030060100150207,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16},"__LivelyClassName__":"lively.morphic.Text"},"2":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":3},"_Extent":{"__isSmartRef__":true,"id":4},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":5},"renderContextTable":{"__isSmartRef__":true,"id":6},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"4":{"x":73.8018403394826,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"6":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"7":{"x":5,"y":16,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"8":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"Label that shows the name of a morph. Updates automatically.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"9":{"style":{"__isSmartRef__":true,"id":10},"chunkOwner":{"__isSmartRef__":true,"id":1},"storedString":"InvisibleBehavior","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11":{"x":73.8018403394826,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12":{"sourceObj":{"__isSmartRef__":true,"id":1},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":1},"targetMethodName":"updateLabel","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"13":{"sourceObj":{"__isSmartRef__":true,"id":1},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":1},"targetMethodName":"renameOwner","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"14":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","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"},"15":{"morph":{"__isSmartRef__":true,"id":1},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16":{"updateLabel":{"__isSmartRef__":true,"id":17},"renameOwner":{"__isSmartRef__":true,"id":20}},"17":{"varMapping":{"__isSmartRef__":true,"id":18},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tif (this.oldOwner)\n\t\t\tdisconnect(this.oldOwner, 'name', this, 'updateLabel')\n\t\tif (this.owner)\n\t\t\tconnect(this.owner, 'name', this, 'updateLabel')\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar name = (this.owner ? this.owner.name : \"no owner\")\n\tif (this.textString != name)\n\tthis.setTextString(name)\n}","funcProperties":{"__isSmartRef__":true,"id":19},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"18":{"this":{"__isSmartRef__":true,"id":1}},"19":{},"20":{"varMapping":{"__isSmartRef__":true,"id":21},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":22},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"21":{"this":{"__isSmartRef__":true,"id":1}},"22":{},"23":{"position":{"__isSmartRef__":true,"id":24},"_Extent":{"__isSmartRef__":true,"id":25},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":26},"_Fill":{"__isSmartRef__":true,"id":27},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderRadius":20.71,"renderContextTable":{"__isSmartRef__":true,"id":28},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"24":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"25":{"x":92,"y":45,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"26":{"r":0.113,"g":0,"b":0.599,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"27":{"r":0.8,"g":0.8,"b":0.8,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"28":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"29":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"30":{"partsSpaceName":"PartsBin/DroppableBehaviors/","__SourceModuleName__":"Global.lively.PartsBin","comment":"A simple box morph","migrationLevel":4,"partName":"InvisibleBehavior","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"31":{"r":0.619,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"32":{"x":92,"y":43,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"33":{"sourceObj":{"__isSmartRef__":true,"id":0},"sourceAttrName":"name","targetObj":{"__isSmartRef__":true,"id":1},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"34":{"options":{"__isSmartRef__":true,"id":35}},"35":{"override":["onDragStart","onDragEnd","dropOn"]},"36":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"37":{"morph":{"__isSmartRef__":true,"id":0},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"38":{"applyTo":{"__isSmartRef__":true,"id":39},"reset":{"__isSmartRef__":true,"id":42},"onLoadFromPartsBin":{"__isSmartRef__":true,"id":45}},"39":{"varMapping":{"__isSmartRef__":true,"id":40},"source":"function applyTo(morph) {\n\t// this.targets.morph.\n\tmorph.setVisible(false)\n}","funcProperties":{"__isSmartRef__":true,"id":41},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"40":{"this":{"__isSmartRef__":true,"id":0}},"41":{},"42":{"varMapping":{"__isSmartRef__":true,"id":43},"source":"function reset() {\n\tthis.applyStyle({enableDragging: true})\n}","funcProperties":{"__isSmartRef__":true,"id":44},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"43":{"this":{"__isSmartRef__":true,"id":0}},"44":{},"45":{"varMapping":{"__isSmartRef__":true,"id":46},"source":"function onLoadFromPartsBin() {\n\t$super();\n\tTrait('lively.morphic.DraggableBehavior').applyTo(this, {override: ['onDragStart', 'onDragEnd', 'dropOn']});\n}","funcProperties":{"__isSmartRef__":true,"id":51},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"46":{"this":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":47}},"47":{"$super":{"__isSmartRef__":true,"id":48}},"48":{"varMapping":{"__isSmartRef__":true,"id":49},"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":50},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"49":{"obj":{"__isSmartRef__":true,"id":0},"name":"onLoadFromPartsBin"},"50":{},"51":{},"isSimplifiedRegistry":true}}