{"id":0,"registry":{"0":{"submorphs":[{"__isSmartRef__":true,"id":1},{"__isSmartRef__":true,"id":20},{"__isSmartRef__":true,"id":42},{"__isSmartRef__":true,"id":61}],"scripts":[],"id":1647,"shape":{"__isSmartRef__":true,"id":77},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":83},"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":84},"__SourceModuleName__":"Global.lively.morphic.Core","__layered_draggingEnabled__":true,"dropColor":{"__isSmartRef__":true,"id":66},"priorExtent":{"__isSmartRef__":true,"id":85},"attributeConnections":[{"__isSmartRef__":true,"id":86}],"doNotSerialize":["$$name"],"doNotCopyProperties":["$$name"],"_traitConfig_":{"__isSmartRef__":true,"id":87},"renderContextTable":{"__isSmartRef__":true,"id":89},"eventHandler":{"__isSmartRef__":true,"id":90},"scriptAnnotations":{"__isSmartRef__":true,"id":91},"name":"GradientBehavior","_Rotation":0,"_Scale":1.0040100200350561,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":96},"__LivelyClassName__":"lively.morphic.Box"},"1":{"submorphs":[],"scripts":[],"id":1648,"shape":{"__isSmartRef__":true,"id":2},"__layered_droppingEnabled__":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":8},"showsHalos":false,"name":"colorField1","partsBinMetaInfo":{"__isSmartRef__":true,"id":9},"__SourceModuleName__":"Global.lively.morphic.ColorChooserDraft","owner":{"__isSmartRef__":true,"id":0},"attributeConnections":[{"__isSmartRef__":true,"id":10}],"doNotSerialize":["$$color"],"doNotCopyProperties":["$$color"],"priorExtent":{"__isSmartRef__":true,"id":15},"renderContextTable":{"__isSmartRef__":true,"id":16},"eventHandler":{"__isSmartRef__":true,"id":17},"distanceToDragEvent":{"__isSmartRef__":true,"id":18},"color":{"__isSmartRef__":true,"id":19},"_Rotation":0,"_Scale":1,"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.ColorField"},"2":{"position":{"__isSmartRef__":true,"id":3},"_Extent":{"__isSmartRef__":true,"id":4},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5},"_Fill":{"__isSmartRef__":true,"id":6},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":7},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"4":{"x":20,"y":12,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"5":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"6":{"r":0.9829487179487176,"g":1,"b":0.050000000000000044,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"7":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"8":{"x":77,"y":5,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"9":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","requiredModules":["lively.morphic.ColorChooserDraft"],"migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"10":{"sourceObj":{"__isSmartRef__":true,"id":1},"sourceAttrName":"color","targetObj":{"__isSmartRef__":true,"id":0},"targetMethodName":"setGradient","converterString":"function (color) {\n            var stops = this.targetObj.dropColor.stops;\n            stops[0].color = color;\n            return new lively.morphic.LinearGradient(stops);\n        }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":11},"__SourceModuleName__":"Global.lively.bindings","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12},"__LivelyClassName__":"AttributeConnection"},"11":{"source":{"__isSmartRef__":true,"id":1},"target":{"__isSmartRef__":true,"id":0}},"12":{"converter":{"__isSmartRef__":true,"id":13}},"13":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":11},"source":"function (color) {\n            var stops = this.targetObj.dropColor.stops;\n            stops[0].color = color;\n            return new lively.morphic.LinearGradient(stops);\n        }","funcProperties":{"__isSmartRef__":true,"id":14},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"14":{},"15":{"x":21,"y":12,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"16":{"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"},"17":{"morph":{"__isSmartRef__":true,"id":1},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"18":{"x":60,"y":-11,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"19":{"r":0.9829487179487176,"g":1,"b":0.050000000000000044,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"20":{"submorphs":[],"scripts":[],"id":1649,"shape":{"__isSmartRef__":true,"id":21},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":26},"_MaxTextWidth":73.8018403394826,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":24},"showsHalos":false,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"NameLabel","partsBinMetaInfo":{"__isSmartRef__":true,"id":27},"textChunks":[{"__isSmartRef__":true,"id":28}],"charsReplaced":"Grr","lastFindLoc":-3,"priorSelectionRange":[0,13],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":30},"attributeConnections":[{"__isSmartRef__":true,"id":31},{"__isSmartRef__":true,"id":32}],"doNotSerialize":["$$owner","$$savedTextString"],"doNotCopyProperties":["$$owner","$$savedTextString"],"oldOwner":{"__isSmartRef__":true,"id":0},"isInputLine":true,"eventsAreIgnored":true,"renderContextTable":{"__isSmartRef__":true,"id":33},"eventHandler":{"__isSmartRef__":true,"id":34},"_HandStyle":"default","_PointerEvents":"none","owner":{"__isSmartRef__":true,"id":0},"savedTextString":"TopLeft","_Rotation":0,"_Scale":1.0030060100150207,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":35},"__LivelyClassName__":"lively.morphic.Text"},"21":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":22},"_Extent":{"__isSmartRef__":true,"id":23},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24},"renderContextTable":{"__isSmartRef__":true,"id":25},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"22":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"23":{"x":73.8018403394826,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"24":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"25":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"26":{"x":13,"y":31,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"27":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"Label that shows the name of a morph. Updates automatically.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"28":{"style":{"__isSmartRef__":true,"id":29},"chunkOwner":{"__isSmartRef__":true,"id":20},"storedString":"GradientBehavior","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"29":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"30":{"x":73.8018403394826,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"31":{"sourceObj":{"__isSmartRef__":true,"id":20},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":20},"targetMethodName":"updateLabel","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"32":{"sourceObj":{"__isSmartRef__":true,"id":20},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":20},"targetMethodName":"renameOwner","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"33":{"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"},"34":{"morph":{"__isSmartRef__":true,"id":20},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"35":{"updateLabel":{"__isSmartRef__":true,"id":36},"renameOwner":{"__isSmartRef__":true,"id":39}},"36":{"varMapping":{"__isSmartRef__":true,"id":37},"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":38},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"37":{"this":{"__isSmartRef__":true,"id":20}},"38":{},"39":{"varMapping":{"__isSmartRef__":true,"id":40},"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":41},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"40":{"this":{"__isSmartRef__":true,"id":20}},"41":{},"42":{"submorphs":[],"scripts":[],"id":1650,"shape":{"__isSmartRef__":true,"id":43},"__layered_droppingEnabled__":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":49},"showsHalos":false,"name":"colorField2","partsBinMetaInfo":{"__isSmartRef__":true,"id":50},"__SourceModuleName__":"Global.lively.morphic.ColorChooserDraft","attributeConnections":[{"__isSmartRef__":true,"id":51}],"doNotSerialize":["$$color"],"doNotCopyProperties":["$$color"],"priorExtent":{"__isSmartRef__":true,"id":56},"renderContextTable":{"__isSmartRef__":true,"id":57},"eventHandler":{"__isSmartRef__":true,"id":58},"distanceToDragEvent":{"__isSmartRef__":true,"id":59},"owner":{"__isSmartRef__":true,"id":0},"color":{"__isSmartRef__":true,"id":60},"_Rotation":0,"_Scale":1,"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.ColorField"},"43":{"position":{"__isSmartRef__":true,"id":44},"_Extent":{"__isSmartRef__":true,"id":45},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":46},"_Fill":{"__isSmartRef__":true,"id":47},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":48},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"44":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"45":{"x":20,"y":12,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"46":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"47":{"r":0,"g":0.1735042735042738,"b":0.33333333333333337,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"48":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"49":{"x":77,"y":18,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"50":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","requiredModules":["lively.morphic.ColorChooserDraft"],"migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"51":{"sourceObj":{"__isSmartRef__":true,"id":42},"sourceAttrName":"color","targetObj":{"__isSmartRef__":true,"id":0},"targetMethodName":"setGradient","converterString":"function (color) {\n            var stops = this.targetObj.dropColor.stops;\n            stops[1].color = color;\n            return new lively.morphic.LinearGradient(stops);\n        }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":52},"__SourceModuleName__":"Global.lively.bindings","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":53},"__LivelyClassName__":"AttributeConnection"},"52":{"source":{"__isSmartRef__":true,"id":42},"target":{"__isSmartRef__":true,"id":0}},"53":{"converter":{"__isSmartRef__":true,"id":54}},"54":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":52},"source":"function (color) {\n            var stops = this.targetObj.dropColor.stops;\n            stops[1].color = color;\n            return new lively.morphic.LinearGradient(stops);\n        }","funcProperties":{"__isSmartRef__":true,"id":55},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"55":{},"56":{"x":21,"y":12,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"57":{"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"},"58":{"morph":{"__isSmartRef__":true,"id":42},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"59":{"x":49,"y":-13,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"60":{"r":0,"g":0.1735042735042738,"b":0.33333333333333337,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"61":{"submorphs":[],"scripts":[],"id":1651,"shape":{"__isSmartRef__":true,"id":62},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":71},"showsHalos":false,"name":"gradientPreview","partsBinMetaInfo":{"__isSmartRef__":true,"id":72},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":73},"eventHandler":{"__isSmartRef__":true,"id":74},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"owner":{"__isSmartRef__":true,"id":0},"priorExtent":{"__isSmartRef__":true,"id":75},"distanceToDragEvent":{"__isSmartRef__":true,"id":76},"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Box"},"62":{"position":{"__isSmartRef__":true,"id":63},"_Extent":{"__isSmartRef__":true,"id":64},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":65},"_Fill":{"__isSmartRef__":true,"id":66},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":70},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"63":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"64":{"x":63.735459404314156,"y":25.639375583719698,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"65":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"66":{"stops":[{"__isSmartRef__":true,"id":67},{"__isSmartRef__":true,"id":68}],"vector":{"__isSmartRef__":true,"id":69},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"67":{"offset":0,"color":{"__isSmartRef__":true,"id":19}},"68":{"offset":1,"color":{"__isSmartRef__":true,"id":60}},"69":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"70":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"71":{"x":11,"y":5,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"72":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","comment":"A simple box morph. A really blue one. Its amazing what you can build out of simple boxes.... Who needs stars when you got blue rectangles!","migrationLevel":2,"partName":"Rectangle","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"73":{"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"},"74":{"morph":{"__isSmartRef__":true,"id":61},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"75":{"x":63.735459404314156,"y":24.784571392689983,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"76":{"x":57,"y":-12,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"77":{"position":{"__isSmartRef__":true,"id":78},"_Extent":{"__isSmartRef__":true,"id":79},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":80},"_Fill":{"__isSmartRef__":true,"id":81},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderRadius":20.71,"renderContextTable":{"__isSmartRef__":true,"id":82},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"78":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"79":{"x":107,"y":52,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"80":{"r":0.113,"g":0,"b":0.599,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"81":{"r":0.8,"g":0.8,"b":0.8,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"82":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"83":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"84":{"partsSpaceName":"PartsBin/DroppableBehaviors/","__SourceModuleName__":"Global.lively.PartsBin","comment":"A simple box morph","migrationLevel":4,"partName":"GradientBehavior","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"85":{"x":107,"y":53,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"86":{"sourceObj":{"__isSmartRef__":true,"id":0},"sourceAttrName":"name","targetObj":{"__isSmartRef__":true,"id":20},"targetMethodName":"updateLabel","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"87":{"options":{"__isSmartRef__":true,"id":88}},"88":{"override":["onDragStart","onDragEnd","dropOn"]},"89":{"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"},"90":{"morph":{"__isSmartRef__":true,"id":0},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"91":{"setGradient":{"__isSmartRef__":true,"id":92},"setupConnections":{"__isSmartRef__":true,"id":94}},"92":{"time":{"__isSmartRef__":true,"id":93},"user":"robertkrahn"},"93":{"isSerializedDate":true,"string":"Fri Jul 01 2011 18:18:42 GMT-0700 (PDT)"},"94":{"time":{"__isSmartRef__":true,"id":95},"user":"robertkrahn"},"95":{"isSerializedDate":true,"string":"Fri Jul 01 2011 18:19:03 GMT-0700 (PDT)"},"96":{"applyTo":{"__isSmartRef__":true,"id":97},"reset":{"__isSmartRef__":true,"id":100},"setupConnections":{"__isSmartRef__":true,"id":103},"onLoadFromPartsBin":{"__isSmartRef__":true,"id":106},"setGradient":{"__isSmartRef__":true,"id":113}},"97":{"varMapping":{"__isSmartRef__":true,"id":98},"source":"function applyTo(morph) {\n\t// this.targets.morph.\n\tmorph.setFill(this.dropColor)\n}","funcProperties":{"__isSmartRef__":true,"id":99},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"98":{"this":{"__isSmartRef__":true,"id":0}},"99":{},"100":{"varMapping":{"__isSmartRef__":true,"id":101},"source":"function reset() {\n\tthis.applyStyle({enableDragging: true})\n}","funcProperties":{"__isSmartRef__":true,"id":102},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"101":{"this":{"__isSmartRef__":true,"id":0}},"102":{},"103":{"varMapping":{"__isSmartRef__":true,"id":104},"source":"function setupConnections() {\n    connect(this.get('colorField1'), 'color', this, 'setGradient', {converter: \n        function(color) {\n            var stops = this.targetObj.dropColor.stops;\n            stops[0].color = color;\n            return new lively.morphic.LinearGradient(stops);\n        }})\n    connect(this.get('colorField2'), 'color', this, 'setGradient', {converter: \n        function(color) {\n            var stops = this.targetObj.dropColor.stops;\n            stops[1].color = color;\n            return new lively.morphic.LinearGradient(stops);\n        }})\n}","funcProperties":{"__isSmartRef__":true,"id":105},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"104":{"this":{"__isSmartRef__":true,"id":0}},"105":{},"106":{"varMapping":{"__isSmartRef__":true,"id":107},"source":"function onLoadFromPartsBin() {\n\t$super();\n\tTrait('lively.morphic.DraggableBehavior').applyTo(this, {override: ['onDragStart', 'onDragEnd', 'dropOn']});\n}","funcProperties":{"__isSmartRef__":true,"id":112},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"107":{"this":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":108}},"108":{"$super":{"__isSmartRef__":true,"id":109}},"109":{"varMapping":{"__isSmartRef__":true,"id":110},"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":111},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"110":{"obj":{"__isSmartRef__":true,"id":0},"name":"onLoadFromPartsBin"},"111":{},"112":{},"113":{"varMapping":{"__isSmartRef__":true,"id":114},"source":"function setGradient(gradient) {\n    this.dropColor = gradient;\n    this.get('gradientPreview').setFill(gradient);\n}","funcProperties":{"__isSmartRef__":true,"id":115},"__SourceModuleName__":"Global","__LivelyClassName__":"lively.Closure"},"114":{"this":{"__isSmartRef__":true,"id":0}},"115":{},"isSimplifiedRegistry":true}}