{"id":0,"registry":{"0":{"submorphs":[{"__isSmartRef__":true,"id":1}],"scripts":[],"id":96,"shape":{"__isSmartRef__":true,"id":24},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":30},"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":31},"__SourceModuleName__":"Global.lively.morphic.Core","__layered_draggingEnabled__":true,"dropColor":{"__isSmartRef__":true,"id":32},"priorExtent":{"__isSmartRef__":true,"id":33},"attributeConnections":[{"__isSmartRef__":true,"id":34}],"doNotSerialize":["$$name"],"doNotCopyProperties":["$$name"],"_traitConfig_":{"__isSmartRef__":true,"id":35},"renderContextTable":{"__isSmartRef__":true,"id":37},"eventHandler":{"__isSmartRef__":true,"id":38},"scriptAnnotations":{"__isSmartRef__":true,"id":39},"name":"ThrobbingBehavior","_Rotation":0,"_Scale":1.002003004005006,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":44},"__LivelyClassName__":"lively.morphic.Box"},"1":{"submorphs":[],"scripts":[],"id":97,"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":93.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,0],"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","distanceToDragEvent":{"__isSmartRef__":true,"id":16},"owner":{"__isSmartRef__":true,"id":0},"savedTextString":"TopLeft","_Rotation":0,"_Scale":1.0030060100150207,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17},"__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":93.8018403394826,"y":24,"__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":14,"y":11,"__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":"ThrobbingBehavior","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11":{"x":93.8018403394826,"y":24,"__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":{"x":78,"y":-15,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"17":{"updateLabel":{"__isSmartRef__":true,"id":18},"renameOwner":{"__isSmartRef__":true,"id":21}},"18":{"varMapping":{"__isSmartRef__":true,"id":19},"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":20},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"19":{"this":{"__isSmartRef__":true,"id":1}},"20":{},"21":{"varMapping":{"__isSmartRef__":true,"id":22},"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":23},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"22":{"this":{"__isSmartRef__":true,"id":1}},"23":{},"24":{"position":{"__isSmartRef__":true,"id":25},"_Extent":{"__isSmartRef__":true,"id":26},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":27},"_Fill":{"__isSmartRef__":true,"id":28},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderRadius":20.71,"renderContextTable":{"__isSmartRef__":true,"id":29},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"25":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"26":{"x":122,"y":34,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"27":{"r":0.113,"g":0,"b":0.599,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"28":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"29":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"30":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"31":{"partsSpaceName":"PartsBin/DroppableBehaviors/","__SourceModuleName__":"Global.lively.PartsBin","comment":"A simple box morph","migrationLevel":4,"partName":"ThrobbingBehavior","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"32":{"r":0,"g":0.309,"b":0.595,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"33":{"x":122,"y":35,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"34":{"sourceObj":{"__isSmartRef__":true,"id":0},"sourceAttrName":"name","targetObj":{"__isSmartRef__":true,"id":1},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","converter":null,"converterString":null,"updater":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection"},"35":{"options":{"__isSmartRef__":true,"id":36}},"36":{"override":["onDragStart","onDragEnd"]},"37":{"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"},"38":{"morph":{"__isSmartRef__":true,"id":0},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"39":{"applyTo":{"__isSmartRef__":true,"id":40},"reset":{"__isSmartRef__":true,"id":42}},"40":{"time":{"__isSmartRef__":true,"id":41},"user":"robertkrahn"},"41":{"isSerializedDate":true,"string":"Fri Jul 01 2011 18:24:39 GMT-0700 (PDT)"},"42":{"time":{"__isSmartRef__":true,"id":43},"user":"robertkrahn"},"43":{"isSerializedDate":true,"string":"Fri Jul 01 2011 18:24:47 GMT-0700 (PDT)"},"44":{"applyTo":{"__isSmartRef__":true,"id":45},"reset":{"__isSmartRef__":true,"id":48},"setupConnections":{"__isSmartRef__":true,"id":51},"onLoadFromPartsBin":{"__isSmartRef__":true,"id":54}},"45":{"varMapping":{"__isSmartRef__":true,"id":46},"source":"function applyTo(morph) {\n    morph.addScript(function throb() {\n        this.scaleBy(this.getScale() <= 1 ? 2 : 0.9);\n    });\n    morph.startStepping(100, 'throb');\n}","funcProperties":{"__isSmartRef__":true,"id":47},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"46":{"this":{"__isSmartRef__":true,"id":0}},"47":{},"48":{"varMapping":{"__isSmartRef__":true,"id":49},"source":"function reset() {\n\tthis.applyStyle({enableDragging: true})\n}","funcProperties":{"__isSmartRef__":true,"id":50},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"49":{"this":{"__isSmartRef__":true,"id":0}},"50":{},"51":{"varMapping":{"__isSmartRef__":true,"id":52},"source":"function setupConnections() {\n}","funcProperties":{"__isSmartRef__":true,"id":53},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"52":{"this":{"__isSmartRef__":true,"id":0}},"53":{},"54":{"varMapping":{"__isSmartRef__":true,"id":55},"source":"function onLoadFromPartsBin() {\n\t$super();\n\tTrait('lively.morphic.DraggableBehavior').applyTo(this, {override: ['onDragStart', 'onDragEnd']});\n}","funcProperties":{"__isSmartRef__":true,"id":60},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"55":{"this":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":56}},"56":{"$super":{"__isSmartRef__":true,"id":57}},"57":{"varMapping":{"__isSmartRef__":true,"id":58},"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":59},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"58":{"obj":{"__isSmartRef__":true,"id":0},"name":"onLoadFromPartsBin"},"59":{},"60":{},"isSimplifiedRegistry":true}}